2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
568 elif test "X$1" = X--fallback-echo; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo; then
580 # used as fallback echo
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames=${tagnames+${tagnames},}CXX
705 tagnames=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev/null 6>&1
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717 ac_default_prefix=/usr/local
719 ac_config_libobj_dir=.
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
880 ac_precious_vars='build_alias
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
897 # Initialize some variables set by options.
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1187 -site=* | --site=* | --sit=*)
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1214 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 { echo "$as_me: error: invalid package name: $ac_package" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220 eval with_$ac_package=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 # Be sure to have absolute directory names.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292 { (exit 1); exit 1; }; }
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307 If a cross compiler is detected then cross compile mode will be used." >&2
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 { echo "$as_me: error: Working directory cannot be determined" >&2
1323 { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 { echo "$as_me: error: pwd does not report name of working directory" >&2
1326 { (exit 1); exit 1; }; }
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$0" : 'X\(//\)[^/]' \| \
1336 X"$0" : 'X\(//\)$' \| \
1337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366 { (exit 1); exit 1; }; }
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371 { (exit 1); exit 1; }; }
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures this package to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --disable-largefile omit support for large files
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --disable-libtool-lock avoid locking (might break parallel builds)
1473 --enable-strict-dependencies Fail configure on lack of module dependancy.
1474 --enable-developer Enables features of interest to developers.
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1479 --with-system-libltdl Use the libltdl installed in your system (default=use our own)
1480 --with-system-libtool Use the libtool installed in your system (default=use our own)
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1486 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1487 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1488 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1489 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1490 --with-threads Use threads, if available. (default=yes)
1491 --with-vmps Compile in VMPS support. (default=yes)
1492 --with-dhcp Compile in DHCP support. (default=yes)
1493 --with-static-modules=QUOTED-MODULE-LIST
1494 --with-modules=QUOTED-MODULE-LIST
1495 --with-experimental-modules Use experimental and unstable modules. (default=no)
1496 --with-openssl Use OpenSSL. (default=yes)
1497 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1498 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1499 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1500 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1501 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515 F77 Fortran 77 compiler command
1516 FFLAGS Fortran 77 compiler flags
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" || continue
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1582 generated by GNU Autoconf 2.61
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61. Invocation command line was
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1656 ac_must_keep_next=false
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 -* ) ac_must_keep_next=true ;;
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1712 # The following way of writing the cache mishandles newlines in values,
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1749 for ac_var in $ac_subst_vars
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1759 if test -n "$ac_subst_files"; then
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1766 for ac_var in $ac_subst_files
1768 eval ac_val=\$$ac_var
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 echo "$ac_var='\''$ac_val'\''"
1777 if test -s confdefs.h; then
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1803 # Predefined preprocessor variables.
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1851 if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1868 # Check that the precious variables saved in the cache have kept the same
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
1876 case $ac_old_set,$ac_new_set in
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891 echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893 echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1909 if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1943 RADIUSD_VERSION=`cat VERSION`
1944 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1945 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 if test -n "$CC"; then
1984 { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1993 if test -z "$ac_cv_prog_CC"; then
1995 # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_prog_ac_ct_CC="gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2027 { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2031 if test "x$ac_ct_CC" = x; then
2034 case $cross_compiling:$ac_tool_warned in
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet. If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="${ac_tool_prefix}cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2091 if test -z "$CC"; then
2092 # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111 ac_prog_rejected=yes
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2147 if test -z "$CC"; then
2148 if test -n "$ac_tool_prefix"; then
2149 for ac_prog in cl.exe
2151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test -n "$CC"; then
2180 { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2188 test -n "$CC" && break
2191 if test -z "$CC"; then
2193 for ac_prog in cl.exe
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_ac_ct_CC="$ac_prog"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2232 test -n "$ac_ct_CC" && break
2235 if test "x$ac_ct_CC" = x; then
2238 case $cross_compiling:$ac_tool_warned in
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet. If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_compiler --version >&5") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_compiler -v >&5") 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compiler -V >&5") 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort. b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions. Remove them first so a
2326 # subsequent execution test works.
2328 for ac_file in $ac_files
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2337 if { (ac_try="$ac_link_default"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_link_default") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2352 for ac_file in $ac_files ''
2354 test -f "$ac_file" || continue
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2359 # We found the default executable, but exeext='' is most
2363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367 # We set ac_cv_exeext here because the later test for it is not
2368 # safe: cross compilers may not add the suffix if given an `-o'
2369 # argument, so we may need to know it at that point already.
2370 # Even if this section looks crufty: it has the advantage of
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2396 ac_exeext=$ac_cv_exeext
2398 # Check that the compiler produces executables we can run. If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405 if { ac_try='./$ac_file'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 if test "$cross_compiling" = maybe; then
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run. If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_link") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2458 for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 for ac_file in conftest.o conftest.obj conftest.*; do
2514 test -f "$ac_file" || continue;
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_save_c_werror_flag=$ac_c_werror_flag
2601 ac_c_werror_flag=yes
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compile") 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } && {
2633 test -z "$ac_c_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest.$ac_objext; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest.$ac_objext; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733 CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735 if test "$GCC" = yes; then
2741 if test "$GCC" = yes; then
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_cv_prog_cc_c89=no
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2778 s = g (p, va_arg (v,int));
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not '\xHH' hex character constants.
2785 These don't provoke an error unfortunately, instead are silently treated
2786 as 'x'. The following induces an error, until -std is added to get
2787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2788 array size at least. It's necessary to write '\x00'==0 to get something
2789 that's true only with -std. */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793 inside strings and character constants. */
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 CC="$ac_save_CC $ac_arg"
2815 rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 ac_cv_prog_cc_c89=$ac_arg
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext
2841 test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 rm -f conftest.$ac_ext
2848 case "x$ac_cv_prog_cc_c89" in
2850 { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2853 { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2856 CC="$CC $ac_cv_prog_cc_c89"
2857 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2873 if test -z "$CXX"; then
2874 if test -n "$CCC"; then
2877 if test -n "$ac_tool_prefix"; then
2878 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CXX+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 if test -n "$CXX"; then
2888 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test -n "$CXX"; then
2909 { echo "$as_me:$LINENO: result: $CXX" >&5
2910 echo "${ECHO_T}$CXX" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2917 test -n "$CXX" && break
2920 if test -z "$CXX"; then
2922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$ac_ct_CXX"; then
2932 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CXX="$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2952 if test -n "$ac_ct_CXX"; then
2953 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2954 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2961 test -n "$ac_ct_CXX" && break
2964 if test "x$ac_ct_CXX" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2970 whose name does not start with the host triplet. If you think this
2971 configuration is useful to you, please write to autoconf@gnu.org." >&5
2972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2973 whose name does not start with the host triplet. If you think this
2974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2975 ac_tool_warned=yes ;;
2983 # Provide some information about the compiler.
2984 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2985 ac_compiler=`set X $ac_compile; echo $2`
2986 { (ac_try="$ac_compiler --version >&5"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler --version >&5") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996 { (ac_try="$ac_compiler -v >&5"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -v >&5") 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006 { (ac_try="$ac_compiler -V >&5"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compiler -V >&5") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }
3017 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3040 rm -f conftest.$ac_objext
3041 if { (ac_try="$ac_compile"
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3049 grep -v '^ *+' conftest.er1 >conftest.err
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } && {
3054 test -z "$ac_cxx_werror_flag" ||
3055 test ! -s conftest.err
3056 } && test -s conftest.$ac_objext; then
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3070 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3071 GXX=`test $ac_compiler_gnu = yes && echo yes`
3072 ac_test_CXXFLAGS=${CXXFLAGS+set}
3073 ac_save_CXXFLAGS=$CXXFLAGS
3074 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3075 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_cxx_g+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3080 ac_cxx_werror_flag=yes
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3107 grep -v '^ *+' conftest.er1 >conftest.err
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_cxx_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3115 ac_cv_prog_cxx_g=yes
3117 echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.$ac_objext
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && {
3150 test -z "$ac_cxx_werror_flag" ||
3151 test ! -s conftest.err
3152 } && test -s conftest.$ac_objext; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3160 cat >conftest.$ac_ext <<_ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_cxx_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cxx_g=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3209 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3210 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3211 if test "$ac_test_CXXFLAGS" = set; then
3212 CXXFLAGS=$ac_save_CXXFLAGS
3213 elif test $ac_cv_prog_cxx_g = yes; then
3214 if test "$GXX" = yes; then
3220 if test "$GXX" = yes; then
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3241 # On Suns, sometimes $CPP names a directory.
3242 if test -n "$CPP" && test -d "$CPP"; then
3245 if test -z "$CPP"; then
3246 if test "${ac_cv_prog_CPP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 # Double quotes because CPP needs to be expanded
3250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3253 for ac_c_preproc_warn_flag in '' yes
3255 # Use a header file that comes with gcc, so configuring glibc
3256 # with a fresh cross-compiler works.
3257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258 # <limits.h> exists even on freestanding compilers.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3268 # include <limits.h>
3270 # include <assert.h>
3274 if { (ac_try="$ac_cpp conftest.$ac_ext"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null && {
3287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null && {
3324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3325 test ! -s conftest.err
3327 # Broken: success on invalid input.
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3333 # Passes both tests.
3338 rm -f conftest.err conftest.$ac_ext
3341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3342 rm -f conftest.err conftest.$ac_ext
3343 if $ac_preproc_ok; then
3355 { echo "$as_me:$LINENO: result: $CPP" >&5
3356 echo "${ECHO_T}$CPP" >&6; }
3358 for ac_c_preproc_warn_flag in '' yes
3360 # Use a header file that comes with gcc, so configuring glibc
3361 # with a fresh cross-compiler works.
3362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363 # <limits.h> exists even on freestanding compilers.
3364 # On the NeXT, cc -E runs the code through the compiler's parser,
3365 # not just through cpp. "Syntax error" is here to catch this case.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3373 # include <limits.h>
3375 # include <assert.h>
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null && {
3392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3404 rm -f conftest.err conftest.$ac_ext
3406 # OK, works on sane cases. Now check whether nonexistent headers
3407 # can be detected and how.
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if { (ac_try="$ac_cpp conftest.$ac_ext"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } >/dev/null && {
3429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3432 # Broken: success on invalid input.
3435 echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3438 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&5
3453 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3466 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_GREP+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 # Extract the first word of "grep ggrep" to use in msg output
3471 if test -z "$GREP"; then
3472 set dummy grep ggrep; ac_prog_name=$2
3473 if test "${ac_cv_path_GREP+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_path_GREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in grep ggrep; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3486 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3487 # Check for GNU ac_path_GREP and select it if it is found.
3488 # Check for GNU $ac_path_GREP
3489 case `"$ac_path_GREP" --version 2>&1` in
3491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3494 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3497 cat "conftest.in" "conftest.in" >"conftest.tmp"
3498 mv "conftest.tmp" "conftest.in"
3499 cp "conftest.in" "conftest.nl"
3500 echo 'GREP' >> "conftest.nl"
3501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503 ac_count=`expr $ac_count + 1`
3504 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3505 # Best one so far, save it but keep looking for a better one
3506 ac_cv_path_GREP="$ac_path_GREP"
3507 ac_path_GREP_max=$ac_count
3509 # 10*(2^10) chars as input seems more than enough
3510 test $ac_count -gt 10 && break
3512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3516 $ac_path_GREP_found && break 3
3526 GREP="$ac_cv_path_GREP"
3527 if test -z "$GREP"; then
3528 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3529 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3530 { (exit 1); exit 1; }; }
3534 ac_cv_path_GREP=$GREP
3539 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3540 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3541 GREP="$ac_cv_path_GREP"
3544 { echo "$as_me:$LINENO: checking for egrep" >&5
3545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3546 if test "${ac_cv_path_EGREP+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3550 then ac_cv_path_EGREP="$GREP -E"
3552 # Extract the first word of "egrep" to use in msg output
3553 if test -z "$EGREP"; then
3554 set dummy egrep; ac_prog_name=$2
3555 if test "${ac_cv_path_EGREP+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_path_EGREP_found=false
3559 # Loop through the user's path and test for each of PROGNAME-LIST
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564 test -z "$as_dir" && as_dir=.
3565 for ac_prog in egrep; do
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3568 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3569 # Check for GNU ac_path_EGREP and select it if it is found.
3570 # Check for GNU $ac_path_EGREP
3571 case `"$ac_path_EGREP" --version 2>&1` in
3573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3576 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3579 cat "conftest.in" "conftest.in" >"conftest.tmp"
3580 mv "conftest.tmp" "conftest.in"
3581 cp "conftest.in" "conftest.nl"
3582 echo 'EGREP' >> "conftest.nl"
3583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3585 ac_count=`expr $ac_count + 1`
3586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3587 # Best one so far, save it but keep looking for a better one
3588 ac_cv_path_EGREP="$ac_path_EGREP"
3589 ac_path_EGREP_max=$ac_count
3591 # 10*(2^10) chars as input seems more than enough
3592 test $ac_count -gt 10 && break
3594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3598 $ac_path_EGREP_found && break 3
3608 EGREP="$ac_cv_path_EGREP"
3609 if test -z "$EGREP"; then
3610 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3611 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3612 { (exit 1); exit 1; }; }
3616 ac_cv_path_EGREP=$EGREP
3622 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3623 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3624 EGREP="$ac_cv_path_EGREP"
3628 { echo "$as_me:$LINENO: checking for AIX" >&5
3629 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 $EGREP "yes" >/dev/null 2>&1; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 cat >>confdefs.h <<\_ACEOF
3646 #define _ALL_SOURCE 1
3650 { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3657 if test $ac_cv_c_compiler_gnu = yes; then
3658 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3659 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_pattern="Autoconf.*'x'"
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3675 ac_cv_prog_gcc_traditional=yes
3677 ac_cv_prog_gcc_traditional=no
3682 if test $ac_cv_prog_gcc_traditional = no; then
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3694 ac_cv_prog_gcc_traditional=yes
3700 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3701 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3702 if test $ac_cv_prog_gcc_traditional = yes; then
3703 CC="$CC -traditional"
3707 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3708 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_suncc+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 cat > conftest.c <<EOF
3717 if { ac_try='${CC-cc} -E conftest.c'
3718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3723 ac_cv_prog_suncc=yes
3728 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3729 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3735 if test "${ac_cv_prog_RANLIB+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$RANLIB"; then
3739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 RANLIB=$ac_cv_prog_RANLIB
3759 if test -n "$RANLIB"; then
3760 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3761 echo "${ECHO_T}$RANLIB" >&6; }
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3769 if test -z "$ac_cv_prog_RANLIB"; then
3770 ac_ct_RANLIB=$RANLIB
3771 # Extract the first word of "ranlib", so it can be a program name with args.
3772 set dummy ranlib; ac_word=$2
3773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3775 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 if test -n "$ac_ct_RANLIB"; then
3779 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_RANLIB="ranlib"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3799 if test -n "$ac_ct_RANLIB"; then
3800 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3801 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3807 if test "x$ac_ct_RANLIB" = x; then
3810 case $cross_compiling:$ac_tool_warned in
3812 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3813 whose name does not start with the host triplet. If you think this
3814 configuration is useful to you, please write to autoconf@gnu.org." >&5
3815 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3816 whose name does not start with the host triplet. If you think this
3817 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3818 ac_tool_warned=yes ;;
3820 RANLIB=$ac_ct_RANLIB
3823 RANLIB="$ac_cv_prog_RANLIB"
3827 if test "x$GCC" = "xyes"; then
3828 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3831 # Check whether --enable-largefile was given.
3832 if test "${enable_largefile+set}" = set; then
3833 enableval=$enable_largefile;
3836 if test "$enable_largefile" != no; then
3838 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3839 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3840 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 ac_cv_sys_largefile_CC=no
3844 if test "$GCC" != yes; then
3847 # IRIX 6.2 and later do not support large files by default,
3848 # so use the C compiler's -n32 option if that helps.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <sys/types.h>
3856 /* Check that off_t can represent 2**63 - 1 correctly.
3857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3858 since some C++ compilers masquerading as C compilers
3859 incorrectly reject 9223372036854775807. */
3860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3862 && LARGE_OFF_T % 2147483647 == 1)
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f core conftest.err conftest.$ac_objext
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3916 ac_cv_sys_largefile_CC=' -n32'; break
3918 echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3924 rm -f core conftest.err conftest.$ac_objext
3928 rm -f conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3932 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3933 if test "$ac_cv_sys_largefile_CC" != no; then
3934 CC=$CC$ac_cv_sys_largefile_CC
3937 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3938 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 /* Check that off_t can represent 2**63 - 1 correctly.
3951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952 since some C++ compilers masquerading as C compilers
3953 incorrectly reject 9223372036854775807. */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956 && LARGE_OFF_T % 2147483647 == 1)
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_compile") 2>conftest.er1
3975 grep -v '^ *+' conftest.er1 >conftest.err
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } && {
3980 test -z "$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 } && test -s conftest.$ac_objext; then
3983 ac_cv_sys_file_offset_bits=no; break
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
3998 #define _FILE_OFFSET_BITS 64
3999 #include <sys/types.h>
4000 /* Check that off_t can represent 2**63 - 1 correctly.
4001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4002 since some C++ compilers masquerading as C compilers
4003 incorrectly reject 9223372036854775807. */
4004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4006 && LARGE_OFF_T % 2147483647 == 1)
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } && {
4030 test -z "$ac_c_werror_flag" ||
4031 test ! -s conftest.err
4032 } && test -s conftest.$ac_objext; then
4033 ac_cv_sys_file_offset_bits=64; break
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_cv_sys_file_offset_bits=unknown
4046 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4047 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4048 case $ac_cv_sys_file_offset_bits in #(
4051 cat >>confdefs.h <<_ACEOF
4052 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4057 if test $ac_cv_sys_file_offset_bits = unknown; then
4058 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4059 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4060 if test "${ac_cv_sys_large_files+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <sys/types.h>
4071 /* Check that off_t can represent 2**63 - 1 correctly.
4072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4073 since some C++ compilers masquerading as C compilers
4074 incorrectly reject 9223372036854775807. */
4075 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4077 && LARGE_OFF_T % 2147483647 == 1)
4087 rm -f conftest.$ac_objext
4088 if { (ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094 (eval "$ac_compile") 2>conftest.er1
4096 grep -v '^ *+' conftest.er1 >conftest.err
4098 cat conftest.err >&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } && {
4101 test -z "$ac_c_werror_flag" ||
4102 test ! -s conftest.err
4103 } && test -s conftest.$ac_objext; then
4104 ac_cv_sys_large_files=no; break
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4119 #define _LARGE_FILES 1
4120 #include <sys/types.h>
4121 /* Check that off_t can represent 2**63 - 1 correctly.
4122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4123 since some C++ compilers masquerading as C compilers
4124 incorrectly reject 9223372036854775807. */
4125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4127 && LARGE_OFF_T % 2147483647 == 1)
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 ac_cv_sys_large_files=1; break
4156 echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 ac_cv_sys_large_files=unknown
4167 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4168 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4169 case $ac_cv_sys_large_files in #(
4172 cat >>confdefs.h <<_ACEOF
4173 #define _LARGE_FILES $ac_cv_sys_large_files
4182 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4183 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4184 if test "${ac_cv_header_stdc+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4206 rm -f conftest.$ac_objext
4207 if { (ac_try="$ac_compile"
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_compile") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1 >conftest.err
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest.$ac_objext; then
4223 ac_cv_header_stdc=yes
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4228 ac_cv_header_stdc=no
4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233 if test $ac_cv_header_stdc = yes; then
4234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 $EGREP "memchr" >/dev/null 2>&1; then
4248 ac_cv_header_stdc=no
4254 if test $ac_cv_header_stdc = yes; then
4255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4266 $EGREP "free" >/dev/null 2>&1; then
4269 ac_cv_header_stdc=no
4275 if test $ac_cv_header_stdc = yes; then
4276 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4277 if test "$cross_compiling" = yes; then
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4288 #if ((' ' & 0x0FF) == 0x020)
4289 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4292 # define ISLOWER(c) \
4293 (('a' <= (c) && (c) <= 'i') \
4294 || ('j' <= (c) && (c) <= 'r') \
4295 || ('s' <= (c) && (c) <= 'z'))
4296 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4304 for (i = 0; i < 256; i++)
4305 if (XOR (islower (i), ISLOWER (i))
4306 || toupper (i) != TOUPPER (i))
4311 rm -f conftest$ac_exeext
4312 if { (ac_try="$ac_link"
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_link") 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4322 { (case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_try") 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4333 echo "$as_me: program exited with status $ac_status" >&5
4334 echo "$as_me: failed program was:" >&5
4335 sed 's/^/| /' conftest.$ac_ext >&5
4338 ac_cv_header_stdc=no
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4347 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4350 cat >>confdefs.h <<\_ACEOF
4351 #define STDC_HEADERS 1
4356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367 inttypes.h stdint.h unistd.h
4369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4381 $ac_includes_default
4383 #include <$ac_header>
4385 rm -f conftest.$ac_objext
4386 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4394 grep -v '^ *+' conftest.er1 >conftest.err
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } && {
4399 test -z "$ac_c_werror_flag" ||
4400 test ! -s conftest.err
4401 } && test -s conftest.$ac_objext; then
4402 eval "$as_ac_Header=yes"
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 eval "$as_ac_Header=no"
4410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_res=`eval echo '${'$as_ac_Header'}'`
4413 { echo "$as_me:$LINENO: result: $ac_res" >&5
4414 echo "${ECHO_T}$ac_res" >&6; }
4415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4416 cat >>confdefs.h <<_ACEOF
4417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4425 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4427 if test "${ac_cv_c_bigendian+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 # See if sys/param.h defines the BYTE_ORDER macro.
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <sys/types.h>
4438 #include <sys/param.h>
4443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4444 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4452 rm -f conftest.$ac_objext
4453 if { (ac_try="$ac_compile"
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4469 # It does; now see whether it defined to BIG_ENDIAN or not.
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <sys/types.h>
4477 #include <sys/param.h>
4482 #if BYTE_ORDER != BIG_ENDIAN
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_compile") 2>conftest.er1
4499 grep -v '^ *+' conftest.er1 >conftest.err
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } && {
4504 test -z "$ac_c_werror_flag" ||
4505 test ! -s conftest.err
4506 } && test -s conftest.$ac_objext; then
4507 ac_cv_c_bigendian=yes
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 ac_cv_c_bigendian=no
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 # It does not; compile a test program.
4521 if test "$cross_compiling" = yes; then
4522 # try to guess the endianness by grepping values into an object file
4523 ac_cv_c_bigendian=unknown
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4531 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4532 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4533 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4534 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4535 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4539 _ascii (); _ebcdic ();
4544 rm -f conftest.$ac_objext
4545 if { (ac_try="$ac_compile"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_compile") 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && {
4558 test -z "$ac_c_werror_flag" ||
4559 test ! -s conftest.err
4560 } && test -s conftest.$ac_objext; then
4561 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4562 ac_cv_c_bigendian=yes
4564 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4565 if test "$ac_cv_c_bigendian" = unknown; then
4566 ac_cv_c_bigendian=no
4568 # finding both strings is unlikely to happen, but who knows?
4569 ac_cv_c_bigendian=unknown
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4587 $ac_includes_default
4592 /* Are we little or big endian? From Harbison&Steele. */
4596 char c[sizeof (long int)];
4599 return u.c[sizeof (long int) - 1] == 1;
4605 rm -f conftest$ac_exeext
4606 if { (ac_try="$ac_link"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_link") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616 { (case "(($ac_try" in
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621 (eval "$ac_try") 2>&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_cv_c_bigendian=no
4627 echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_cv_c_bigendian=yes
4634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4643 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4644 case $ac_cv_c_bigendian in
4647 cat >>confdefs.h <<\_ACEOF
4648 #define WORDS_BIGENDIAN 1
4654 { { echo "$as_me:$LINENO: error: unknown endianness
4655 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4656 echo "$as_me: error: unknown endianness
4657 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4658 { (exit 1); exit 1; }; } ;;
4662 # Extract the first word of "gmake", so it can be a program name with args.
4663 set dummy gmake; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_GMAKE+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 if test -n "$GMAKE"; then
4670 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_GMAKE="yes"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4690 GMAKE=$ac_cv_prog_GMAKE
4691 if test -n "$GMAKE"; then
4692 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4693 echo "${ECHO_T}$GMAKE" >&6; }
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 if test $GMAKE = no; then
4701 # Extract the first word of "make", so it can be a program name with args.
4702 set dummy make; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_path_MAKE+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4732 MAKE=$ac_cv_path_MAKE
4733 if test -n "$MAKE"; then
4734 { echo "$as_me:$LINENO: result: $MAKE" >&5
4735 echo "${ECHO_T}$MAKE" >&6; }
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4743 # Extract the first word of "gmake", so it can be a program name with args.
4744 set dummy gmake; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_path_MAKE+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4774 MAKE=$ac_cv_path_MAKE
4775 if test -n "$MAKE"; then
4776 { echo "$as_me:$LINENO: result: $MAKE" >&5
4777 echo "${ECHO_T}$MAKE" >&6; }
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4785 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4786 if test -z "$makever"; then
4787 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4788 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4789 echo "$as_me: error: GNU Make is not installed. Please download and install it
4790 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4791 { (exit 1); exit 1; }; }
4795 # Check whether --with-system-libltdl was given.
4796 if test "${with_system_libltdl+set}" = set; then
4797 withval=$with_system_libltdl;
4799 INCLTDL=-DWITH_SYSTEM_LTDL
4804 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4805 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4806 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4807 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 ac_check_lib_save_LIBS=$LIBS
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 /* Override any GCC internal prototype to avoid an error.
4820 Use char because int might match the return type of a GCC
4821 builtin and then its argument prototype would still apply. */
4829 return lt_dlinit ();
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (ac_try="$ac_link"
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_link") 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest$ac_exeext &&
4851 $as_test_x conftest$ac_exeext; then
4852 ac_cv_lib_ltdl_lt_dlinit=yes
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4857 ac_cv_lib_ltdl_lt_dlinit=no
4860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4861 conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4865 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4866 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4867 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4869 if test x"$enable_ltdl_install" = xno; then
4870 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4871 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4873 enable_ltdl_install=yes
4878 if test x"$enable_ltdl_install" = x"yes"; then
4879 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4880 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4881 LTDLINCL='-I${top_srcdir}/''libltdl'
4883 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4887 # For backwards non-gettext consistent compatibility...
4891 if test x"$enable_ltdl_install" = x"yes"; then
4892 LTDL_SUBDIRS=libltdl
4899 # Check whether --enable-shared was given.
4900 if test "${enable_shared+set}" = set; then
4901 enableval=$enable_shared; p=${PACKAGE-default}
4903 yes) enable_shared=yes ;;
4904 no) enable_shared=no ;;
4907 # Look at the argument we got. We use all the common list separators.
4908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909 for pkg in $enableval; do
4911 if test "X$pkg" = "X$p"; then
4923 # Check whether --enable-static was given.
4924 if test "${enable_static+set}" = set; then
4925 enableval=$enable_static; p=${PACKAGE-default}
4927 yes) enable_static=yes ;;
4928 no) enable_static=no ;;
4931 # Look at the argument we got. We use all the common list separators.
4932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933 for pkg in $enableval; do
4935 if test "X$pkg" = "X$p"; then
4947 # Check whether --enable-fast-install was given.
4948 if test "${enable_fast_install+set}" = set; then
4949 enableval=$enable_fast_install; p=${PACKAGE-default}
4951 yes) enable_fast_install=yes ;;
4952 no) enable_fast_install=no ;;
4954 enable_fast_install=no
4955 # Look at the argument we got. We use all the common list separators.
4956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4957 for pkg in $enableval; do
4959 if test "X$pkg" = "X$p"; then
4960 enable_fast_install=yes
4967 enable_fast_install=yes
4972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4973 if test -f "$ac_dir/install-sh"; then
4975 ac_install_sh="$ac_aux_dir/install-sh -c"
4977 elif test -f "$ac_dir/install.sh"; then
4979 ac_install_sh="$ac_aux_dir/install.sh -c"
4981 elif test -f "$ac_dir/shtool"; then
4983 ac_install_sh="$ac_aux_dir/shtool install -c"
4987 if test -z "$ac_aux_dir"; then
4988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4990 { (exit 1); exit 1; }; }
4993 # These three variables are undocumented and unsupported,
4994 # and are intended to be withdrawn in a future Autoconf release.
4995 # They can cause serious problems if a builder's source tree is in a directory
4996 # whose full name contains unusual characters.
4997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5002 # Make sure we can run config.sub.
5003 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5004 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5005 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5006 { (exit 1); exit 1; }; }
5008 { echo "$as_me:$LINENO: checking build system type" >&5
5009 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5010 if test "${ac_cv_build+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 ac_build_alias=$build_alias
5014 test "x$ac_build_alias" = x &&
5015 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5016 test "x$ac_build_alias" = x &&
5017 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5018 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5019 { (exit 1); exit 1; }; }
5020 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5021 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5022 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5023 { (exit 1); exit 1; }; }
5026 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5027 echo "${ECHO_T}$ac_cv_build" >&6; }
5028 case $ac_cv_build in
5030 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5031 echo "$as_me: error: invalid value of canonical build" >&2;}
5032 { (exit 1); exit 1; }; };;
5035 ac_save_IFS=$IFS; IFS='-'
5041 # Remember, the first character of IFS is used to create $*,
5042 # except with old shells:
5045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5048 { echo "$as_me:$LINENO: checking host system type" >&5
5049 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5050 if test "${ac_cv_host+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test "x$host_alias" = x; then
5054 ac_cv_host=$ac_cv_build
5056 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5058 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5059 { (exit 1); exit 1; }; }
5063 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5064 echo "${ECHO_T}$ac_cv_host" >&6; }
5067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5068 echo "$as_me: error: invalid value of canonical host" >&2;}
5069 { (exit 1); exit 1; }; };;
5072 ac_save_IFS=$IFS; IFS='-'
5078 # Remember, the first character of IFS is used to create $*,
5079 # except with old shells:
5082 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5085 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5086 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5087 if test "${lt_cv_path_SED+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 # Loop through the user's path and test for sed and gsed.
5091 # Then use that list of sed's as ones to test for truncation.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for lt_ac_prog in sed gsed; do
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5100 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111 test ! -f $lt_ac_sed && continue
5112 cat /dev/null > conftest.in
5114 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115 # Check for GNU sed and select it if it is found.
5116 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117 lt_cv_path_SED=$lt_ac_sed
5121 cat conftest.in conftest.in >conftest.tmp
5122 mv conftest.tmp conftest.in
5123 cp conftest.in conftest.nl
5125 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126 cmp -s conftest.out conftest.nl || break
5127 # 10000 chars as input seems more than enough
5128 test $lt_ac_count -gt 10 && break
5129 lt_ac_count=`expr $lt_ac_count + 1`
5130 if test $lt_ac_count -gt $lt_ac_max; then
5131 lt_ac_max=$lt_ac_count
5132 lt_cv_path_SED=$lt_ac_sed
5141 { echo "$as_me:$LINENO: result: $SED" >&5
5142 echo "${ECHO_T}$SED" >&6; }
5145 # Check whether --with-gnu-ld was given.
5146 if test "${with_gnu_ld+set}" = set; then
5147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5153 if test "$GCC" = yes; then
5154 # Check if gcc -print-prog-name=ld gives a path.
5155 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5156 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5159 # gcc leaves a trailing carriage return which upsets mingw
5160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5165 # Accept absolute paths.
5167 re_direlt='/[^/][^/]*/\.\./'
5168 # Canonicalize the pathname of ld
5169 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5170 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5171 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5173 test -z "$LD" && LD="$ac_prog"
5176 # If it fails, then pretend we aren't using GCC.
5180 # If it is relative, then search for the first ld in PATH.
5184 elif test "$with_gnu_ld" = yes; then
5185 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5186 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5188 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5189 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5191 if test "${lt_cv_path_LD+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if test -z "$LD"; then
5195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5196 for ac_dir in $PATH; do
5198 test -z "$ac_dir" && ac_dir=.
5199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5200 lt_cv_path_LD="$ac_dir/$ac_prog"
5201 # Check to see if the program is GNU ld. I'd rather use --version,
5202 # but apparently some variants of GNU ld only accept -v.
5203 # Break only if it was the GNU/non-GNU ld that we prefer.
5204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5205 *GNU* | *'with BFD'*)
5206 test "$with_gnu_ld" != no && break
5209 test "$with_gnu_ld" != yes && break
5216 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5221 if test -n "$LD"; then
5222 { echo "$as_me:$LINENO: result: $LD" >&5
5223 echo "${ECHO_T}$LD" >&6; }
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5230 { (exit 1); exit 1; }; }
5231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5233 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5237 case `$LD -v 2>&1 </dev/null` in
5238 *GNU* | *'with BFD'*)
5239 lt_cv_prog_gnu_ld=yes
5242 lt_cv_prog_gnu_ld=no
5246 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5247 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5248 with_gnu_ld=$lt_cv_prog_gnu_ld
5251 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5252 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5253 if test "${lt_cv_ld_reload_flag+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 lt_cv_ld_reload_flag='-r'
5258 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5259 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5260 reload_flag=$lt_cv_ld_reload_flag
5261 case $reload_flag in
5263 *) reload_flag=" $reload_flag" ;;
5265 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 if test "$GCC" = yes; then
5269 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5277 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5278 if test "${lt_cv_path_NM+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$NM"; then
5282 # Let the user override the test.
5285 lt_nm_to_check="${ac_tool_prefix}nm"
5286 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5287 lt_nm_to_check="$lt_nm_to_check nm"
5289 for lt_tmp_nm in $lt_nm_to_check; do
5290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5291 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5293 test -z "$ac_dir" && ac_dir=.
5294 tmp_nm="$ac_dir/$lt_tmp_nm"
5295 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5296 # Check to see if the nm accepts a BSD-compat flag.
5297 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5298 # nm: unknown option "B" ignored
5299 # Tru64's nm complains that /dev/null is an invalid object file
5300 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5301 */dev/null* | *'Invalid file or object type'*)
5302 lt_cv_path_NM="$tmp_nm -B"
5306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5308 lt_cv_path_NM="$tmp_nm -p"
5312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5313 continue # so that we can try to find one that supports BSD flags
5322 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5325 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5326 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5329 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5330 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5332 if test "$LN_S" = "ln -s"; then
5333 { echo "$as_me:$LINENO: result: yes" >&5
5334 echo "${ECHO_T}yes" >&6; }
5336 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5337 echo "${ECHO_T}no, using $LN_S" >&6; }
5340 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5341 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5342 if test "${lt_cv_deplibs_check_method+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 lt_cv_file_magic_cmd='$MAGIC_CMD'
5346 lt_cv_file_magic_test_file=
5347 lt_cv_deplibs_check_method='unknown'
5348 # Need to set the preceding variable on all platforms that support
5349 # interlibrary dependencies.
5350 # 'none' -- dependencies not supported.
5351 # `unknown' -- same as none, but documents that we really don't know.
5352 # 'pass_all' -- all dependencies passed with no checks.
5353 # 'test_compile' -- check by making test program.
5354 # 'file_magic [[regex]]' -- check by looking for files in library path
5355 # which responds to the $file_magic_cmd with a given extended regex.
5356 # If you have `file' or equivalent on your system and you're not sure
5357 # whether `pass_all' will *always* work, you probably want this one.
5361 lt_cv_deplibs_check_method=pass_all
5365 lt_cv_deplibs_check_method=pass_all
5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5370 lt_cv_file_magic_cmd='/usr/bin/file -L'
5371 lt_cv_file_magic_test_file=/shlib/libc.so
5375 # func_win32_libid is a shell function defined in ltmain.sh
5376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5377 lt_cv_file_magic_cmd='func_win32_libid'
5381 # Base MSYS/MinGW do not provide the 'file' command needed by
5382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5383 # unless we find 'file', for example because we are cross-compiling.
5384 if ( file / ) >/dev/null 2>&1; then
5385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386 lt_cv_file_magic_cmd='func_win32_libid'
5388 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5389 lt_cv_file_magic_cmd='$OBJDUMP -f'
5393 darwin* | rhapsody*)
5394 lt_cv_deplibs_check_method=pass_all
5397 freebsd* | dragonfly*)
5398 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5401 # Not sure whether the presence of OpenBSD here was a mistake.
5402 # Let's accept both of them until this is cleared up.
5403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5404 lt_cv_file_magic_cmd=/usr/bin/file
5405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5409 lt_cv_deplibs_check_method=pass_all
5414 lt_cv_deplibs_check_method=pass_all
5417 hpux10.20* | hpux11*)
5418 lt_cv_file_magic_cmd=/usr/bin/file
5421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5425 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]'
5426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5440 irix5* | irix6* | nonstopux*)
5442 *-32|*"-32 ") libmagic=32-bit;;
5443 *-n32|*"-n32 ") libmagic=N32;;
5444 *-64|*"-64 ") libmagic=64-bit;;
5445 *) libmagic=never-match;;
5447 lt_cv_deplibs_check_method=pass_all
5450 # This must be Linux ELF.
5451 linux* | k*bsd*-gnu)
5452 lt_cv_deplibs_check_method=pass_all
5455 netbsd* | netbsdelf*-gnu)
5456 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465 lt_cv_file_magic_cmd=/usr/bin/file
5466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5470 lt_cv_deplibs_check_method=unknown
5474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5481 osf3* | osf4* | osf5*)
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5490 lt_cv_deplibs_check_method=pass_all
5494 case $host_vendor in
5496 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]'
5497 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5500 lt_cv_deplibs_check_method=pass_all
5503 lt_cv_file_magic_cmd='/bin/file'
5504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5507 lt_cv_file_magic_cmd='/bin/file'
5508 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509 lt_cv_file_magic_test_file=/lib/libc.so
5512 lt_cv_deplibs_check_method=pass_all
5515 lt_cv_deplibs_check_method=pass_all
5520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5521 lt_cv_deplibs_check_method=pass_all
5526 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5527 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5528 file_magic_cmd=$lt_cv_file_magic_cmd
5529 deplibs_check_method=$lt_cv_deplibs_check_method
5530 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5535 # If no C compiler was specified, use CC.
5538 # If no C compiler flags were specified, use CFLAGS.
5539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5541 # Allow CC to be a program name with arguments.
5544 # Check whether --enable-libtool-lock was given.
5545 if test "${enable_libtool_lock+set}" = set; then
5546 enableval=$enable_libtool_lock;
5549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5551 # Some flags need to be propagated to the compiler or linker for good
5555 # Find out which ABI we are using.
5556 echo 'int i;' > conftest.$ac_ext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; then
5562 case `/usr/bin/file conftest.$ac_objext` in
5574 # Find out which ABI we are using.
5575 echo '#line 5576 "configure"' > conftest.$ac_ext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577 (eval $ac_compile) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5581 if test "$lt_cv_prog_gnu_ld" = yes; then
5582 case `/usr/bin/file conftest.$ac_objext` in
5584 LD="${LD-ld} -melf32bsmip"
5587 LD="${LD-ld} -melf32bmipn32"
5590 LD="${LD-ld} -melf64bmip"
5594 case `/usr/bin/file conftest.$ac_objext` in
5610 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5611 s390*-*linux*|sparc*-*linux*)
5612 # Find out which ABI we are using.
5613 echo 'int i;' > conftest.$ac_ext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; then
5619 case `/usr/bin/file conftest.o` in
5622 x86_64-*kfreebsd*-gnu)
5623 LD="${LD-ld} -m elf_i386_fbsd"
5626 LD="${LD-ld} -m elf_i386"
5628 ppc64-*linux*|powerpc64-*linux*)
5629 LD="${LD-ld} -m elf32ppclinux"
5632 LD="${LD-ld} -m elf_s390"
5635 LD="${LD-ld} -m elf32_sparc"
5641 x86_64-*kfreebsd*-gnu)
5642 LD="${LD-ld} -m elf_x86_64_fbsd"
5645 LD="${LD-ld} -m elf_x86_64"
5647 ppc*-*linux*|powerpc*-*linux*)
5648 LD="${LD-ld} -m elf64ppc"
5651 LD="${LD-ld} -m elf64_s390"
5654 LD="${LD-ld} -m elf64_sparc"
5664 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5665 SAVE_CFLAGS="$CFLAGS"
5666 CFLAGS="$CFLAGS -belf"
5667 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5668 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5669 if test "${lt_cv_cc_needs_belf+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_cpp='$CPP $CPPFLAGS'
5674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (ac_try="$ac_link"
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_c_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 lt_cv_cc_needs_belf=yes
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5716 lt_cv_cc_needs_belf=no
5719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720 conftest$ac_exeext conftest.$ac_ext
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5729 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5730 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5731 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5732 CFLAGS="$SAVE_CFLAGS"
5736 # Find out which ABI we are using.
5737 echo 'int i;' > conftest.$ac_ext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739 (eval $ac_compile) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 case `/usr/bin/file conftest.o` in
5745 case $lt_cv_prog_gnu_ld in
5746 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5748 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5762 need_locks="$enable_libtool_lock"
5766 for ac_header in dlfcn.h
5768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 ac_res=`eval echo '${'$as_ac_Header'}'`
5776 { echo "$as_me:$LINENO: result: $ac_res" >&5
5777 echo "${ECHO_T}$ac_res" >&6; }
5779 # Is the header compilable?
5780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5782 cat >conftest.$ac_ext <<_ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5789 #include <$ac_header>
5791 rm -f conftest.$ac_objext
5792 if { (ac_try="$ac_compile"
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_compile") 2>conftest.er1
5800 grep -v '^ *+' conftest.er1 >conftest.err
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest.$ac_objext; then
5808 ac_header_compiler=yes
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 ac_header_compiler=no
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818 echo "${ECHO_T}$ac_header_compiler" >&6; }
5820 # Is the header present?
5821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 #include <$ac_header>
5831 if { (ac_try="$ac_cpp conftest.$ac_ext"
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null && {
5844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5847 ac_header_preproc=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_header_preproc=no
5855 rm -f conftest.err conftest.$ac_ext
5856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5857 echo "${ECHO_T}$ac_header_preproc" >&6; }
5859 # So? What about this header?
5860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5866 ac_header_preproc=yes
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 eval "$as_ac_Header=\$ac_header_preproc"
5891 ac_res=`eval echo '${'$as_ac_Header'}'`
5892 { echo "$as_me:$LINENO: result: $ac_res" >&5
5893 echo "${ECHO_T}$ac_res" >&6; }
5896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5897 cat >>confdefs.h <<_ACEOF
5898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5907 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5908 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5909 (test "X$CXX" != "Xg++"))) ; then
5911 ac_cpp='$CXXCPP $CPPFLAGS'
5912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5915 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5916 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5917 if test -z "$CXXCPP"; then
5918 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 # Double quotes because CXXCPP needs to be expanded
5922 for CXXCPP in "$CXX -E" "/lib/cpp"
5925 for ac_cxx_preproc_warn_flag in '' yes
5927 # Use a header file that comes with gcc, so configuring glibc
5928 # with a fresh cross-compiler works.
5929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5930 # <limits.h> exists even on freestanding compilers.
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp. "Syntax error" is here to catch this case.
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5940 # include <limits.h>
5942 # include <assert.h>
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5954 grep -v '^ *+' conftest.er1 >conftest.err
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } >/dev/null && {
5959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5960 test ! -s conftest.err
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 # Broken: fails on valid input.
5971 rm -f conftest.err conftest.$ac_ext
5973 # OK, works on sane cases. Now check whether nonexistent headers
5974 # can be detected and how.
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 #include <ac_nonexistent.h>
5983 if { (ac_try="$ac_cpp conftest.$ac_ext"
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5991 grep -v '^ *+' conftest.er1 >conftest.err
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } >/dev/null && {
5996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5997 test ! -s conftest.err
5999 # Broken: success on invalid input.
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 # Passes both tests.
6010 rm -f conftest.err conftest.$ac_ext
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then
6020 ac_cv_prog_CXXCPP=$CXXCPP
6023 CXXCPP=$ac_cv_prog_CXXCPP
6025 ac_cv_prog_CXXCPP=$CXXCPP
6027 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6028 echo "${ECHO_T}$CXXCPP" >&6; }
6030 for ac_cxx_preproc_warn_flag in '' yes
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 # include <limits.h>
6047 # include <assert.h>
6051 if { (ac_try="$ac_cpp conftest.$ac_ext"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } >/dev/null && {
6064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6065 test ! -s conftest.err
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 # Broken: fails on valid input.
6076 rm -f conftest.err conftest.$ac_ext
6078 # OK, works on sane cases. Now check whether nonexistent headers
6079 # can be detected and how.
6080 cat >conftest.$ac_ext <<_ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #include <ac_nonexistent.h>
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6096 grep -v '^ *+' conftest.er1 >conftest.err
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } >/dev/null && {
6101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6102 test ! -s conftest.err
6104 # Broken: success on invalid input.
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 # Passes both tests.
6115 rm -f conftest.err conftest.$ac_ext
6118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6119 rm -f conftest.err conftest.$ac_ext
6120 if $ac_preproc_ok; then
6123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6124 See \`config.log' for more details." >&5
6125 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6126 See \`config.log' for more details." >&2;}
6127 { (exit 1); exit 1; }; }
6131 ac_cpp='$CXXCPP $CPPFLAGS'
6132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6140 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6141 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6143 if test -n "$ac_tool_prefix"; then
6144 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_prog_F77+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test -n "$F77"; then
6154 ac_cv_prog_F77="$F77" # Let the user override the test.
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 if test -n "$F77"; then
6175 { echo "$as_me:$LINENO: result: $F77" >&5
6176 echo "${ECHO_T}$F77" >&6; }
6178 { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6183 test -n "$F77" && break
6186 if test -z "$F77"; then
6188 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6190 # Extract the first word of "$ac_prog", so it can be a program name with args.
6191 set dummy $ac_prog; ac_word=$2
6192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6194 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 if test -n "$ac_ct_F77"; then
6198 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_ac_ct_F77="$ac_prog"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6218 if test -n "$ac_ct_F77"; then
6219 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6220 echo "${ECHO_T}$ac_ct_F77" >&6; }
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6227 test -n "$ac_ct_F77" && break
6230 if test "x$ac_ct_F77" = x; then
6233 case $cross_compiling:$ac_tool_warned in
6235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet. If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&5
6238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6239 whose name does not start with the host triplet. If you think this
6240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6241 ac_tool_warned=yes ;;
6248 # Provide some information about the compiler.
6249 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6250 ac_compiler=`set X $ac_compile; echo $2`
6251 { (ac_try="$ac_compiler --version >&5"
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compiler --version >&5") 2>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261 { (ac_try="$ac_compiler -v >&5"
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compiler -v >&5") 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271 { (ac_try="$ac_compiler -V >&5"
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler -V >&5") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6283 # If we don't use `.F' as extension, the preprocessor is not run on the
6284 # input file. (Note that this only needs to work for GNU compilers.)
6287 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6288 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6289 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 cat >conftest.$ac_ext <<_ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_f77_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6329 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6330 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6332 ac_test_FFLAGS=${FFLAGS+set}
6333 ac_save_FFLAGS=$FFLAGS
6335 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6336 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6337 if test "${ac_cv_prog_f77_g+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 cat >conftest.$ac_ext <<_ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (ac_try="$ac_compile"
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_compile") 2>conftest.er1
6355 grep -v '^ *+' conftest.er1 >conftest.err
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } && {
6360 test -z "$ac_f77_werror_flag" ||
6361 test ! -s conftest.err
6362 } && test -s conftest.$ac_objext; then
6363 ac_cv_prog_f77_g=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6375 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6376 if test "$ac_test_FFLAGS" = set; then
6377 FFLAGS=$ac_save_FFLAGS
6378 elif test $ac_cv_prog_f77_g = yes; then
6379 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6385 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6392 G77=`test $ac_compiler_gnu = yes && echo yes`
6394 ac_cpp='$CPP $CPPFLAGS'
6395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6402 # find the maximum length of command line arguments
6403 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6404 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6405 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 # On DJGPP, this test can blow up pretty badly due to problems in libc
6414 # (any single argument exceeding 2000 bytes causes a buffer overrun
6415 # during glob expansion). Even if it were fixed, the result of this
6416 # check would be larger than it should be.
6417 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6421 # Under GNU Hurd, this test is not required because there is
6422 # no limit to the length of command line arguments.
6423 # Libtool will interpret -1 as no limit whatsoever
6424 lt_cv_sys_max_cmd_len=-1;
6428 # On Win9x/ME, this test blows up -- it succeeds, but takes
6429 # about 5 minutes as the teststring grows exponentially.
6430 # Worse, since 9x/ME are not pre-emptively multitasking,
6431 # you end up with a "frozen" computer, even though with patience
6432 # the test eventually succeeds (with a max line length of 256k).
6433 # Instead, let's just punt: use the minimum linelength reported by
6434 # all of the supported platforms: 8192 (on NT/2K/XP).
6435 lt_cv_sys_max_cmd_len=8192;
6439 # On AmigaOS with pdksh, this test takes hours, literally.
6440 # So we just punt and use a minimum line length of 8192.
6441 lt_cv_sys_max_cmd_len=8192;
6444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6445 # This has been around since 386BSD, at least. Likely further.
6446 if test -x /sbin/sysctl; then
6447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6448 elif test -x /usr/sbin/sysctl; then
6449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6453 # And add a safety zone
6454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6459 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6460 lt_cv_sys_max_cmd_len=196608
6464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6466 # nice to cause kernel panics so lets avoid the loop below.
6467 # First set a reasonable default.
6468 lt_cv_sys_max_cmd_len=16384
6470 if test -x /sbin/sysconfig; then
6471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6472 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6477 lt_cv_sys_max_cmd_len=102400
6479 sysv5* | sco5v6* | sysv4.2uw2*)
6480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6481 if test -n "$kargmax"; then
6482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6484 lt_cv_sys_max_cmd_len=32768
6488 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6489 if test -n "$lt_cv_sys_max_cmd_len"; then
6490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6493 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6494 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6495 = "XX$teststring") >/dev/null 2>&1 &&
6496 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6497 lt_cv_sys_max_cmd_len=$new_result &&
6498 test $i != 17 # 1/2 MB should be enough
6501 teststring=$teststring$teststring
6504 # Add a significant safety factor because C++ compilers can tack on massive
6505 # amounts of additional arguments before passing them to the linker.
6506 # It appears as though 1/2 is a usable value.
6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6514 if test -n $lt_cv_sys_max_cmd_len ; then
6515 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6516 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6518 { echo "$as_me:$LINENO: result: none" >&5
6519 echo "${ECHO_T}none" >&6; }
6526 # Check for command to grab the raw symbol name followed by C symbol from nm.
6527 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6528 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6529 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 # These are sane defaults that work on at least a few old systems.
6534 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6536 # Character class describing NM global symbol codes.
6537 symcode='[BCDEGRST]'
6539 # Regexp to match symbols that can be accessed directly from C.
6540 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6542 # Transform an extracted symbol line into a proper C declaration
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 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'"
6548 # Define system-specific variables.
6553 cygwin* | mingw* | pw32*)
6554 symcode='[ABCDGISTW]'
6556 hpux*) # Its linker distinguishes data from code symbols
6557 if test "$host_cpu" = ia64; then
6558 symcode='[ABCDEGRST]'
6560 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6561 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'"
6563 linux* | k*bsd*-gnu)
6564 if test "$host_cpu" = ia64; then
6565 symcode='[ABCDGIRSTW]'
6566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6567 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'"
6571 symcode='[BCDEGRST]'
6574 symcode='[BCDEGQRST]'
6585 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6593 # Handle CRLF in mingw tool chain
6597 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6601 # If we're using GNU nm, then use its standard symbol codes.
6602 case `$NM -V 2>&1` in
6603 *GNU* | *'with BFD'*)
6604 symcode='[ABCDGIRSTW]' ;;
6607 # Try without a prefix undercore, then with it.
6608 for ac_symprfx in "" "_"; do
6610 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6611 symxfrm="\\1 $ac_symprfx\\2 \\2"
6613 # Write the raw and C identifiers.
6614 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6616 # Check to see that the pipe works correctly.
6620 cat > conftest.$ac_ext <<EOF
6625 void nm_test_func(){}
6629 int main(){nm_test_var='a';nm_test_func();return(0);}
6632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6633 (eval $ac_compile) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; then
6637 # Now try to grab the symbols.
6639 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6640 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && test -s "$nlist"; then
6644 # Try sorting and uniquifying the output.
6645 if sort "$nlist" | uniq > "$nlist"T; then
6646 mv -f "$nlist"T "$nlist"
6651 # Make sure that we snagged all the symbols we need.
6652 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6653 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6654 cat <<EOF > conftest.$ac_ext
6660 # Now generate the symbol file.
6661 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6663 cat <<EOF >> conftest.$ac_ext
6664 #if defined (__STDC__) && __STDC__
6665 # define lt_ptr_t void *
6667 # define lt_ptr_t char *
6671 /* The mapping between symbol names and symbols. */
6676 lt_preloaded_symbols[] =
6679 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6680 cat <<\EOF >> conftest.$ac_ext
6688 # Now try linking the two files.
6689 mv conftest.$ac_objext conftstm.$ac_objext
6690 lt_save_LIBS="$LIBS"
6691 lt_save_CFLAGS="$CFLAGS"
6692 LIBS="conftstm.$ac_objext"
6693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6701 LIBS="$lt_save_LIBS"
6702 CFLAGS="$lt_save_CFLAGS"
6704 echo "cannot find nm_test_func in $nlist" >&5
6707 echo "cannot find nm_test_var in $nlist" >&5
6710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6713 echo "$progname: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 rm -rf conftest* conftst*
6718 # Do not use the global_symbol_pipe unless it works.
6719 if test "$pipe_works" = yes; then
6722 lt_cv_sys_global_symbol_pipe=
6728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6729 lt_cv_sys_global_symbol_to_cdecl=
6731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6732 { echo "$as_me:$LINENO: result: failed" >&5
6733 echo "${ECHO_T}failed" >&6; }
6735 { echo "$as_me:$LINENO: result: ok" >&5
6736 echo "${ECHO_T}ok" >&6; }
6739 { echo "$as_me:$LINENO: checking for objdir" >&5
6740 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6741 if test "${lt_cv_objdir+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 rm -f .libs 2>/dev/null
6745 mkdir .libs 2>/dev/null
6746 if test -d .libs; then
6749 # MS-DOS does not allow filenames that begin with a dot.
6752 rmdir .libs 2>/dev/null
6754 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6755 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6756 objdir=$lt_cv_objdir
6764 # AIX sometimes has problems with the GCC collect2 program. For some
6765 # reason, if we set the COLLECT_NAMES environment variable, the problems
6766 # vanish in a puff of smoke.
6767 if test "X${COLLECT_NAMES+set}" != Xset; then
6769 export COLLECT_NAMES
6774 # Sed substitution that helps us do robust quoting. It backslashifies
6775 # metacharacters that are still active within double-quoted strings.
6776 Xsed='sed -e 1s/^X//'
6777 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6779 # Same as above, but do not quote variable references.
6780 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6782 # Sed substitution to delay expansion of an escaped shell variable in a
6783 # double_quote_subst'ed string.
6784 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6786 # Sed substitution to avoid accidental globbing in evaled expressions
6787 no_glob_subst='s/\*/\\\*/g'
6793 default_ofile=libtool
6794 can_build_shared=yes
6796 # All known linkers require a `.a' archive for static linking (except MSVC,
6797 # which needs '.lib').
6799 ltmain="$ac_aux_dir/ltmain.sh"
6800 ofile="$default_ofile"
6801 with_gnu_ld="$lt_cv_prog_gnu_ld"
6803 if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}ar; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_prog_AR+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test -n "$AR"; then
6812 ac_cv_prog_AR="$AR" # Let the user override the test.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_prog_AR="${ac_tool_prefix}ar"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 if test -n "$AR"; then
6833 { echo "$as_me:$LINENO: result: $AR" >&5
6834 echo "${ECHO_T}$AR" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6842 if test -z "$ac_cv_prog_AR"; then
6844 # Extract the first word of "ar", so it can be a program name with args.
6845 set dummy ar; ac_word=$2
6846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 if test -n "$ac_ct_AR"; then
6852 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_ac_ct_AR="ar"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6872 if test -n "$ac_ct_AR"; then
6873 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6874 echo "${ECHO_T}$ac_ct_AR" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6880 if test "x$ac_ct_AR" = x; then
6883 case $cross_compiling:$ac_tool_warned in
6885 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886 whose name does not start with the host triplet. If you think this
6887 configuration is useful to you, please write to autoconf@gnu.org." >&5
6888 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889 whose name does not start with the host triplet. If you think this
6890 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891 ac_tool_warned=yes ;;
6899 if test -n "$ac_tool_prefix"; then
6900 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6901 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_prog_RANLIB+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 if test -n "$RANLIB"; then
6908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 RANLIB=$ac_cv_prog_RANLIB
6928 if test -n "$RANLIB"; then
6929 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6930 echo "${ECHO_T}$RANLIB" >&6; }
6932 { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6938 if test -z "$ac_cv_prog_RANLIB"; then
6939 ac_ct_RANLIB=$RANLIB
6940 # Extract the first word of "ranlib", so it can be a program name with args.
6941 set dummy ranlib; ac_word=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 if test -n "$ac_ct_RANLIB"; then
6948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
6956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6957 ac_cv_prog_ac_ct_RANLIB="ranlib"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6968 if test -n "$ac_ct_RANLIB"; then
6969 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6970 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6976 if test "x$ac_ct_RANLIB" = x; then
6979 case $cross_compiling:$ac_tool_warned in
6981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6982 whose name does not start with the host triplet. If you think this
6983 configuration is useful to you, please write to autoconf@gnu.org." >&5
6984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6985 whose name does not start with the host triplet. If you think this
6986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6987 ac_tool_warned=yes ;;
6989 RANLIB=$ac_ct_RANLIB
6992 RANLIB="$ac_cv_prog_RANLIB"
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000 if test "${ac_cv_prog_STRIP+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 if test -n "$STRIP"; then
7004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 STRIP=$ac_cv_prog_STRIP
7024 if test -n "$STRIP"; then
7025 { echo "$as_me:$LINENO: result: $STRIP" >&5
7026 echo "${ECHO_T}$STRIP" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7034 if test -z "$ac_cv_prog_STRIP"; then
7036 # Extract the first word of "strip", so it can be a program name with args.
7037 set dummy strip; ac_word=$2
7038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 if test -n "$ac_ct_STRIP"; then
7044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_prog_ac_ct_STRIP="strip"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7064 if test -n "$ac_ct_STRIP"; then
7065 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7066 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7068 { echo "$as_me:$LINENO: result: no" >&5
7069 echo "${ECHO_T}no" >&6; }
7072 if test "x$ac_ct_STRIP" = x; then
7075 case $cross_compiling:$ac_tool_warned in
7077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7078 whose name does not start with the host triplet. If you think this
7079 configuration is useful to you, please write to autoconf@gnu.org." >&5
7080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7081 whose name does not start with the host triplet. If you think this
7082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7083 ac_tool_warned=yes ;;
7088 STRIP="$ac_cv_prog_STRIP"
7093 old_CFLAGS="$CFLAGS"
7095 # Set sane defaults for various variables
7096 test -z "$AR" && AR=ar
7097 test -z "$AR_FLAGS" && AR_FLAGS=cru
7098 test -z "$AS" && AS=as
7099 test -z "$CC" && CC=cc
7100 test -z "$LTCC" && LTCC=$CC
7101 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7102 test -z "$DLLTOOL" && DLLTOOL=dlltool
7103 test -z "$LD" && LD=ld
7104 test -z "$LN_S" && LN_S="ln -s"
7105 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7106 test -z "$NM" && NM=nm
7107 test -z "$SED" && SED=sed
7108 test -z "$OBJDUMP" && OBJDUMP=objdump
7109 test -z "$RANLIB" && RANLIB=:
7110 test -z "$STRIP" && STRIP=:
7111 test -z "$ac_objext" && ac_objext=o
7113 # Determine commands to create old-style static archives.
7114 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7115 old_postinstall_cmds='chmod 644 $oldlib'
7116 old_postuninstall_cmds=
7118 if test -n "$RANLIB"; then
7121 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7127 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7130 for cc_temp in $compiler""; do
7132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7141 # Only perform the check for file, if the check method requires it
7142 case $deplibs_check_method in
7144 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7145 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7146 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7147 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7155 lt_save_MAGIC_CMD="$MAGIC_CMD"
7156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7158 for ac_dir in $ac_dummy; do
7160 test -z "$ac_dir" && ac_dir=.
7161 if test -f $ac_dir/${ac_tool_prefix}file; then
7162 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7163 if test -n "$file_magic_test_file"; then
7164 case $deplibs_check_method in
7166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7169 $EGREP "$file_magic_regex" > /dev/null; then
7174 *** Warning: the command libtool uses to detect shared libraries,
7175 *** $file_magic_cmd, produces output that libtool cannot recognize.
7176 *** The result is that libtool may fail to recognize shared libraries
7177 *** as such. This will affect the creation of libtool libraries that
7178 *** depend on shared libraries, but programs linked with such libtool
7179 *** libraries will work regardless of this problem. Nevertheless, you
7180 *** may want to report the problem to your system manager and/or to
7181 *** bug-libtool@gnu.org
7191 MAGIC_CMD="$lt_save_MAGIC_CMD"
7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197 if test -n "$MAGIC_CMD"; then
7198 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7199 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7205 if test -z "$lt_cv_path_MAGIC_CMD"; then
7206 if test -n "$ac_tool_prefix"; then
7207 { echo "$as_me:$LINENO: checking for file" >&5
7208 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7217 lt_save_MAGIC_CMD="$MAGIC_CMD"
7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7220 for ac_dir in $ac_dummy; do
7222 test -z "$ac_dir" && ac_dir=.
7223 if test -f $ac_dir/file; then
7224 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7225 if test -n "$file_magic_test_file"; then
7226 case $deplibs_check_method in
7228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7231 $EGREP "$file_magic_regex" > /dev/null; then
7236 *** Warning: the command libtool uses to detect shared libraries,
7237 *** $file_magic_cmd, produces output that libtool cannot recognize.
7238 *** The result is that libtool may fail to recognize shared libraries
7239 *** as such. This will affect the creation of libtool libraries that
7240 *** depend on shared libraries, but programs linked with such libtool
7241 *** libraries will work regardless of this problem. Nevertheless, you
7242 *** may want to report the problem to your system manager and/or to
7243 *** bug-libtool@gnu.org
7253 MAGIC_CMD="$lt_save_MAGIC_CMD"
7258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259 if test -n "$MAGIC_CMD"; then
7260 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7261 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7263 { echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6; }
7278 rhapsody* | darwin*)
7279 if test -n "$ac_tool_prefix"; then
7280 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 if test -n "$DSYMUTIL"; then
7288 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7308 if test -n "$DSYMUTIL"; then
7309 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7310 echo "${ECHO_T}$DSYMUTIL" >&6; }
7312 { echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6; }
7318 if test -z "$ac_cv_prog_DSYMUTIL"; then
7319 ac_ct_DSYMUTIL=$DSYMUTIL
7320 # Extract the first word of "dsymutil", so it can be a program name with args.
7321 set dummy dsymutil; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 if test -n "$ac_ct_DSYMUTIL"; then
7328 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7348 if test -n "$ac_ct_DSYMUTIL"; then
7349 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7350 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7356 if test "x$ac_ct_DSYMUTIL" = x; then
7359 case $cross_compiling:$ac_tool_warned in
7361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7362 whose name does not start with the host triplet. If you think this
7363 configuration is useful to you, please write to autoconf@gnu.org." >&5
7364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7365 whose name does not start with the host triplet. If you think this
7366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7367 ac_tool_warned=yes ;;
7369 DSYMUTIL=$ac_ct_DSYMUTIL
7372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 if test -n "$NMEDIT"; then
7384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 NMEDIT=$ac_cv_prog_NMEDIT
7404 if test -n "$NMEDIT"; then
7405 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7406 echo "${ECHO_T}$NMEDIT" >&6; }
7408 { echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6; }
7414 if test -z "$ac_cv_prog_NMEDIT"; then
7415 ac_ct_NMEDIT=$NMEDIT
7416 # Extract the first word of "nmedit", so it can be a program name with args.
7417 set dummy nmedit; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if test -n "$ac_ct_NMEDIT"; then
7424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7444 if test -n "$ac_ct_NMEDIT"; then
7445 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7446 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7452 if test "x$ac_ct_NMEDIT" = x; then
7455 case $cross_compiling:$ac_tool_warned in
7457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7458 whose name does not start with the host triplet. If you think this
7459 configuration is useful to you, please write to autoconf@gnu.org." >&5
7460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7461 whose name does not start with the host triplet. If you think this
7462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7463 ac_tool_warned=yes ;;
7465 NMEDIT=$ac_ct_NMEDIT
7468 NMEDIT="$ac_cv_prog_NMEDIT"
7472 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7473 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7474 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 lt_cv_apple_cc_single_mod=no
7478 if test -z "${LT_MULTI_MODULE}"; then
7479 # By default we will add the -single_module flag. You can override
7480 # by either setting the environment variable LT_MULTI_MODULE
7481 # non-empty at configure time, or by adding -multi_module to the
7483 echo "int foo(void){return 1;}" > conftest.c
7484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7485 -dynamiclib ${wl}-single_module conftest.c
7486 if test -f libconftest.dylib; then
7487 lt_cv_apple_cc_single_mod=yes
7488 rm -rf libconftest.dylib*
7493 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7494 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7495 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7496 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 lt_cv_ld_exported_symbols_list=no
7501 save_LDFLAGS=$LDFLAGS
7502 echo "_main" > conftest.sym
7503 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (ac_try="$ac_link"
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_link") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest$ac_exeext &&
7536 $as_test_x conftest$ac_exeext; then
7537 lt_cv_ld_exported_symbols_list=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7542 lt_cv_ld_exported_symbols_list=no
7545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7546 conftest$ac_exeext conftest.$ac_ext
7547 LDFLAGS="$save_LDFLAGS"
7550 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7551 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7553 rhapsody* | darwin1.[0123])
7554 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7558 # if running on 10.5 or later, the deployment target defaults
7559 # to the OS version, if on x86, and 10.4, the deployment
7560 # target defaults to 10.4. Don't you love it?
7561 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7562 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7565 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7567 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7571 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7572 _lt_dar_single_mod='$single_module'
7574 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7575 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7577 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7579 if test "$DSYMUTIL" != ":"; then
7580 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7591 # Check whether --enable-libtool-lock was given.
7592 if test "${enable_libtool_lock+set}" = set; then
7593 enableval=$enable_libtool_lock;
7596 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7599 # Check whether --with-pic was given.
7600 if test "${with_pic+set}" = set; then
7601 withval=$with_pic; pic_mode="$withval"
7606 test -z "$pic_mode" && pic_mode=default
7608 # Use C for the default configuration in the libtool script
7612 ac_cpp='$CPP $CPPFLAGS'
7613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618 # Source file extension for C test sources.
7621 # Object file extension for compiled C test sources.
7625 # Code to be used in simple compile tests
7626 lt_simple_compile_test_code="int some_variable = 0;"
7628 # Code to be used in simple link tests
7629 lt_simple_link_test_code='int main(){return(0);}'
7632 # If no C compiler was specified, use CC.
7635 # If no C compiler flags were specified, use CFLAGS.
7636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7638 # Allow CC to be a program name with arguments.
7642 # save warnings/boilerplate of simple test code
7643 ac_outfile=conftest.$ac_objext
7644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7646 _lt_compiler_boilerplate=`cat conftest.err`
7649 ac_outfile=conftest.$ac_objext
7650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7652 _lt_linker_boilerplate=`cat conftest.err`
7657 lt_prog_compiler_no_builtin_flag=
7659 if test "$GCC" = yes; then
7660 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7663 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7664 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7665 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 lt_cv_prog_compiler_rtti_exceptions=no
7669 ac_outfile=conftest.$ac_objext
7670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7671 lt_compiler_flag="-fno-rtti -fno-exceptions"
7672 # Insert the option either (1) after the last *FLAGS variable, or
7673 # (2) before a word containing "conftest.", or (3) at the end.
7674 # Note that $ac_compile itself does not contain backslashes and begins
7675 # with a dollar sign (not a hyphen), so the echo should work correctly.
7676 # The option is referenced via a variable to avoid confusing sed.
7677 lt_compile=`echo "$ac_compile" | $SED \
7678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7680 -e 's:$: $lt_compiler_flag:'`
7681 (eval echo "\"\$as_me:7682: $lt_compile\"" >&5)
7682 (eval "$lt_compile" 2>conftest.err)
7684 cat conftest.err >&5
7685 echo "$as_me:7686: \$? = $ac_status" >&5
7686 if (exit $ac_status) && test -s "$ac_outfile"; then
7687 # The compiler can only warn and ignore the option if not recognized
7688 # So say no if there are warnings other than the usual output.
7689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7692 lt_cv_prog_compiler_rtti_exceptions=yes
7698 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7699 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7701 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7702 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7709 lt_prog_compiler_wl=
7710 lt_prog_compiler_pic=
7711 lt_prog_compiler_static=
7713 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7716 if test "$GCC" = yes; then
7717 lt_prog_compiler_wl='-Wl,'
7718 lt_prog_compiler_static='-static'
7722 # All AIX code is PIC.
7723 if test "$host_cpu" = ia64; then
7724 # AIX 5 now supports IA64 processor
7725 lt_prog_compiler_static='-Bstatic'
7730 # FIXME: we need at least 68020 code to build shared libraries, but
7731 # adding the `-m68020' flag to GCC prevents building anything better,
7733 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7737 # PIC is the default for these OSes.
7740 mingw* | cygwin* | pw32* | os2*)
7741 # This hack is so that the source file can tell whether it is being
7742 # built for inclusion in a dll (and should export symbols for example).
7743 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7744 # (--disable-auto-import) libraries
7745 lt_prog_compiler_pic='-DDLL_EXPORT'
7748 darwin* | rhapsody*)
7749 # PIC is the default on this platform
7750 # Common symbols not allowed in MH_DYLIB files
7751 lt_prog_compiler_pic='-fno-common'
7755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7756 # Instead, we relocate shared libraries at runtime.
7760 # Just because we use GCC doesn't mean we suddenly get shared libraries
7761 # on systems that don't support them.
7762 lt_prog_compiler_can_build_shared=no
7767 if test -d /usr/nec; then
7768 lt_prog_compiler_pic=-Kconform_pic
7773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7780 lt_prog_compiler_pic='-fPIC'
7786 lt_prog_compiler_pic='-fPIC'
7790 # PORTME Check for flag to pass linker flags through the system compiler.
7793 lt_prog_compiler_wl='-Wl,'
7794 if test "$host_cpu" = ia64; then
7795 # AIX 5 now supports IA64 processor
7796 lt_prog_compiler_static='-Bstatic'
7798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7802 # PIC is the default on this platform
7803 # Common symbols not allowed in MH_DYLIB files
7804 case $cc_basename in
7806 lt_prog_compiler_pic='-qnocommon'
7807 lt_prog_compiler_wl='-Wl,'
7812 mingw* | cygwin* | pw32* | os2*)
7813 # This hack is so that the source file can tell whether it is being
7814 # built for inclusion in a dll (and should export symbols for example).
7815 lt_prog_compiler_pic='-DDLL_EXPORT'
7818 hpux9* | hpux10* | hpux11*)
7819 lt_prog_compiler_wl='-Wl,'
7820 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7827 lt_prog_compiler_pic='+Z'
7830 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831 lt_prog_compiler_static='${wl}-a ${wl}archive'
7834 irix5* | irix6* | nonstopux*)
7835 lt_prog_compiler_wl='-Wl,'
7836 # PIC (with -KPIC) is the default.
7837 lt_prog_compiler_static='-non_shared'
7841 lt_prog_compiler_pic='-KPIC'
7842 lt_prog_compiler_static='-Bstatic'
7845 linux* | k*bsd*-gnu)
7846 case $cc_basename in
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-static'
7852 pgcc* | pgf77* | pgf90* | pgf95*)
7853 # Portland Group compilers (*not* the Pentium gcc compiler,
7854 # which looks to be a dead project)
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_pic='-fpic'
7857 lt_prog_compiler_static='-Bstatic'
7860 lt_prog_compiler_wl='-Wl,'
7861 # All Alpha code is PIC.
7862 lt_prog_compiler_static='-non_shared'
7865 case `$CC -V 2>&1 | sed 5q` in
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7870 lt_prog_compiler_wl='-Wl,'
7873 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7874 lt_prog_compiler_pic='-KPIC'
7875 lt_prog_compiler_static='-Bstatic'
7876 lt_prog_compiler_wl=''
7883 osf3* | osf4* | osf5*)
7884 lt_prog_compiler_wl='-Wl,'
7885 # All OSF/1 code is PIC.
7886 lt_prog_compiler_static='-non_shared'
7890 lt_prog_compiler_static='-non_shared'
7894 lt_prog_compiler_pic='-KPIC'
7895 lt_prog_compiler_static='-Bstatic'
7896 case $cc_basename in
7898 lt_prog_compiler_wl='-Qoption ld ';;
7900 lt_prog_compiler_wl='-Wl,';;
7905 lt_prog_compiler_wl='-Qoption ld '
7906 lt_prog_compiler_pic='-PIC'
7907 lt_prog_compiler_static='-Bstatic'
7910 sysv4 | sysv4.2uw2* | sysv4.3*)
7911 lt_prog_compiler_wl='-Wl,'
7912 lt_prog_compiler_pic='-KPIC'
7913 lt_prog_compiler_static='-Bstatic'
7917 if test -d /usr/nec ;then
7918 lt_prog_compiler_pic='-Kconform_pic'
7919 lt_prog_compiler_static='-Bstatic'
7923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7924 lt_prog_compiler_wl='-Wl,'
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_can_build_shared=no
7935 lt_prog_compiler_pic='-pic'
7936 lt_prog_compiler_static='-Bstatic'
7940 lt_prog_compiler_can_build_shared=no
7945 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7946 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7949 # Check to make sure the PIC flag actually works.
7951 if test -n "$lt_prog_compiler_pic"; then
7953 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7954 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7955 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 lt_cv_prog_compiler_pic_works=no
7959 ac_outfile=conftest.$ac_objext
7960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7961 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7962 # Insert the option either (1) after the last *FLAGS variable, or
7963 # (2) before a word containing "conftest.", or (3) at the end.
7964 # Note that $ac_compile itself does not contain backslashes and begins
7965 # with a dollar sign (not a hyphen), so the echo should work correctly.
7966 # The option is referenced via a variable to avoid confusing sed.
7967 lt_compile=`echo "$ac_compile" | $SED \
7968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7970 -e 's:$: $lt_compiler_flag:'`
7971 (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
7972 (eval "$lt_compile" 2>conftest.err)
7974 cat conftest.err >&5
7975 echo "$as_me:7976: \$? = $ac_status" >&5
7976 if (exit $ac_status) && test -s "$ac_outfile"; then
7977 # The compiler can only warn and ignore the option if not recognized
7978 # So say no if there are warnings other than the usual output.
7979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_cv_prog_compiler_pic_works=yes
7988 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7989 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7991 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7992 case $lt_prog_compiler_pic in
7994 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7997 lt_prog_compiler_pic=
7998 lt_prog_compiler_can_build_shared=no
8003 # For platforms which do not support PIC, -DPIC is meaningless:
8005 lt_prog_compiler_pic=
8008 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8013 # Check to make sure the static flag actually works.
8015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8016 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8017 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8018 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8021 lt_cv_prog_compiler_static_works=no
8022 save_LDFLAGS="$LDFLAGS"
8023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8026 # The linker can only warn and ignore the option if not recognized
8027 # So say no if there are warnings
8028 if test -s conftest.err; then
8029 # Append any errors to the config.log.
8030 cat conftest.err 1>&5
8031 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8033 if diff conftest.exp conftest.er2 >/dev/null; then
8034 lt_cv_prog_compiler_static_works=yes
8037 lt_cv_prog_compiler_static_works=yes
8041 LDFLAGS="$save_LDFLAGS"
8044 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8045 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8047 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8050 lt_prog_compiler_static=
8054 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8056 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 lt_cv_prog_compiler_c_o=no
8060 $rm -r conftest 2>/dev/null
8064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8066 lt_compiler_flag="-o out/conftest2.$ac_objext"
8067 # Insert the option either (1) after the last *FLAGS variable, or
8068 # (2) before a word containing "conftest.", or (3) at the end.
8069 # Note that $ac_compile itself does not contain backslashes and begins
8070 # with a dollar sign (not a hyphen), so the echo should work correctly.
8071 lt_compile=`echo "$ac_compile" | $SED \
8072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8074 -e 's:$: $lt_compiler_flag:'`
8075 (eval echo "\"\$as_me:8076: $lt_compile\"" >&5)
8076 (eval "$lt_compile" 2>out/conftest.err)
8078 cat out/conftest.err >&5
8079 echo "$as_me:8080: \$? = $ac_status" >&5
8080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8082 # The compiler can only warn and ignore the option if not recognized
8083 # So say no if there are warnings
8084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8087 lt_cv_prog_compiler_c_o=yes
8092 # SGI C++ compiler will create directory out/ii_files/ for
8093 # template instantiation
8094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8095 $rm out/* && rmdir out
8101 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8102 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8105 hard_links="nottested"
8106 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8107 # do not overwrite the value of need_locks provided by the user
8108 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8109 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8114 ln conftest.a conftest.b 2>&5 || hard_links=no
8115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8116 { echo "$as_me:$LINENO: result: $hard_links" >&5
8117 echo "${ECHO_T}$hard_links" >&6; }
8118 if test "$hard_links" = no; then
8119 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8120 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8127 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8128 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8131 allow_undefined_flag=
8132 enable_shared_with_static_runtimes=no
8134 archive_expsym_cmds=
8135 old_archive_From_new_cmds=
8136 old_archive_from_expsyms_cmds=
8137 export_dynamic_flag_spec=
8138 whole_archive_flag_spec=
8139 thread_safe_flag_spec=
8140 hardcode_libdir_flag_spec=
8141 hardcode_libdir_flag_spec_ld=
8142 hardcode_libdir_separator=
8145 hardcode_shlibpath_var=unsupported
8146 link_all_deplibs=unknown
8147 hardcode_automatic=no
8150 always_export_symbols=no
8151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8152 # include_expsyms should be a list of space-separated symbols to be *always*
8153 # included in the symbol list
8155 # exclude_expsyms can be an extended regexp of symbols to exclude
8156 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8157 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8158 # as well as any symbol that contains `d'.
8159 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8161 # platforms (ab)use it in PIC code, but their linkers get confused if
8162 # the symbol is explicitly referenced. Since portable code cannot
8163 # rely on this symbol name, it's probably fine to never include it in
8164 # preloaded symbol tables.
8165 # Exclude shared library initialization/finalization symbols.
8166 extract_expsyms_cmds=
8167 # Just being paranoid about ensuring that cc_basename is set.
8168 for cc_temp in $compiler""; do
8170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8176 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8179 cygwin* | mingw* | pw32*)
8180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8181 # When not using gcc, we currently assume that we are using
8182 # Microsoft Visual C++.
8183 if test "$GCC" != yes; then
8188 # we just hope/assume this is gcc and not c89 (= MSVC++)
8197 if test "$with_gnu_ld" = yes; then
8198 # If archive_cmds runs LD, not CC, wlarc should be empty
8201 # Set some defaults for GNU ld with shared library support. These
8202 # are reset later if shared libraries are not supported. Putting them
8203 # here allows them to be overridden if necessary.
8204 runpath_var=LD_RUN_PATH
8205 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8206 export_dynamic_flag_spec='${wl}--export-dynamic'
8207 # ancient GNU ld didn't support --whole-archive et. al.
8208 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8209 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8211 whole_archive_flag_spec=
8213 supports_anon_versioning=no
8214 case `$LD -v 2>/dev/null` in
8215 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8216 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8217 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8218 *\ 2.11.*) ;; # other 2.11 versions
8219 *) supports_anon_versioning=yes ;;
8222 # See if GNU ld supports shared libraries.
8225 # On AIX/PPC, the GNU linker is very broken
8226 if test "$host_cpu" != ia64; then
8230 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8231 *** to be unable to reliably create shared libraries on AIX.
8232 *** Therefore, libtool is disabling shared libraries support. If you
8233 *** really care for shared libraries, you may want to modify your PATH
8234 *** so that a non-GNU linker is found, and then restart.
8241 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)'
8242 hardcode_libdir_flag_spec='-L$libdir'
8243 hardcode_minus_L=yes
8245 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8246 # that the semantics of dynamic libraries on AmigaOS, at least up
8247 # to version 4, is to share data among multiple programs linked
8248 # with the same dynamic library. Since this doesn't match the
8249 # behavior of shared libraries on other platforms, we can't use
8255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8256 allow_undefined_flag=unsupported
8257 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8258 # support --undefined. This deserves some investigation. FIXME
8259 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 cygwin* | mingw* | pw32*)
8266 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8267 # as there is no search path for DLLs.
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 allow_undefined_flag=unsupported
8270 always_export_symbols=no
8271 enable_shared_with_static_runtimes=yes
8272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8274 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8276 # If the export-symbols file already is a .def file (1st line
8277 # is EXPORTS), use it as is; otherwise, prepend...
8278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8279 cp $export_symbols $output_objdir/$soname.def;
8281 echo EXPORTS > $output_objdir/$soname.def;
8282 cat $export_symbols >> $output_objdir/$soname.def;
8284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8292 hardcode_shlibpath_var=no
8293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8294 export_dynamic_flag_spec='${wl}-E'
8295 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8296 # Instead, shared libraries are loaded at an image base (0x10000000 by
8297 # default) and relocated if they conflict, which is a slow very memory
8298 # consuming and fragmenting process. To avoid this, we pick a random,
8299 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8300 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8301 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8302 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'
8305 gnu* | linux* | k*bsd*-gnu)
8306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8308 case $cc_basename,$host_cpu in
8309 pgcc*) # Portland Group C compiler
8310 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'
8311 tmp_addflag=' $pic_flag'
8313 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8314 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'
8315 tmp_addflag=' $pic_flag -Mnomain' ;;
8316 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8317 tmp_addflag=' -i_dynamic' ;;
8318 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8319 tmp_addflag=' -i_dynamic -nofor_main' ;;
8320 ifc* | ifort*) # Intel Fortran compiler
8321 tmp_addflag=' -nofor_main' ;;
8323 case `$CC -V 2>&1 | sed 5q` in
8324 *Sun\ C*) # Sun C 5.9
8325 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8326 tmp_sharedflag='-G' ;;
8327 *Sun\ F*) # Sun Fortran 8.3
8328 tmp_sharedflag='-G' ;;
8330 tmp_sharedflag='-shared' ;;
8332 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 if test $supports_anon_versioning = yes; then
8335 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8337 $echo "local: *; };" >> $output_objdir/$libname.ver~
8338 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8346 netbsd* | netbsdelf*-gnu)
8347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362 *** create shared libraries on Solaris systems. Therefore, libtool
8363 *** is disabling shared libraries support. We urge you to upgrade GNU
8364 *** binutils to release 2.9.1 or newer. Another option is to modify
8365 *** your PATH or compiler configuration so that the native linker is
8366 *** used, and then restart.
8369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378 case `$LD -v 2>&1` in
8379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384 *** reliably create shared libraries on SCO systems. Therefore, libtool
8385 *** is disabling shared libraries support. We urge you to upgrade GNU
8386 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8405 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_shlibpath_var=no
8412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421 if test "$ld_shlibs" = no; then
8423 hardcode_libdir_flag_spec=
8424 export_dynamic_flag_spec=
8425 whole_archive_flag_spec=
8428 # PORTME fill in a description of your system's linker (not GNU ld)
8431 allow_undefined_flag=unsupported
8432 always_export_symbols=yes
8433 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'
8434 # Note: this linker hardcodes the directories in LIBPATH if there
8435 # are no directories specified by -L.
8436 hardcode_minus_L=yes
8437 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438 # Neither direct hardcoding nor static linking is supported with a
8440 hardcode_direct=unsupported
8445 if test "$host_cpu" = ia64; then
8446 # On IA64, the linker does run time linking by default, so we don't
8447 # have to do anything special.
8448 aix_use_runtimelinking=no
8449 exp_sym_flag='-Bexport'
8452 # If we're using GNU nm, then we don't want the "-C" option.
8453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8455 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'
8457 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'
8459 aix_use_runtimelinking=no
8461 # Test if we are trying to use run time linking or normal
8462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8463 # need to do runtime linking.
8464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8465 for ld_flag in $LDFLAGS; do
8466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8467 aix_use_runtimelinking=yes
8474 exp_sym_flag='-bexport'
8475 no_entry_flag='-bnoentry'
8478 # When large executables or shared objects are built, AIX ld can
8479 # have problems creating the table of contents. If linking a library
8480 # or program results in "error TOC overflow" add -mminimal-toc to
8481 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8482 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8486 hardcode_libdir_separator=':'
8487 link_all_deplibs=yes
8489 if test "$GCC" = yes; then
8490 case $host_os in aix4.[012]|aix4.[012].*)
8491 # We only want to do this on AIX 4.2 and lower, the check
8492 # below for broken collect2 doesn't work under 4.3+
8493 collect2name=`${CC} -print-prog-name=collect2`
8494 if test -f "$collect2name" && \
8495 strings "$collect2name" | grep resolve_lib_name >/dev/null
8497 # We have reworked collect2
8500 # We have old collect2
8501 hardcode_direct=unsupported
8502 # It fails to find uninstalled libraries when the uninstalled
8503 # path is not listed in the libpath. Setting hardcode_minus_L
8504 # to unsupported forces relinking
8505 hardcode_minus_L=yes
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 hardcode_libdir_separator=
8511 shared_flag='-shared'
8512 if test "$aix_use_runtimelinking" = yes; then
8513 shared_flag="$shared_flag "'${wl}-G'
8517 if test "$host_cpu" = ia64; then
8518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8519 # chokes on -Wl,-G. The following line is correct:
8522 if test "$aix_use_runtimelinking" = yes; then
8523 shared_flag='${wl}-G'
8525 shared_flag='${wl}-bM:SRE'
8530 # It seems that -bexpall does not export symbols beginning with
8531 # underscore (_), so it is better to generate a list of symbols to export.
8532 always_export_symbols=yes
8533 if test "$aix_use_runtimelinking" = yes; then
8534 # Warning - without using the other runtime loading flags (-brtl),
8535 # -berok will link without error, but may produce a broken library.
8536 allow_undefined_flag='-berok'
8537 # Determine the default libpath from the value encoded in an empty executable.
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (ac_try="$ac_link"
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_link") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest$ac_exeext &&
8570 $as_test_x conftest$ac_exeext; then
8572 lt_aix_libpath_sed='
8573 /Import File Strings/,/^$/ {
8579 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580 # Check for a 64-bit object if we didn't find anything.
8581 if test -z "$aix_libpath"; then
8582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596 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"
8598 if test "$host_cpu" = ia64; then
8599 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8600 allow_undefined_flag="-z nodefs"
8601 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"
8603 # Determine the default libpath from the value encoded in an empty executable.
8604 cat >conftest.$ac_ext <<_ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest$ac_exeext &&
8636 $as_test_x conftest$ac_exeext; then
8638 lt_aix_libpath_sed='
8639 /Import File Strings/,/^$/ {
8645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646 # Check for a 64-bit object if we didn't find anything.
8647 if test -z "$aix_libpath"; then
8648 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658 conftest$ac_exeext conftest.$ac_ext
8659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8661 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662 # Warning - without using the other run time loading flags,
8663 # -berok will link without error, but may produce a broken library.
8664 no_undefined_flag=' ${wl}-bernotok'
8665 allow_undefined_flag=' ${wl}-berok'
8666 # Exported symbols can be pulled into shared objects from archives
8667 whole_archive_flag_spec='$convenience'
8668 archive_cmds_need_lc=yes
8669 # This is similar to how AIX traditionally builds its shared libraries.
8670 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'
8676 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)'
8677 hardcode_libdir_flag_spec='-L$libdir'
8678 hardcode_minus_L=yes
8679 # see comment about different semantics on the GNU ld section
8684 export_dynamic_flag_spec=-rdynamic
8687 cygwin* | mingw* | pw32*)
8688 # When not using gcc, we currently assume that we are using
8689 # Microsoft Visual C++.
8690 # hardcode_libdir_flag_spec is actually meaningless, as there is
8691 # no search path for DLLs.
8692 hardcode_libdir_flag_spec=' '
8693 allow_undefined_flag=unsupported
8694 # Tell ltmain to make .lib files, not .a files.
8696 # Tell ltmain to make .dll files, not .so files.
8698 # FIXME: Setting linknames here is a bad hack.
8699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700 # The linker will automatically build a .lib file if we build a DLL.
8701 old_archive_From_new_cmds='true'
8702 # FIXME: Should let the user specify the lib program.
8703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704 fix_srcfile_path='`cygpath -w "$srcfile"`'
8705 enable_shared_with_static_runtimes=yes
8708 darwin* | rhapsody*)
8710 rhapsody* | darwin1.[012])
8711 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8714 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8717 case ${MACOSX_DEPLOYMENT_TARGET} in
8719 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8722 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8728 archive_cmds_need_lc=no
8730 hardcode_automatic=yes
8731 hardcode_shlibpath_var=unsupported
8732 whole_archive_flag_spec=''
8733 link_all_deplibs=yes
8734 if test "$GCC" = yes ; then
8735 output_verbose_link_cmd='echo'
8736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8738 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8739 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8741 case $cc_basename in
8743 output_verbose_link_cmd='echo'
8744 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8745 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8746 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8747 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8748 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}'
8758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_shlibpath_var=no
8767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8768 # support. Future versions do this automatically, but an explicit c++rt0.o
8769 # does not break anything, and helps significantly (at the cost of a little
8772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8773 hardcode_libdir_flag_spec='-R$libdir'
8775 hardcode_shlibpath_var=no
8778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_minus_L=yes
8783 hardcode_shlibpath_var=no
8786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8787 freebsd* | dragonfly*)
8788 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8789 hardcode_libdir_flag_spec='-R$libdir'
8791 hardcode_shlibpath_var=no
8795 if test "$GCC" = yes; then
8796 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'
8798 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'
8800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8801 hardcode_libdir_separator=:
8804 # hardcode_minus_L: Not really in the search PATH,
8805 # but as the default location of the library.
8806 hardcode_minus_L=yes
8807 export_dynamic_flag_spec='${wl}-E'
8811 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8816 if test "$with_gnu_ld" = no; then
8817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8818 hardcode_libdir_separator=:
8821 export_dynamic_flag_spec='${wl}-E'
8823 # hardcode_minus_L: Not really in the search PATH,
8824 # but as the default location of the library.
8825 hardcode_minus_L=yes
8830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8833 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8845 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8855 if test "$with_gnu_ld" = no; then
8856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8857 hardcode_libdir_separator=:
8861 hardcode_libdir_flag_spec_ld='+b $libdir'
8863 hardcode_shlibpath_var=no
8867 export_dynamic_flag_spec='${wl}-E'
8869 # hardcode_minus_L: Not really in the search PATH,
8870 # but as the default location of the library.
8871 hardcode_minus_L=yes
8877 irix5* | irix6* | nonstopux*)
8878 if test "$GCC" = yes; then
8879 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'
8881 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'
8882 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885 hardcode_libdir_separator=:
8886 link_all_deplibs=yes
8889 netbsd* | netbsdelf*-gnu)
8890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8893 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8895 hardcode_libdir_flag_spec='-R$libdir'
8897 hardcode_shlibpath_var=no
8901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8904 hardcode_libdir_separator=:
8905 hardcode_shlibpath_var=no
8909 if test -f /usr/libexec/ld.so; then
8911 hardcode_shlibpath_var=no
8912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8914 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916 export_dynamic_flag_spec='${wl}-E'
8919 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8921 hardcode_libdir_flag_spec='-R$libdir'
8924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 hardcode_libdir_flag_spec='-L$libdir'
8936 hardcode_minus_L=yes
8937 allow_undefined_flag=unsupported
8938 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'
8939 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8943 if test "$GCC" = yes; then
8944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8945 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'
8947 allow_undefined_flag=' -expect_unresolved \*'
8948 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'
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 hardcode_libdir_separator=:
8954 osf4* | osf5*) # as osf3* with the addition of -msym flag
8955 if test "$GCC" = yes; then
8956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8957 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'
8958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960 allow_undefined_flag=' -expect_unresolved \*'
8961 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'
8962 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8963 $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'
8965 # Both c and cxx compiler support -rpath directly
8966 hardcode_libdir_flag_spec='-rpath $libdir'
8968 hardcode_libdir_separator=:
8972 no_undefined_flag=' -z text'
8973 if test "$GCC" = yes; then
8975 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8984 hardcode_libdir_flag_spec='-R$libdir'
8985 hardcode_shlibpath_var=no
8987 solaris2.[0-5] | solaris2.[0-5].*) ;;
8989 # The compiler driver will combine and reorder linker options,
8990 # but understands `-z linker_flag'. GCC discards it without `$wl',
8991 # but is careful enough not to reorder.
8992 # Supported since Solaris 2.6 (maybe 2.5.1?)
8993 if test "$GCC" = yes; then
8994 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8996 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9000 link_all_deplibs=yes
9004 if test "x$host_vendor" = xsequent; then
9005 # Use $CC to link under sequent, because it throws in some extra .o
9006 # files that make .init and .fini sections work.
9007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_minus_L=yes
9014 hardcode_shlibpath_var=no
9018 case $host_vendor in
9020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021 hardcode_direct=yes # is this really true???
9024 ## LD is ld it makes a PLAMLIB
9025 ## CC just makes a GrossModule.
9026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9027 reload_cmds='$CC -r -o $output$reload_objs'
9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9035 runpath_var='LD_RUN_PATH'
9036 hardcode_shlibpath_var=no
9040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 hardcode_shlibpath_var=no
9042 export_dynamic_flag_spec='-Bexport'
9046 if test -d /usr/nec; then
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_shlibpath_var=no
9049 runpath_var=LD_RUN_PATH
9050 hardcode_runpath_var=yes
9055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9056 no_undefined_flag='${wl}-z,text'
9057 archive_cmds_need_lc=no
9058 hardcode_shlibpath_var=no
9059 runpath_var='LD_RUN_PATH'
9061 if test "$GCC" = yes; then
9062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9070 sysv5* | sco3.2v5* | sco5v6*)
9071 # Note: We can NOT use -z defs as we might desire, because we do not
9072 # link with -lc, and that would cause any symbols used from libc to
9073 # always be unresolved, which means just about no library would
9074 # ever link correctly. If we're not using GNU ld we use -z text
9075 # though, which does catch some bad symbols but isn't as heavy-handed
9077 no_undefined_flag='${wl}-z,text'
9078 allow_undefined_flag='${wl}-z,nodefs'
9079 archive_cmds_need_lc=no
9080 hardcode_shlibpath_var=no
9081 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9082 hardcode_libdir_separator=':'
9083 link_all_deplibs=yes
9084 export_dynamic_flag_spec='${wl}-Bexport'
9085 runpath_var='LD_RUN_PATH'
9087 if test "$GCC" = yes; then
9088 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098 hardcode_libdir_flag_spec='-L$libdir'
9099 hardcode_shlibpath_var=no
9108 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9109 echo "${ECHO_T}$ld_shlibs" >&6; }
9110 test "$ld_shlibs" = no && can_build_shared=no
9113 # Do we need to explicitly link libc?
9115 case "x$archive_cmds_need_lc" in
9117 # Assume -lc should be added
9118 archive_cmds_need_lc=yes
9120 if test "$enable_shared" = yes && test "$GCC" = yes; then
9121 case $archive_cmds in
9123 # FIXME: we may have to deal with multi-command sequences.
9126 # Test whether the compiler implicitly links with -lc since on some
9127 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9128 # to ld, don't add -lc before -lgcc.
9129 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9130 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135 (eval $ac_compile) 2>&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } 2>conftest.err; then
9141 libobjs=conftest.$ac_objext
9143 wl=$lt_prog_compiler_wl
9144 pic_flag=$lt_prog_compiler_pic
9150 lt_save_allow_undefined_flag=$allow_undefined_flag
9151 allow_undefined_flag=
9152 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9153 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }
9158 archive_cmds_need_lc=no
9160 archive_cmds_need_lc=yes
9162 allow_undefined_flag=$lt_save_allow_undefined_flag
9164 cat conftest.err 1>&5
9167 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9168 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9175 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9176 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9178 libname_spec='lib$name'
9186 shlibpath_overrides_runpath=unknown
9188 dynamic_linker="$host_os ld.so"
9189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9191 if test "$GCC" = yes; then
9193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9194 *) lt_awk_arg="/^libraries:/" ;;
9196 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9197 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9198 # if the path contains ";" then we assume it to be the separator
9199 # otherwise default to the standard path separator (i.e. ":") - it is
9200 # assumed that no part of a normal pathname contains ";" but that should
9201 # okay in the real world where ";" in dirpaths is itself problematic.
9202 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9204 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9206 # Ok, now we have the path, separated by spaces, we can step through it
9207 # and add multilib dir if necessary.
9208 lt_tmp_lt_search_path_spec=
9209 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9210 for lt_sys_path in $lt_search_path_spec; do
9211 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9214 test -d "$lt_sys_path" && \
9215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9218 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9219 BEGIN {RS=" "; FS="/|\n";} {
9222 for (lt_i = NF; lt_i > 0; lt_i--) {
9223 if ($lt_i != "" && $lt_i != ".") {
9224 if ($lt_i == "..") {
9227 if (lt_count == 0) {
9228 lt_foo="/" $lt_i lt_foo;
9235 if (lt_foo != "") { lt_freq[lt_foo]++; }
9236 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9238 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9242 need_lib_prefix=unknown
9243 hardcode_into_libs=no
9245 # when you set need_version to no, make sure it does not cause -set_version
9246 # flags to be left without arguments
9247 need_version=unknown
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9253 shlibpath_var=LIBPATH
9255 # AIX 3 has no versioning support, so we append a major version to the name.
9256 soname_spec='${libname}${release}${shared_ext}$major'
9263 hardcode_into_libs=yes
9264 if test "$host_cpu" = ia64; then
9265 # AIX 5 supports IA64
9266 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9267 shlibpath_var=LD_LIBRARY_PATH
9269 # With GCC up to 2.95.x, collect2 would create an import file
9270 # for dependence libraries. The import file would start with
9271 # the line `#! .'. This would cause the generated library to
9272 # depend on `.', always an invalid library. This was fixed in
9273 # development snapshots of GCC prior to 3.0.
9275 aix4 | aix4.[01] | aix4.[01].*)
9276 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9278 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9285 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9286 # soname into executable. Probably we can add versioning support to
9287 # collect2, so additional links can be useful in future.
9288 if test "$aix_use_runtimelinking" = yes; then
9289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9290 # instead of lib<name>.a to let people know that these are not
9291 # typical AIX shared libraries.
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294 # We preserve .a as extension for shared libraries through AIX4.2
9295 # and later when we are not doing run time linking.
9296 library_names_spec='${libname}${release}.a $libname.a'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9299 shlibpath_var=LIBPATH
9304 library_names_spec='$libname.ixlibrary $libname.a'
9305 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9306 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'
9310 library_names_spec='${libname}${shared_ext}'
9311 dynamic_linker="$host_os ld.so"
9312 shlibpath_var=LIBRARY_PATH
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9324 # the default ld.so.conf also contains /usr/contrib/lib and
9325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9326 # libtool to hard-code these into programs
9329 cygwin* | mingw* | pw32*)
9330 version_type=windows
9335 case $GCC,$host_os in
9336 yes,cygwin* | yes,mingw* | yes,pw32*)
9337 library_names_spec='$libname.dll.a'
9338 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9339 postinstall_cmds='base_file=`basename \${file}`~
9340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9341 dldir=$destdir/`dirname \$dlpath`~
9342 test -d \$dldir || mkdir -p \$dldir~
9343 $install_prog $dir/$dlname \$dldir/$dlname~
9344 chmod a+x \$dldir/$dlname'
9345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9346 dlpath=$dir/\$dldll~
9348 shlibpath_overrides_runpath=yes
9352 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9353 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9357 # MinGW DLLs use traditional 'lib' prefix
9358 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9360 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9361 # It is most probably a Windows format PATH printed by
9362 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9363 # path with ; separators, and with drive letters. We can handle the
9364 # drive letters (cygwin fileutils understands them), so leave them,
9365 # especially as we might pass files found there to a mingw objdump,
9366 # which wouldn't understand a cygwinified path. Ahh.
9367 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9373 # pw32 DLLs use 'pw' prefix rather than 'lib'
9374 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9383 dynamic_linker='Win32 ld.exe'
9384 # FIXME: first we should search . and the directory the executable is in
9388 darwin* | rhapsody*)
9389 dynamic_linker="$host_os dyld"
9393 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9394 soname_spec='${libname}${release}${major}$shared_ext'
9395 shlibpath_overrides_runpath=yes
9396 shlibpath_var=DYLD_LIBRARY_PATH
9397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9399 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9400 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 shlibpath_var=LD_LIBRARY_PATH
9416 freebsd* | dragonfly*)
9417 # DragonFly does not have aout. When/if they implement a new
9418 # versioning mechanism, adjust this.
9419 if test -x /usr/bin/objformat; then
9420 objformat=`/usr/bin/objformat`
9423 freebsd[123]*) objformat=aout ;;
9427 version_type=freebsd-$objformat
9428 case $version_type in
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9439 shlibpath_var=LD_LIBRARY_PATH
9442 shlibpath_overrides_runpath=yes
9444 freebsd3.[01]* | freebsdelf3.[01]*)
9445 shlibpath_overrides_runpath=yes
9446 hardcode_into_libs=yes
9448 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9449 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9450 shlibpath_overrides_runpath=no
9451 hardcode_into_libs=yes
9453 *) # from 4.6 on, and DragonFly
9454 shlibpath_overrides_runpath=yes
9455 hardcode_into_libs=yes
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 hardcode_into_libs=yes
9470 hpux9* | hpux10* | hpux11*)
9471 # Give a soname corresponding to the major version so that dld.sl refuses to
9472 # link against other versions.
9479 hardcode_into_libs=yes
9480 dynamic_linker="$host_os dld.so"
9481 shlibpath_var=LD_LIBRARY_PATH
9482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 if test "X$HPUX_IA64_MODE" = X32; then
9486 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9494 hardcode_into_libs=yes
9495 dynamic_linker="$host_os dld.sl"
9496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499 soname_spec='${libname}${release}${shared_ext}$major'
9500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9505 dynamic_linker="$host_os dld.sl"
9506 shlibpath_var=SHLIB_PATH
9507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9512 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9513 postinstall_cmds='chmod 555 $lib'
9520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9521 soname_spec='${libname}${release}${shared_ext}$major'
9522 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=no
9525 hardcode_into_libs=yes
9528 irix5* | irix6* | nonstopux*)
9530 nonstopux*) version_type=nonstopux ;;
9532 if test "$lt_cv_prog_gnu_ld" = yes; then
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9543 irix5* | nonstopux*)
9547 case $LD in # libtool.m4 will add one of these switches to LD
9548 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9549 libsuff= shlibsuff= libmagic=32-bit;;
9550 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9551 libsuff=32 shlibsuff=N32 libmagic=N32;;
9552 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9553 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9554 *) libsuff= shlibsuff= libmagic=never-match;;
9558 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9559 shlibpath_overrides_runpath=no
9560 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9561 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9562 hardcode_into_libs=yes
9565 # No shared lib support for Linux oldld, aout, or coff.
9566 linux*oldld* | linux*aout* | linux*coff*)
9570 # This must be Linux ELF.
9571 linux* | k*bsd*-gnu)
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=no
9580 # This implies no fast_install, which is unacceptable.
9581 # Some rework will be needed to allow for fast_install
9582 # before this can be enabled.
9583 hardcode_into_libs=yes
9585 # Append ld.so.conf contents to the search path
9586 if test -f /etc/ld.so.conf; then
9587 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9591 # We used to test for /lib/ld.so.1 and disable shared libraries on
9592 # powerpc, because MkLinux only supported shared libraries with the
9593 # GNU dynamic linker. Since this was broken with cross compilers,
9594 # most powerpc-linux boxes support dynamic linking these days and
9595 # people can always --disable-shared, the test was removed, and we
9596 # assume the GNU/Linux dynamic linker is in use.
9597 dynamic_linker='GNU/Linux ld.so'
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 shlibpath_overrides_runpath=no
9608 hardcode_into_libs=yes
9609 dynamic_linker='NetBSD ld.elf_so'
9616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619 dynamic_linker='NetBSD (a.out) ld.so'
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 dynamic_linker='NetBSD ld.elf_so'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=yes
9627 hardcode_into_libs=yes
9632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=yes
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=yes
9649 sys_lib_dlsearch_path_spec="/usr/lib"
9651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9654 *) need_version=no ;;
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9661 openbsd2.[89] | openbsd2.[89].*)
9662 shlibpath_overrides_runpath=no
9665 shlibpath_overrides_runpath=yes
9669 shlibpath_overrides_runpath=yes
9674 libname_spec='$name'
9677 library_names_spec='$libname${shared_ext} $libname.a'
9678 dynamic_linker='OS/2 ld.exe'
9679 shlibpath_var=LIBPATH
9682 osf3* | osf4* | osf5*)
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=yes
9705 hardcode_into_libs=yes
9706 # ldd complains unless libraries are executable
9707 postinstall_cmds='chmod +x $lib'
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9714 shlibpath_var=LD_LIBRARY_PATH
9715 shlibpath_overrides_runpath=yes
9716 if test "$with_gnu_ld" = yes; then
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 shlibpath_var=LD_LIBRARY_PATH
9727 case $host_vendor in
9729 shlibpath_overrides_runpath=no
9731 export_dynamic_flag_spec='${wl}-Blargedynsym'
9732 runpath_var=LD_RUN_PATH
9740 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9747 if test -d /usr/nec ;then
9749 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9750 soname_spec='$libname${shared_ext}.$major'
9751 shlibpath_var=LD_LIBRARY_PATH
9755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9756 version_type=freebsd-elf
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 hardcode_into_libs=yes
9763 if test "$with_gnu_ld" = yes; then
9764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9765 shlibpath_overrides_runpath=no
9767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9768 shlibpath_overrides_runpath=yes
9771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9775 sys_lib_dlsearch_path_spec='/usr/lib'
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9789 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9790 echo "${ECHO_T}$dynamic_linker" >&6; }
9791 test "$dynamic_linker" = no && can_build_shared=no
9793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9813 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9814 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9816 if test -n "$hardcode_libdir_flag_spec" || \
9817 test -n "$runpath_var" || \
9818 test "X$hardcode_automatic" = "Xyes" ; then
9820 # We can hardcode non-existant directories.
9821 if test "$hardcode_direct" != no &&
9822 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9823 # have to relink, otherwise we might link with an installed library
9824 # when we should be linking with a yet-to-be-installed one
9825 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9826 test "$hardcode_minus_L" != no; then
9827 # Linking always hardcodes the temporary library directory.
9828 hardcode_action=relink
9830 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9831 hardcode_action=immediate
9834 # We cannot hardcode anything, or else we can only hardcode existing
9836 hardcode_action=unsupported
9838 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9839 echo "${ECHO_T}$hardcode_action" >&6; }
9841 if test "$hardcode_action" = relink; then
9842 # Fast installation is not supported
9843 enable_fast_install=no
9844 elif test "$shlibpath_overrides_runpath" = yes ||
9845 test "$enable_shared" = no; then
9846 # Fast installation is not necessary
9847 enable_fast_install=needless
9852 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9853 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9854 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9855 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9856 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9857 { echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6; }
9860 # FIXME - insert some real tests, host_os isn't really good enough
9863 if test -n "$STRIP" ; then
9864 striplib="$STRIP -x"
9865 old_striplib="$STRIP -S"
9866 { echo "$as_me:$LINENO: result: yes" >&5
9867 echo "${ECHO_T}yes" >&6; }
9869 { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9874 { echo "$as_me:$LINENO: result: no" >&5
9875 echo "${ECHO_T}no" >&6; }
9880 if test "x$enable_dlopen" != xyes; then
9881 enable_dlopen=unknown
9882 enable_dlopen_self=unknown
9883 enable_dlopen_self_static=unknown
9890 lt_cv_dlopen="load_add_on"
9892 lt_cv_dlopen_self=yes
9896 lt_cv_dlopen="LoadLibrary"
9901 lt_cv_dlopen="dlopen"
9906 # if libdl is installed we need to link against it
9907 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9910 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 ac_check_lib_save_LIBS=$LIBS
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_link") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest$ac_exeext &&
9953 $as_test_x conftest$ac_exeext; then
9954 ac_cv_lib_dl_dlopen=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_lib_dl_dlopen=no
9962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9966 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9968 if test $ac_cv_lib_dl_dlopen = yes; then
9969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9974 lt_cv_dlopen_self=yes
9981 { echo "$as_me:$LINENO: checking for shl_load" >&5
9982 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_shl_load+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cat >conftest.$ac_ext <<_ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9994 #define shl_load innocuous_shl_load
9996 /* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char shl_load (); below.
9998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9999 <limits.h> exists even on freestanding compilers. */
10002 # include <limits.h>
10004 # include <assert.h>
10009 /* Override any GCC internal prototype to avoid an error.
10010 Use char because int might match the return type of a GCC
10011 builtin and then its argument prototype would still apply. */
10016 /* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019 #if defined __stub_shl_load || defined __stub___shl_load
10026 return shl_load ();
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (ac_try="$ac_link"
10033 case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_link") 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } && {
10045 test -z "$ac_c_werror_flag" ||
10046 test ! -s conftest.err
10047 } && test -s conftest$ac_exeext &&
10048 $as_test_x conftest$ac_exeext; then
10049 ac_cv_func_shl_load=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_func_shl_load=no
10057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10058 conftest$ac_exeext conftest.$ac_ext
10060 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10061 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10062 if test $ac_cv_func_shl_load = yes; then
10063 lt_cv_dlopen="shl_load"
10065 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10066 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10067 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 ac_check_lib_save_LIBS=$LIBS
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10089 return shl_load ();
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_link") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext &&
10111 $as_test_x conftest$ac_exeext; then
10112 ac_cv_lib_dld_shl_load=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 ac_cv_lib_dld_shl_load=no
10120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10121 conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10125 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10126 if test $ac_cv_lib_dld_shl_load = yes; then
10127 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10129 { echo "$as_me:$LINENO: checking for dlopen" >&5
10130 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10131 if test "${ac_cv_func_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142 #define dlopen innocuous_dlopen
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char dlopen (); below.
10146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147 <limits.h> exists even on freestanding compilers. */
10150 # include <limits.h>
10152 # include <assert.h>
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10164 /* The GNU C library defines this for functions which it implements
10165 to always fail with ENOSYS. Some functions are actually named
10166 something starting with __ and the normal name is an alias. */
10167 #if defined __stub_dlopen || defined __stub___dlopen
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && {
10193 test -z "$ac_c_werror_flag" ||
10194 test ! -s conftest.err
10195 } && test -s conftest$ac_exeext &&
10196 $as_test_x conftest$ac_exeext; then
10197 ac_cv_func_dlopen=yes
10199 echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10202 ac_cv_func_dlopen=no
10205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10206 conftest$ac_exeext conftest.$ac_ext
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10209 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10210 if test $ac_cv_func_dlopen = yes; then
10211 lt_cv_dlopen="dlopen"
10213 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 ac_check_lib_save_LIBS=$LIBS
10220 cat >conftest.$ac_ext <<_ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10227 /* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest$ac_exeext &&
10259 $as_test_x conftest$ac_exeext; then
10260 ac_cv_lib_dl_dlopen=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_dl_dlopen=no
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10273 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10274 if test $ac_cv_lib_dl_dlopen = yes; then
10275 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10278 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10279 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-lsvld $LIBS"
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10315 grep -v '^ *+' conftest.er1 >conftest.err
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest$ac_exeext &&
10323 $as_test_x conftest$ac_exeext; then
10324 ac_cv_lib_svld_dlopen=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_svld_dlopen=no
10332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10333 conftest$ac_exeext conftest.$ac_ext
10334 LIBS=$ac_check_lib_save_LIBS
10336 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10338 if test $ac_cv_lib_svld_dlopen = yes; then
10339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10341 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 ac_check_lib_save_LIBS=$LIBS
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10355 /* Override any GCC internal prototype to avoid an error.
10356 Use char because int might match the return type of a GCC
10357 builtin and then its argument prototype would still apply. */
10365 return dld_link ();
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_link") 2>conftest.er1
10379 grep -v '^ *+' conftest.er1 >conftest.err
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest$ac_exeext &&
10387 $as_test_x conftest$ac_exeext; then
10388 ac_cv_lib_dld_dld_link=yes
10390 echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.$ac_ext >&5
10393 ac_cv_lib_dld_dld_link=no
10396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397 conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10401 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10402 if test $ac_cv_lib_dld_dld_link = yes; then
10403 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10424 if test "x$lt_cv_dlopen" != xno; then
10430 case $lt_cv_dlopen in
10432 save_CPPFLAGS="$CPPFLAGS"
10433 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10435 save_LDFLAGS="$LDFLAGS"
10436 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10439 LIBS="$lt_cv_dlopen_libs $LIBS"
10441 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10442 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10443 if test "${lt_cv_dlopen_self+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 if test "$cross_compiling" = yes; then :
10447 lt_cv_dlopen_self=cross
10449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450 lt_status=$lt_dlunknown
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10462 # define LT_DLGLOBAL RTLD_GLOBAL
10465 # define LT_DLGLOBAL DL_GLOBAL
10467 # define LT_DLGLOBAL 0
10471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472 find out it does not work in some platform. */
10473 #ifndef LT_DLLAZY_OR_NOW
10475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10478 # define LT_DLLAZY_OR_NOW DL_LAZY
10481 # define LT_DLLAZY_OR_NOW RTLD_NOW
10484 # define LT_DLLAZY_OR_NOW DL_NOW
10486 # define LT_DLLAZY_OR_NOW 0
10494 extern "C" void exit (int);
10497 void fnord() { int i=42;}
10500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501 int status = $lt_dlunknown;
10505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507 /* dlclose (self); */
10515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516 (eval $ac_link) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10528 # compilation failed
10529 lt_cv_dlopen_self=no
10536 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10537 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10539 if test "x$lt_cv_dlopen_self" = xyes; then
10540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10541 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10542 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10543 if test "${lt_cv_dlopen_self_static+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 if test "$cross_compiling" = yes; then :
10547 lt_cv_dlopen_self_static=cross
10549 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10550 lt_status=$lt_dlunknown
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10562 # define LT_DLGLOBAL RTLD_GLOBAL
10565 # define LT_DLGLOBAL DL_GLOBAL
10567 # define LT_DLGLOBAL 0
10571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10572 find out it does not work in some platform. */
10573 #ifndef LT_DLLAZY_OR_NOW
10575 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10578 # define LT_DLLAZY_OR_NOW DL_LAZY
10581 # define LT_DLLAZY_OR_NOW RTLD_NOW
10584 # define LT_DLLAZY_OR_NOW DL_NOW
10586 # define LT_DLLAZY_OR_NOW 0
10594 extern "C" void exit (int);
10597 void fnord() { int i=42;}
10600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10601 int status = $lt_dlunknown;
10605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10607 /* dlclose (self); */
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10620 (./conftest; exit; ) >&5 2>/dev/null
10622 case x$lt_status in
10623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10628 # compilation failed
10629 lt_cv_dlopen_self_static=no
10636 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10637 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10640 CPPFLAGS="$save_CPPFLAGS"
10641 LDFLAGS="$save_LDFLAGS"
10646 case $lt_cv_dlopen_self in
10647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648 *) enable_dlopen_self=unknown ;;
10651 case $lt_cv_dlopen_self_static in
10652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653 *) enable_dlopen_self_static=unknown ;;
10658 # Report which library types will actually be built
10659 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10660 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10661 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10662 echo "${ECHO_T}$can_build_shared" >&6; }
10664 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10665 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10666 test "$can_build_shared" = "no" && enable_shared=no
10668 # On AIX, shared libraries and static libraries use the same namespace, and
10669 # are all built from PIC.
10672 test "$enable_shared" = yes && enable_static=no
10673 if test -n "$RANLIB"; then
10674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10675 postinstall_cmds='$RANLIB $lib'
10680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10681 test "$enable_shared" = yes && enable_static=no
10685 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10686 echo "${ECHO_T}$enable_shared" >&6; }
10688 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10689 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10690 # Make sure either enable_shared or enable_static is yes.
10691 test "$enable_shared" = yes || enable_static=yes
10692 { echo "$as_me:$LINENO: result: $enable_static" >&5
10693 echo "${ECHO_T}$enable_static" >&6; }
10695 # The else clause should only fire when bootstrapping the
10696 # libtool distribution, otherwise you forgot to ship ltmain.sh
10697 # with your package, and you will get complaints that there are
10698 # no rules to generate ltmain.sh.
10699 if test -f "$ltmain"; then
10700 # See if we are running on zsh, and set the options which allow our commands through
10701 # without removal of \ escapes.
10702 if test -n "${ZSH_VERSION+set}" ; then
10703 setopt NO_GLOB_SUBST
10705 # Now quote all the things that may contain metacharacters while being
10706 # careful not to overquote the AC_SUBSTed values. We take copies of the
10707 # variables and quote the copies for generation of the libtool script.
10708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10712 deplibs_check_method reload_flag reload_cmds need_locks \
10713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10714 lt_cv_sys_global_symbol_to_c_name_address \
10715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10716 old_postinstall_cmds old_postuninstall_cmds \
10720 lt_prog_compiler_wl \
10721 lt_prog_compiler_pic \
10722 lt_prog_compiler_static \
10723 lt_prog_compiler_no_builtin_flag \
10724 export_dynamic_flag_spec \
10725 thread_safe_flag_spec \
10726 whole_archive_flag_spec \
10727 enable_shared_with_static_runtimes \
10729 old_archive_from_new_cmds \
10734 compiler_lib_search_path \
10735 compiler_lib_search_dirs \
10737 archive_expsym_cmds \
10739 postuninstall_cmds \
10740 old_archive_from_expsyms_cmds \
10741 allow_undefined_flag \
10742 no_undefined_flag \
10743 export_symbols_cmds \
10744 hardcode_libdir_flag_spec \
10745 hardcode_libdir_flag_spec_ld \
10746 hardcode_libdir_separator \
10747 hardcode_automatic \
10749 module_expsym_cmds \
10750 lt_cv_prog_compiler_c_o \
10753 include_expsyms; do
10756 old_archive_cmds | \
10757 old_archive_from_new_cmds | \
10759 archive_expsym_cmds | \
10761 module_expsym_cmds | \
10762 old_archive_from_expsyms_cmds | \
10763 export_symbols_cmds | \
10764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10765 postinstall_cmds | postuninstall_cmds | \
10766 old_postinstall_cmds | old_postuninstall_cmds | \
10767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10768 # Double-quote double-evaled strings.
10769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10778 *'\$0 --fallback-echo"')
10779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10783 cfgfile="${ofile}T"
10784 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10786 { echo "$as_me:$LINENO: creating $ofile" >&5
10787 echo "$as_me: creating $ofile" >&6;}
10789 cat <<__EOF__ >> "$cfgfile"
10792 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10793 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10794 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10796 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10797 # Free Software Foundation, Inc.
10799 # This file is part of GNU Libtool:
10800 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10802 # This program is free software; you can redistribute it and/or modify
10803 # it under the terms of the GNU General Public License as published by
10804 # the Free Software Foundation; either version 2 of the License, or
10805 # (at your option) any later version.
10807 # This program is distributed in the hope that it will be useful, but
10808 # WITHOUT ANY WARRANTY; without even the implied warranty of
10809 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10810 # General Public License for more details.
10812 # You should have received a copy of the GNU General Public License
10813 # along with this program; if not, write to the Free Software
10814 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10816 # As a special exception to the GNU General Public License, if you
10817 # distribute this file as part of a program that contains a
10818 # configuration script generated by Autoconf, you may include it under
10819 # the same distribution terms that you use for the rest of that program.
10821 # A sed program that does not truncate output.
10824 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10825 Xsed="$SED -e 1s/^X//"
10827 # The HP-UX ksh and POSIX shell print the target directory to stdout
10828 # if CDPATH is set.
10829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10831 # The names of the tagged configurations supported by this script.
10834 # ### BEGIN LIBTOOL CONFIG
10836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10838 # Shell to use when invoking shell scripts.
10841 # Whether or not to build shared libraries.
10842 build_libtool_libs=$enable_shared
10844 # Whether or not to build static libraries.
10845 build_old_libs=$enable_static
10847 # Whether or not to add -lc for building shared libraries.
10848 build_libtool_need_lc=$archive_cmds_need_lc
10850 # Whether or not to disallow shared libs when runtime libs are static
10851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10853 # Whether or not to optimize for fast installation.
10854 fast_install=$enable_fast_install
10857 host_alias=$host_alias
10861 # The build system.
10862 build_alias=$build_alias
10866 # An echo program that does not interpret backslashes.
10871 AR_FLAGS=$lt_AR_FLAGS
10876 # LTCC compiler flags.
10877 LTCFLAGS=$lt_LTCFLAGS
10879 # A language-specific compiler.
10882 # Is the compiler the GNU C compiler?
10888 # The linker used to build libraries.
10891 # Whether we need hard or soft links.
10894 # A BSD-compatible nm program.
10897 # A symbol stripping program
10900 # Used to examine libraries when file_magic_cmd begins "file"
10901 MAGIC_CMD=$MAGIC_CMD
10903 # Used on cygwin: DLL creation program.
10906 # Used on cygwin: object dumper.
10909 # Used on cygwin: assembler.
10912 # The name of the directory that contains temporary libtool files.
10915 # How to create reloadable object files.
10916 reload_flag=$lt_reload_flag
10917 reload_cmds=$lt_reload_cmds
10919 # How to pass a linker flag through the compiler.
10920 wl=$lt_lt_prog_compiler_wl
10922 # Object file suffix (normally "o").
10923 objext="$ac_objext"
10925 # Old archive suffix (normally "a").
10928 # Shared library suffix (normally ".so").
10929 shrext_cmds='$shrext_cmds'
10931 # Executable file suffix (normally "").
10934 # Additional compiler flags for building library objects.
10935 pic_flag=$lt_lt_prog_compiler_pic
10938 # What is the maximum length of a command?
10939 max_cmd_len=$lt_cv_sys_max_cmd_len
10941 # Does compiler simultaneously support -c and -o options?
10942 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10944 # Must we lock files when doing compilation?
10945 need_locks=$lt_need_locks
10947 # Do we need the lib prefix for modules?
10948 need_lib_prefix=$need_lib_prefix
10950 # Do we need a version for libraries?
10951 need_version=$need_version
10953 # Whether dlopen is supported.
10954 dlopen_support=$enable_dlopen
10956 # Whether dlopen of programs is supported.
10957 dlopen_self=$enable_dlopen_self
10959 # Whether dlopen of statically linked programs is supported.
10960 dlopen_self_static=$enable_dlopen_self_static
10962 # Compiler flag to prevent dynamic linking.
10963 link_static_flag=$lt_lt_prog_compiler_static
10965 # Compiler flag to turn off builtin functions.
10966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10968 # Compiler flag to allow reflexive dlopens.
10969 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10971 # Compiler flag to generate shared objects directly from archives.
10972 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10974 # Compiler flag to generate thread-safe objects.
10975 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10977 # Library versioning type.
10978 version_type=$version_type
10980 # Format of library name prefix.
10981 libname_spec=$lt_libname_spec
10983 # List of archive names. First name is the real one, the rest are links.
10984 # The last name is the one that the linker finds with -lNAME.
10985 library_names_spec=$lt_library_names_spec
10987 # The coded name of the library, if different from the real name.
10988 soname_spec=$lt_soname_spec
10990 # Commands used to build and install an old-style archive.
10992 old_archive_cmds=$lt_old_archive_cmds
10993 old_postinstall_cmds=$lt_old_postinstall_cmds
10994 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10996 # Create an old-style archive from a shared archive.
10997 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10999 # Create a temporary old-style archive to link instead of a shared archive.
11000 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11002 # Commands used to build and install a shared archive.
11003 archive_cmds=$lt_archive_cmds
11004 archive_expsym_cmds=$lt_archive_expsym_cmds
11005 postinstall_cmds=$lt_postinstall_cmds
11006 postuninstall_cmds=$lt_postuninstall_cmds
11008 # Commands used to build a loadable module (assumed same as above if empty)
11009 module_cmds=$lt_module_cmds
11010 module_expsym_cmds=$lt_module_expsym_cmds
11012 # Commands to strip libraries.
11013 old_striplib=$lt_old_striplib
11014 striplib=$lt_striplib
11016 # Dependencies to place before the objects being linked to create a
11018 predep_objects=$lt_predep_objects
11020 # Dependencies to place after the objects being linked to create a
11022 postdep_objects=$lt_postdep_objects
11024 # Dependencies to place before the objects being linked to create a
11026 predeps=$lt_predeps
11028 # Dependencies to place after the objects being linked to create a
11030 postdeps=$lt_postdeps
11032 # The directories searched by this compiler when creating a shared
11034 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11036 # The library search path used internally by the compiler when linking
11037 # a shared library.
11038 compiler_lib_search_path=$lt_compiler_lib_search_path
11040 # Method to check whether dependent libraries are shared objects.
11041 deplibs_check_method=$lt_deplibs_check_method
11043 # Command to use when deplibs_check_method == file_magic.
11044 file_magic_cmd=$lt_file_magic_cmd
11046 # Flag that allows shared libraries with undefined symbols to be built.
11047 allow_undefined_flag=$lt_allow_undefined_flag
11049 # Flag that forces no undefined symbols.
11050 no_undefined_flag=$lt_no_undefined_flag
11052 # Commands used to finish a libtool library installation in a directory.
11053 finish_cmds=$lt_finish_cmds
11055 # Same as above, but a single script fragment to be evaled but not shown.
11056 finish_eval=$lt_finish_eval
11058 # Take the output of nm and produce a listing of raw symbols and C names.
11059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11061 # Transform the output of nm in a proper C declaration
11062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11064 # Transform the output of nm in a C name address pair
11065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11067 # This is the shared library runtime path variable.
11068 runpath_var=$runpath_var
11070 # This is the shared library path variable.
11071 shlibpath_var=$shlibpath_var
11073 # Is shlibpath searched before the hard-coded library search path?
11074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11076 # How to hardcode a shared library path into an executable.
11077 hardcode_action=$hardcode_action
11079 # Whether we should hardcode library paths into libraries.
11080 hardcode_into_libs=$hardcode_into_libs
11082 # Flag to hardcode \$libdir into a binary during linking.
11083 # This must work even if \$libdir does not exist.
11084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11086 # If ld is used when linking, flag to hardcode \$libdir into
11087 # a binary during linking. This must work even if \$libdir does
11089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11091 # Whether we need a single -rpath flag with a separated argument.
11092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11095 # resulting binary.
11096 hardcode_direct=$hardcode_direct
11098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11099 # resulting binary.
11100 hardcode_minus_L=$hardcode_minus_L
11102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11103 # the resulting binary.
11104 hardcode_shlibpath_var=$hardcode_shlibpath_var
11106 # Set to yes if building a shared library automatically hardcodes DIR into the library
11107 # and all subsequent libraries and executables linked against it.
11108 hardcode_automatic=$hardcode_automatic
11110 # Variables whose values should be saved in libtool wrapper scripts and
11111 # restored at relink time.
11112 variables_saved_for_relink="$variables_saved_for_relink"
11114 # Whether libtool must link a program against all its dependency libraries.
11115 link_all_deplibs=$link_all_deplibs
11117 # Compile-time system search path for libraries
11118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11120 # Run-time system search path for libraries
11121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11123 # Fix the shell variable \$srcfile for the compiler.
11124 fix_srcfile_path=$lt_fix_srcfile_path
11126 # Set to yes if exported symbols are required.
11127 always_export_symbols=$always_export_symbols
11129 # The commands to list exported symbols.
11130 export_symbols_cmds=$lt_export_symbols_cmds
11132 # The commands to extract the exported symbol list from a shared archive.
11133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11135 # Symbols that should not be listed in the preloaded symbols.
11136 exclude_expsyms=$lt_exclude_expsyms
11138 # Symbols that must always be exported.
11139 include_expsyms=$lt_include_expsyms
11141 # ### END LIBTOOL CONFIG
11148 cat <<\EOF >> "$cfgfile"
11150 # AIX sometimes has problems with the GCC collect2 program. For some
11151 # reason, if we set the COLLECT_NAMES environment variable, the problems
11152 # vanish in a puff of smoke.
11153 if test "X${COLLECT_NAMES+set}" != Xset; then
11155 export COLLECT_NAMES
11161 # We use sed instead of cat because bash on DJGPP gets confused if
11162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11163 # text mode, it properly converts lines to CR/LF. This bash problem
11164 # is reportedly fixed, but why not run on old versions too?
11165 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11167 mv -f "$cfgfile" "$ofile" || \
11168 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11172 # If there is no Makefile yet, we rely on a make rule to execute
11173 # `config.status --recheck' to rerun these tests and create the
11174 # libtool script then.
11175 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11176 if test -f "$ltmain_in"; then
11177 test -f Makefile && make "$ltmain"
11183 ac_cpp='$CPP $CPPFLAGS'
11184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191 # Check whether --with-tags was given.
11192 if test "${with_tags+set}" = set; then
11193 withval=$with_tags; tagnames="$withval"
11197 if test -f "$ltmain" && test -n "$tagnames"; then
11198 if test ! -f "${ofile}"; then
11199 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11200 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11203 if test -z "$LTCC"; then
11204 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11205 if test -z "$LTCC"; then
11206 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11207 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11210 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11213 if test -z "$LTCFLAGS"; then
11214 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11217 # Extract list of available tagged configurations in $ofile.
11218 # Note that this assumes the entire list is on one line.
11219 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11222 for tagname in $tagnames; do
11224 # Check whether tagname contains only valid characters
11225 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11227 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11228 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11229 { (exit 1); exit 1; }; }
11233 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11235 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11236 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11237 { (exit 1); exit 1; }; }
11240 # Update the list of available tags.
11241 if test -n "$tagname"; then
11242 echo appending configuration tag \"$tagname\" to $ofile
11246 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11247 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11248 (test "X$CXX" != "Xg++"))) ; then
11250 ac_cpp='$CXXCPP $CPPFLAGS'
11251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11258 archive_cmds_need_lc_CXX=no
11259 allow_undefined_flag_CXX=
11260 always_export_symbols_CXX=no
11261 archive_expsym_cmds_CXX=
11262 export_dynamic_flag_spec_CXX=
11263 hardcode_direct_CXX=no
11264 hardcode_libdir_flag_spec_CXX=
11265 hardcode_libdir_flag_spec_ld_CXX=
11266 hardcode_libdir_separator_CXX=
11267 hardcode_minus_L_CXX=no
11268 hardcode_shlibpath_var_CXX=unsupported
11269 hardcode_automatic_CXX=no
11271 module_expsym_cmds_CXX=
11272 link_all_deplibs_CXX=unknown
11273 old_archive_cmds_CXX=$old_archive_cmds
11274 no_undefined_flag_CXX=
11275 whole_archive_flag_spec_CXX=
11276 enable_shared_with_static_runtimes_CXX=no
11278 # Dependencies to place before and after the object being linked:
11279 predep_objects_CXX=
11280 postdep_objects_CXX=
11283 compiler_lib_search_path_CXX=
11284 compiler_lib_search_dirs_CXX=
11286 # Source file extension for C++ test sources.
11289 # Object file extension for compiled C++ test sources.
11293 # Code to be used in simple compile tests
11294 lt_simple_compile_test_code="int some_variable = 0;"
11296 # Code to be used in simple link tests
11297 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11301 # If no C compiler was specified, use CC.
11304 # If no C compiler flags were specified, use CFLAGS.
11305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11307 # Allow CC to be a program name with arguments.
11311 # save warnings/boilerplate of simple test code
11312 ac_outfile=conftest.$ac_objext
11313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11315 _lt_compiler_boilerplate=`cat conftest.err`
11318 ac_outfile=conftest.$ac_objext
11319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11321 _lt_linker_boilerplate=`cat conftest.err`
11325 # Allow CC to be a program name with arguments.
11330 lt_save_with_gnu_ld=$with_gnu_ld
11331 lt_save_path_LD=$lt_cv_path_LD
11332 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11333 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11335 $as_unset lt_cv_prog_gnu_ld
11337 if test -n "${lt_cv_path_LDCXX+set}"; then
11338 lt_cv_path_LD=$lt_cv_path_LDCXX
11340 $as_unset lt_cv_path_LD
11342 test -z "${LDCXX+set}" || LD=$LDCXX
11346 for cc_temp in $compiler""; do
11348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11354 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11357 # We don't want -fno-exception wen compiling C++ code, so set the
11358 # no_builtin_flag separately
11359 if test "$GXX" = yes; then
11360 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11362 lt_prog_compiler_no_builtin_flag_CXX=
11365 if test "$GXX" = yes; then
11366 # Set up default GNU C++ configuration
11369 # Check whether --with-gnu-ld was given.
11370 if test "${with_gnu_ld+set}" = set; then
11371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11377 if test "$GCC" = yes; then
11378 # Check if gcc -print-prog-name=ld gives a path.
11379 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11380 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11383 # gcc leaves a trailing carriage return which upsets mingw
11384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11389 # Accept absolute paths.
11391 re_direlt='/[^/][^/]*/\.\./'
11392 # Canonicalize the pathname of ld
11393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11397 test -z "$LD" && LD="$ac_prog"
11400 # If it fails, then pretend we aren't using GCC.
11404 # If it is relative, then search for the first ld in PATH.
11405 with_gnu_ld=unknown
11408 elif test "$with_gnu_ld" = yes; then
11409 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11410 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11412 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11413 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11415 if test "${lt_cv_path_LD+set}" = set; then
11416 echo $ECHO_N "(cached) $ECHO_C" >&6
11418 if test -z "$LD"; then
11419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11420 for ac_dir in $PATH; do
11422 test -z "$ac_dir" && ac_dir=.
11423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11424 lt_cv_path_LD="$ac_dir/$ac_prog"
11425 # Check to see if the program is GNU ld. I'd rather use --version,
11426 # but apparently some variants of GNU ld only accept -v.
11427 # Break only if it was the GNU/non-GNU ld that we prefer.
11428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11429 *GNU* | *'with BFD'*)
11430 test "$with_gnu_ld" != no && break
11433 test "$with_gnu_ld" != yes && break
11440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11444 LD="$lt_cv_path_LD"
11445 if test -n "$LD"; then
11446 { echo "$as_me:$LINENO: result: $LD" >&5
11447 echo "${ECHO_T}$LD" >&6; }
11449 { echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6; }
11452 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11453 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11454 { (exit 1); exit 1; }; }
11455 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11456 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11457 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11461 case `$LD -v 2>&1 </dev/null` in
11462 *GNU* | *'with BFD'*)
11463 lt_cv_prog_gnu_ld=yes
11466 lt_cv_prog_gnu_ld=no
11470 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11471 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11472 with_gnu_ld=$lt_cv_prog_gnu_ld
11476 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11477 # archiving commands below assume that GNU ld is being used.
11478 if test "$with_gnu_ld" = yes; then
11479 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11480 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'
11482 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11483 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11485 # If archive_cmds runs LD, not CC, wlarc should be empty
11486 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11487 # investigate it a little bit more. (MM)
11490 # ancient GNU ld didn't support --whole-archive et. al.
11491 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11492 grep 'no-whole-archive' > /dev/null; then
11493 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11495 whole_archive_flag_spec_CXX=
11501 # A generic and very simple default shared library creation
11502 # command for GNU C++ for the case where it uses the native
11503 # linker, instead of GNU ld. If possible, this setting should
11504 # overridden to take advantage of the native linker features on
11505 # the platform it is being used on.
11506 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509 # Commands to make compiler produce verbose output that lists
11510 # what "hidden" libraries, object files and flags are used when
11511 # linking a shared library.
11512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11520 # PORTME: fill in a description of your system's C++ link characteristics
11521 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11522 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11526 # FIXME: insert proper C++ library support
11530 if test "$host_cpu" = ia64; then
11531 # On IA64, the linker does run time linking by default, so we don't
11532 # have to do anything special.
11533 aix_use_runtimelinking=no
11534 exp_sym_flag='-Bexport'
11537 aix_use_runtimelinking=no
11539 # Test if we are trying to use run time linking or normal
11540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11541 # need to do runtime linking.
11542 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11543 for ld_flag in $LDFLAGS; do
11546 aix_use_runtimelinking=yes
11554 exp_sym_flag='-bexport'
11555 no_entry_flag='-bnoentry'
11558 # When large executables or shared objects are built, AIX ld can
11559 # have problems creating the table of contents. If linking a library
11560 # or program results in "error TOC overflow" add -mminimal-toc to
11561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11564 archive_cmds_CXX=''
11565 hardcode_direct_CXX=yes
11566 hardcode_libdir_separator_CXX=':'
11567 link_all_deplibs_CXX=yes
11569 if test "$GXX" = yes; then
11570 case $host_os in aix4.[012]|aix4.[012].*)
11571 # We only want to do this on AIX 4.2 and lower, the check
11572 # below for broken collect2 doesn't work under 4.3+
11573 collect2name=`${CC} -print-prog-name=collect2`
11574 if test -f "$collect2name" && \
11575 strings "$collect2name" | grep resolve_lib_name >/dev/null
11577 # We have reworked collect2
11580 # We have old collect2
11581 hardcode_direct_CXX=unsupported
11582 # It fails to find uninstalled libraries when the uninstalled
11583 # path is not listed in the libpath. Setting hardcode_minus_L
11584 # to unsupported forces relinking
11585 hardcode_minus_L_CXX=yes
11586 hardcode_libdir_flag_spec_CXX='-L$libdir'
11587 hardcode_libdir_separator_CXX=
11591 shared_flag='-shared'
11592 if test "$aix_use_runtimelinking" = yes; then
11593 shared_flag="$shared_flag "'${wl}-G'
11597 if test "$host_cpu" = ia64; then
11598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11599 # chokes on -Wl,-G. The following line is correct:
11602 if test "$aix_use_runtimelinking" = yes; then
11603 shared_flag='${wl}-G'
11605 shared_flag='${wl}-bM:SRE'
11610 # It seems that -bexpall does not export symbols beginning with
11611 # underscore (_), so it is better to generate a list of symbols to export.
11612 always_export_symbols_CXX=yes
11613 if test "$aix_use_runtimelinking" = yes; then
11614 # Warning - without using the other runtime loading flags (-brtl),
11615 # -berok will link without error, but may produce a broken library.
11616 allow_undefined_flag_CXX='-berok'
11617 # Determine the default libpath from the value encoded in an empty executable.
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (ac_try="$ac_link"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_link") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_cxx_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest$ac_exeext &&
11650 $as_test_x conftest$ac_exeext; then
11652 lt_aix_libpath_sed='
11653 /Import File Strings/,/^$/ {
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11675 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11677 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"
11679 if test "$host_cpu" = ia64; then
11680 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11681 allow_undefined_flag_CXX="-z nodefs"
11682 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"
11684 # Determine the default libpath from the value encoded in an empty executable.
11685 cat >conftest.$ac_ext <<_ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11700 rm -f conftest.$ac_objext conftest$ac_exeext
11701 if { (ac_try="$ac_link"
11702 case "(($ac_try" in
11703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11707 (eval "$ac_link") 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_cxx_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest$ac_exeext &&
11717 $as_test_x conftest$ac_exeext; then
11719 lt_aix_libpath_sed='
11720 /Import File Strings/,/^$/ {
11726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11727 # Check for a 64-bit object if we didn't find anything.
11728 if test -z "$aix_libpath"; then
11729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11739 conftest$ac_exeext conftest.$ac_ext
11740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11742 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11743 # Warning - without using the other run time loading flags,
11744 # -berok will link without error, but may produce a broken library.
11745 no_undefined_flag_CXX=' ${wl}-bernotok'
11746 allow_undefined_flag_CXX=' ${wl}-berok'
11747 # Exported symbols can be pulled into shared objects from archives
11748 whole_archive_flag_spec_CXX='$convenience'
11749 archive_cmds_need_lc_CXX=yes
11750 # This is similar to how AIX traditionally builds its shared libraries.
11751 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'
11757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11758 allow_undefined_flag_CXX=unsupported
11759 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11760 # support --undefined. This deserves some investigation. FIXME
11761 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11768 case $cc_basename in
11770 # FIXME: insert proper C++ library support
11776 cygwin* | mingw* | pw32*)
11777 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11778 # as there is no search path for DLLs.
11779 hardcode_libdir_flag_spec_CXX='-L$libdir'
11780 allow_undefined_flag_CXX=unsupported
11781 always_export_symbols_CXX=no
11782 enable_shared_with_static_runtimes_CXX=yes
11784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11785 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'
11786 # If the export-symbols file already is a .def file (1st line
11787 # is EXPORTS), use it as is; otherwise, prepend...
11788 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11789 cp $export_symbols $output_objdir/$soname.def;
11791 echo EXPORTS > $output_objdir/$soname.def;
11792 cat $export_symbols >> $output_objdir/$soname.def;
11794 $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'
11799 darwin* | rhapsody*)
11800 archive_cmds_need_lc_CXX=no
11801 hardcode_direct_CXX=no
11802 hardcode_automatic_CXX=yes
11803 hardcode_shlibpath_var_CXX=unsupported
11804 whole_archive_flag_spec_CXX=''
11805 link_all_deplibs_CXX=yes
11806 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11807 if test "$GXX" = yes ; then
11808 output_verbose_link_cmd='echo'
11809 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11810 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11812 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11813 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11815 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11818 case $cc_basename in
11820 output_verbose_link_cmd='echo'
11821 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11822 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11824 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825 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}'
11835 case $cc_basename in
11837 # FIXME: insert proper C++ library support
11841 # Green Hills C++ Compiler
11842 # FIXME: insert proper C++ library support
11846 # FIXME: insert proper C++ library support
11852 # C++ shared libraries reported to be fairly broken before switch to ELF
11856 archive_cmds_need_lc_CXX=no
11858 freebsd* | dragonfly*)
11859 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11866 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11867 hardcode_libdir_separator_CXX=:
11868 export_dynamic_flag_spec_CXX='${wl}-E'
11869 hardcode_direct_CXX=yes
11870 hardcode_minus_L_CXX=yes # Not in the search PATH,
11871 # but as the default
11872 # location of the library.
11874 case $cc_basename in
11876 # FIXME: insert proper C++ library support
11880 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'
11881 # Commands to make compiler produce verbose output that lists
11882 # what "hidden" libraries, object files and flags are used when
11883 # linking a shared library.
11885 # There doesn't appear to be a way to prevent this compiler from
11886 # explicitly linking system object files so we need to strip them
11887 # from the output so that they don't get included in the library
11889 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'
11892 if test "$GXX" = yes; then
11893 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'
11895 # FIXME: insert proper C++ library support
11902 if test $with_gnu_ld = no; then
11903 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11904 hardcode_libdir_separator_CXX=:
11909 export_dynamic_flag_spec_CXX='${wl}-E'
11915 hardcode_direct_CXX=no
11916 hardcode_shlibpath_var_CXX=no
11919 hardcode_direct_CXX=yes
11920 hardcode_minus_L_CXX=yes # Not in the search PATH,
11921 # but as the default
11922 # location of the library.
11926 case $cc_basename in
11928 # FIXME: insert proper C++ library support
11934 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943 # Commands to make compiler produce verbose output that lists
11944 # what "hidden" libraries, object files and flags are used when
11945 # linking a shared library.
11947 # There doesn't appear to be a way to prevent this compiler from
11948 # explicitly linking system object files so we need to strip them
11949 # from the output so that they don't get included in the library
11951 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'
11954 if test "$GXX" = yes; then
11955 if test $with_gnu_ld = no; then
11958 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 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'
11969 # FIXME: insert proper C++ library support
11976 hardcode_direct_CXX=no
11977 hardcode_shlibpath_var_CXX=no
11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11979 export_dynamic_flag_spec_CXX='${wl}-E'
11980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11981 # Instead, shared libraries are loaded at an image base (0x10000000 by
11982 # default) and relocated if they conflict, which is a slow very memory
11983 # consuming and fragmenting process. To avoid this, we pick a random,
11984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11986 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'
11987 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'
11990 case $cc_basename in
11993 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'
11995 # Archives containing C++ object files must be created using
11996 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11997 # necessary to make sure instantiated templates are included
11999 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12002 if test "$GXX" = yes; then
12003 if test "$with_gnu_ld" = no; then
12004 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'
12006 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'
12009 link_all_deplibs_CXX=yes
12012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12013 hardcode_libdir_separator_CXX=:
12015 linux* | k*bsd*-gnu)
12016 case $cc_basename in
12018 # Kuck and Associates, Inc. (KAI) C++ Compiler
12020 # KCC will only create a shared library if the output file
12021 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12022 # to its proper name (with version) after linking.
12023 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'
12024 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'
12025 # Commands to make compiler produce verbose output that lists
12026 # what "hidden" libraries, object files and flags are used when
12027 # linking a shared library.
12029 # There doesn't appear to be a way to prevent this compiler from
12030 # explicitly linking system object files so we need to strip them
12031 # from the output so that they don't get included in the library
12033 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'
12035 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12036 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12038 # Archives containing C++ object files must be created using
12039 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12040 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12045 # version 8.0 and above of icpc choke on multiply defined symbols
12046 # if we add $predep_objects and $postdep_objects, however 7.1 and
12047 # earlier do not add the objects themselves.
12048 case `$CC -V 2>&1` in
12050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051 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'
12053 *) # Version 8.0 or newer
12056 ia64*) tmp_idyn=' -i_dynamic';;
12058 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059 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'
12062 archive_cmds_need_lc_CXX=no
12063 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12064 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12065 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12068 # Portland Group C++ compiler
12069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12070 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'
12072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074 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'
12078 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079 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'
12081 runpath_var=LD_RUN_PATH
12082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12083 hardcode_libdir_separator_CXX=:
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12089 # There doesn't appear to be a way to prevent this compiler from
12090 # explicitly linking system object files so we need to strip them
12091 # from the output so that they don't get included in the library
12093 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'
12096 case `$CC -V 2>&1 | sed 5q` in
12099 no_undefined_flag_CXX=' -zdefs'
12100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12101 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12102 hardcode_libdir_flag_spec_CXX='-R$libdir'
12103 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12105 # Not sure whether something based on
12106 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12108 output_verbose_link_cmd='echo'
12110 # Archives containing C++ object files must be created using
12111 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12112 # necessary to make sure instantiated templates are included
12114 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12121 # FIXME: insert proper C++ library support
12125 # FIXME: insert proper C++ library support
12129 case $cc_basename in
12131 # FIXME: insert proper C++ library support
12135 # FIXME: insert proper C++ library support
12140 netbsd* | netbsdelf*-gnu)
12141 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12142 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12144 hardcode_libdir_flag_spec_CXX='-R$libdir'
12145 hardcode_direct_CXX=yes
12146 hardcode_shlibpath_var_CXX=no
12148 # Workaround some broken pre-1.5 toolchains
12149 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12152 # C++ shared libraries are fairly broken
12156 if test -f /usr/libexec/ld.so; then
12157 hardcode_direct_CXX=yes
12158 hardcode_shlibpath_var_CXX=no
12159 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12160 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12162 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12163 export_dynamic_flag_spec_CXX='${wl}-E'
12164 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12166 output_verbose_link_cmd='echo'
12172 case $cc_basename in
12174 # Kuck and Associates, Inc. (KAI) C++ Compiler
12176 # KCC will only create a shared library if the output file
12177 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12178 # to its proper name (with version) after linking.
12179 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'
12181 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182 hardcode_libdir_separator_CXX=:
12184 # Archives containing C++ object files must be created using
12185 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12186 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12190 # Rational C++ 2.4.1
12191 # FIXME: insert proper C++ library support
12195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12196 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'
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12199 hardcode_libdir_separator_CXX=:
12201 # Commands to make compiler produce verbose output that lists
12202 # what "hidden" libraries, object files and flags are used when
12203 # linking a shared library.
12205 # There doesn't appear to be a way to prevent this compiler from
12206 # explicitly linking system object files so we need to strip them
12207 # from the output so that they don't get included in the library
12209 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'
12212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12214 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'
12216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12217 hardcode_libdir_separator_CXX=:
12219 # Commands to make compiler produce verbose output that lists
12220 # what "hidden" libraries, object files and flags are used when
12221 # linking a shared library.
12222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12225 # FIXME: insert proper C++ library support
12232 case $cc_basename in
12234 # Kuck and Associates, Inc. (KAI) C++ Compiler
12236 # KCC will only create a shared library if the output file
12237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12238 # to its proper name (with version) after linking.
12239 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'
12241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242 hardcode_libdir_separator_CXX=:
12244 # Archives containing C++ object files must be created using
12245 # the KAI C++ compiler.
12246 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12249 # Rational C++ 2.4.1
12250 # FIXME: insert proper C++ library support
12254 allow_undefined_flag_CXX=' -expect_unresolved \*'
12255 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'
12256 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12257 echo "-hidden">> $lib.exp~
12258 $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~
12261 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12262 hardcode_libdir_separator_CXX=:
12264 # Commands to make compiler produce verbose output that lists
12265 # what "hidden" libraries, object files and flags are used when
12266 # linking a shared library.
12268 # There doesn't appear to be a way to prevent this compiler from
12269 # explicitly linking system object files so we need to strip them
12270 # from the output so that they don't get included in the library
12272 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'
12275 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12276 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12277 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'
12279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$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.
12285 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12288 # FIXME: insert proper C++ library support
12295 # FIXME: insert proper C++ library support
12299 case $cc_basename in
12302 # FIXME: insert proper C++ library support
12307 # FIXME: insert proper C++ library support
12311 # FIXME: insert proper C++ library support
12317 case $cc_basename in
12319 # Sun C++ 4.2, 5.x and Centerline C++
12320 archive_cmds_need_lc_CXX=yes
12321 no_undefined_flag_CXX=' -zdefs'
12322 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12323 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12324 $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'
12326 hardcode_libdir_flag_spec_CXX='-R$libdir'
12327 hardcode_shlibpath_var_CXX=no
12329 solaris2.[0-5] | solaris2.[0-5].*) ;;
12331 # The compiler driver will combine and reorder linker options,
12332 # but understands `-z linker_flag'.
12333 # Supported since Solaris 2.6 (maybe 2.5.1?)
12334 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12337 link_all_deplibs_CXX=yes
12339 output_verbose_link_cmd='echo'
12341 # Archives containing C++ object files must be created using
12342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12343 # necessary to make sure instantiated templates are included
12345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12348 # Green Hills C++ Compiler
12349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12351 # The C++ compiler must be used to create the archive.
12352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12355 # GNU C++ compiler with Solaris linker
12356 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12357 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12358 if $CC --version | grep -v '^2\.7' > /dev/null; then
12359 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12360 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12361 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12363 # Commands to make compiler produce verbose output that lists
12364 # what "hidden" libraries, object files and flags are used when
12365 # linking a shared library.
12366 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12368 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12370 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12372 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12374 # Commands to make compiler produce verbose output that lists
12375 # what "hidden" libraries, object files and flags are used when
12376 # linking a shared library.
12377 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12380 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12382 solaris2.[0-5] | solaris2.[0-5].*) ;;
12384 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12391 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12392 no_undefined_flag_CXX='${wl}-z,text'
12393 archive_cmds_need_lc_CXX=no
12394 hardcode_shlibpath_var_CXX=no
12395 runpath_var='LD_RUN_PATH'
12397 case $cc_basename in
12399 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12403 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408 sysv5* | sco3.2v5* | sco5v6*)
12409 # Note: We can NOT use -z defs as we might desire, because we do not
12410 # link with -lc, and that would cause any symbols used from libc to
12411 # always be unresolved, which means just about no library would
12412 # ever link correctly. If we're not using GNU ld we use -z text
12413 # though, which does catch some bad symbols but isn't as heavy-handed
12415 # For security reasons, it is highly recommended that you always
12416 # use absolute paths for naming shared libraries, and exclude the
12417 # DT_RUNPATH tag from executables and libraries. But doing so
12418 # requires that you compile everything twice, which is a pain.
12419 # So that behaviour is only enabled if SCOABSPATH is set to a
12420 # non-empty value in the environment. Most likely only useful for
12421 # creating official distributions of packages.
12422 # This is a hack until libtool officially supports absolute path
12423 # names for shared libraries.
12424 no_undefined_flag_CXX='${wl}-z,text'
12425 allow_undefined_flag_CXX='${wl}-z,nodefs'
12426 archive_cmds_need_lc_CXX=no
12427 hardcode_shlibpath_var_CXX=no
12428 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12429 hardcode_libdir_separator_CXX=':'
12430 link_all_deplibs_CXX=yes
12431 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12432 runpath_var='LD_RUN_PATH'
12434 case $cc_basename in
12436 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12440 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12441 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12446 case $cc_basename in
12448 # NonStop-UX NCC 3.20
12449 # FIXME: insert proper C++ library support
12453 # FIXME: insert proper C++ library support
12459 # FIXME: insert proper C++ library support
12463 # FIXME: insert proper C++ library support
12467 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12468 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12469 test "$ld_shlibs_CXX" = no && can_build_shared=no
12474 cat > conftest.$ac_ext <<EOF
12478 Foo (void) { a = 0; }
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; then
12489 # Parse the compiler output and extract the necessary
12490 # objects, libraries and library flags.
12492 # Sentinel used to keep track of whether or not we are before
12493 # the conftest object file.
12494 pre_test_object_deps_done=no
12496 # The `*' in the case matches for architectures that use `case' in
12497 # $output_verbose_cmd can trigger glob expansion during the loop
12498 # eval without this substitution.
12499 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12501 for p in `eval $output_verbose_link_cmd`; do
12505 # Some compilers place space between "-{L,R}" and the path.
12506 # Remove the space.
12507 if test $p = "-L" \
12508 || test $p = "-R"; then
12515 if test "$pre_test_object_deps_done" = no; then
12518 # Internal compiler library paths should come after those
12519 # provided the user. The postdeps already come after the
12520 # user supplied libs so there is no need to process them.
12521 if test -z "$compiler_lib_search_path_CXX"; then
12522 compiler_lib_search_path_CXX="${prev}${p}"
12524 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12527 # The "-l" case would never come before the object being
12528 # linked, so don't bother handling this case.
12531 if test -z "$postdeps_CXX"; then
12532 postdeps_CXX="${prev}${p}"
12534 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12540 # This assumes that the test object file only shows up
12541 # once in the compiler output.
12542 if test "$p" = "conftest.$objext"; then
12543 pre_test_object_deps_done=yes
12547 if test "$pre_test_object_deps_done" = no; then
12548 if test -z "$predep_objects_CXX"; then
12549 predep_objects_CXX="$p"
12551 predep_objects_CXX="$predep_objects_CXX $p"
12554 if test -z "$postdep_objects_CXX"; then
12555 postdep_objects_CXX="$p"
12557 postdep_objects_CXX="$postdep_objects_CXX $p"
12562 *) ;; # Ignore the rest.
12570 echo "libtool.m4: error: problem compiling CXX test program"
12573 $rm -f confest.$objext
12575 compiler_lib_search_dirs_CXX=
12576 if test -n "$compiler_lib_search_path_CXX"; then
12577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12580 # PORTME: override above test on systems where it is broken
12583 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12584 # hack all around it, let's just trust "g++" to DTRT.
12585 predep_objects_CXX=
12586 postdep_objects_CXX=
12591 case `$CC -V 2>&1 | sed 5q` in
12595 # The more standards-conforming stlport4 library is
12596 # incompatible with the Cstd library. Avoid specifying
12597 # it if it's in CXXFLAGS. Ignore libCrun as
12598 # -library=stlport4 depends on it.
12599 case " $CXX $CXXFLAGS " in
12600 *" -library=stlport4 "*)
12601 solaris_use_stlport4=yes
12604 if test "$solaris_use_stlport4" != yes; then
12605 postdeps_CXX='-library=Cstd -library=Crun'
12612 case $cc_basename in
12614 # The more standards-conforming stlport4 library is
12615 # incompatible with the Cstd library. Avoid specifying
12616 # it if it's in CXXFLAGS. Ignore libCrun as
12617 # -library=stlport4 depends on it.
12618 case " $CXX $CXXFLAGS " in
12619 *" -library=stlport4 "*)
12620 solaris_use_stlport4=yes
12624 # Adding this requires a known-good setup of shared libraries for
12625 # Sun compiler versions before 5.6, else PIC objects from an old
12626 # archive will be linked into the output, leading to subtle bugs.
12627 if test "$solaris_use_stlport4" != yes; then
12628 postdeps_CXX='-library=Cstd -library=Crun'
12635 case " $postdeps_CXX " in
12636 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12639 lt_prog_compiler_wl_CXX=
12640 lt_prog_compiler_pic_CXX=
12641 lt_prog_compiler_static_CXX=
12643 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12644 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12646 # C++ specific cases for pic, static, wl, etc.
12647 if test "$GXX" = yes; then
12648 lt_prog_compiler_wl_CXX='-Wl,'
12649 lt_prog_compiler_static_CXX='-static'
12653 # All AIX code is PIC.
12654 if test "$host_cpu" = ia64; then
12655 # AIX 5 now supports IA64 processor
12656 lt_prog_compiler_static_CXX='-Bstatic'
12660 # FIXME: we need at least 68020 code to build shared libraries, but
12661 # adding the `-m68020' flag to GCC prevents building anything better,
12663 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12666 # PIC is the default for these OSes.
12668 mingw* | cygwin* | os2* | pw32*)
12669 # This hack is so that the source file can tell whether it is being
12670 # built for inclusion in a dll (and should export symbols for example).
12671 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12672 # (--disable-auto-import) libraries
12673 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12675 darwin* | rhapsody*)
12676 # PIC is the default on this platform
12677 # Common symbols not allowed in MH_DYLIB files
12678 lt_prog_compiler_pic_CXX='-fno-common'
12681 # DJGPP does not support shared libraries at all
12682 lt_prog_compiler_pic_CXX=
12685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12686 # Instead, we relocate shared libraries at runtime.
12689 if test -d /usr/nec; then
12690 lt_prog_compiler_pic_CXX=-Kconform_pic
12694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12695 # not for PA HP-UX.
12700 lt_prog_compiler_pic_CXX='-fPIC'
12705 lt_prog_compiler_pic_CXX='-fPIC'
12711 # All AIX code is PIC.
12712 if test "$host_cpu" = ia64; then
12713 # AIX 5 now supports IA64 processor
12714 lt_prog_compiler_static_CXX='-Bstatic'
12716 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12720 case $cc_basename in
12722 # Green Hills C++ Compiler
12723 # _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"
12728 # PIC is the default on this platform
12729 # Common symbols not allowed in MH_DYLIB files
12730 case $cc_basename in
12732 lt_prog_compiler_pic_CXX='-qnocommon'
12733 lt_prog_compiler_wl_CXX='-Wl,'
12738 case $cc_basename in
12740 lt_prog_compiler_pic_CXX='-KPIC'
12743 # Green Hills C++ Compiler
12744 lt_prog_compiler_pic_CXX='-pic'
12750 freebsd* | dragonfly*)
12751 # FreeBSD uses GNU C++
12753 hpux9* | hpux10* | hpux11*)
12754 case $cc_basename in
12756 lt_prog_compiler_wl_CXX='-Wl,'
12757 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12758 if test "$host_cpu" != ia64; then
12759 lt_prog_compiler_pic_CXX='+Z'
12763 lt_prog_compiler_wl_CXX='-Wl,'
12764 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12770 lt_prog_compiler_pic_CXX='+Z'
12779 # This is c89, which is MS Visual C++ (no shared libs)
12780 # Anyone wants to do a port?
12782 irix5* | irix6* | nonstopux*)
12783 case $cc_basename in
12785 lt_prog_compiler_wl_CXX='-Wl,'
12786 lt_prog_compiler_static_CXX='-non_shared'
12787 # CC pic flag -KPIC is the default.
12793 linux* | k*bsd*-gnu)
12794 case $cc_basename in
12797 lt_prog_compiler_wl_CXX='--backend -Wl,'
12798 lt_prog_compiler_pic_CXX='-fPIC'
12802 lt_prog_compiler_wl_CXX='-Wl,'
12803 lt_prog_compiler_pic_CXX='-KPIC'
12804 lt_prog_compiler_static_CXX='-static'
12807 # Portland Group C++ compiler.
12808 lt_prog_compiler_wl_CXX='-Wl,'
12809 lt_prog_compiler_pic_CXX='-fpic'
12810 lt_prog_compiler_static_CXX='-Bstatic'
12814 # Make sure the PIC flag is empty. It appears that all Alpha
12815 # Linux and Compaq Tru64 Unix objects are PIC.
12816 lt_prog_compiler_pic_CXX=
12817 lt_prog_compiler_static_CXX='-non_shared'
12820 case `$CC -V 2>&1 | sed 5q` in
12823 lt_prog_compiler_pic_CXX='-KPIC'
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 lt_prog_compiler_wl_CXX='-Qoption ld '
12836 case $cc_basename in
12838 lt_prog_compiler_pic_CXX='-W c,exportall'
12844 netbsd* | netbsdelf*-gnu)
12846 osf3* | osf4* | osf5*)
12847 case $cc_basename in
12849 lt_prog_compiler_wl_CXX='--backend -Wl,'
12852 # Rational C++ 2.4.1
12853 lt_prog_compiler_pic_CXX='-pic'
12856 # Digital/Compaq C++
12857 lt_prog_compiler_wl_CXX='-Wl,'
12858 # Make sure the PIC flag is empty. It appears that all Alpha
12859 # Linux and Compaq Tru64 Unix objects are PIC.
12860 lt_prog_compiler_pic_CXX=
12861 lt_prog_compiler_static_CXX='-non_shared'
12870 case $cc_basename in
12872 # Sun C++ 4.2, 5.x and Centerline C++
12873 lt_prog_compiler_pic_CXX='-KPIC'
12874 lt_prog_compiler_static_CXX='-Bstatic'
12875 lt_prog_compiler_wl_CXX='-Qoption ld '
12878 # Green Hills C++ Compiler
12879 lt_prog_compiler_pic_CXX='-PIC'
12886 case $cc_basename in
12889 lt_prog_compiler_pic_CXX='-pic'
12890 lt_prog_compiler_static_CXX='-Bstatic'
12894 lt_prog_compiler_pic_CXX='-pic'
12901 case $cc_basename in
12903 # NonStop-UX NCC 3.20
12904 lt_prog_compiler_pic_CXX='-KPIC'
12910 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12911 case $cc_basename in
12913 lt_prog_compiler_wl_CXX='-Wl,'
12914 lt_prog_compiler_pic_CXX='-KPIC'
12915 lt_prog_compiler_static_CXX='-Bstatic'
12922 lt_prog_compiler_can_build_shared_CXX=no
12927 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12928 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12931 # Check to make sure the PIC flag actually works.
12933 if test -n "$lt_prog_compiler_pic_CXX"; then
12935 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12936 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12937 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 lt_cv_prog_compiler_pic_works_CXX=no
12941 ac_outfile=conftest.$ac_objext
12942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12944 # Insert the option either (1) after the last *FLAGS variable, or
12945 # (2) before a word containing "conftest.", or (3) at the end.
12946 # Note that $ac_compile itself does not contain backslashes and begins
12947 # with a dollar sign (not a hyphen), so the echo should work correctly.
12948 # The option is referenced via a variable to avoid confusing sed.
12949 lt_compile=`echo "$ac_compile" | $SED \
12950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952 -e 's:$: $lt_compiler_flag:'`
12953 (eval echo "\"\$as_me:12954: $lt_compile\"" >&5)
12954 (eval "$lt_compile" 2>conftest.err)
12956 cat conftest.err >&5
12957 echo "$as_me:12958: \$? = $ac_status" >&5
12958 if (exit $ac_status) && test -s "$ac_outfile"; then
12959 # The compiler can only warn and ignore the option if not recognized
12960 # So say no if there are warnings other than the usual output.
12961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964 lt_cv_prog_compiler_pic_works_CXX=yes
12970 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12971 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12973 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12974 case $lt_prog_compiler_pic_CXX in
12976 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12979 lt_prog_compiler_pic_CXX=
12980 lt_prog_compiler_can_build_shared_CXX=no
12985 # For platforms which do not support PIC, -DPIC is meaningless:
12987 lt_prog_compiler_pic_CXX=
12990 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12995 # Check to make sure the static flag actually works.
12997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12998 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12999 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 lt_cv_prog_compiler_static_works_CXX=no
13004 save_LDFLAGS="$LDFLAGS"
13005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13008 # The linker can only warn and ignore the option if not recognized
13009 # So say no if there are warnings
13010 if test -s conftest.err; then
13011 # Append any errors to the config.log.
13012 cat conftest.err 1>&5
13013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015 if diff conftest.exp conftest.er2 >/dev/null; then
13016 lt_cv_prog_compiler_static_works_CXX=yes
13019 lt_cv_prog_compiler_static_works_CXX=yes
13023 LDFLAGS="$save_LDFLAGS"
13026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13027 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13032 lt_prog_compiler_static_CXX=
13036 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13037 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13038 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 lt_cv_prog_compiler_c_o_CXX=no
13042 $rm -r conftest 2>/dev/null
13046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13048 lt_compiler_flag="-o out/conftest2.$ac_objext"
13049 # Insert the option either (1) after the last *FLAGS variable, or
13050 # (2) before a word containing "conftest.", or (3) at the end.
13051 # Note that $ac_compile itself does not contain backslashes and begins
13052 # with a dollar sign (not a hyphen), so the echo should work correctly.
13053 lt_compile=`echo "$ac_compile" | $SED \
13054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056 -e 's:$: $lt_compiler_flag:'`
13057 (eval echo "\"\$as_me:13058: $lt_compile\"" >&5)
13058 (eval "$lt_compile" 2>out/conftest.err)
13060 cat out/conftest.err >&5
13061 echo "$as_me:13062: \$? = $ac_status" >&5
13062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13064 # The compiler can only warn and ignore the option if not recognized
13065 # So say no if there are warnings
13066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13069 lt_cv_prog_compiler_c_o_CXX=yes
13074 # SGI C++ compiler will create directory out/ii_files/ for
13075 # template instantiation
13076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13077 $rm out/* && rmdir out
13083 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13084 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13087 hard_links="nottested"
13088 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13089 # do not overwrite the value of need_locks provided by the user
13090 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13096 ln conftest.a conftest.b 2>&5 || hard_links=no
13097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13098 { echo "$as_me:$LINENO: result: $hard_links" >&5
13099 echo "${ECHO_T}$hard_links" >&6; }
13100 if test "$hard_links" = no; then
13101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13109 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13110 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13115 # If we're using GNU nm, then we don't want the "-C" option.
13116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13118 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'
13120 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'
13124 export_symbols_cmds_CXX="$ltdll_cmds"
13127 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'
13129 linux* | k*bsd*-gnu)
13130 link_all_deplibs_CXX=no
13133 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13136 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13138 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13139 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13140 test "$ld_shlibs_CXX" = no && can_build_shared=no
13143 # Do we need to explicitly link libc?
13145 case "x$archive_cmds_need_lc_CXX" in
13147 # Assume -lc should be added
13148 archive_cmds_need_lc_CXX=yes
13150 if test "$enable_shared" = yes && test "$GCC" = yes; then
13151 case $archive_cmds_CXX in
13153 # FIXME: we may have to deal with multi-command sequences.
13156 # Test whether the compiler implicitly links with -lc since on some
13157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13158 # to ld, don't add -lc before -lgcc.
13159 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13165 (eval $ac_compile) 2>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } 2>conftest.err; then
13171 libobjs=conftest.$ac_objext
13173 wl=$lt_prog_compiler_wl_CXX
13174 pic_flag=$lt_prog_compiler_pic_CXX
13180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13181 allow_undefined_flag_CXX=
13182 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13183 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }
13188 archive_cmds_need_lc_CXX=no
13190 archive_cmds_need_lc_CXX=yes
13192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13194 cat conftest.err 1>&5
13197 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13198 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13205 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13207 library_names_spec=
13208 libname_spec='lib$name'
13212 postuninstall_cmds=
13216 shlibpath_overrides_runpath=unknown
13218 dynamic_linker="$host_os ld.so"
13219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13221 need_lib_prefix=unknown
13222 hardcode_into_libs=no
13224 # when you set need_version to no, make sure it does not cause -set_version
13225 # flags to be left without arguments
13226 need_version=unknown
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13232 shlibpath_var=LIBPATH
13234 # AIX 3 has no versioning support, so we append a major version to the name.
13235 soname_spec='${libname}${release}${shared_ext}$major'
13242 hardcode_into_libs=yes
13243 if test "$host_cpu" = ia64; then
13244 # AIX 5 supports IA64
13245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13246 shlibpath_var=LD_LIBRARY_PATH
13248 # With GCC up to 2.95.x, collect2 would create an import file
13249 # for dependence libraries. The import file would start with
13250 # the line `#! .'. This would cause the generated library to
13251 # depend on `.', always an invalid library. This was fixed in
13252 # development snapshots of GCC prior to 3.0.
13254 aix4 | aix4.[01] | aix4.[01].*)
13255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13260 can_build_shared=no
13264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13265 # soname into executable. Probably we can add versioning support to
13266 # collect2, so additional links can be useful in future.
13267 if test "$aix_use_runtimelinking" = yes; then
13268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13269 # instead of lib<name>.a to let people know that these are not
13270 # typical AIX shared libraries.
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13273 # We preserve .a as extension for shared libraries through AIX4.2
13274 # and later when we are not doing run time linking.
13275 library_names_spec='${libname}${release}.a $libname.a'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13278 shlibpath_var=LIBPATH
13283 library_names_spec='$libname.ixlibrary $libname.a'
13284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13285 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'
13289 library_names_spec='${libname}${shared_ext}'
13290 dynamic_linker="$host_os ld.so"
13291 shlibpath_var=LIBRARY_PATH
13297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13300 shlibpath_var=LD_LIBRARY_PATH
13301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13303 # the default ld.so.conf also contains /usr/contrib/lib and
13304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13305 # libtool to hard-code these into programs
13308 cygwin* | mingw* | pw32*)
13309 version_type=windows
13314 case $GCC,$host_os in
13315 yes,cygwin* | yes,mingw* | yes,pw32*)
13316 library_names_spec='$libname.dll.a'
13317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13318 postinstall_cmds='base_file=`basename \${file}`~
13319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13320 dldir=$destdir/`dirname \$dlpath`~
13321 test -d \$dldir || mkdir -p \$dldir~
13322 $install_prog $dir/$dlname \$dldir/$dlname~
13323 chmod a+x \$dldir/$dlname'
13324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13325 dlpath=$dir/\$dldll~
13327 shlibpath_overrides_runpath=yes
13331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13336 # MinGW DLLs use traditional 'lib' prefix
13337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13340 # It is most probably a Windows format PATH printed by
13341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13342 # path with ; separators, and with drive letters. We can handle the
13343 # drive letters (cygwin fileutils understands them), so leave them,
13344 # especially as we might pass files found there to a mingw objdump,
13345 # which wouldn't understand a cygwinified path. Ahh.
13346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13352 # pw32 DLLs use 'pw' prefix rather than 'lib'
13353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13362 dynamic_linker='Win32 ld.exe'
13363 # FIXME: first we should search . and the directory the executable is in
13367 darwin* | rhapsody*)
13368 dynamic_linker="$host_os dyld"
13369 version_type=darwin
13372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13373 soname_spec='${libname}${release}${major}$shared_ext'
13374 shlibpath_overrides_runpath=yes
13375 shlibpath_var=DYLD_LIBRARY_PATH
13376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13386 soname_spec='${libname}${release}${shared_ext}$major'
13387 shlibpath_var=LD_LIBRARY_PATH
13394 freebsd* | dragonfly*)
13395 # DragonFly does not have aout. When/if they implement a new
13396 # versioning mechanism, adjust this.
13397 if test -x /usr/bin/objformat; then
13398 objformat=`/usr/bin/objformat`
13401 freebsd[123]*) objformat=aout ;;
13402 *) objformat=elf ;;
13405 version_type=freebsd-$objformat
13406 case $version_type in
13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13417 shlibpath_var=LD_LIBRARY_PATH
13420 shlibpath_overrides_runpath=yes
13422 freebsd3.[01]* | freebsdelf3.[01]*)
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13431 *) # from 4.6 on, and DragonFly
13432 shlibpath_overrides_runpath=yes
13433 hardcode_into_libs=yes
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 hardcode_into_libs=yes
13448 hpux9* | hpux10* | hpux11*)
13449 # Give a soname corresponding to the major version so that dld.sl refuses to
13450 # link against other versions.
13457 hardcode_into_libs=yes
13458 dynamic_linker="$host_os dld.so"
13459 shlibpath_var=LD_LIBRARY_PATH
13460 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 if test "X$HPUX_IA64_MODE" = X32; then
13464 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13466 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13472 hardcode_into_libs=yes
13473 dynamic_linker="$host_os dld.sl"
13474 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 soname_spec='${libname}${release}${shared_ext}$major'
13478 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13479 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13483 dynamic_linker="$host_os dld.sl"
13484 shlibpath_var=SHLIB_PATH
13485 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13490 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13491 postinstall_cmds='chmod 555 $lib'
13498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13499 soname_spec='${libname}${release}${shared_ext}$major'
13500 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13501 shlibpath_var=LD_LIBRARY_PATH
13502 shlibpath_overrides_runpath=no
13503 hardcode_into_libs=yes
13506 irix5* | irix6* | nonstopux*)
13508 nonstopux*) version_type=nonstopux ;;
13510 if test "$lt_cv_prog_gnu_ld" = yes; then
13518 soname_spec='${libname}${release}${shared_ext}$major'
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13521 irix5* | nonstopux*)
13522 libsuff= shlibsuff=
13525 case $LD in # libtool.m4 will add one of these switches to LD
13526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13527 libsuff= shlibsuff= libmagic=32-bit;;
13528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13529 libsuff=32 shlibsuff=N32 libmagic=N32;;
13530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13532 *) libsuff= shlibsuff= libmagic=never-match;;
13536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13537 shlibpath_overrides_runpath=no
13538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13540 hardcode_into_libs=yes
13543 # No shared lib support for Linux oldld, aout, or coff.
13544 linux*oldld* | linux*aout* | linux*coff*)
13548 # This must be Linux ELF.
13549 linux* | k*bsd*-gnu)
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554 soname_spec='${libname}${release}${shared_ext}$major'
13555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=no
13558 # This implies no fast_install, which is unacceptable.
13559 # Some rework will be needed to allow for fast_install
13560 # before this can be enabled.
13561 hardcode_into_libs=yes
13563 # Append ld.so.conf contents to the search path
13564 if test -f /etc/ld.so.conf; then
13565 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13566 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13569 # We used to test for /lib/ld.so.1 and disable shared libraries on
13570 # powerpc, because MkLinux only supported shared libraries with the
13571 # GNU dynamic linker. Since this was broken with cross compilers,
13572 # most powerpc-linux boxes support dynamic linking these days and
13573 # people can always --disable-shared, the test was removed, and we
13574 # assume the GNU/Linux dynamic linker is in use.
13575 dynamic_linker='GNU/Linux ld.so'
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=no
13586 hardcode_into_libs=yes
13587 dynamic_linker='NetBSD ld.elf_so'
13594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13597 dynamic_linker='NetBSD (a.out) ld.so'
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 dynamic_linker='NetBSD ld.elf_so'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 shlibpath_overrides_runpath=yes
13605 hardcode_into_libs=yes
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611 shlibpath_var=LD_LIBRARY_PATH
13612 shlibpath_overrides_runpath=yes
13619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13620 soname_spec='${libname}${release}${shared_ext}$major'
13621 shlibpath_var=LD_LIBRARY_PATH
13622 shlibpath_overrides_runpath=yes
13627 sys_lib_dlsearch_path_spec="/usr/lib"
13629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13632 *) need_version=no ;;
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13639 openbsd2.[89] | openbsd2.[89].*)
13640 shlibpath_overrides_runpath=no
13643 shlibpath_overrides_runpath=yes
13647 shlibpath_overrides_runpath=yes
13652 libname_spec='$name'
13655 library_names_spec='$libname${shared_ext} $libname.a'
13656 dynamic_linker='OS/2 ld.exe'
13657 shlibpath_var=LIBPATH
13660 osf3* | osf4* | osf5*)
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13680 soname_spec='${libname}${release}${shared_ext}$major'
13681 shlibpath_var=LD_LIBRARY_PATH
13682 shlibpath_overrides_runpath=yes
13683 hardcode_into_libs=yes
13684 # ldd complains unless libraries are executable
13685 postinstall_cmds='chmod +x $lib'
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 shlibpath_overrides_runpath=yes
13694 if test "$with_gnu_ld" = yes; then
13702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13703 soname_spec='${libname}${release}${shared_ext}$major'
13704 shlibpath_var=LD_LIBRARY_PATH
13705 case $host_vendor in
13707 shlibpath_overrides_runpath=no
13709 export_dynamic_flag_spec='${wl}-Blargedynsym'
13710 runpath_var=LD_RUN_PATH
13718 shlibpath_overrides_runpath=no
13719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13725 if test -d /usr/nec ;then
13727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13728 soname_spec='$libname${shared_ext}.$major'
13729 shlibpath_var=LD_LIBRARY_PATH
13733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13734 version_type=freebsd-elf
13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13738 soname_spec='${libname}${release}${shared_ext}$major'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 hardcode_into_libs=yes
13741 if test "$with_gnu_ld" = yes; then
13742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13743 shlibpath_overrides_runpath=no
13745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13746 shlibpath_overrides_runpath=yes
13749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13753 sys_lib_dlsearch_path_spec='/usr/lib'
13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13760 shlibpath_var=LD_LIBRARY_PATH
13767 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13768 echo "${ECHO_T}$dynamic_linker" >&6; }
13769 test "$dynamic_linker" = no && can_build_shared=no
13771 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13777 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13778 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13784 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13787 if test "$GCC" = yes; then
13788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13791 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13792 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13793 hardcode_action_CXX=
13794 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13795 test -n "$runpath_var_CXX" || \
13796 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13798 # We can hardcode non-existant directories.
13799 if test "$hardcode_direct_CXX" != no &&
13800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13801 # have to relink, otherwise we might link with an installed library
13802 # when we should be linking with a yet-to-be-installed one
13803 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13804 test "$hardcode_minus_L_CXX" != no; then
13805 # Linking always hardcodes the temporary library directory.
13806 hardcode_action_CXX=relink
13808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13809 hardcode_action_CXX=immediate
13812 # We cannot hardcode anything, or else we can only hardcode existing
13814 hardcode_action_CXX=unsupported
13816 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13817 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13819 if test "$hardcode_action_CXX" = relink; then
13820 # Fast installation is not supported
13821 enable_fast_install=no
13822 elif test "$shlibpath_overrides_runpath" = yes ||
13823 test "$enable_shared" = no; then
13824 # Fast installation is not necessary
13825 enable_fast_install=needless
13829 # The else clause should only fire when bootstrapping the
13830 # libtool distribution, otherwise you forgot to ship ltmain.sh
13831 # with your package, and you will get complaints that there are
13832 # no rules to generate ltmain.sh.
13833 if test -f "$ltmain"; then
13834 # See if we are running on zsh, and set the options which allow our commands through
13835 # without removal of \ escapes.
13836 if test -n "${ZSH_VERSION+set}" ; then
13837 setopt NO_GLOB_SUBST
13839 # Now quote all the things that may contain metacharacters while being
13840 # careful not to overquote the AC_SUBSTed values. We take copies of the
13841 # variables and quote the copies for generation of the libtool script.
13842 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13844 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13845 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13846 deplibs_check_method reload_flag reload_cmds need_locks \
13847 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13848 lt_cv_sys_global_symbol_to_c_name_address \
13849 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13850 old_postinstall_cmds old_postuninstall_cmds \
13854 lt_prog_compiler_wl_CXX \
13855 lt_prog_compiler_pic_CXX \
13856 lt_prog_compiler_static_CXX \
13857 lt_prog_compiler_no_builtin_flag_CXX \
13858 export_dynamic_flag_spec_CXX \
13859 thread_safe_flag_spec_CXX \
13860 whole_archive_flag_spec_CXX \
13861 enable_shared_with_static_runtimes_CXX \
13862 old_archive_cmds_CXX \
13863 old_archive_from_new_cmds_CXX \
13864 predep_objects_CXX \
13865 postdep_objects_CXX \
13868 compiler_lib_search_path_CXX \
13869 compiler_lib_search_dirs_CXX \
13871 archive_expsym_cmds_CXX \
13872 postinstall_cmds_CXX \
13873 postuninstall_cmds_CXX \
13874 old_archive_from_expsyms_cmds_CXX \
13875 allow_undefined_flag_CXX \
13876 no_undefined_flag_CXX \
13877 export_symbols_cmds_CXX \
13878 hardcode_libdir_flag_spec_CXX \
13879 hardcode_libdir_flag_spec_ld_CXX \
13880 hardcode_libdir_separator_CXX \
13881 hardcode_automatic_CXX \
13883 module_expsym_cmds_CXX \
13884 lt_cv_prog_compiler_c_o_CXX \
13885 fix_srcfile_path_CXX \
13886 exclude_expsyms_CXX \
13887 include_expsyms_CXX; do
13890 old_archive_cmds_CXX | \
13891 old_archive_from_new_cmds_CXX | \
13892 archive_cmds_CXX | \
13893 archive_expsym_cmds_CXX | \
13894 module_cmds_CXX | \
13895 module_expsym_cmds_CXX | \
13896 old_archive_from_expsyms_cmds_CXX | \
13897 export_symbols_cmds_CXX | \
13898 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13899 postinstall_cmds | postuninstall_cmds | \
13900 old_postinstall_cmds | old_postuninstall_cmds | \
13901 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13902 # Double-quote double-evaled strings.
13903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13912 *'\$0 --fallback-echo"')
13913 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13919 cat <<__EOF__ >> "$cfgfile"
13920 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13924 # Shell to use when invoking shell scripts.
13927 # Whether or not to build shared libraries.
13928 build_libtool_libs=$enable_shared
13930 # Whether or not to build static libraries.
13931 build_old_libs=$enable_static
13933 # Whether or not to add -lc for building shared libraries.
13934 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13936 # Whether or not to disallow shared libs when runtime libs are static
13937 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13939 # Whether or not to optimize for fast installation.
13940 fast_install=$enable_fast_install
13943 host_alias=$host_alias
13947 # The build system.
13948 build_alias=$build_alias
13952 # An echo program that does not interpret backslashes.
13957 AR_FLAGS=$lt_AR_FLAGS
13962 # LTCC compiler flags.
13963 LTCFLAGS=$lt_LTCFLAGS
13965 # A language-specific compiler.
13966 CC=$lt_compiler_CXX
13968 # Is the compiler the GNU C compiler?
13974 # The linker used to build libraries.
13977 # Whether we need hard or soft links.
13980 # A BSD-compatible nm program.
13983 # A symbol stripping program
13986 # Used to examine libraries when file_magic_cmd begins "file"
13987 MAGIC_CMD=$MAGIC_CMD
13989 # Used on cygwin: DLL creation program.
13992 # Used on cygwin: object dumper.
13995 # Used on cygwin: assembler.
13998 # The name of the directory that contains temporary libtool files.
14001 # How to create reloadable object files.
14002 reload_flag=$lt_reload_flag
14003 reload_cmds=$lt_reload_cmds
14005 # How to pass a linker flag through the compiler.
14006 wl=$lt_lt_prog_compiler_wl_CXX
14008 # Object file suffix (normally "o").
14009 objext="$ac_objext"
14011 # Old archive suffix (normally "a").
14014 # Shared library suffix (normally ".so").
14015 shrext_cmds='$shrext_cmds'
14017 # Executable file suffix (normally "").
14020 # Additional compiler flags for building library objects.
14021 pic_flag=$lt_lt_prog_compiler_pic_CXX
14024 # What is the maximum length of a command?
14025 max_cmd_len=$lt_cv_sys_max_cmd_len
14027 # Does compiler simultaneously support -c and -o options?
14028 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14030 # Must we lock files when doing compilation?
14031 need_locks=$lt_need_locks
14033 # Do we need the lib prefix for modules?
14034 need_lib_prefix=$need_lib_prefix
14036 # Do we need a version for libraries?
14037 need_version=$need_version
14039 # Whether dlopen is supported.
14040 dlopen_support=$enable_dlopen
14042 # Whether dlopen of programs is supported.
14043 dlopen_self=$enable_dlopen_self
14045 # Whether dlopen of statically linked programs is supported.
14046 dlopen_self_static=$enable_dlopen_self_static
14048 # Compiler flag to prevent dynamic linking.
14049 link_static_flag=$lt_lt_prog_compiler_static_CXX
14051 # Compiler flag to turn off builtin functions.
14052 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14054 # Compiler flag to allow reflexive dlopens.
14055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14057 # Compiler flag to generate shared objects directly from archives.
14058 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14060 # Compiler flag to generate thread-safe objects.
14061 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14063 # Library versioning type.
14064 version_type=$version_type
14066 # Format of library name prefix.
14067 libname_spec=$lt_libname_spec
14069 # List of archive names. First name is the real one, the rest are links.
14070 # The last name is the one that the linker finds with -lNAME.
14071 library_names_spec=$lt_library_names_spec
14073 # The coded name of the library, if different from the real name.
14074 soname_spec=$lt_soname_spec
14076 # Commands used to build and install an old-style archive.
14078 old_archive_cmds=$lt_old_archive_cmds_CXX
14079 old_postinstall_cmds=$lt_old_postinstall_cmds
14080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14082 # Create an old-style archive from a shared archive.
14083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14085 # Create a temporary old-style archive to link instead of a shared archive.
14086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14088 # Commands used to build and install a shared archive.
14089 archive_cmds=$lt_archive_cmds_CXX
14090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14091 postinstall_cmds=$lt_postinstall_cmds
14092 postuninstall_cmds=$lt_postuninstall_cmds
14094 # Commands used to build a loadable module (assumed same as above if empty)
14095 module_cmds=$lt_module_cmds_CXX
14096 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14098 # Commands to strip libraries.
14099 old_striplib=$lt_old_striplib
14100 striplib=$lt_striplib
14102 # Dependencies to place before the objects being linked to create a
14104 predep_objects=$lt_predep_objects_CXX
14106 # Dependencies to place after the objects being linked to create a
14108 postdep_objects=$lt_postdep_objects_CXX
14110 # Dependencies to place before the objects being linked to create a
14112 predeps=$lt_predeps_CXX
14114 # Dependencies to place after the objects being linked to create a
14116 postdeps=$lt_postdeps_CXX
14118 # The directories searched by this compiler when creating a shared
14120 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14122 # The library search path used internally by the compiler when linking
14123 # a shared library.
14124 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14126 # Method to check whether dependent libraries are shared objects.
14127 deplibs_check_method=$lt_deplibs_check_method
14129 # Command to use when deplibs_check_method == file_magic.
14130 file_magic_cmd=$lt_file_magic_cmd
14132 # Flag that allows shared libraries with undefined symbols to be built.
14133 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14135 # Flag that forces no undefined symbols.
14136 no_undefined_flag=$lt_no_undefined_flag_CXX
14138 # Commands used to finish a libtool library installation in a directory.
14139 finish_cmds=$lt_finish_cmds
14141 # Same as above, but a single script fragment to be evaled but not shown.
14142 finish_eval=$lt_finish_eval
14144 # Take the output of nm and produce a listing of raw symbols and C names.
14145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14147 # Transform the output of nm in a proper C declaration
14148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14150 # Transform the output of nm in a C name address pair
14151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14153 # This is the shared library runtime path variable.
14154 runpath_var=$runpath_var
14156 # This is the shared library path variable.
14157 shlibpath_var=$shlibpath_var
14159 # Is shlibpath searched before the hard-coded library search path?
14160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14162 # How to hardcode a shared library path into an executable.
14163 hardcode_action=$hardcode_action_CXX
14165 # Whether we should hardcode library paths into libraries.
14166 hardcode_into_libs=$hardcode_into_libs
14168 # Flag to hardcode \$libdir into a binary during linking.
14169 # This must work even if \$libdir does not exist.
14170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14172 # If ld is used when linking, flag to hardcode \$libdir into
14173 # a binary during linking. This must work even if \$libdir does
14175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14177 # Whether we need a single -rpath flag with a separated argument.
14178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_direct=$hardcode_direct_CXX
14184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14185 # resulting binary.
14186 hardcode_minus_L=$hardcode_minus_L_CXX
14188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14189 # the resulting binary.
14190 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14192 # Set to yes if building a shared library automatically hardcodes DIR into the library
14193 # and all subsequent libraries and executables linked against it.
14194 hardcode_automatic=$hardcode_automatic_CXX
14196 # Variables whose values should be saved in libtool wrapper scripts and
14197 # restored at relink time.
14198 variables_saved_for_relink="$variables_saved_for_relink"
14200 # Whether libtool must link a program against all its dependency libraries.
14201 link_all_deplibs=$link_all_deplibs_CXX
14203 # Compile-time system search path for libraries
14204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14206 # Run-time system search path for libraries
14207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14209 # Fix the shell variable \$srcfile for the compiler.
14210 fix_srcfile_path=$lt_fix_srcfile_path
14212 # Set to yes if exported symbols are required.
14213 always_export_symbols=$always_export_symbols_CXX
14215 # The commands to list exported symbols.
14216 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14218 # The commands to extract the exported symbol list from a shared archive.
14219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14221 # Symbols that should not be listed in the preloaded symbols.
14222 exclude_expsyms=$lt_exclude_expsyms_CXX
14224 # Symbols that must always be exported.
14225 include_expsyms=$lt_include_expsyms_CXX
14227 # ### END LIBTOOL TAG CONFIG: $tagname
14233 # If there is no Makefile yet, we rely on a make rule to execute
14234 # `config.status --recheck' to rerun these tests and create the
14235 # libtool script then.
14236 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14237 if test -f "$ltmain_in"; then
14238 test -f Makefile && make "$ltmain"
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14253 with_gnu_ldcxx=$with_gnu_ld
14254 with_gnu_ld=$lt_save_with_gnu_ld
14255 lt_cv_path_LDCXX=$lt_cv_path_LD
14256 lt_cv_path_LD=$lt_save_path_LD
14257 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14258 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14266 if test -n "$F77" && test "X$F77" != "Xno"; then
14269 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14270 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14274 archive_cmds_need_lc_F77=no
14275 allow_undefined_flag_F77=
14276 always_export_symbols_F77=no
14277 archive_expsym_cmds_F77=
14278 export_dynamic_flag_spec_F77=
14279 hardcode_direct_F77=no
14280 hardcode_libdir_flag_spec_F77=
14281 hardcode_libdir_flag_spec_ld_F77=
14282 hardcode_libdir_separator_F77=
14283 hardcode_minus_L_F77=no
14284 hardcode_automatic_F77=no
14286 module_expsym_cmds_F77=
14287 link_all_deplibs_F77=unknown
14288 old_archive_cmds_F77=$old_archive_cmds
14289 no_undefined_flag_F77=
14290 whole_archive_flag_spec_F77=
14291 enable_shared_with_static_runtimes_F77=no
14293 # Source file extension for f77 test sources.
14296 # Object file extension for compiled f77 test sources.
14300 # Code to be used in simple compile tests
14301 lt_simple_compile_test_code="\
14307 # Code to be used in simple link tests
14308 lt_simple_link_test_code="\
14313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14315 # If no C compiler was specified, use CC.
14318 # If no C compiler flags were specified, use CFLAGS.
14319 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14321 # Allow CC to be a program name with arguments.
14325 # save warnings/boilerplate of simple test code
14326 ac_outfile=conftest.$ac_objext
14327 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14328 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329 _lt_compiler_boilerplate=`cat conftest.err`
14332 ac_outfile=conftest.$ac_objext
14333 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14334 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14335 _lt_linker_boilerplate=`cat conftest.err`
14339 # Allow CC to be a program name with arguments.
14344 for cc_temp in $compiler""; do
14346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14355 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14356 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14357 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14358 echo "${ECHO_T}$can_build_shared" >&6; }
14360 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14361 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14362 test "$can_build_shared" = "no" && enable_shared=no
14364 # On AIX, shared libraries and static libraries use the same namespace, and
14365 # are all built from PIC.
14368 test "$enable_shared" = yes && enable_static=no
14369 if test -n "$RANLIB"; then
14370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14371 postinstall_cmds='$RANLIB $lib'
14375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14376 test "$enable_shared" = yes && enable_static=no
14380 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14381 echo "${ECHO_T}$enable_shared" >&6; }
14383 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14385 # Make sure either enable_shared or enable_static is yes.
14386 test "$enable_shared" = yes || enable_static=yes
14387 { echo "$as_me:$LINENO: result: $enable_static" >&5
14388 echo "${ECHO_T}$enable_static" >&6; }
14393 lt_prog_compiler_wl_F77=
14394 lt_prog_compiler_pic_F77=
14395 lt_prog_compiler_static_F77=
14397 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14400 if test "$GCC" = yes; then
14401 lt_prog_compiler_wl_F77='-Wl,'
14402 lt_prog_compiler_static_F77='-static'
14406 # All AIX code is PIC.
14407 if test "$host_cpu" = ia64; then
14408 # AIX 5 now supports IA64 processor
14409 lt_prog_compiler_static_F77='-Bstatic'
14414 # FIXME: we need at least 68020 code to build shared libraries, but
14415 # adding the `-m68020' flag to GCC prevents building anything better,
14417 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14421 # PIC is the default for these OSes.
14424 mingw* | cygwin* | pw32* | os2*)
14425 # This hack is so that the source file can tell whether it is being
14426 # built for inclusion in a dll (and should export symbols for example).
14427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14428 # (--disable-auto-import) libraries
14429 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14432 darwin* | rhapsody*)
14433 # PIC is the default on this platform
14434 # Common symbols not allowed in MH_DYLIB files
14435 lt_prog_compiler_pic_F77='-fno-common'
14439 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14440 # Instead, we relocate shared libraries at runtime.
14444 # Just because we use GCC doesn't mean we suddenly get shared libraries
14445 # on systems that don't support them.
14446 lt_prog_compiler_can_build_shared_F77=no
14451 if test -d /usr/nec; then
14452 lt_prog_compiler_pic_F77=-Kconform_pic
14457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14458 # not for PA HP-UX.
14464 lt_prog_compiler_pic_F77='-fPIC'
14470 lt_prog_compiler_pic_F77='-fPIC'
14474 # PORTME Check for flag to pass linker flags through the system compiler.
14477 lt_prog_compiler_wl_F77='-Wl,'
14478 if test "$host_cpu" = ia64; then
14479 # AIX 5 now supports IA64 processor
14480 lt_prog_compiler_static_F77='-Bstatic'
14482 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14486 # PIC is the default on this platform
14487 # Common symbols not allowed in MH_DYLIB files
14488 case $cc_basename in
14490 lt_prog_compiler_pic_F77='-qnocommon'
14491 lt_prog_compiler_wl_F77='-Wl,'
14496 mingw* | cygwin* | pw32* | os2*)
14497 # This hack is so that the source file can tell whether it is being
14498 # built for inclusion in a dll (and should export symbols for example).
14499 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14502 hpux9* | hpux10* | hpux11*)
14503 lt_prog_compiler_wl_F77='-Wl,'
14504 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14505 # not for PA HP-UX.
14511 lt_prog_compiler_pic_F77='+Z'
14514 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14515 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14518 irix5* | irix6* | nonstopux*)
14519 lt_prog_compiler_wl_F77='-Wl,'
14520 # PIC (with -KPIC) is the default.
14521 lt_prog_compiler_static_F77='-non_shared'
14525 lt_prog_compiler_pic_F77='-KPIC'
14526 lt_prog_compiler_static_F77='-Bstatic'
14529 linux* | k*bsd*-gnu)
14530 case $cc_basename in
14532 lt_prog_compiler_wl_F77='-Wl,'
14533 lt_prog_compiler_pic_F77='-KPIC'
14534 lt_prog_compiler_static_F77='-static'
14536 pgcc* | pgf77* | pgf90* | pgf95*)
14537 # Portland Group compilers (*not* the Pentium gcc compiler,
14538 # which looks to be a dead project)
14539 lt_prog_compiler_wl_F77='-Wl,'
14540 lt_prog_compiler_pic_F77='-fpic'
14541 lt_prog_compiler_static_F77='-Bstatic'
14544 lt_prog_compiler_wl_F77='-Wl,'
14545 # All Alpha code is PIC.
14546 lt_prog_compiler_static_F77='-non_shared'
14549 case `$CC -V 2>&1 | sed 5q` in
14552 lt_prog_compiler_pic_F77='-KPIC'
14553 lt_prog_compiler_static_F77='-Bstatic'
14554 lt_prog_compiler_wl_F77='-Wl,'
14557 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14558 lt_prog_compiler_pic_F77='-KPIC'
14559 lt_prog_compiler_static_F77='-Bstatic'
14560 lt_prog_compiler_wl_F77=''
14567 osf3* | osf4* | osf5*)
14568 lt_prog_compiler_wl_F77='-Wl,'
14569 # All OSF/1 code is PIC.
14570 lt_prog_compiler_static_F77='-non_shared'
14574 lt_prog_compiler_static_F77='-non_shared'
14578 lt_prog_compiler_pic_F77='-KPIC'
14579 lt_prog_compiler_static_F77='-Bstatic'
14580 case $cc_basename in
14581 f77* | f90* | f95*)
14582 lt_prog_compiler_wl_F77='-Qoption ld ';;
14584 lt_prog_compiler_wl_F77='-Wl,';;
14589 lt_prog_compiler_wl_F77='-Qoption ld '
14590 lt_prog_compiler_pic_F77='-PIC'
14591 lt_prog_compiler_static_F77='-Bstatic'
14594 sysv4 | sysv4.2uw2* | sysv4.3*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 lt_prog_compiler_pic_F77='-KPIC'
14597 lt_prog_compiler_static_F77='-Bstatic'
14601 if test -d /usr/nec ;then
14602 lt_prog_compiler_pic_F77='-Kconform_pic'
14603 lt_prog_compiler_static_F77='-Bstatic'
14607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14608 lt_prog_compiler_wl_F77='-Wl,'
14609 lt_prog_compiler_pic_F77='-KPIC'
14610 lt_prog_compiler_static_F77='-Bstatic'
14614 lt_prog_compiler_wl_F77='-Wl,'
14615 lt_prog_compiler_can_build_shared_F77=no
14619 lt_prog_compiler_pic_F77='-pic'
14620 lt_prog_compiler_static_F77='-Bstatic'
14624 lt_prog_compiler_can_build_shared_F77=no
14629 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14630 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14633 # Check to make sure the PIC flag actually works.
14635 if test -n "$lt_prog_compiler_pic_F77"; then
14637 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14638 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14639 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 lt_cv_prog_compiler_pic_works_F77=no
14643 ac_outfile=conftest.$ac_objext
14644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14645 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14646 # Insert the option either (1) after the last *FLAGS variable, or
14647 # (2) before a word containing "conftest.", or (3) at the end.
14648 # Note that $ac_compile itself does not contain backslashes and begins
14649 # with a dollar sign (not a hyphen), so the echo should work correctly.
14650 # The option is referenced via a variable to avoid confusing sed.
14651 lt_compile=`echo "$ac_compile" | $SED \
14652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14654 -e 's:$: $lt_compiler_flag:'`
14655 (eval echo "\"\$as_me:14656: $lt_compile\"" >&5)
14656 (eval "$lt_compile" 2>conftest.err)
14658 cat conftest.err >&5
14659 echo "$as_me:14660: \$? = $ac_status" >&5
14660 if (exit $ac_status) && test -s "$ac_outfile"; then
14661 # The compiler can only warn and ignore the option if not recognized
14662 # So say no if there are warnings other than the usual output.
14663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14666 lt_cv_prog_compiler_pic_works_F77=yes
14672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14673 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14675 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14676 case $lt_prog_compiler_pic_F77 in
14678 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14681 lt_prog_compiler_pic_F77=
14682 lt_prog_compiler_can_build_shared_F77=no
14687 # For platforms which do not support PIC, -DPIC is meaningless:
14689 lt_prog_compiler_pic_F77=
14692 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14697 # Check to make sure the static flag actually works.
14699 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14700 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14701 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14702 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 lt_cv_prog_compiler_static_works_F77=no
14706 save_LDFLAGS="$LDFLAGS"
14707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14708 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14710 # The linker can only warn and ignore the option if not recognized
14711 # So say no if there are warnings
14712 if test -s conftest.err; then
14713 # Append any errors to the config.log.
14714 cat conftest.err 1>&5
14715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14717 if diff conftest.exp conftest.er2 >/dev/null; then
14718 lt_cv_prog_compiler_static_works_F77=yes
14721 lt_cv_prog_compiler_static_works_F77=yes
14725 LDFLAGS="$save_LDFLAGS"
14728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14729 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14731 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14734 lt_prog_compiler_static_F77=
14738 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14739 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14740 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14743 lt_cv_prog_compiler_c_o_F77=no
14744 $rm -r conftest 2>/dev/null
14748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750 lt_compiler_flag="-o out/conftest2.$ac_objext"
14751 # Insert the option either (1) after the last *FLAGS variable, or
14752 # (2) before a word containing "conftest.", or (3) at the end.
14753 # Note that $ac_compile itself does not contain backslashes and begins
14754 # with a dollar sign (not a hyphen), so the echo should work correctly.
14755 lt_compile=`echo "$ac_compile" | $SED \
14756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14758 -e 's:$: $lt_compiler_flag:'`
14759 (eval echo "\"\$as_me:14760: $lt_compile\"" >&5)
14760 (eval "$lt_compile" 2>out/conftest.err)
14762 cat out/conftest.err >&5
14763 echo "$as_me:14764: \$? = $ac_status" >&5
14764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14766 # The compiler can only warn and ignore the option if not recognized
14767 # So say no if there are warnings
14768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14771 lt_cv_prog_compiler_c_o_F77=yes
14776 # SGI C++ compiler will create directory out/ii_files/ for
14777 # template instantiation
14778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14779 $rm out/* && rmdir out
14785 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14786 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14789 hard_links="nottested"
14790 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14791 # do not overwrite the value of need_locks provided by the user
14792 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14793 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14796 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14798 ln conftest.a conftest.b 2>&5 || hard_links=no
14799 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800 { echo "$as_me:$LINENO: result: $hard_links" >&5
14801 echo "${ECHO_T}$hard_links" >&6; }
14802 if test "$hard_links" = no; then
14803 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14804 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14811 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14812 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14815 allow_undefined_flag_F77=
14816 enable_shared_with_static_runtimes_F77=no
14818 archive_expsym_cmds_F77=
14819 old_archive_From_new_cmds_F77=
14820 old_archive_from_expsyms_cmds_F77=
14821 export_dynamic_flag_spec_F77=
14822 whole_archive_flag_spec_F77=
14823 thread_safe_flag_spec_F77=
14824 hardcode_libdir_flag_spec_F77=
14825 hardcode_libdir_flag_spec_ld_F77=
14826 hardcode_libdir_separator_F77=
14827 hardcode_direct_F77=no
14828 hardcode_minus_L_F77=no
14829 hardcode_shlibpath_var_F77=unsupported
14830 link_all_deplibs_F77=unknown
14831 hardcode_automatic_F77=no
14833 module_expsym_cmds_F77=
14834 always_export_symbols_F77=no
14835 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14836 # include_expsyms should be a list of space-separated symbols to be *always*
14837 # included in the symbol list
14838 include_expsyms_F77=
14839 # exclude_expsyms can be an extended regexp of symbols to exclude
14840 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14842 # as well as any symbol that contains `d'.
14843 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14845 # platforms (ab)use it in PIC code, but their linkers get confused if
14846 # the symbol is explicitly referenced. Since portable code cannot
14847 # rely on this symbol name, it's probably fine to never include it in
14848 # preloaded symbol tables.
14849 # Exclude shared library initialization/finalization symbols.
14850 extract_expsyms_cmds=
14851 # Just being paranoid about ensuring that cc_basename is set.
14852 for cc_temp in $compiler""; do
14854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14863 cygwin* | mingw* | pw32*)
14864 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14865 # When not using gcc, we currently assume that we are using
14866 # Microsoft Visual C++.
14867 if test "$GCC" != yes; then
14872 # we just hope/assume this is gcc and not c89 (= MSVC++)
14881 if test "$with_gnu_ld" = yes; then
14882 # If archive_cmds runs LD, not CC, wlarc should be empty
14885 # Set some defaults for GNU ld with shared library support. These
14886 # are reset later if shared libraries are not supported. Putting them
14887 # here allows them to be overridden if necessary.
14888 runpath_var=LD_RUN_PATH
14889 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14890 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14891 # ancient GNU ld didn't support --whole-archive et. al.
14892 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14893 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14895 whole_archive_flag_spec_F77=
14897 supports_anon_versioning=no
14898 case `$LD -v 2>/dev/null` in
14899 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14900 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14901 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14902 *\ 2.11.*) ;; # other 2.11 versions
14903 *) supports_anon_versioning=yes ;;
14906 # See if GNU ld supports shared libraries.
14909 # On AIX/PPC, the GNU linker is very broken
14910 if test "$host_cpu" != ia64; then
14914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14915 *** to be unable to reliably create shared libraries on AIX.
14916 *** Therefore, libtool is disabling shared libraries support. If you
14917 *** really care for shared libraries, you may want to modify your PATH
14918 *** so that a non-GNU linker is found, and then restart.
14925 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)'
14926 hardcode_libdir_flag_spec_F77='-L$libdir'
14927 hardcode_minus_L_F77=yes
14929 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14930 # that the semantics of dynamic libraries on AmigaOS, at least up
14931 # to version 4, is to share data among multiple programs linked
14932 # with the same dynamic library. Since this doesn't match the
14933 # behavior of shared libraries on other platforms, we can't use
14939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14940 allow_undefined_flag_F77=unsupported
14941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14942 # support --undefined. This deserves some investigation. FIXME
14943 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949 cygwin* | mingw* | pw32*)
14950 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14951 # as there is no search path for DLLs.
14952 hardcode_libdir_flag_spec_F77='-L$libdir'
14953 allow_undefined_flag_F77=unsupported
14954 always_export_symbols_F77=no
14955 enable_shared_with_static_runtimes_F77=yes
14956 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14959 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14960 # If the export-symbols file already is a .def file (1st line
14961 # is EXPORTS), use it as is; otherwise, prepend...
14962 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14963 cp $export_symbols $output_objdir/$soname.def;
14965 echo EXPORTS > $output_objdir/$soname.def;
14966 cat $export_symbols >> $output_objdir/$soname.def;
14968 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14975 hardcode_direct_F77=no
14976 hardcode_shlibpath_var_F77=no
14977 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14978 export_dynamic_flag_spec_F77='${wl}-E'
14979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14980 # Instead, shared libraries are loaded at an image base (0x10000000 by
14981 # default) and relocated if they conflict, which is a slow very memory
14982 # consuming and fragmenting process. To avoid this, we pick a random,
14983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14984 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14985 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'
14986 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'
14989 gnu* | linux* | k*bsd*-gnu)
14990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14992 case $cc_basename,$host_cpu in
14993 pgcc*) # Portland Group C compiler
14994 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'
14995 tmp_addflag=' $pic_flag'
14997 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14998 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'
14999 tmp_addflag=' $pic_flag -Mnomain' ;;
15000 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15001 tmp_addflag=' -i_dynamic' ;;
15002 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15003 tmp_addflag=' -i_dynamic -nofor_main' ;;
15004 ifc* | ifort*) # Intel Fortran compiler
15005 tmp_addflag=' -nofor_main' ;;
15007 case `$CC -V 2>&1 | sed 5q` in
15008 *Sun\ C*) # Sun C 5.9
15009 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15010 tmp_sharedflag='-G' ;;
15011 *Sun\ F*) # Sun Fortran 8.3
15012 tmp_sharedflag='-G' ;;
15014 tmp_sharedflag='-shared' ;;
15016 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 if test $supports_anon_versioning = yes; then
15019 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15021 $echo "local: *; };" >> $output_objdir/$libname.ver~
15022 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15024 link_all_deplibs_F77=no
15030 netbsd* | netbsdelf*-gnu)
15031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15032 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15041 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15046 *** create shared libraries on Solaris systems. Therefore, libtool
15047 *** is disabling shared libraries support. We urge you to upgrade GNU
15048 *** binutils to release 2.9.1 or newer. Another option is to modify
15049 *** your PATH or compiler configuration so that the native linker is
15050 *** used, and then restart.
15053 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15054 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15062 case `$LD -v 2>&1` in
15063 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15067 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15068 *** reliably create shared libraries on SCO systems. Therefore, libtool
15069 *** is disabling shared libraries support. We urge you to upgrade GNU
15070 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15071 *** your PATH or compiler configuration so that the native linker is
15072 *** used, and then restart.
15077 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15089 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_direct_F77=yes
15092 hardcode_shlibpath_var_F77=no
15096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15098 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15105 if test "$ld_shlibs_F77" = no; then
15107 hardcode_libdir_flag_spec_F77=
15108 export_dynamic_flag_spec_F77=
15109 whole_archive_flag_spec_F77=
15112 # PORTME fill in a description of your system's linker (not GNU ld)
15115 allow_undefined_flag_F77=unsupported
15116 always_export_symbols_F77=yes
15117 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'
15118 # Note: this linker hardcodes the directories in LIBPATH if there
15119 # are no directories specified by -L.
15120 hardcode_minus_L_F77=yes
15121 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15122 # Neither direct hardcoding nor static linking is supported with a
15124 hardcode_direct_F77=unsupported
15129 if test "$host_cpu" = ia64; then
15130 # On IA64, the linker does run time linking by default, so we don't
15131 # have to do anything special.
15132 aix_use_runtimelinking=no
15133 exp_sym_flag='-Bexport'
15136 # If we're using GNU nm, then we don't want the "-C" option.
15137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15139 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'
15141 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'
15143 aix_use_runtimelinking=no
15145 # Test if we are trying to use run time linking or normal
15146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15147 # need to do runtime linking.
15148 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15149 for ld_flag in $LDFLAGS; do
15150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15151 aix_use_runtimelinking=yes
15158 exp_sym_flag='-bexport'
15159 no_entry_flag='-bnoentry'
15162 # When large executables or shared objects are built, AIX ld can
15163 # have problems creating the table of contents. If linking a library
15164 # or program results in "error TOC overflow" add -mminimal-toc to
15165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15168 archive_cmds_F77=''
15169 hardcode_direct_F77=yes
15170 hardcode_libdir_separator_F77=':'
15171 link_all_deplibs_F77=yes
15173 if test "$GCC" = yes; then
15174 case $host_os in aix4.[012]|aix4.[012].*)
15175 # We only want to do this on AIX 4.2 and lower, the check
15176 # below for broken collect2 doesn't work under 4.3+
15177 collect2name=`${CC} -print-prog-name=collect2`
15178 if test -f "$collect2name" && \
15179 strings "$collect2name" | grep resolve_lib_name >/dev/null
15181 # We have reworked collect2
15184 # We have old collect2
15185 hardcode_direct_F77=unsupported
15186 # It fails to find uninstalled libraries when the uninstalled
15187 # path is not listed in the libpath. Setting hardcode_minus_L
15188 # to unsupported forces relinking
15189 hardcode_minus_L_F77=yes
15190 hardcode_libdir_flag_spec_F77='-L$libdir'
15191 hardcode_libdir_separator_F77=
15195 shared_flag='-shared'
15196 if test "$aix_use_runtimelinking" = yes; then
15197 shared_flag="$shared_flag "'${wl}-G'
15201 if test "$host_cpu" = ia64; then
15202 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15203 # chokes on -Wl,-G. The following line is correct:
15206 if test "$aix_use_runtimelinking" = yes; then
15207 shared_flag='${wl}-G'
15209 shared_flag='${wl}-bM:SRE'
15214 # It seems that -bexpall does not export symbols beginning with
15215 # underscore (_), so it is better to generate a list of symbols to export.
15216 always_export_symbols_F77=yes
15217 if test "$aix_use_runtimelinking" = yes; then
15218 # Warning - without using the other runtime loading flags (-brtl),
15219 # -berok will link without error, but may produce a broken library.
15220 allow_undefined_flag_F77='-berok'
15221 # Determine the default libpath from the value encoded in an empty executable.
15222 cat >conftest.$ac_ext <<_ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (ac_try="$ac_link"
15229 case "(($ac_try" in
15230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15231 *) ac_try_echo=$ac_try;;
15233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15234 (eval "$ac_link") 2>conftest.er1
15236 grep -v '^ *+' conftest.er1 >conftest.err
15238 cat conftest.err >&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && {
15241 test -z "$ac_f77_werror_flag" ||
15242 test ! -s conftest.err
15243 } && test -s conftest$ac_exeext &&
15244 $as_test_x conftest$ac_exeext; then
15246 lt_aix_libpath_sed='
15247 /Import File Strings/,/^$/ {
15253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15254 # Check for a 64-bit object if we didn't find anything.
15255 if test -z "$aix_libpath"; then
15256 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15266 conftest$ac_exeext conftest.$ac_ext
15267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15269 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15270 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"
15272 if test "$host_cpu" = ia64; then
15273 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15274 allow_undefined_flag_F77="-z nodefs"
15275 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"
15277 # Determine the default libpath from the value encoded in an empty executable.
15278 cat >conftest.$ac_ext <<_ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_link") 2>conftest.er1
15292 grep -v '^ *+' conftest.er1 >conftest.err
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && {
15297 test -z "$ac_f77_werror_flag" ||
15298 test ! -s conftest.err
15299 } && test -s conftest$ac_exeext &&
15300 $as_test_x conftest$ac_exeext; then
15302 lt_aix_libpath_sed='
15303 /Import File Strings/,/^$/ {
15309 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310 # Check for a 64-bit object if we didn't find anything.
15311 if test -z "$aix_libpath"; then
15312 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15323 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15325 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15326 # Warning - without using the other run time loading flags,
15327 # -berok will link without error, but may produce a broken library.
15328 no_undefined_flag_F77=' ${wl}-bernotok'
15329 allow_undefined_flag_F77=' ${wl}-berok'
15330 # Exported symbols can be pulled into shared objects from archives
15331 whole_archive_flag_spec_F77='$convenience'
15332 archive_cmds_need_lc_F77=yes
15333 # This is similar to how AIX traditionally builds its shared libraries.
15334 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'
15340 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)'
15341 hardcode_libdir_flag_spec_F77='-L$libdir'
15342 hardcode_minus_L_F77=yes
15343 # see comment about different semantics on the GNU ld section
15348 export_dynamic_flag_spec_F77=-rdynamic
15351 cygwin* | mingw* | pw32*)
15352 # When not using gcc, we currently assume that we are using
15353 # Microsoft Visual C++.
15354 # hardcode_libdir_flag_spec is actually meaningless, as there is
15355 # no search path for DLLs.
15356 hardcode_libdir_flag_spec_F77=' '
15357 allow_undefined_flag_F77=unsupported
15358 # Tell ltmain to make .lib files, not .a files.
15360 # Tell ltmain to make .dll files, not .so files.
15362 # FIXME: Setting linknames here is a bad hack.
15363 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15364 # The linker will automatically build a .lib file if we build a DLL.
15365 old_archive_From_new_cmds_F77='true'
15366 # FIXME: Should let the user specify the lib program.
15367 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15368 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15369 enable_shared_with_static_runtimes_F77=yes
15372 darwin* | rhapsody*)
15374 rhapsody* | darwin1.[012])
15375 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15378 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15379 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15381 case ${MACOSX_DEPLOYMENT_TARGET} in
15383 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15386 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15392 archive_cmds_need_lc_F77=no
15393 hardcode_direct_F77=no
15394 hardcode_automatic_F77=yes
15395 hardcode_shlibpath_var_F77=unsupported
15396 whole_archive_flag_spec_F77=''
15397 link_all_deplibs_F77=yes
15398 if test "$GCC" = yes ; then
15399 output_verbose_link_cmd='echo'
15400 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15401 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15402 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15403 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15405 case $cc_basename in
15407 output_verbose_link_cmd='echo'
15408 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15409 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15411 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15412 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}'
15422 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15423 hardcode_libdir_flag_spec_F77='-L$libdir'
15424 hardcode_shlibpath_var_F77=no
15431 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15432 # support. Future versions do this automatically, but an explicit c++rt0.o
15433 # does not break anything, and helps significantly (at the cost of a little
15436 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15437 hardcode_libdir_flag_spec_F77='-R$libdir'
15438 hardcode_direct_F77=yes
15439 hardcode_shlibpath_var_F77=no
15442 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_direct_F77=yes
15446 hardcode_minus_L_F77=yes
15447 hardcode_shlibpath_var_F77=no
15450 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15451 freebsd* | dragonfly*)
15452 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15453 hardcode_libdir_flag_spec_F77='-R$libdir'
15454 hardcode_direct_F77=yes
15455 hardcode_shlibpath_var_F77=no
15459 if test "$GCC" = yes; then
15460 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'
15462 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'
15464 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15465 hardcode_libdir_separator_F77=:
15466 hardcode_direct_F77=yes
15468 # hardcode_minus_L: Not really in the search PATH,
15469 # but as the default location of the library.
15470 hardcode_minus_L_F77=yes
15471 export_dynamic_flag_spec_F77='${wl}-E'
15475 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15476 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15478 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15480 if test "$with_gnu_ld" = no; then
15481 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15482 hardcode_libdir_separator_F77=:
15484 hardcode_direct_F77=yes
15485 export_dynamic_flag_spec_F77='${wl}-E'
15487 # hardcode_minus_L: Not really in the search PATH,
15488 # but as the default location of the library.
15489 hardcode_minus_L_F77=yes
15494 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15503 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15512 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15515 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15519 if test "$with_gnu_ld" = no; then
15520 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15521 hardcode_libdir_separator_F77=:
15525 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15526 hardcode_direct_F77=no
15527 hardcode_shlibpath_var_F77=no
15530 hardcode_direct_F77=yes
15531 export_dynamic_flag_spec_F77='${wl}-E'
15533 # hardcode_minus_L: Not really in the search PATH,
15534 # but as the default location of the library.
15535 hardcode_minus_L_F77=yes
15541 irix5* | irix6* | nonstopux*)
15542 if test "$GCC" = yes; then
15543 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'
15545 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'
15546 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15548 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549 hardcode_libdir_separator_F77=:
15550 link_all_deplibs_F77=yes
15553 netbsd* | netbsdelf*-gnu)
15554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15555 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15557 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15559 hardcode_libdir_flag_spec_F77='-R$libdir'
15560 hardcode_direct_F77=yes
15561 hardcode_shlibpath_var_F77=no
15565 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15566 hardcode_direct_F77=yes
15567 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15568 hardcode_libdir_separator_F77=:
15569 hardcode_shlibpath_var_F77=no
15573 if test -f /usr/libexec/ld.so; then
15574 hardcode_direct_F77=yes
15575 hardcode_shlibpath_var_F77=no
15576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15577 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15578 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580 export_dynamic_flag_spec_F77='${wl}-E'
15583 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15584 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_libdir_flag_spec_F77='-R$libdir'
15588 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15599 hardcode_libdir_flag_spec_F77='-L$libdir'
15600 hardcode_minus_L_F77=yes
15601 allow_undefined_flag_F77=unsupported
15602 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'
15603 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15607 if test "$GCC" = yes; then
15608 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15609 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'
15611 allow_undefined_flag_F77=' -expect_unresolved \*'
15612 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'
15614 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15615 hardcode_libdir_separator_F77=:
15618 osf4* | osf5*) # as osf3* with the addition of -msym flag
15619 if test "$GCC" = yes; then
15620 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15621 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'
15622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15624 allow_undefined_flag_F77=' -expect_unresolved \*'
15625 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'
15626 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~
15627 $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'
15629 # Both c and cxx compiler support -rpath directly
15630 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15632 hardcode_libdir_separator_F77=:
15636 no_undefined_flag_F77=' -z text'
15637 if test "$GCC" = yes; then
15639 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15641 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15644 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15648 hardcode_libdir_flag_spec_F77='-R$libdir'
15649 hardcode_shlibpath_var_F77=no
15651 solaris2.[0-5] | solaris2.[0-5].*) ;;
15653 # The compiler driver will combine and reorder linker options,
15654 # but understands `-z linker_flag'. GCC discards it without `$wl',
15655 # but is careful enough not to reorder.
15656 # Supported since Solaris 2.6 (maybe 2.5.1?)
15657 if test "$GCC" = yes; then
15658 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15660 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15664 link_all_deplibs_F77=yes
15668 if test "x$host_vendor" = xsequent; then
15669 # Use $CC to link under sequent, because it throws in some extra .o
15670 # files that make .init and .fini sections work.
15671 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15673 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_libdir_flag_spec_F77='-L$libdir'
15676 hardcode_direct_F77=yes
15677 hardcode_minus_L_F77=yes
15678 hardcode_shlibpath_var_F77=no
15682 case $host_vendor in
15684 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_direct_F77=yes # is this really true???
15688 ## LD is ld it makes a PLAMLIB
15689 ## CC just makes a GrossModule.
15690 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15691 reload_cmds_F77='$CC -r -o $output$reload_objs'
15692 hardcode_direct_F77=no
15695 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15696 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15699 runpath_var='LD_RUN_PATH'
15700 hardcode_shlibpath_var_F77=no
15704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705 hardcode_shlibpath_var_F77=no
15706 export_dynamic_flag_spec_F77='-Bexport'
15710 if test -d /usr/nec; then
15711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712 hardcode_shlibpath_var_F77=no
15713 runpath_var=LD_RUN_PATH
15714 hardcode_runpath_var=yes
15719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15720 no_undefined_flag_F77='${wl}-z,text'
15721 archive_cmds_need_lc_F77=no
15722 hardcode_shlibpath_var_F77=no
15723 runpath_var='LD_RUN_PATH'
15725 if test "$GCC" = yes; then
15726 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734 sysv5* | sco3.2v5* | sco5v6*)
15735 # Note: We can NOT use -z defs as we might desire, because we do not
15736 # link with -lc, and that would cause any symbols used from libc to
15737 # always be unresolved, which means just about no library would
15738 # ever link correctly. If we're not using GNU ld we use -z text
15739 # though, which does catch some bad symbols but isn't as heavy-handed
15741 no_undefined_flag_F77='${wl}-z,text'
15742 allow_undefined_flag_F77='${wl}-z,nodefs'
15743 archive_cmds_need_lc_F77=no
15744 hardcode_shlibpath_var_F77=no
15745 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15746 hardcode_libdir_separator_F77=':'
15747 link_all_deplibs_F77=yes
15748 export_dynamic_flag_spec_F77='${wl}-Bexport'
15749 runpath_var='LD_RUN_PATH'
15751 if test "$GCC" = yes; then
15752 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15755 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762 hardcode_libdir_flag_spec_F77='-L$libdir'
15763 hardcode_shlibpath_var_F77=no
15772 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15773 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15774 test "$ld_shlibs_F77" = no && can_build_shared=no
15777 # Do we need to explicitly link libc?
15779 case "x$archive_cmds_need_lc_F77" in
15781 # Assume -lc should be added
15782 archive_cmds_need_lc_F77=yes
15784 if test "$enable_shared" = yes && test "$GCC" = yes; then
15785 case $archive_cmds_F77 in
15787 # FIXME: we may have to deal with multi-command sequences.
15790 # Test whether the compiler implicitly links with -lc since on some
15791 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15792 # to ld, don't add -lc before -lgcc.
15793 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15794 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799 (eval $ac_compile) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } 2>conftest.err; then
15805 libobjs=conftest.$ac_objext
15807 wl=$lt_prog_compiler_wl_F77
15808 pic_flag=$lt_prog_compiler_pic_F77
15814 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15815 allow_undefined_flag_F77=
15816 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15817 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }
15822 archive_cmds_need_lc_F77=no
15824 archive_cmds_need_lc_F77=yes
15826 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15828 cat conftest.err 1>&5
15831 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15832 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15839 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15840 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15841 library_names_spec=
15842 libname_spec='lib$name'
15846 postuninstall_cmds=
15850 shlibpath_overrides_runpath=unknown
15852 dynamic_linker="$host_os ld.so"
15853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15855 need_lib_prefix=unknown
15856 hardcode_into_libs=no
15858 # when you set need_version to no, make sure it does not cause -set_version
15859 # flags to be left without arguments
15860 need_version=unknown
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15866 shlibpath_var=LIBPATH
15868 # AIX 3 has no versioning support, so we append a major version to the name.
15869 soname_spec='${libname}${release}${shared_ext}$major'
15876 hardcode_into_libs=yes
15877 if test "$host_cpu" = ia64; then
15878 # AIX 5 supports IA64
15879 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15880 shlibpath_var=LD_LIBRARY_PATH
15882 # With GCC up to 2.95.x, collect2 would create an import file
15883 # for dependence libraries. The import file would start with
15884 # the line `#! .'. This would cause the generated library to
15885 # depend on `.', always an invalid library. This was fixed in
15886 # development snapshots of GCC prior to 3.0.
15888 aix4 | aix4.[01] | aix4.[01].*)
15889 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15891 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15894 can_build_shared=no
15898 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15899 # soname into executable. Probably we can add versioning support to
15900 # collect2, so additional links can be useful in future.
15901 if test "$aix_use_runtimelinking" = yes; then
15902 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15903 # instead of lib<name>.a to let people know that these are not
15904 # typical AIX shared libraries.
15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15907 # We preserve .a as extension for shared libraries through AIX4.2
15908 # and later when we are not doing run time linking.
15909 library_names_spec='${libname}${release}.a $libname.a'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15912 shlibpath_var=LIBPATH
15917 library_names_spec='$libname.ixlibrary $libname.a'
15918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15919 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'
15923 library_names_spec='${libname}${shared_ext}'
15924 dynamic_linker="$host_os ld.so"
15925 shlibpath_var=LIBRARY_PATH
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932 soname_spec='${libname}${release}${shared_ext}$major'
15933 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15936 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15937 # the default ld.so.conf also contains /usr/contrib/lib and
15938 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15939 # libtool to hard-code these into programs
15942 cygwin* | mingw* | pw32*)
15943 version_type=windows
15948 case $GCC,$host_os in
15949 yes,cygwin* | yes,mingw* | yes,pw32*)
15950 library_names_spec='$libname.dll.a'
15951 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15952 postinstall_cmds='base_file=`basename \${file}`~
15953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15954 dldir=$destdir/`dirname \$dlpath`~
15955 test -d \$dldir || mkdir -p \$dldir~
15956 $install_prog $dir/$dlname \$dldir/$dlname~
15957 chmod a+x \$dldir/$dlname'
15958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15959 dlpath=$dir/\$dldll~
15961 shlibpath_overrides_runpath=yes
15965 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15970 # MinGW DLLs use traditional 'lib' prefix
15971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15972 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15973 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15974 # It is most probably a Windows format PATH printed by
15975 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15976 # path with ; separators, and with drive letters. We can handle the
15977 # drive letters (cygwin fileutils understands them), so leave them,
15978 # especially as we might pass files found there to a mingw objdump,
15979 # which wouldn't understand a cygwinified path. Ahh.
15980 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15986 # pw32 DLLs use 'pw' prefix rather than 'lib'
15987 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15993 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15996 dynamic_linker='Win32 ld.exe'
15997 # FIXME: first we should search . and the directory the executable is in
16001 darwin* | rhapsody*)
16002 dynamic_linker="$host_os dyld"
16003 version_type=darwin
16006 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16007 soname_spec='${libname}${release}${major}$shared_ext'
16008 shlibpath_overrides_runpath=yes
16009 shlibpath_var=DYLD_LIBRARY_PATH
16010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16021 shlibpath_var=LD_LIBRARY_PATH
16028 freebsd* | dragonfly*)
16029 # DragonFly does not have aout. When/if they implement a new
16030 # versioning mechanism, adjust this.
16031 if test -x /usr/bin/objformat; then
16032 objformat=`/usr/bin/objformat`
16035 freebsd[123]*) objformat=aout ;;
16036 *) objformat=elf ;;
16039 version_type=freebsd-$objformat
16040 case $version_type in
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16051 shlibpath_var=LD_LIBRARY_PATH
16054 shlibpath_overrides_runpath=yes
16056 freebsd3.[01]* | freebsdelf3.[01]*)
16057 shlibpath_overrides_runpath=yes
16058 hardcode_into_libs=yes
16060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16062 shlibpath_overrides_runpath=no
16063 hardcode_into_libs=yes
16065 *) # from 4.6 on, and DragonFly
16066 shlibpath_overrides_runpath=yes
16067 hardcode_into_libs=yes
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 hardcode_into_libs=yes
16082 hpux9* | hpux10* | hpux11*)
16083 # Give a soname corresponding to the major version so that dld.sl refuses to
16084 # link against other versions.
16091 hardcode_into_libs=yes
16092 dynamic_linker="$host_os dld.so"
16093 shlibpath_var=LD_LIBRARY_PATH
16094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 if test "X$HPUX_IA64_MODE" = X32; then
16098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16106 hardcode_into_libs=yes
16107 dynamic_linker="$host_os dld.sl"
16108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16117 dynamic_linker="$host_os dld.sl"
16118 shlibpath_var=SHLIB_PATH
16119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16125 postinstall_cmds='chmod 555 $lib'
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16135 shlibpath_var=LD_LIBRARY_PATH
16136 shlibpath_overrides_runpath=no
16137 hardcode_into_libs=yes
16140 irix5* | irix6* | nonstopux*)
16142 nonstopux*) version_type=nonstopux ;;
16144 if test "$lt_cv_prog_gnu_ld" = yes; then
16152 soname_spec='${libname}${release}${shared_ext}$major'
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16155 irix5* | nonstopux*)
16156 libsuff= shlibsuff=
16159 case $LD in # libtool.m4 will add one of these switches to LD
16160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16161 libsuff= shlibsuff= libmagic=32-bit;;
16162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16163 libsuff=32 shlibsuff=N32 libmagic=N32;;
16164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16166 *) libsuff= shlibsuff= libmagic=never-match;;
16170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16171 shlibpath_overrides_runpath=no
16172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16174 hardcode_into_libs=yes
16177 # No shared lib support for Linux oldld, aout, or coff.
16178 linux*oldld* | linux*aout* | linux*coff*)
16182 # This must be Linux ELF.
16183 linux* | k*bsd*-gnu)
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16190 shlibpath_var=LD_LIBRARY_PATH
16191 shlibpath_overrides_runpath=no
16192 # This implies no fast_install, which is unacceptable.
16193 # Some rework will be needed to allow for fast_install
16194 # before this can be enabled.
16195 hardcode_into_libs=yes
16197 # Append ld.so.conf contents to the search path
16198 if test -f /etc/ld.so.conf; then
16199 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16203 # We used to test for /lib/ld.so.1 and disable shared libraries on
16204 # powerpc, because MkLinux only supported shared libraries with the
16205 # GNU dynamic linker. Since this was broken with cross compilers,
16206 # most powerpc-linux boxes support dynamic linking these days and
16207 # people can always --disable-shared, the test was removed, and we
16208 # assume the GNU/Linux dynamic linker is in use.
16209 dynamic_linker='GNU/Linux ld.so'
16216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16217 soname_spec='${libname}${release}${shared_ext}$major'
16218 shlibpath_var=LD_LIBRARY_PATH
16219 shlibpath_overrides_runpath=no
16220 hardcode_into_libs=yes
16221 dynamic_linker='NetBSD ld.elf_so'
16228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16231 dynamic_linker='NetBSD (a.out) ld.so'
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 dynamic_linker='NetBSD ld.elf_so'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=yes
16239 hardcode_into_libs=yes
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=yes
16261 sys_lib_dlsearch_path_spec="/usr/lib"
16263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16266 *) need_version=no ;;
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16273 openbsd2.[89] | openbsd2.[89].*)
16274 shlibpath_overrides_runpath=no
16277 shlibpath_overrides_runpath=yes
16281 shlibpath_overrides_runpath=yes
16286 libname_spec='$name'
16289 library_names_spec='$libname${shared_ext} $libname.a'
16290 dynamic_linker='OS/2 ld.exe'
16291 shlibpath_var=LIBPATH
16294 osf3* | osf4* | osf5*)
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 shlibpath_var=LD_LIBRARY_PATH
16301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16318 # ldd complains unless libraries are executable
16319 postinstall_cmds='chmod +x $lib'
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 shlibpath_overrides_runpath=yes
16328 if test "$with_gnu_ld" = yes; then
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 case $host_vendor in
16341 shlibpath_overrides_runpath=no
16343 export_dynamic_flag_spec='${wl}-Blargedynsym'
16344 runpath_var=LD_RUN_PATH
16352 shlibpath_overrides_runpath=no
16353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16359 if test -d /usr/nec ;then
16361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16362 soname_spec='$libname${shared_ext}.$major'
16363 shlibpath_var=LD_LIBRARY_PATH
16367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16368 version_type=freebsd-elf
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 hardcode_into_libs=yes
16375 if test "$with_gnu_ld" = yes; then
16376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16377 shlibpath_overrides_runpath=no
16379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16380 shlibpath_overrides_runpath=yes
16383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16387 sys_lib_dlsearch_path_spec='/usr/lib'
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16402 echo "${ECHO_T}$dynamic_linker" >&6; }
16403 test "$dynamic_linker" = no && can_build_shared=no
16405 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16408 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16420 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16421 if test "$GCC" = yes; then
16422 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16425 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16426 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16427 hardcode_action_F77=
16428 if test -n "$hardcode_libdir_flag_spec_F77" || \
16429 test -n "$runpath_var_F77" || \
16430 test "X$hardcode_automatic_F77" = "Xyes" ; then
16432 # We can hardcode non-existant directories.
16433 if test "$hardcode_direct_F77" != no &&
16434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16435 # have to relink, otherwise we might link with an installed library
16436 # when we should be linking with a yet-to-be-installed one
16437 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16438 test "$hardcode_minus_L_F77" != no; then
16439 # Linking always hardcodes the temporary library directory.
16440 hardcode_action_F77=relink
16442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16443 hardcode_action_F77=immediate
16446 # We cannot hardcode anything, or else we can only hardcode existing
16448 hardcode_action_F77=unsupported
16450 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16451 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16453 if test "$hardcode_action_F77" = relink; then
16454 # Fast installation is not supported
16455 enable_fast_install=no
16456 elif test "$shlibpath_overrides_runpath" = yes ||
16457 test "$enable_shared" = no; then
16458 # Fast installation is not necessary
16459 enable_fast_install=needless
16463 # The else clause should only fire when bootstrapping the
16464 # libtool distribution, otherwise you forgot to ship ltmain.sh
16465 # with your package, and you will get complaints that there are
16466 # no rules to generate ltmain.sh.
16467 if test -f "$ltmain"; then
16468 # See if we are running on zsh, and set the options which allow our commands through
16469 # without removal of \ escapes.
16470 if test -n "${ZSH_VERSION+set}" ; then
16471 setopt NO_GLOB_SUBST
16473 # Now quote all the things that may contain metacharacters while being
16474 # careful not to overquote the AC_SUBSTed values. We take copies of the
16475 # variables and quote the copies for generation of the libtool script.
16476 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16478 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16479 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16480 deplibs_check_method reload_flag reload_cmds need_locks \
16481 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16482 lt_cv_sys_global_symbol_to_c_name_address \
16483 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16484 old_postinstall_cmds old_postuninstall_cmds \
16488 lt_prog_compiler_wl_F77 \
16489 lt_prog_compiler_pic_F77 \
16490 lt_prog_compiler_static_F77 \
16491 lt_prog_compiler_no_builtin_flag_F77 \
16492 export_dynamic_flag_spec_F77 \
16493 thread_safe_flag_spec_F77 \
16494 whole_archive_flag_spec_F77 \
16495 enable_shared_with_static_runtimes_F77 \
16496 old_archive_cmds_F77 \
16497 old_archive_from_new_cmds_F77 \
16498 predep_objects_F77 \
16499 postdep_objects_F77 \
16502 compiler_lib_search_path_F77 \
16503 compiler_lib_search_dirs_F77 \
16505 archive_expsym_cmds_F77 \
16506 postinstall_cmds_F77 \
16507 postuninstall_cmds_F77 \
16508 old_archive_from_expsyms_cmds_F77 \
16509 allow_undefined_flag_F77 \
16510 no_undefined_flag_F77 \
16511 export_symbols_cmds_F77 \
16512 hardcode_libdir_flag_spec_F77 \
16513 hardcode_libdir_flag_spec_ld_F77 \
16514 hardcode_libdir_separator_F77 \
16515 hardcode_automatic_F77 \
16517 module_expsym_cmds_F77 \
16518 lt_cv_prog_compiler_c_o_F77 \
16519 fix_srcfile_path_F77 \
16520 exclude_expsyms_F77 \
16521 include_expsyms_F77; do
16524 old_archive_cmds_F77 | \
16525 old_archive_from_new_cmds_F77 | \
16526 archive_cmds_F77 | \
16527 archive_expsym_cmds_F77 | \
16528 module_cmds_F77 | \
16529 module_expsym_cmds_F77 | \
16530 old_archive_from_expsyms_cmds_F77 | \
16531 export_symbols_cmds_F77 | \
16532 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16533 postinstall_cmds | postuninstall_cmds | \
16534 old_postinstall_cmds | old_postuninstall_cmds | \
16535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16536 # Double-quote double-evaled strings.
16537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16546 *'\$0 --fallback-echo"')
16547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16553 cat <<__EOF__ >> "$cfgfile"
16554 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16558 # Shell to use when invoking shell scripts.
16561 # Whether or not to build shared libraries.
16562 build_libtool_libs=$enable_shared
16564 # Whether or not to build static libraries.
16565 build_old_libs=$enable_static
16567 # Whether or not to add -lc for building shared libraries.
16568 build_libtool_need_lc=$archive_cmds_need_lc_F77
16570 # Whether or not to disallow shared libs when runtime libs are static
16571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16573 # Whether or not to optimize for fast installation.
16574 fast_install=$enable_fast_install
16577 host_alias=$host_alias
16581 # The build system.
16582 build_alias=$build_alias
16586 # An echo program that does not interpret backslashes.
16591 AR_FLAGS=$lt_AR_FLAGS
16596 # LTCC compiler flags.
16597 LTCFLAGS=$lt_LTCFLAGS
16599 # A language-specific compiler.
16600 CC=$lt_compiler_F77
16602 # Is the compiler the GNU C compiler?
16608 # The linker used to build libraries.
16611 # Whether we need hard or soft links.
16614 # A BSD-compatible nm program.
16617 # A symbol stripping program
16620 # Used to examine libraries when file_magic_cmd begins "file"
16621 MAGIC_CMD=$MAGIC_CMD
16623 # Used on cygwin: DLL creation program.
16626 # Used on cygwin: object dumper.
16629 # Used on cygwin: assembler.
16632 # The name of the directory that contains temporary libtool files.
16635 # How to create reloadable object files.
16636 reload_flag=$lt_reload_flag
16637 reload_cmds=$lt_reload_cmds
16639 # How to pass a linker flag through the compiler.
16640 wl=$lt_lt_prog_compiler_wl_F77
16642 # Object file suffix (normally "o").
16643 objext="$ac_objext"
16645 # Old archive suffix (normally "a").
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds='$shrext_cmds'
16651 # Executable file suffix (normally "").
16654 # Additional compiler flags for building library objects.
16655 pic_flag=$lt_lt_prog_compiler_pic_F77
16658 # What is the maximum length of a command?
16659 max_cmd_len=$lt_cv_sys_max_cmd_len
16661 # Does compiler simultaneously support -c and -o options?
16662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16664 # Must we lock files when doing compilation?
16665 need_locks=$lt_need_locks
16667 # Do we need the lib prefix for modules?
16668 need_lib_prefix=$need_lib_prefix
16670 # Do we need a version for libraries?
16671 need_version=$need_version
16673 # Whether dlopen is supported.
16674 dlopen_support=$enable_dlopen
16676 # Whether dlopen of programs is supported.
16677 dlopen_self=$enable_dlopen_self
16679 # Whether dlopen of statically linked programs is supported.
16680 dlopen_self_static=$enable_dlopen_self_static
16682 # Compiler flag to prevent dynamic linking.
16683 link_static_flag=$lt_lt_prog_compiler_static_F77
16685 # Compiler flag to turn off builtin functions.
16686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16688 # Compiler flag to allow reflexive dlopens.
16689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16691 # Compiler flag to generate shared objects directly from archives.
16692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16694 # Compiler flag to generate thread-safe objects.
16695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16697 # Library versioning type.
16698 version_type=$version_type
16700 # Format of library name prefix.
16701 libname_spec=$lt_libname_spec
16703 # List of archive names. First name is the real one, the rest are links.
16704 # The last name is the one that the linker finds with -lNAME.
16705 library_names_spec=$lt_library_names_spec
16707 # The coded name of the library, if different from the real name.
16708 soname_spec=$lt_soname_spec
16710 # Commands used to build and install an old-style archive.
16712 old_archive_cmds=$lt_old_archive_cmds_F77
16713 old_postinstall_cmds=$lt_old_postinstall_cmds
16714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16716 # Create an old-style archive from a shared archive.
16717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16719 # Create a temporary old-style archive to link instead of a shared archive.
16720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16722 # Commands used to build and install a shared archive.
16723 archive_cmds=$lt_archive_cmds_F77
16724 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16725 postinstall_cmds=$lt_postinstall_cmds
16726 postuninstall_cmds=$lt_postuninstall_cmds
16728 # Commands used to build a loadable module (assumed same as above if empty)
16729 module_cmds=$lt_module_cmds_F77
16730 module_expsym_cmds=$lt_module_expsym_cmds_F77
16732 # Commands to strip libraries.
16733 old_striplib=$lt_old_striplib
16734 striplib=$lt_striplib
16736 # Dependencies to place before the objects being linked to create a
16738 predep_objects=$lt_predep_objects_F77
16740 # Dependencies to place after the objects being linked to create a
16742 postdep_objects=$lt_postdep_objects_F77
16744 # Dependencies to place before the objects being linked to create a
16746 predeps=$lt_predeps_F77
16748 # Dependencies to place after the objects being linked to create a
16750 postdeps=$lt_postdeps_F77
16752 # The directories searched by this compiler when creating a shared
16754 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16756 # The library search path used internally by the compiler when linking
16757 # a shared library.
16758 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16760 # Method to check whether dependent libraries are shared objects.
16761 deplibs_check_method=$lt_deplibs_check_method
16763 # Command to use when deplibs_check_method == file_magic.
16764 file_magic_cmd=$lt_file_magic_cmd
16766 # Flag that allows shared libraries with undefined symbols to be built.
16767 allow_undefined_flag=$lt_allow_undefined_flag_F77
16769 # Flag that forces no undefined symbols.
16770 no_undefined_flag=$lt_no_undefined_flag_F77
16772 # Commands used to finish a libtool library installation in a directory.
16773 finish_cmds=$lt_finish_cmds
16775 # Same as above, but a single script fragment to be evaled but not shown.
16776 finish_eval=$lt_finish_eval
16778 # Take the output of nm and produce a listing of raw symbols and C names.
16779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16781 # Transform the output of nm in a proper C declaration
16782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16784 # Transform the output of nm in a C name address pair
16785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16787 # This is the shared library runtime path variable.
16788 runpath_var=$runpath_var
16790 # This is the shared library path variable.
16791 shlibpath_var=$shlibpath_var
16793 # Is shlibpath searched before the hard-coded library search path?
16794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16796 # How to hardcode a shared library path into an executable.
16797 hardcode_action=$hardcode_action_F77
16799 # Whether we should hardcode library paths into libraries.
16800 hardcode_into_libs=$hardcode_into_libs
16802 # Flag to hardcode \$libdir into a binary during linking.
16803 # This must work even if \$libdir does not exist.
16804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16806 # If ld is used when linking, flag to hardcode \$libdir into
16807 # a binary during linking. This must work even if \$libdir does
16809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16811 # Whether we need a single -rpath flag with a separated argument.
16812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16814 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16815 # resulting binary.
16816 hardcode_direct=$hardcode_direct_F77
16818 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16819 # resulting binary.
16820 hardcode_minus_L=$hardcode_minus_L_F77
16822 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16823 # the resulting binary.
16824 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16826 # Set to yes if building a shared library automatically hardcodes DIR into the library
16827 # and all subsequent libraries and executables linked against it.
16828 hardcode_automatic=$hardcode_automatic_F77
16830 # Variables whose values should be saved in libtool wrapper scripts and
16831 # restored at relink time.
16832 variables_saved_for_relink="$variables_saved_for_relink"
16834 # Whether libtool must link a program against all its dependency libraries.
16835 link_all_deplibs=$link_all_deplibs_F77
16837 # Compile-time system search path for libraries
16838 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16840 # Run-time system search path for libraries
16841 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16843 # Fix the shell variable \$srcfile for the compiler.
16844 fix_srcfile_path=$lt_fix_srcfile_path
16846 # Set to yes if exported symbols are required.
16847 always_export_symbols=$always_export_symbols_F77
16849 # The commands to list exported symbols.
16850 export_symbols_cmds=$lt_export_symbols_cmds_F77
16852 # The commands to extract the exported symbol list from a shared archive.
16853 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16855 # Symbols that should not be listed in the preloaded symbols.
16856 exclude_expsyms=$lt_exclude_expsyms_F77
16858 # Symbols that must always be exported.
16859 include_expsyms=$lt_include_expsyms_F77
16861 # ### END LIBTOOL TAG CONFIG: $tagname
16867 # If there is no Makefile yet, we rely on a make rule to execute
16868 # `config.status --recheck' to rerun these tests and create the
16869 # libtool script then.
16870 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16871 if test -f "$ltmain_in"; then
16872 test -f Makefile && make "$ltmain"
16878 ac_cpp='$CPP $CPPFLAGS'
16879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16894 # Source file extension for Java test sources.
16897 # Object file extension for compiled Java test sources.
16901 # Code to be used in simple compile tests
16902 lt_simple_compile_test_code="class foo {}"
16904 # Code to be used in simple link tests
16905 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16907 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16909 # If no C compiler was specified, use CC.
16912 # If no C compiler flags were specified, use CFLAGS.
16913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16915 # Allow CC to be a program name with arguments.
16919 # save warnings/boilerplate of simple test code
16920 ac_outfile=conftest.$ac_objext
16921 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16922 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16923 _lt_compiler_boilerplate=`cat conftest.err`
16926 ac_outfile=conftest.$ac_objext
16927 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16928 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16929 _lt_linker_boilerplate=`cat conftest.err`
16933 # Allow CC to be a program name with arguments.
16938 for cc_temp in $compiler""; do
16940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16946 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16949 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16950 archive_cmds_need_lc_GCJ=no
16952 old_archive_cmds_GCJ=$old_archive_cmds
16955 lt_prog_compiler_no_builtin_flag_GCJ=
16957 if test "$GCC" = yes; then
16958 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16961 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16962 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 lt_cv_prog_compiler_rtti_exceptions=no
16967 ac_outfile=conftest.$ac_objext
16968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16969 lt_compiler_flag="-fno-rtti -fno-exceptions"
16970 # Insert the option either (1) after the last *FLAGS variable, or
16971 # (2) before a word containing "conftest.", or (3) at the end.
16972 # Note that $ac_compile itself does not contain backslashes and begins
16973 # with a dollar sign (not a hyphen), so the echo should work correctly.
16974 # The option is referenced via a variable to avoid confusing sed.
16975 lt_compile=`echo "$ac_compile" | $SED \
16976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16978 -e 's:$: $lt_compiler_flag:'`
16979 (eval echo "\"\$as_me:16980: $lt_compile\"" >&5)
16980 (eval "$lt_compile" 2>conftest.err)
16982 cat conftest.err >&5
16983 echo "$as_me:16984: \$? = $ac_status" >&5
16984 if (exit $ac_status) && test -s "$ac_outfile"; then
16985 # The compiler can only warn and ignore the option if not recognized
16986 # So say no if there are warnings other than the usual output.
16987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16990 lt_cv_prog_compiler_rtti_exceptions=yes
16996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16997 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17000 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17007 lt_prog_compiler_wl_GCJ=
17008 lt_prog_compiler_pic_GCJ=
17009 lt_prog_compiler_static_GCJ=
17011 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17014 if test "$GCC" = yes; then
17015 lt_prog_compiler_wl_GCJ='-Wl,'
17016 lt_prog_compiler_static_GCJ='-static'
17020 # All AIX code is PIC.
17021 if test "$host_cpu" = ia64; then
17022 # AIX 5 now supports IA64 processor
17023 lt_prog_compiler_static_GCJ='-Bstatic'
17028 # FIXME: we need at least 68020 code to build shared libraries, but
17029 # adding the `-m68020' flag to GCC prevents building anything better,
17031 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17034 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17035 # PIC is the default for these OSes.
17038 mingw* | cygwin* | pw32* | os2*)
17039 # This hack is so that the source file can tell whether it is being
17040 # built for inclusion in a dll (and should export symbols for example).
17041 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17042 # (--disable-auto-import) libraries
17046 darwin* | rhapsody*)
17047 # PIC is the default on this platform
17048 # Common symbols not allowed in MH_DYLIB files
17049 lt_prog_compiler_pic_GCJ='-fno-common'
17053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17054 # Instead, we relocate shared libraries at runtime.
17058 # Just because we use GCC doesn't mean we suddenly get shared libraries
17059 # on systems that don't support them.
17060 lt_prog_compiler_can_build_shared_GCJ=no
17065 if test -d /usr/nec; then
17066 lt_prog_compiler_pic_GCJ=-Kconform_pic
17071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17072 # not for PA HP-UX.
17078 lt_prog_compiler_pic_GCJ='-fPIC'
17084 lt_prog_compiler_pic_GCJ='-fPIC'
17088 # PORTME Check for flag to pass linker flags through the system compiler.
17091 lt_prog_compiler_wl_GCJ='-Wl,'
17092 if test "$host_cpu" = ia64; then
17093 # AIX 5 now supports IA64 processor
17094 lt_prog_compiler_static_GCJ='-Bstatic'
17096 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17100 # PIC is the default on this platform
17101 # Common symbols not allowed in MH_DYLIB files
17102 case $cc_basename in
17104 lt_prog_compiler_pic_GCJ='-qnocommon'
17105 lt_prog_compiler_wl_GCJ='-Wl,'
17110 mingw* | cygwin* | pw32* | os2*)
17111 # This hack is so that the source file can tell whether it is being
17112 # built for inclusion in a dll (and should export symbols for example).
17116 hpux9* | hpux10* | hpux11*)
17117 lt_prog_compiler_wl_GCJ='-Wl,'
17118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119 # not for PA HP-UX.
17125 lt_prog_compiler_pic_GCJ='+Z'
17128 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17129 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17132 irix5* | irix6* | nonstopux*)
17133 lt_prog_compiler_wl_GCJ='-Wl,'
17134 # PIC (with -KPIC) is the default.
17135 lt_prog_compiler_static_GCJ='-non_shared'
17139 lt_prog_compiler_pic_GCJ='-KPIC'
17140 lt_prog_compiler_static_GCJ='-Bstatic'
17143 linux* | k*bsd*-gnu)
17144 case $cc_basename in
17146 lt_prog_compiler_wl_GCJ='-Wl,'
17147 lt_prog_compiler_pic_GCJ='-KPIC'
17148 lt_prog_compiler_static_GCJ='-static'
17150 pgcc* | pgf77* | pgf90* | pgf95*)
17151 # Portland Group compilers (*not* the Pentium gcc compiler,
17152 # which looks to be a dead project)
17153 lt_prog_compiler_wl_GCJ='-Wl,'
17154 lt_prog_compiler_pic_GCJ='-fpic'
17155 lt_prog_compiler_static_GCJ='-Bstatic'
17158 lt_prog_compiler_wl_GCJ='-Wl,'
17159 # All Alpha code is PIC.
17160 lt_prog_compiler_static_GCJ='-non_shared'
17163 case `$CC -V 2>&1 | sed 5q` in
17166 lt_prog_compiler_pic_GCJ='-KPIC'
17167 lt_prog_compiler_static_GCJ='-Bstatic'
17168 lt_prog_compiler_wl_GCJ='-Wl,'
17171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17172 lt_prog_compiler_pic_GCJ='-KPIC'
17173 lt_prog_compiler_static_GCJ='-Bstatic'
17174 lt_prog_compiler_wl_GCJ=''
17181 osf3* | osf4* | osf5*)
17182 lt_prog_compiler_wl_GCJ='-Wl,'
17183 # All OSF/1 code is PIC.
17184 lt_prog_compiler_static_GCJ='-non_shared'
17188 lt_prog_compiler_static_GCJ='-non_shared'
17192 lt_prog_compiler_pic_GCJ='-KPIC'
17193 lt_prog_compiler_static_GCJ='-Bstatic'
17194 case $cc_basename in
17195 f77* | f90* | f95*)
17196 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17198 lt_prog_compiler_wl_GCJ='-Wl,';;
17203 lt_prog_compiler_wl_GCJ='-Qoption ld '
17204 lt_prog_compiler_pic_GCJ='-PIC'
17205 lt_prog_compiler_static_GCJ='-Bstatic'
17208 sysv4 | sysv4.2uw2* | sysv4.3*)
17209 lt_prog_compiler_wl_GCJ='-Wl,'
17210 lt_prog_compiler_pic_GCJ='-KPIC'
17211 lt_prog_compiler_static_GCJ='-Bstatic'
17215 if test -d /usr/nec ;then
17216 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17217 lt_prog_compiler_static_GCJ='-Bstatic'
17221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17222 lt_prog_compiler_wl_GCJ='-Wl,'
17223 lt_prog_compiler_pic_GCJ='-KPIC'
17224 lt_prog_compiler_static_GCJ='-Bstatic'
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 lt_prog_compiler_can_build_shared_GCJ=no
17233 lt_prog_compiler_pic_GCJ='-pic'
17234 lt_prog_compiler_static_GCJ='-Bstatic'
17238 lt_prog_compiler_can_build_shared_GCJ=no
17243 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17244 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17247 # Check to make sure the PIC flag actually works.
17249 if test -n "$lt_prog_compiler_pic_GCJ"; then
17251 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17252 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17253 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 lt_cv_prog_compiler_pic_works_GCJ=no
17257 ac_outfile=conftest.$ac_objext
17258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17259 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17260 # Insert the option either (1) after the last *FLAGS variable, or
17261 # (2) before a word containing "conftest.", or (3) at the end.
17262 # Note that $ac_compile itself does not contain backslashes and begins
17263 # with a dollar sign (not a hyphen), so the echo should work correctly.
17264 # The option is referenced via a variable to avoid confusing sed.
17265 lt_compile=`echo "$ac_compile" | $SED \
17266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17268 -e 's:$: $lt_compiler_flag:'`
17269 (eval echo "\"\$as_me:17270: $lt_compile\"" >&5)
17270 (eval "$lt_compile" 2>conftest.err)
17272 cat conftest.err >&5
17273 echo "$as_me:17274: \$? = $ac_status" >&5
17274 if (exit $ac_status) && test -s "$ac_outfile"; then
17275 # The compiler can only warn and ignore the option if not recognized
17276 # So say no if there are warnings other than the usual output.
17277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17280 lt_cv_prog_compiler_pic_works_GCJ=yes
17286 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17287 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17289 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17290 case $lt_prog_compiler_pic_GCJ in
17292 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17295 lt_prog_compiler_pic_GCJ=
17296 lt_prog_compiler_can_build_shared_GCJ=no
17301 # For platforms which do not support PIC, -DPIC is meaningless:
17303 lt_prog_compiler_pic_GCJ=
17306 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17311 # Check to make sure the static flag actually works.
17313 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17314 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17315 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17316 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17319 lt_cv_prog_compiler_static_works_GCJ=no
17320 save_LDFLAGS="$LDFLAGS"
17321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17324 # The linker can only warn and ignore the option if not recognized
17325 # So say no if there are warnings
17326 if test -s conftest.err; then
17327 # Append any errors to the config.log.
17328 cat conftest.err 1>&5
17329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17331 if diff conftest.exp conftest.er2 >/dev/null; then
17332 lt_cv_prog_compiler_static_works_GCJ=yes
17335 lt_cv_prog_compiler_static_works_GCJ=yes
17339 LDFLAGS="$save_LDFLAGS"
17342 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17343 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17345 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17348 lt_prog_compiler_static_GCJ=
17352 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17353 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17354 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17357 lt_cv_prog_compiler_c_o_GCJ=no
17358 $rm -r conftest 2>/dev/null
17362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17364 lt_compiler_flag="-o out/conftest2.$ac_objext"
17365 # Insert the option either (1) after the last *FLAGS variable, or
17366 # (2) before a word containing "conftest.", or (3) at the end.
17367 # Note that $ac_compile itself does not contain backslashes and begins
17368 # with a dollar sign (not a hyphen), so the echo should work correctly.
17369 lt_compile=`echo "$ac_compile" | $SED \
17370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17372 -e 's:$: $lt_compiler_flag:'`
17373 (eval echo "\"\$as_me:17374: $lt_compile\"" >&5)
17374 (eval "$lt_compile" 2>out/conftest.err)
17376 cat out/conftest.err >&5
17377 echo "$as_me:17378: \$? = $ac_status" >&5
17378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17380 # The compiler can only warn and ignore the option if not recognized
17381 # So say no if there are warnings
17382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17385 lt_cv_prog_compiler_c_o_GCJ=yes
17390 # SGI C++ compiler will create directory out/ii_files/ for
17391 # template instantiation
17392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17393 $rm out/* && rmdir out
17399 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17400 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17403 hard_links="nottested"
17404 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17405 # do not overwrite the value of need_locks provided by the user
17406 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17407 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17410 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17412 ln conftest.a conftest.b 2>&5 || hard_links=no
17413 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17414 { echo "$as_me:$LINENO: result: $hard_links" >&5
17415 echo "${ECHO_T}$hard_links" >&6; }
17416 if test "$hard_links" = no; then
17417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17418 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17425 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17426 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17429 allow_undefined_flag_GCJ=
17430 enable_shared_with_static_runtimes_GCJ=no
17432 archive_expsym_cmds_GCJ=
17433 old_archive_From_new_cmds_GCJ=
17434 old_archive_from_expsyms_cmds_GCJ=
17435 export_dynamic_flag_spec_GCJ=
17436 whole_archive_flag_spec_GCJ=
17437 thread_safe_flag_spec_GCJ=
17438 hardcode_libdir_flag_spec_GCJ=
17439 hardcode_libdir_flag_spec_ld_GCJ=
17440 hardcode_libdir_separator_GCJ=
17441 hardcode_direct_GCJ=no
17442 hardcode_minus_L_GCJ=no
17443 hardcode_shlibpath_var_GCJ=unsupported
17444 link_all_deplibs_GCJ=unknown
17445 hardcode_automatic_GCJ=no
17447 module_expsym_cmds_GCJ=
17448 always_export_symbols_GCJ=no
17449 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17450 # include_expsyms should be a list of space-separated symbols to be *always*
17451 # included in the symbol list
17452 include_expsyms_GCJ=
17453 # exclude_expsyms can be an extended regexp of symbols to exclude
17454 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17456 # as well as any symbol that contains `d'.
17457 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17459 # platforms (ab)use it in PIC code, but their linkers get confused if
17460 # the symbol is explicitly referenced. Since portable code cannot
17461 # rely on this symbol name, it's probably fine to never include it in
17462 # preloaded symbol tables.
17463 # Exclude shared library initialization/finalization symbols.
17464 extract_expsyms_cmds=
17465 # Just being paranoid about ensuring that cc_basename is set.
17466 for cc_temp in $compiler""; do
17468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17477 cygwin* | mingw* | pw32*)
17478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17479 # When not using gcc, we currently assume that we are using
17480 # Microsoft Visual C++.
17481 if test "$GCC" != yes; then
17486 # we just hope/assume this is gcc and not c89 (= MSVC++)
17495 if test "$with_gnu_ld" = yes; then
17496 # If archive_cmds runs LD, not CC, wlarc should be empty
17499 # Set some defaults for GNU ld with shared library support. These
17500 # are reset later if shared libraries are not supported. Putting them
17501 # here allows them to be overridden if necessary.
17502 runpath_var=LD_RUN_PATH
17503 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17504 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17505 # ancient GNU ld didn't support --whole-archive et. al.
17506 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17507 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17509 whole_archive_flag_spec_GCJ=
17511 supports_anon_versioning=no
17512 case `$LD -v 2>/dev/null` in
17513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17516 *\ 2.11.*) ;; # other 2.11 versions
17517 *) supports_anon_versioning=yes ;;
17520 # See if GNU ld supports shared libraries.
17523 # On AIX/PPC, the GNU linker is very broken
17524 if test "$host_cpu" != ia64; then
17528 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17529 *** to be unable to reliably create shared libraries on AIX.
17530 *** Therefore, libtool is disabling shared libraries support. If you
17531 *** really care for shared libraries, you may want to modify your PATH
17532 *** so that a non-GNU linker is found, and then restart.
17539 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)'
17540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17541 hardcode_minus_L_GCJ=yes
17543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17544 # that the semantics of dynamic libraries on AmigaOS, at least up
17545 # to version 4, is to share data among multiple programs linked
17546 # with the same dynamic library. Since this doesn't match the
17547 # behavior of shared libraries on other platforms, we can't use
17553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17554 allow_undefined_flag_GCJ=unsupported
17555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17556 # support --undefined. This deserves some investigation. FIXME
17557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17563 cygwin* | mingw* | pw32*)
17564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17565 # as there is no search path for DLLs.
17566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567 allow_undefined_flag_GCJ=unsupported
17568 always_export_symbols_GCJ=no
17569 enable_shared_with_static_runtimes_GCJ=yes
17570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17574 # If the export-symbols file already is a .def file (1st line
17575 # is EXPORTS), use it as is; otherwise, prepend...
17576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17577 cp $export_symbols $output_objdir/$soname.def;
17579 echo EXPORTS > $output_objdir/$soname.def;
17580 cat $export_symbols >> $output_objdir/$soname.def;
17582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17589 hardcode_direct_GCJ=no
17590 hardcode_shlibpath_var_GCJ=no
17591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17592 export_dynamic_flag_spec_GCJ='${wl}-E'
17593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17594 # Instead, shared libraries are loaded at an image base (0x10000000 by
17595 # default) and relocated if they conflict, which is a slow very memory
17596 # consuming and fragmenting process. To avoid this, we pick a random,
17597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17599 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'
17600 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'
17603 gnu* | linux* | k*bsd*-gnu)
17604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17606 case $cc_basename,$host_cpu in
17607 pgcc*) # Portland Group C compiler
17608 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'
17609 tmp_addflag=' $pic_flag'
17611 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17612 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'
17613 tmp_addflag=' $pic_flag -Mnomain' ;;
17614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17615 tmp_addflag=' -i_dynamic' ;;
17616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17617 tmp_addflag=' -i_dynamic -nofor_main' ;;
17618 ifc* | ifort*) # Intel Fortran compiler
17619 tmp_addflag=' -nofor_main' ;;
17621 case `$CC -V 2>&1 | sed 5q` in
17622 *Sun\ C*) # Sun C 5.9
17623 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17624 tmp_sharedflag='-G' ;;
17625 *Sun\ F*) # Sun Fortran 8.3
17626 tmp_sharedflag='-G' ;;
17628 tmp_sharedflag='-shared' ;;
17630 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17632 if test $supports_anon_versioning = yes; then
17633 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17635 $echo "local: *; };" >> $output_objdir/$libname.ver~
17636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17638 link_all_deplibs_GCJ=no
17644 netbsd* | netbsdelf*-gnu)
17645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17646 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17649 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17655 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17659 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17660 *** create shared libraries on Solaris systems. Therefore, libtool
17661 *** is disabling shared libraries support. We urge you to upgrade GNU
17662 *** binutils to release 2.9.1 or newer. Another option is to modify
17663 *** your PATH or compiler configuration so that the native linker is
17664 *** used, and then restart.
17667 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17668 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17669 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17676 case `$LD -v 2>&1` in
17677 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17681 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17682 *** reliably create shared libraries on SCO systems. Therefore, libtool
17683 *** is disabling shared libraries support. We urge you to upgrade GNU
17684 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17685 *** your PATH or compiler configuration so that the native linker is
17686 *** used, and then restart.
17691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17693 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17694 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17703 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_direct_GCJ=yes
17706 hardcode_shlibpath_var_GCJ=no
17710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17711 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17719 if test "$ld_shlibs_GCJ" = no; then
17721 hardcode_libdir_flag_spec_GCJ=
17722 export_dynamic_flag_spec_GCJ=
17723 whole_archive_flag_spec_GCJ=
17726 # PORTME fill in a description of your system's linker (not GNU ld)
17729 allow_undefined_flag_GCJ=unsupported
17730 always_export_symbols_GCJ=yes
17731 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'
17732 # Note: this linker hardcodes the directories in LIBPATH if there
17733 # are no directories specified by -L.
17734 hardcode_minus_L_GCJ=yes
17735 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17736 # Neither direct hardcoding nor static linking is supported with a
17738 hardcode_direct_GCJ=unsupported
17743 if test "$host_cpu" = ia64; then
17744 # On IA64, the linker does run time linking by default, so we don't
17745 # have to do anything special.
17746 aix_use_runtimelinking=no
17747 exp_sym_flag='-Bexport'
17750 # If we're using GNU nm, then we don't want the "-C" option.
17751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17752 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17753 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'
17755 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'
17757 aix_use_runtimelinking=no
17759 # Test if we are trying to use run time linking or normal
17760 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17761 # need to do runtime linking.
17762 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17763 for ld_flag in $LDFLAGS; do
17764 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17765 aix_use_runtimelinking=yes
17772 exp_sym_flag='-bexport'
17773 no_entry_flag='-bnoentry'
17776 # When large executables or shared objects are built, AIX ld can
17777 # have problems creating the table of contents. If linking a library
17778 # or program results in "error TOC overflow" add -mminimal-toc to
17779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17782 archive_cmds_GCJ=''
17783 hardcode_direct_GCJ=yes
17784 hardcode_libdir_separator_GCJ=':'
17785 link_all_deplibs_GCJ=yes
17787 if test "$GCC" = yes; then
17788 case $host_os in aix4.[012]|aix4.[012].*)
17789 # We only want to do this on AIX 4.2 and lower, the check
17790 # below for broken collect2 doesn't work under 4.3+
17791 collect2name=`${CC} -print-prog-name=collect2`
17792 if test -f "$collect2name" && \
17793 strings "$collect2name" | grep resolve_lib_name >/dev/null
17795 # We have reworked collect2
17798 # We have old collect2
17799 hardcode_direct_GCJ=unsupported
17800 # It fails to find uninstalled libraries when the uninstalled
17801 # path is not listed in the libpath. Setting hardcode_minus_L
17802 # to unsupported forces relinking
17803 hardcode_minus_L_GCJ=yes
17804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17805 hardcode_libdir_separator_GCJ=
17809 shared_flag='-shared'
17810 if test "$aix_use_runtimelinking" = yes; then
17811 shared_flag="$shared_flag "'${wl}-G'
17815 if test "$host_cpu" = ia64; then
17816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17817 # chokes on -Wl,-G. The following line is correct:
17820 if test "$aix_use_runtimelinking" = yes; then
17821 shared_flag='${wl}-G'
17823 shared_flag='${wl}-bM:SRE'
17828 # It seems that -bexpall does not export symbols beginning with
17829 # underscore (_), so it is better to generate a list of symbols to export.
17830 always_export_symbols_GCJ=yes
17831 if test "$aix_use_runtimelinking" = yes; then
17832 # Warning - without using the other runtime loading flags (-brtl),
17833 # -berok will link without error, but may produce a broken library.
17834 allow_undefined_flag_GCJ='-berok'
17835 # Determine the default libpath from the value encoded in an empty executable.
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17851 rm -f conftest.$ac_objext conftest$ac_exeext
17852 if { (ac_try="$ac_link"
17853 case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17858 (eval "$ac_link") 2>conftest.er1
17860 grep -v '^ *+' conftest.er1 >conftest.err
17862 cat conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); } && {
17865 test -z "$ac_c_werror_flag" ||
17866 test ! -s conftest.err
17867 } && test -s conftest$ac_exeext &&
17868 $as_test_x conftest$ac_exeext; then
17870 lt_aix_libpath_sed='
17871 /Import File Strings/,/^$/ {
17877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17878 # Check for a 64-bit object if we didn't find anything.
17879 if test -z "$aix_libpath"; then
17880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890 conftest$ac_exeext conftest.$ac_ext
17891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17893 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17894 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"
17896 if test "$host_cpu" = ia64; then
17897 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17898 allow_undefined_flag_GCJ="-z nodefs"
17899 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"
17901 # Determine the default libpath from the value encoded in an empty executable.
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); } && {
17931 test -z "$ac_c_werror_flag" ||
17932 test ! -s conftest.err
17933 } && test -s conftest$ac_exeext &&
17934 $as_test_x conftest$ac_exeext; then
17936 lt_aix_libpath_sed='
17937 /Import File Strings/,/^$/ {
17943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17944 # Check for a 64-bit object if we didn't find anything.
17945 if test -z "$aix_libpath"; then
17946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17956 conftest$ac_exeext conftest.$ac_ext
17957 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17959 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17960 # Warning - without using the other run time loading flags,
17961 # -berok will link without error, but may produce a broken library.
17962 no_undefined_flag_GCJ=' ${wl}-bernotok'
17963 allow_undefined_flag_GCJ=' ${wl}-berok'
17964 # Exported symbols can be pulled into shared objects from archives
17965 whole_archive_flag_spec_GCJ='$convenience'
17966 archive_cmds_need_lc_GCJ=yes
17967 # This is similar to how AIX traditionally builds its shared libraries.
17968 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'
17974 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)'
17975 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17976 hardcode_minus_L_GCJ=yes
17977 # see comment about different semantics on the GNU ld section
17982 export_dynamic_flag_spec_GCJ=-rdynamic
17985 cygwin* | mingw* | pw32*)
17986 # When not using gcc, we currently assume that we are using
17987 # Microsoft Visual C++.
17988 # hardcode_libdir_flag_spec is actually meaningless, as there is
17989 # no search path for DLLs.
17990 hardcode_libdir_flag_spec_GCJ=' '
17991 allow_undefined_flag_GCJ=unsupported
17992 # Tell ltmain to make .lib files, not .a files.
17994 # Tell ltmain to make .dll files, not .so files.
17996 # FIXME: Setting linknames here is a bad hack.
17997 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17998 # The linker will automatically build a .lib file if we build a DLL.
17999 old_archive_From_new_cmds_GCJ='true'
18000 # FIXME: Should let the user specify the lib program.
18001 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18002 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18003 enable_shared_with_static_runtimes_GCJ=yes
18006 darwin* | rhapsody*)
18008 rhapsody* | darwin1.[012])
18009 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18012 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18013 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18015 case ${MACOSX_DEPLOYMENT_TARGET} in
18017 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18020 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18026 archive_cmds_need_lc_GCJ=no
18027 hardcode_direct_GCJ=no
18028 hardcode_automatic_GCJ=yes
18029 hardcode_shlibpath_var_GCJ=unsupported
18030 whole_archive_flag_spec_GCJ=''
18031 link_all_deplibs_GCJ=yes
18032 if test "$GCC" = yes ; then
18033 output_verbose_link_cmd='echo'
18034 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18035 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18036 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18037 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18039 case $cc_basename in
18041 output_verbose_link_cmd='echo'
18042 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18043 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18045 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18046 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}'
18056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18057 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18058 hardcode_shlibpath_var_GCJ=no
18065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18066 # support. Future versions do this automatically, but an explicit c++rt0.o
18067 # does not break anything, and helps significantly (at the cost of a little
18070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18072 hardcode_direct_GCJ=yes
18073 hardcode_shlibpath_var_GCJ=no
18076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18078 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18079 hardcode_direct_GCJ=yes
18080 hardcode_minus_L_GCJ=yes
18081 hardcode_shlibpath_var_GCJ=no
18084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18085 freebsd* | dragonfly*)
18086 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18087 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18088 hardcode_direct_GCJ=yes
18089 hardcode_shlibpath_var_GCJ=no
18093 if test "$GCC" = yes; then
18094 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'
18096 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'
18098 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18099 hardcode_libdir_separator_GCJ=:
18100 hardcode_direct_GCJ=yes
18102 # hardcode_minus_L: Not really in the search PATH,
18103 # but as the default location of the library.
18104 hardcode_minus_L_GCJ=yes
18105 export_dynamic_flag_spec_GCJ='${wl}-E'
18109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18110 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18112 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18114 if test "$with_gnu_ld" = no; then
18115 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18116 hardcode_libdir_separator_GCJ=:
18118 hardcode_direct_GCJ=yes
18119 export_dynamic_flag_spec_GCJ='${wl}-E'
18121 # hardcode_minus_L: Not really in the search PATH,
18122 # but as the default location of the library.
18123 hardcode_minus_L_GCJ=yes
18128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18131 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18137 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18143 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18146 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18149 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18153 if test "$with_gnu_ld" = no; then
18154 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18155 hardcode_libdir_separator_GCJ=:
18159 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18160 hardcode_direct_GCJ=no
18161 hardcode_shlibpath_var_GCJ=no
18164 hardcode_direct_GCJ=yes
18165 export_dynamic_flag_spec_GCJ='${wl}-E'
18167 # hardcode_minus_L: Not really in the search PATH,
18168 # but as the default location of the library.
18169 hardcode_minus_L_GCJ=yes
18175 irix5* | irix6* | nonstopux*)
18176 if test "$GCC" = yes; then
18177 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'
18179 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'
18180 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18182 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183 hardcode_libdir_separator_GCJ=:
18184 link_all_deplibs_GCJ=yes
18187 netbsd* | netbsdelf*-gnu)
18188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18189 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18191 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18193 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18194 hardcode_direct_GCJ=yes
18195 hardcode_shlibpath_var_GCJ=no
18199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200 hardcode_direct_GCJ=yes
18201 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18202 hardcode_libdir_separator_GCJ=:
18203 hardcode_shlibpath_var_GCJ=no
18207 if test -f /usr/libexec/ld.so; then
18208 hardcode_direct_GCJ=yes
18209 hardcode_shlibpath_var_GCJ=no
18210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18211 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18212 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18213 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18214 export_dynamic_flag_spec_GCJ='${wl}-E'
18217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18222 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18223 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234 hardcode_minus_L_GCJ=yes
18235 allow_undefined_flag_GCJ=unsupported
18236 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'
18237 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18241 if test "$GCC" = yes; then
18242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243 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'
18245 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246 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'
18248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249 hardcode_libdir_separator_GCJ=:
18252 osf4* | osf5*) # as osf3* with the addition of -msym flag
18253 if test "$GCC" = yes; then
18254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255 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'
18256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18258 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18259 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'
18260 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~
18261 $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'
18263 # Both c and cxx compiler support -rpath directly
18264 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18266 hardcode_libdir_separator_GCJ=:
18270 no_undefined_flag_GCJ=' -z text'
18271 if test "$GCC" = yes; then
18273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18278 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283 hardcode_shlibpath_var_GCJ=no
18285 solaris2.[0-5] | solaris2.[0-5].*) ;;
18287 # The compiler driver will combine and reorder linker options,
18288 # but understands `-z linker_flag'. GCC discards it without `$wl',
18289 # but is careful enough not to reorder.
18290 # Supported since Solaris 2.6 (maybe 2.5.1?)
18291 if test "$GCC" = yes; then
18292 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18294 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18298 link_all_deplibs_GCJ=yes
18302 if test "x$host_vendor" = xsequent; then
18303 # Use $CC to link under sequent, because it throws in some extra .o
18304 # files that make .init and .fini sections work.
18305 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18307 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18310 hardcode_direct_GCJ=yes
18311 hardcode_minus_L_GCJ=yes
18312 hardcode_shlibpath_var_GCJ=no
18316 case $host_vendor in
18318 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18319 hardcode_direct_GCJ=yes # is this really true???
18322 ## LD is ld it makes a PLAMLIB
18323 ## CC just makes a GrossModule.
18324 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18325 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18326 hardcode_direct_GCJ=no
18329 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18330 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18333 runpath_var='LD_RUN_PATH'
18334 hardcode_shlibpath_var_GCJ=no
18338 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339 hardcode_shlibpath_var_GCJ=no
18340 export_dynamic_flag_spec_GCJ='-Bexport'
18344 if test -d /usr/nec; then
18345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346 hardcode_shlibpath_var_GCJ=no
18347 runpath_var=LD_RUN_PATH
18348 hardcode_runpath_var=yes
18353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18354 no_undefined_flag_GCJ='${wl}-z,text'
18355 archive_cmds_need_lc_GCJ=no
18356 hardcode_shlibpath_var_GCJ=no
18357 runpath_var='LD_RUN_PATH'
18359 if test "$GCC" = yes; then
18360 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18361 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18363 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18368 sysv5* | sco3.2v5* | sco5v6*)
18369 # Note: We can NOT use -z defs as we might desire, because we do not
18370 # link with -lc, and that would cause any symbols used from libc to
18371 # always be unresolved, which means just about no library would
18372 # ever link correctly. If we're not using GNU ld we use -z text
18373 # though, which does catch some bad symbols but isn't as heavy-handed
18375 no_undefined_flag_GCJ='${wl}-z,text'
18376 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18377 archive_cmds_need_lc_GCJ=no
18378 hardcode_shlibpath_var_GCJ=no
18379 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18380 hardcode_libdir_separator_GCJ=':'
18381 link_all_deplibs_GCJ=yes
18382 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18383 runpath_var='LD_RUN_PATH'
18385 if test "$GCC" = yes; then
18386 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18389 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18397 hardcode_shlibpath_var_GCJ=no
18406 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18407 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18408 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18411 # Do we need to explicitly link libc?
18413 case "x$archive_cmds_need_lc_GCJ" in
18415 # Assume -lc should be added
18416 archive_cmds_need_lc_GCJ=yes
18418 if test "$enable_shared" = yes && test "$GCC" = yes; then
18419 case $archive_cmds_GCJ in
18421 # FIXME: we may have to deal with multi-command sequences.
18424 # Test whether the compiler implicitly links with -lc since on some
18425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18426 # to ld, don't add -lc before -lgcc.
18427 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18428 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433 (eval $ac_compile) 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } 2>conftest.err; then
18439 libobjs=conftest.$ac_objext
18441 wl=$lt_prog_compiler_wl_GCJ
18442 pic_flag=$lt_prog_compiler_pic_GCJ
18448 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18449 allow_undefined_flag_GCJ=
18450 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18451 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }
18456 archive_cmds_need_lc_GCJ=no
18458 archive_cmds_need_lc_GCJ=yes
18460 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18462 cat conftest.err 1>&5
18465 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18466 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18473 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18474 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18475 library_names_spec=
18476 libname_spec='lib$name'
18480 postuninstall_cmds=
18484 shlibpath_overrides_runpath=unknown
18486 dynamic_linker="$host_os ld.so"
18487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18489 need_lib_prefix=unknown
18490 hardcode_into_libs=no
18492 # when you set need_version to no, make sure it does not cause -set_version
18493 # flags to be left without arguments
18494 need_version=unknown
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18500 shlibpath_var=LIBPATH
18502 # AIX 3 has no versioning support, so we append a major version to the name.
18503 soname_spec='${libname}${release}${shared_ext}$major'
18510 hardcode_into_libs=yes
18511 if test "$host_cpu" = ia64; then
18512 # AIX 5 supports IA64
18513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18514 shlibpath_var=LD_LIBRARY_PATH
18516 # With GCC up to 2.95.x, collect2 would create an import file
18517 # for dependence libraries. The import file would start with
18518 # the line `#! .'. This would cause the generated library to
18519 # depend on `.', always an invalid library. This was fixed in
18520 # development snapshots of GCC prior to 3.0.
18522 aix4 | aix4.[01] | aix4.[01].*)
18523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18525 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18528 can_build_shared=no
18532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18533 # soname into executable. Probably we can add versioning support to
18534 # collect2, so additional links can be useful in future.
18535 if test "$aix_use_runtimelinking" = yes; then
18536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18537 # instead of lib<name>.a to let people know that these are not
18538 # typical AIX shared libraries.
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18541 # We preserve .a as extension for shared libraries through AIX4.2
18542 # and later when we are not doing run time linking.
18543 library_names_spec='${libname}${release}.a $libname.a'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LIBPATH
18551 library_names_spec='$libname.ixlibrary $libname.a'
18552 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18553 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'
18557 library_names_spec='${libname}${shared_ext}'
18558 dynamic_linker="$host_os ld.so"
18559 shlibpath_var=LIBRARY_PATH
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18570 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18571 # the default ld.so.conf also contains /usr/contrib/lib and
18572 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18573 # libtool to hard-code these into programs
18576 cygwin* | mingw* | pw32*)
18577 version_type=windows
18582 case $GCC,$host_os in
18583 yes,cygwin* | yes,mingw* | yes,pw32*)
18584 library_names_spec='$libname.dll.a'
18585 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18586 postinstall_cmds='base_file=`basename \${file}`~
18587 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18588 dldir=$destdir/`dirname \$dlpath`~
18589 test -d \$dldir || mkdir -p \$dldir~
18590 $install_prog $dir/$dlname \$dldir/$dlname~
18591 chmod a+x \$dldir/$dlname'
18592 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18593 dlpath=$dir/\$dldll~
18595 shlibpath_overrides_runpath=yes
18599 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18600 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18601 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18604 # MinGW DLLs use traditional 'lib' prefix
18605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18607 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18608 # It is most probably a Windows format PATH printed by
18609 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18610 # path with ; separators, and with drive letters. We can handle the
18611 # drive letters (cygwin fileutils understands them), so leave them,
18612 # especially as we might pass files found there to a mingw objdump,
18613 # which wouldn't understand a cygwinified path. Ahh.
18614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18620 # pw32 DLLs use 'pw' prefix rather than 'lib'
18621 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18630 dynamic_linker='Win32 ld.exe'
18631 # FIXME: first we should search . and the directory the executable is in
18635 darwin* | rhapsody*)
18636 dynamic_linker="$host_os dyld"
18637 version_type=darwin
18640 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18641 soname_spec='${libname}${release}${major}$shared_ext'
18642 shlibpath_overrides_runpath=yes
18643 shlibpath_var=DYLD_LIBRARY_PATH
18644 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18654 soname_spec='${libname}${release}${shared_ext}$major'
18655 shlibpath_var=LD_LIBRARY_PATH
18662 freebsd* | dragonfly*)
18663 # DragonFly does not have aout. When/if they implement a new
18664 # versioning mechanism, adjust this.
18665 if test -x /usr/bin/objformat; then
18666 objformat=`/usr/bin/objformat`
18669 freebsd[123]*) objformat=aout ;;
18670 *) objformat=elf ;;
18673 version_type=freebsd-$objformat
18674 case $version_type in
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18685 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes
18690 freebsd3.[01]* | freebsdelf3.[01]*)
18691 shlibpath_overrides_runpath=yes
18692 hardcode_into_libs=yes
18694 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18695 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18696 shlibpath_overrides_runpath=no
18697 hardcode_into_libs=yes
18699 *) # from 4.6 on, and DragonFly
18700 shlibpath_overrides_runpath=yes
18701 hardcode_into_libs=yes
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18711 soname_spec='${libname}${release}${shared_ext}$major'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 hardcode_into_libs=yes
18716 hpux9* | hpux10* | hpux11*)
18717 # Give a soname corresponding to the major version so that dld.sl refuses to
18718 # link against other versions.
18725 hardcode_into_libs=yes
18726 dynamic_linker="$host_os dld.so"
18727 shlibpath_var=LD_LIBRARY_PATH
18728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 if test "X$HPUX_IA64_MODE" = X32; then
18732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18740 hardcode_into_libs=yes
18741 dynamic_linker="$host_os dld.sl"
18742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18745 soname_spec='${libname}${release}${shared_ext}$major'
18746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18751 dynamic_linker="$host_os dld.sl"
18752 shlibpath_var=SHLIB_PATH
18753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18759 postinstall_cmds='chmod 555 $lib'
18766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18767 soname_spec='${libname}${release}${shared_ext}$major'
18768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 shlibpath_overrides_runpath=no
18771 hardcode_into_libs=yes
18774 irix5* | irix6* | nonstopux*)
18776 nonstopux*) version_type=nonstopux ;;
18778 if test "$lt_cv_prog_gnu_ld" = yes; then
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18789 irix5* | nonstopux*)
18790 libsuff= shlibsuff=
18793 case $LD in # libtool.m4 will add one of these switches to LD
18794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18795 libsuff= shlibsuff= libmagic=32-bit;;
18796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18797 libsuff=32 shlibsuff=N32 libmagic=N32;;
18798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18800 *) libsuff= shlibsuff= libmagic=never-match;;
18804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18805 shlibpath_overrides_runpath=no
18806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18808 hardcode_into_libs=yes
18811 # No shared lib support for Linux oldld, aout, or coff.
18812 linux*oldld* | linux*aout* | linux*coff*)
18816 # This must be Linux ELF.
18817 linux* | k*bsd*-gnu)
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=no
18826 # This implies no fast_install, which is unacceptable.
18827 # Some rework will be needed to allow for fast_install
18828 # before this can be enabled.
18829 hardcode_into_libs=yes
18831 # Append ld.so.conf contents to the search path
18832 if test -f /etc/ld.so.conf; then
18833 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18834 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18837 # We used to test for /lib/ld.so.1 and disable shared libraries on
18838 # powerpc, because MkLinux only supported shared libraries with the
18839 # GNU dynamic linker. Since this was broken with cross compilers,
18840 # most powerpc-linux boxes support dynamic linking these days and
18841 # people can always --disable-shared, the test was removed, and we
18842 # assume the GNU/Linux dynamic linker is in use.
18843 dynamic_linker='GNU/Linux ld.so'
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18851 soname_spec='${libname}${release}${shared_ext}$major'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 shlibpath_overrides_runpath=no
18854 hardcode_into_libs=yes
18855 dynamic_linker='NetBSD ld.elf_so'
18862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18865 dynamic_linker='NetBSD (a.out) ld.so'
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18868 soname_spec='${libname}${release}${shared_ext}$major'
18869 dynamic_linker='NetBSD ld.elf_so'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=yes
18873 hardcode_into_libs=yes
18878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 shlibpath_overrides_runpath=yes
18887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18888 soname_spec='${libname}${release}${shared_ext}$major'
18889 shlibpath_var=LD_LIBRARY_PATH
18890 shlibpath_overrides_runpath=yes
18895 sys_lib_dlsearch_path_spec="/usr/lib"
18897 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18899 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18900 *) need_version=no ;;
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18904 shlibpath_var=LD_LIBRARY_PATH
18905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18907 openbsd2.[89] | openbsd2.[89].*)
18908 shlibpath_overrides_runpath=no
18911 shlibpath_overrides_runpath=yes
18915 shlibpath_overrides_runpath=yes
18920 libname_spec='$name'
18923 library_names_spec='$libname${shared_ext} $libname.a'
18924 dynamic_linker='OS/2 ld.exe'
18925 shlibpath_var=LIBPATH
18928 osf3* | osf4* | osf5*)
18932 soname_spec='${libname}${release}${shared_ext}$major'
18933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18934 shlibpath_var=LD_LIBRARY_PATH
18935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
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 shlibpath_var=LD_LIBRARY_PATH
18950 shlibpath_overrides_runpath=yes
18951 hardcode_into_libs=yes
18952 # ldd complains unless libraries are executable
18953 postinstall_cmds='chmod +x $lib'
18958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18960 shlibpath_var=LD_LIBRARY_PATH
18961 shlibpath_overrides_runpath=yes
18962 if test "$with_gnu_ld" = yes; then
18970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971 soname_spec='${libname}${release}${shared_ext}$major'
18972 shlibpath_var=LD_LIBRARY_PATH
18973 case $host_vendor in
18975 shlibpath_overrides_runpath=no
18977 export_dynamic_flag_spec='${wl}-Blargedynsym'
18978 runpath_var=LD_RUN_PATH
18986 shlibpath_overrides_runpath=no
18987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18993 if test -d /usr/nec ;then
18995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18996 soname_spec='$libname${shared_ext}.$major'
18997 shlibpath_var=LD_LIBRARY_PATH
19001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19002 version_type=freebsd-elf
19005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006 soname_spec='${libname}${release}${shared_ext}$major'
19007 shlibpath_var=LD_LIBRARY_PATH
19008 hardcode_into_libs=yes
19009 if test "$with_gnu_ld" = yes; then
19010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19011 shlibpath_overrides_runpath=no
19013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19014 shlibpath_overrides_runpath=yes
19017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19021 sys_lib_dlsearch_path_spec='/usr/lib'
19026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027 soname_spec='${libname}${release}${shared_ext}$major'
19028 shlibpath_var=LD_LIBRARY_PATH
19035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19036 echo "${ECHO_T}$dynamic_linker" >&6; }
19037 test "$dynamic_linker" = no && can_build_shared=no
19039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19046 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19047 echo $ECHO_N "(cached) $ECHO_C" >&6
19049 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063 test -n "$runpath_var_GCJ" || \
19064 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19066 # We can hardcode non-existant directories.
19067 if test "$hardcode_direct_GCJ" != no &&
19068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069 # have to relink, otherwise we might link with an installed library
19070 # when we should be linking with a yet-to-be-installed one
19071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072 test "$hardcode_minus_L_GCJ" != no; then
19073 # Linking always hardcodes the temporary library directory.
19074 hardcode_action_GCJ=relink
19076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077 hardcode_action_GCJ=immediate
19080 # We cannot hardcode anything, or else we can only hardcode existing
19082 hardcode_action_GCJ=unsupported
19084 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19087 if test "$hardcode_action_GCJ" = relink; then
19088 # Fast installation is not supported
19089 enable_fast_install=no
19090 elif test "$shlibpath_overrides_runpath" = yes ||
19091 test "$enable_shared" = no; then
19092 # Fast installation is not necessary
19093 enable_fast_install=needless
19097 # The else clause should only fire when bootstrapping the
19098 # libtool distribution, otherwise you forgot to ship ltmain.sh
19099 # with your package, and you will get complaints that there are
19100 # no rules to generate ltmain.sh.
19101 if test -f "$ltmain"; then
19102 # See if we are running on zsh, and set the options which allow our commands through
19103 # without removal of \ escapes.
19104 if test -n "${ZSH_VERSION+set}" ; then
19105 setopt NO_GLOB_SUBST
19107 # Now quote all the things that may contain metacharacters while being
19108 # careful not to overquote the AC_SUBSTed values. We take copies of the
19109 # variables and quote the copies for generation of the libtool script.
19110 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19112 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114 deplibs_check_method reload_flag reload_cmds need_locks \
19115 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116 lt_cv_sys_global_symbol_to_c_name_address \
19117 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118 old_postinstall_cmds old_postuninstall_cmds \
19122 lt_prog_compiler_wl_GCJ \
19123 lt_prog_compiler_pic_GCJ \
19124 lt_prog_compiler_static_GCJ \
19125 lt_prog_compiler_no_builtin_flag_GCJ \
19126 export_dynamic_flag_spec_GCJ \
19127 thread_safe_flag_spec_GCJ \
19128 whole_archive_flag_spec_GCJ \
19129 enable_shared_with_static_runtimes_GCJ \
19130 old_archive_cmds_GCJ \
19131 old_archive_from_new_cmds_GCJ \
19132 predep_objects_GCJ \
19133 postdep_objects_GCJ \
19136 compiler_lib_search_path_GCJ \
19137 compiler_lib_search_dirs_GCJ \
19139 archive_expsym_cmds_GCJ \
19140 postinstall_cmds_GCJ \
19141 postuninstall_cmds_GCJ \
19142 old_archive_from_expsyms_cmds_GCJ \
19143 allow_undefined_flag_GCJ \
19144 no_undefined_flag_GCJ \
19145 export_symbols_cmds_GCJ \
19146 hardcode_libdir_flag_spec_GCJ \
19147 hardcode_libdir_flag_spec_ld_GCJ \
19148 hardcode_libdir_separator_GCJ \
19149 hardcode_automatic_GCJ \
19151 module_expsym_cmds_GCJ \
19152 lt_cv_prog_compiler_c_o_GCJ \
19153 fix_srcfile_path_GCJ \
19154 exclude_expsyms_GCJ \
19155 include_expsyms_GCJ; do
19158 old_archive_cmds_GCJ | \
19159 old_archive_from_new_cmds_GCJ | \
19160 archive_cmds_GCJ | \
19161 archive_expsym_cmds_GCJ | \
19162 module_cmds_GCJ | \
19163 module_expsym_cmds_GCJ | \
19164 old_archive_from_expsyms_cmds_GCJ | \
19165 export_symbols_cmds_GCJ | \
19166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19167 postinstall_cmds | postuninstall_cmds | \
19168 old_postinstall_cmds | old_postuninstall_cmds | \
19169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19170 # Double-quote double-evaled strings.
19171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19180 *'\$0 --fallback-echo"')
19181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19187 cat <<__EOF__ >> "$cfgfile"
19188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19192 # Shell to use when invoking shell scripts.
19195 # Whether or not to build shared libraries.
19196 build_libtool_libs=$enable_shared
19198 # Whether or not to build static libraries.
19199 build_old_libs=$enable_static
19201 # Whether or not to add -lc for building shared libraries.
19202 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19204 # Whether or not to disallow shared libs when runtime libs are static
19205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19207 # Whether or not to optimize for fast installation.
19208 fast_install=$enable_fast_install
19211 host_alias=$host_alias
19215 # The build system.
19216 build_alias=$build_alias
19220 # An echo program that does not interpret backslashes.
19225 AR_FLAGS=$lt_AR_FLAGS
19230 # LTCC compiler flags.
19231 LTCFLAGS=$lt_LTCFLAGS
19233 # A language-specific compiler.
19234 CC=$lt_compiler_GCJ
19236 # Is the compiler the GNU C compiler?
19242 # The linker used to build libraries.
19245 # Whether we need hard or soft links.
19248 # A BSD-compatible nm program.
19251 # A symbol stripping program
19254 # Used to examine libraries when file_magic_cmd begins "file"
19255 MAGIC_CMD=$MAGIC_CMD
19257 # Used on cygwin: DLL creation program.
19260 # Used on cygwin: object dumper.
19263 # Used on cygwin: assembler.
19266 # The name of the directory that contains temporary libtool files.
19269 # How to create reloadable object files.
19270 reload_flag=$lt_reload_flag
19271 reload_cmds=$lt_reload_cmds
19273 # How to pass a linker flag through the compiler.
19274 wl=$lt_lt_prog_compiler_wl_GCJ
19276 # Object file suffix (normally "o").
19277 objext="$ac_objext"
19279 # Old archive suffix (normally "a").
19282 # Shared library suffix (normally ".so").
19283 shrext_cmds='$shrext_cmds'
19285 # Executable file suffix (normally "").
19288 # Additional compiler flags for building library objects.
19289 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19292 # What is the maximum length of a command?
19293 max_cmd_len=$lt_cv_sys_max_cmd_len
19295 # Does compiler simultaneously support -c and -o options?
19296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19298 # Must we lock files when doing compilation?
19299 need_locks=$lt_need_locks
19301 # Do we need the lib prefix for modules?
19302 need_lib_prefix=$need_lib_prefix
19304 # Do we need a version for libraries?
19305 need_version=$need_version
19307 # Whether dlopen is supported.
19308 dlopen_support=$enable_dlopen
19310 # Whether dlopen of programs is supported.
19311 dlopen_self=$enable_dlopen_self
19313 # Whether dlopen of statically linked programs is supported.
19314 dlopen_self_static=$enable_dlopen_self_static
19316 # Compiler flag to prevent dynamic linking.
19317 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19319 # Compiler flag to turn off builtin functions.
19320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19322 # Compiler flag to allow reflexive dlopens.
19323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19325 # Compiler flag to generate shared objects directly from archives.
19326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19328 # Compiler flag to generate thread-safe objects.
19329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19331 # Library versioning type.
19332 version_type=$version_type
19334 # Format of library name prefix.
19335 libname_spec=$lt_libname_spec
19337 # List of archive names. First name is the real one, the rest are links.
19338 # The last name is the one that the linker finds with -lNAME.
19339 library_names_spec=$lt_library_names_spec
19341 # The coded name of the library, if different from the real name.
19342 soname_spec=$lt_soname_spec
19344 # Commands used to build and install an old-style archive.
19346 old_archive_cmds=$lt_old_archive_cmds_GCJ
19347 old_postinstall_cmds=$lt_old_postinstall_cmds
19348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19350 # Create an old-style archive from a shared archive.
19351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19353 # Create a temporary old-style archive to link instead of a shared archive.
19354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19356 # Commands used to build and install a shared archive.
19357 archive_cmds=$lt_archive_cmds_GCJ
19358 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19359 postinstall_cmds=$lt_postinstall_cmds
19360 postuninstall_cmds=$lt_postuninstall_cmds
19362 # Commands used to build a loadable module (assumed same as above if empty)
19363 module_cmds=$lt_module_cmds_GCJ
19364 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19366 # Commands to strip libraries.
19367 old_striplib=$lt_old_striplib
19368 striplib=$lt_striplib
19370 # Dependencies to place before the objects being linked to create a
19372 predep_objects=$lt_predep_objects_GCJ
19374 # Dependencies to place after the objects being linked to create a
19376 postdep_objects=$lt_postdep_objects_GCJ
19378 # Dependencies to place before the objects being linked to create a
19380 predeps=$lt_predeps_GCJ
19382 # Dependencies to place after the objects being linked to create a
19384 postdeps=$lt_postdeps_GCJ
19386 # The directories searched by this compiler when creating a shared
19388 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19390 # The library search path used internally by the compiler when linking
19391 # a shared library.
19392 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19394 # Method to check whether dependent libraries are shared objects.
19395 deplibs_check_method=$lt_deplibs_check_method
19397 # Command to use when deplibs_check_method == file_magic.
19398 file_magic_cmd=$lt_file_magic_cmd
19400 # Flag that allows shared libraries with undefined symbols to be built.
19401 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19403 # Flag that forces no undefined symbols.
19404 no_undefined_flag=$lt_no_undefined_flag_GCJ
19406 # Commands used to finish a libtool library installation in a directory.
19407 finish_cmds=$lt_finish_cmds
19409 # Same as above, but a single script fragment to be evaled but not shown.
19410 finish_eval=$lt_finish_eval
19412 # Take the output of nm and produce a listing of raw symbols and C names.
19413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19415 # Transform the output of nm in a proper C declaration
19416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19418 # Transform the output of nm in a C name address pair
19419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19421 # This is the shared library runtime path variable.
19422 runpath_var=$runpath_var
19424 # This is the shared library path variable.
19425 shlibpath_var=$shlibpath_var
19427 # Is shlibpath searched before the hard-coded library search path?
19428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19430 # How to hardcode a shared library path into an executable.
19431 hardcode_action=$hardcode_action_GCJ
19433 # Whether we should hardcode library paths into libraries.
19434 hardcode_into_libs=$hardcode_into_libs
19436 # Flag to hardcode \$libdir into a binary during linking.
19437 # This must work even if \$libdir does not exist.
19438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19440 # If ld is used when linking, flag to hardcode \$libdir into
19441 # a binary during linking. This must work even if \$libdir does
19443 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19445 # Whether we need a single -rpath flag with a separated argument.
19446 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19448 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19449 # resulting binary.
19450 hardcode_direct=$hardcode_direct_GCJ
19452 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19453 # resulting binary.
19454 hardcode_minus_L=$hardcode_minus_L_GCJ
19456 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19457 # the resulting binary.
19458 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19460 # Set to yes if building a shared library automatically hardcodes DIR into the library
19461 # and all subsequent libraries and executables linked against it.
19462 hardcode_automatic=$hardcode_automatic_GCJ
19464 # Variables whose values should be saved in libtool wrapper scripts and
19465 # restored at relink time.
19466 variables_saved_for_relink="$variables_saved_for_relink"
19468 # Whether libtool must link a program against all its dependency libraries.
19469 link_all_deplibs=$link_all_deplibs_GCJ
19471 # Compile-time system search path for libraries
19472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19474 # Run-time system search path for libraries
19475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19477 # Fix the shell variable \$srcfile for the compiler.
19478 fix_srcfile_path=$lt_fix_srcfile_path
19480 # Set to yes if exported symbols are required.
19481 always_export_symbols=$always_export_symbols_GCJ
19483 # The commands to list exported symbols.
19484 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19486 # The commands to extract the exported symbol list from a shared archive.
19487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_GCJ
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_GCJ
19495 # ### END LIBTOOL TAG CONFIG: $tagname
19501 # If there is no Makefile yet, we rely on a make rule to execute
19502 # `config.status --recheck' to rerun these tests and create the
19503 # libtool script then.
19504 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19505 if test -f "$ltmain_in"; then
19506 test -f Makefile && make "$ltmain"
19512 ac_cpp='$CPP $CPPFLAGS'
19513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19527 # Source file extension for RC test sources.
19530 # Object file extension for compiled RC test sources.
19534 # Code to be used in simple compile tests
19535 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19537 # Code to be used in simple link tests
19538 lt_simple_link_test_code="$lt_simple_compile_test_code"
19540 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19542 # If no C compiler was specified, use CC.
19545 # If no C compiler flags were specified, use CFLAGS.
19546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19548 # Allow CC to be a program name with arguments.
19552 # save warnings/boilerplate of simple test code
19553 ac_outfile=conftest.$ac_objext
19554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_compiler_boilerplate=`cat conftest.err`
19559 ac_outfile=conftest.$ac_objext
19560 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19562 _lt_linker_boilerplate=`cat conftest.err`
19566 # Allow CC to be a program name with arguments.
19571 for cc_temp in $compiler""; do
19573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19581 lt_cv_prog_compiler_c_o_RC=yes
19583 # The else clause should only fire when bootstrapping the
19584 # libtool distribution, otherwise you forgot to ship ltmain.sh
19585 # with your package, and you will get complaints that there are
19586 # no rules to generate ltmain.sh.
19587 if test -f "$ltmain"; then
19588 # See if we are running on zsh, and set the options which allow our commands through
19589 # without removal of \ escapes.
19590 if test -n "${ZSH_VERSION+set}" ; then
19591 setopt NO_GLOB_SUBST
19593 # Now quote all the things that may contain metacharacters while being
19594 # careful not to overquote the AC_SUBSTed values. We take copies of the
19595 # variables and quote the copies for generation of the libtool script.
19596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19600 deplibs_check_method reload_flag reload_cmds need_locks \
19601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19602 lt_cv_sys_global_symbol_to_c_name_address \
19603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19604 old_postinstall_cmds old_postuninstall_cmds \
19608 lt_prog_compiler_wl_RC \
19609 lt_prog_compiler_pic_RC \
19610 lt_prog_compiler_static_RC \
19611 lt_prog_compiler_no_builtin_flag_RC \
19612 export_dynamic_flag_spec_RC \
19613 thread_safe_flag_spec_RC \
19614 whole_archive_flag_spec_RC \
19615 enable_shared_with_static_runtimes_RC \
19616 old_archive_cmds_RC \
19617 old_archive_from_new_cmds_RC \
19618 predep_objects_RC \
19619 postdep_objects_RC \
19622 compiler_lib_search_path_RC \
19623 compiler_lib_search_dirs_RC \
19625 archive_expsym_cmds_RC \
19626 postinstall_cmds_RC \
19627 postuninstall_cmds_RC \
19628 old_archive_from_expsyms_cmds_RC \
19629 allow_undefined_flag_RC \
19630 no_undefined_flag_RC \
19631 export_symbols_cmds_RC \
19632 hardcode_libdir_flag_spec_RC \
19633 hardcode_libdir_flag_spec_ld_RC \
19634 hardcode_libdir_separator_RC \
19635 hardcode_automatic_RC \
19637 module_expsym_cmds_RC \
19638 lt_cv_prog_compiler_c_o_RC \
19639 fix_srcfile_path_RC \
19640 exclude_expsyms_RC \
19641 include_expsyms_RC; do
19644 old_archive_cmds_RC | \
19645 old_archive_from_new_cmds_RC | \
19646 archive_cmds_RC | \
19647 archive_expsym_cmds_RC | \
19649 module_expsym_cmds_RC | \
19650 old_archive_from_expsyms_cmds_RC | \
19651 export_symbols_cmds_RC | \
19652 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653 postinstall_cmds | postuninstall_cmds | \
19654 old_postinstall_cmds | old_postuninstall_cmds | \
19655 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656 # Double-quote double-evaled strings.
19657 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19660 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19666 *'\$0 --fallback-echo"')
19667 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19673 cat <<__EOF__ >> "$cfgfile"
19674 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19676 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19678 # Shell to use when invoking shell scripts.
19681 # Whether or not to build shared libraries.
19682 build_libtool_libs=$enable_shared
19684 # Whether or not to build static libraries.
19685 build_old_libs=$enable_static
19687 # Whether or not to add -lc for building shared libraries.
19688 build_libtool_need_lc=$archive_cmds_need_lc_RC
19690 # Whether or not to disallow shared libs when runtime libs are static
19691 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19693 # Whether or not to optimize for fast installation.
19694 fast_install=$enable_fast_install
19697 host_alias=$host_alias
19701 # The build system.
19702 build_alias=$build_alias
19706 # An echo program that does not interpret backslashes.
19711 AR_FLAGS=$lt_AR_FLAGS
19716 # LTCC compiler flags.
19717 LTCFLAGS=$lt_LTCFLAGS
19719 # A language-specific compiler.
19722 # Is the compiler the GNU C compiler?
19728 # The linker used to build libraries.
19731 # Whether we need hard or soft links.
19734 # A BSD-compatible nm program.
19737 # A symbol stripping program
19740 # Used to examine libraries when file_magic_cmd begins "file"
19741 MAGIC_CMD=$MAGIC_CMD
19743 # Used on cygwin: DLL creation program.
19746 # Used on cygwin: object dumper.
19749 # Used on cygwin: assembler.
19752 # The name of the directory that contains temporary libtool files.
19755 # How to create reloadable object files.
19756 reload_flag=$lt_reload_flag
19757 reload_cmds=$lt_reload_cmds
19759 # How to pass a linker flag through the compiler.
19760 wl=$lt_lt_prog_compiler_wl_RC
19762 # Object file suffix (normally "o").
19763 objext="$ac_objext"
19765 # Old archive suffix (normally "a").
19768 # Shared library suffix (normally ".so").
19769 shrext_cmds='$shrext_cmds'
19771 # Executable file suffix (normally "").
19774 # Additional compiler flags for building library objects.
19775 pic_flag=$lt_lt_prog_compiler_pic_RC
19778 # What is the maximum length of a command?
19779 max_cmd_len=$lt_cv_sys_max_cmd_len
19781 # Does compiler simultaneously support -c and -o options?
19782 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19784 # Must we lock files when doing compilation?
19785 need_locks=$lt_need_locks
19787 # Do we need the lib prefix for modules?
19788 need_lib_prefix=$need_lib_prefix
19790 # Do we need a version for libraries?
19791 need_version=$need_version
19793 # Whether dlopen is supported.
19794 dlopen_support=$enable_dlopen
19796 # Whether dlopen of programs is supported.
19797 dlopen_self=$enable_dlopen_self
19799 # Whether dlopen of statically linked programs is supported.
19800 dlopen_self_static=$enable_dlopen_self_static
19802 # Compiler flag to prevent dynamic linking.
19803 link_static_flag=$lt_lt_prog_compiler_static_RC
19805 # Compiler flag to turn off builtin functions.
19806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19808 # Compiler flag to allow reflexive dlopens.
19809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19811 # Compiler flag to generate shared objects directly from archives.
19812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19814 # Compiler flag to generate thread-safe objects.
19815 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19817 # Library versioning type.
19818 version_type=$version_type
19820 # Format of library name prefix.
19821 libname_spec=$lt_libname_spec
19823 # List of archive names. First name is the real one, the rest are links.
19824 # The last name is the one that the linker finds with -lNAME.
19825 library_names_spec=$lt_library_names_spec
19827 # The coded name of the library, if different from the real name.
19828 soname_spec=$lt_soname_spec
19830 # Commands used to build and install an old-style archive.
19832 old_archive_cmds=$lt_old_archive_cmds_RC
19833 old_postinstall_cmds=$lt_old_postinstall_cmds
19834 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19836 # Create an old-style archive from a shared archive.
19837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19839 # Create a temporary old-style archive to link instead of a shared archive.
19840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19842 # Commands used to build and install a shared archive.
19843 archive_cmds=$lt_archive_cmds_RC
19844 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19845 postinstall_cmds=$lt_postinstall_cmds
19846 postuninstall_cmds=$lt_postuninstall_cmds
19848 # Commands used to build a loadable module (assumed same as above if empty)
19849 module_cmds=$lt_module_cmds_RC
19850 module_expsym_cmds=$lt_module_expsym_cmds_RC
19852 # Commands to strip libraries.
19853 old_striplib=$lt_old_striplib
19854 striplib=$lt_striplib
19856 # Dependencies to place before the objects being linked to create a
19858 predep_objects=$lt_predep_objects_RC
19860 # Dependencies to place after the objects being linked to create a
19862 postdep_objects=$lt_postdep_objects_RC
19864 # Dependencies to place before the objects being linked to create a
19866 predeps=$lt_predeps_RC
19868 # Dependencies to place after the objects being linked to create a
19870 postdeps=$lt_postdeps_RC
19872 # The directories searched by this compiler when creating a shared
19874 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19876 # The library search path used internally by the compiler when linking
19877 # a shared library.
19878 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19880 # Method to check whether dependent libraries are shared objects.
19881 deplibs_check_method=$lt_deplibs_check_method
19883 # Command to use when deplibs_check_method == file_magic.
19884 file_magic_cmd=$lt_file_magic_cmd
19886 # Flag that allows shared libraries with undefined symbols to be built.
19887 allow_undefined_flag=$lt_allow_undefined_flag_RC
19889 # Flag that forces no undefined symbols.
19890 no_undefined_flag=$lt_no_undefined_flag_RC
19892 # Commands used to finish a libtool library installation in a directory.
19893 finish_cmds=$lt_finish_cmds
19895 # Same as above, but a single script fragment to be evaled but not shown.
19896 finish_eval=$lt_finish_eval
19898 # Take the output of nm and produce a listing of raw symbols and C names.
19899 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19901 # Transform the output of nm in a proper C declaration
19902 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19904 # Transform the output of nm in a C name address pair
19905 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19907 # This is the shared library runtime path variable.
19908 runpath_var=$runpath_var
19910 # This is the shared library path variable.
19911 shlibpath_var=$shlibpath_var
19913 # Is shlibpath searched before the hard-coded library search path?
19914 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19916 # How to hardcode a shared library path into an executable.
19917 hardcode_action=$hardcode_action_RC
19919 # Whether we should hardcode library paths into libraries.
19920 hardcode_into_libs=$hardcode_into_libs
19922 # Flag to hardcode \$libdir into a binary during linking.
19923 # This must work even if \$libdir does not exist.
19924 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19926 # If ld is used when linking, flag to hardcode \$libdir into
19927 # a binary during linking. This must work even if \$libdir does
19929 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19931 # Whether we need a single -rpath flag with a separated argument.
19932 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19934 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19935 # resulting binary.
19936 hardcode_direct=$hardcode_direct_RC
19938 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19939 # resulting binary.
19940 hardcode_minus_L=$hardcode_minus_L_RC
19942 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19943 # the resulting binary.
19944 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19946 # Set to yes if building a shared library automatically hardcodes DIR into the library
19947 # and all subsequent libraries and executables linked against it.
19948 hardcode_automatic=$hardcode_automatic_RC
19950 # Variables whose values should be saved in libtool wrapper scripts and
19951 # restored at relink time.
19952 variables_saved_for_relink="$variables_saved_for_relink"
19954 # Whether libtool must link a program against all its dependency libraries.
19955 link_all_deplibs=$link_all_deplibs_RC
19957 # Compile-time system search path for libraries
19958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19960 # Run-time system search path for libraries
19961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19963 # Fix the shell variable \$srcfile for the compiler.
19964 fix_srcfile_path=$lt_fix_srcfile_path
19966 # Set to yes if exported symbols are required.
19967 always_export_symbols=$always_export_symbols_RC
19969 # The commands to list exported symbols.
19970 export_symbols_cmds=$lt_export_symbols_cmds_RC
19972 # The commands to extract the exported symbol list from a shared archive.
19973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19975 # Symbols that should not be listed in the preloaded symbols.
19976 exclude_expsyms=$lt_exclude_expsyms_RC
19978 # Symbols that must always be exported.
19979 include_expsyms=$lt_include_expsyms_RC
19981 # ### END LIBTOOL TAG CONFIG: $tagname
19987 # If there is no Makefile yet, we rely on a make rule to execute
19988 # `config.status --recheck' to rerun these tests and create the
19989 # libtool script then.
19990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19991 if test -f "$ltmain_in"; then
19992 test -f Makefile && make "$ltmain"
19998 ac_cpp='$CPP $CPPFLAGS'
19999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20008 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20009 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20010 { (exit 1); exit 1; }; }
20014 # Append the new tag name to the list of available tags.
20015 if test -n "$tagname" ; then
20016 available_tags="$available_tags $tagname"
20022 # Now substitute the updated list of available tags.
20023 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20024 mv "${ofile}T" "$ofile"
20028 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20029 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20030 { (exit 1); exit 1; }; }
20036 # This can be used to rebuild libtool when needed
20037 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20039 # Always use our own libtool.
20040 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20042 # Prevent multiple expansion
20055 # Check whether --with-system-libtool was given.
20056 if test "${with_system_libtool+set}" = set; then
20057 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20058 set dummy libtool; ac_word=$2
20059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20061 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20070 as_dummy="$PATH:/usr/local/bin"
20071 for as_dir in $as_dummy
20074 test -z "$as_dir" && as_dir=.
20075 for ac_exec_ext in '' $ac_executable_extensions; do
20076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20077 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20088 LIBTOOL=$ac_cv_path_LIBTOOL
20089 if test -n "$LIBTOOL"; then
20090 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20091 echo "${ECHO_T}$LIBTOOL" >&6; }
20093 { echo "$as_me:$LINENO: result: no" >&5
20094 echo "${ECHO_T}no" >&6; }
20110 LIBTOOL="`pwd`/libtool"
20122 # Check whether --enable-strict-dependencies was given.
20123 if test "${enable_strict_dependencies+set}" = set; then
20124 enableval=$enable_strict_dependencies;
20128 docdir='${datadir}/doc/freeradius'
20129 { echo "$as_me:$LINENO: checking docdir" >&5
20130 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20132 # Check whether --with-docdir was given.
20133 if test "${with_docdir+set}" = set; then
20134 withval=$with_docdir; case "$withval" in
20140 [\\/$]* | ?:[\\/]* )
20144 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20145 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20146 { (exit 1); exit 1; }; }
20153 { echo "$as_me:$LINENO: result: $docdir" >&5
20154 echo "${ECHO_T}$docdir" >&6; }
20155 if test "x$docdir" = xno; then
20156 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20157 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20160 logdir='${localstatedir}/log/radius'
20161 { echo "$as_me:$LINENO: checking logdir" >&5
20162 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20164 # Check whether --with-logdir was given.
20165 if test "${with_logdir+set}" = set; then
20166 withval=$with_logdir; case "$withval" in
20168 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20169 echo "$as_me: error: Need logdir" >&2;}
20170 { (exit 1); exit 1; }; }
20174 [\\/$]* | ?:[\\/]* )
20178 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20179 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20180 { (exit 1); exit 1; }; }
20187 { echo "$as_me:$LINENO: result: $logdir" >&5
20188 echo "${ECHO_T}$logdir" >&6; }
20190 radacctdir='${logdir}/radacct'
20191 { echo "$as_me:$LINENO: checking radacctdir" >&5
20192 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20194 # Check whether --with-radacctdir was given.
20195 if test "${with_radacctdir+set}" = set; then
20196 withval=$with_radacctdir; case "$withval" in
20198 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20199 echo "$as_me: error: Need radacctdir" >&2;}
20200 { (exit 1); exit 1; }; }
20204 [\\/$]* | ?:[\\/]* )
20205 radacctdir="$withval"
20208 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20209 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20210 { (exit 1); exit 1; }; }
20217 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20218 echo "${ECHO_T}$radacctdir" >&6; }
20220 raddbdir='${sysconfdir}/raddb'
20221 { echo "$as_me:$LINENO: checking raddbdir" >&5
20222 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20224 # Check whether --with-raddbdir was given.
20225 if test "${with_raddbdir+set}" = set; then
20226 withval=$with_raddbdir; case "$withval" in
20228 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20229 echo "$as_me: error: Need raddbdir" >&2;}
20230 { (exit 1); exit 1; }; }
20234 [\\/$]* | ?:[\\/]* )
20235 raddbdir="$withval"
20238 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20239 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20240 { (exit 1); exit 1; }; }
20247 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20248 echo "${ECHO_T}$raddbdir" >&6; }
20252 # Check whether --with-ascend-binary was given.
20253 if test "${with_ascend_binary+set}" = set; then
20254 withval=$with_ascend_binary; case "$withval" in
20263 if test "X$ASCEND_BINARY" = "Xyes"; then
20265 cat >>confdefs.h <<\_ACEOF
20266 #define ASCEND_BINARY
20273 # Check whether --with-threads was given.
20274 if test "${with_threads+set}" = set; then
20275 withval=$with_threads; case "$withval" in
20287 # Check whether --with-vmps was given.
20288 if test "${with_vmps+set}" = set; then
20289 withval=$with_vmps; case "$withval" in
20298 if test "x$WITH_VMPS" = "xyes"; then
20300 cat >>confdefs.h <<\_ACEOF
20301 #define WITH_VMPS 1
20308 # Check whether --with-dhcp was given.
20309 if test "${with_vmps+set}" = set; then
20310 withval=$with_vmps; case "$withval" in
20319 if test "x$WITH_DHCP" = "xyes"; then
20321 cat >>confdefs.h <<\_ACEOF
20322 #define WITH_DHCP 1
20329 WITH_POST_PROXY_AUTHORIZE=
20331 # Check whether --with-post-proxy-authorize was given.
20332 if test "${with_post_proxy_authorize+set}" = set; then
20333 withval=$with_post_proxy_authorize; case "$withval" in
20335 WITH_POST_PROXY_AUTHORIZE="yes"
20346 # Check whether --with-static_modules was given.
20347 if test "${with_static_modules+set}" = set; then
20348 withval=$with_static_modules;
20349 for i in $withval; do
20350 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20358 # Check whether --with-modules was given.
20359 if test "${with_modules+set}" = set; then
20360 withval=$with_modules;
20361 for i in $withval; do
20362 MODULES="$MODULES $i"
20368 # Check whether --enable-developer was given.
20369 if test "${enable_developer+set}" = set; then
20370 enableval=$enable_developer; case "$enableval" in
20381 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20385 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20391 # Check whether --with-experimental-modules was given.
20392 if test "${with_experimental_modules+set}" = set; then
20393 withval=$with_experimental_modules; case "$withval" in
20405 # Check whether --with-openssl was given.
20406 if test "${with_openssl+set}" = set; then
20407 withval=$with_openssl; case "$withval" in
20419 OPENSSL_INCLUDE_DIR=
20421 # Check whether --with-openssl-includes was given.
20422 if test "${with_openssl_includes+set}" = set; then
20423 withval=$with_openssl_includes; case "$withval" in
20424 *) OPENSSL_INCLUDE_DIR="$withval"
20433 # Check whether --with-openssl-libraries was given.
20434 if test "${with_openssl_libraries+set}" = set; then
20435 withval=$with_openssl_libraries; case "$withval" in
20436 *) OPENSSL_LIB_DIR="$withval"
20445 # Check whether --with-rlm-FOO-lib-dir was given.
20446 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20447 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20456 # Check whether --with-rlm-FOO-include-dir was given.
20457 if test "${with_rlm_FOO_include_dir+set}" = set; then
20458 withval=$with_rlm_FOO_include_dir; case "$withval" in
20469 # Check whether --with-udpfromto was given.
20470 if test "${with_udpfromto+set}" = set; then
20471 withval=$with_udpfromto; case "$withval" in
20482 if test "x$WITH_UDPFROMTO" = "xyes"; then
20484 cat >>confdefs.h <<\_ACEOF
20485 #define WITH_UDPFROMTO
20491 CHECKRAD=checkrad.pl
20492 # Extract the first word of "perl", so it can be a program name with args.
20493 set dummy perl; ac_word=$2
20494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20496 if test "${ac_cv_path_PERL+set}" = set; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20505 for as_dir in $PATH
20508 test -z "$as_dir" && as_dir=.
20509 for ac_exec_ext in '' $ac_executable_extensions; do
20510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20511 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20519 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20523 PERL=$ac_cv_path_PERL
20524 if test -n "$PERL"; then
20525 { echo "$as_me:$LINENO: result: $PERL" >&5
20526 echo "${ECHO_T}$PERL" >&6; }
20528 { echo "$as_me:$LINENO: result: no" >&5
20529 echo "${ECHO_T}no" >&6; }
20533 if test "x$ac_cv_path_PERL" = "x"; then
20534 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20535 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20537 # Extract the first word of "snmpget", so it can be a program name with args.
20538 set dummy snmpget; ac_word=$2
20539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20541 if test "${ac_cv_path_SNMPGET+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20550 for as_dir in $PATH
20553 test -z "$as_dir" && as_dir=.
20554 for ac_exec_ext in '' $ac_executable_extensions; do
20555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20556 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20567 SNMPGET=$ac_cv_path_SNMPGET
20568 if test -n "$SNMPGET"; then
20569 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20570 echo "${ECHO_T}$SNMPGET" >&6; }
20572 { echo "$as_me:$LINENO: result: no" >&5
20573 echo "${ECHO_T}no" >&6; }
20577 if test "x$ac_cv_path_SNMPGET" = "x"; then
20578 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20579 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20582 # Extract the first word of "snmpwalk", so it can be a program name with args.
20583 set dummy snmpwalk; ac_word=$2
20584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20586 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20591 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20595 for as_dir in $PATH
20598 test -z "$as_dir" && as_dir=.
20599 for ac_exec_ext in '' $ac_executable_extensions; do
20600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20601 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20612 SNMPWALK=$ac_cv_path_SNMPWALK
20613 if test -n "$SNMPWALK"; then
20614 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20615 echo "${ECHO_T}$SNMPWALK" >&6; }
20617 { echo "$as_me:$LINENO: result: no" >&5
20618 echo "${ECHO_T}no" >&6; }
20622 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20623 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20624 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20627 # Extract the first word of "rusers", so it can be a program name with args.
20628 set dummy rusers; ac_word=$2
20629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20631 if test "${ac_cv_path_RUSERS+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20640 for as_dir in $PATH
20643 test -z "$as_dir" && as_dir=.
20644 for ac_exec_ext in '' $ac_executable_extensions; do
20645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20646 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20654 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20658 RUSERS=$ac_cv_path_RUSERS
20659 if test -n "$RUSERS"; then
20660 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20661 echo "${ECHO_T}$RUSERS" >&6; }
20663 { echo "$as_me:$LINENO: result: no" >&5
20664 echo "${ECHO_T}no" >&6; }
20669 missing_dir=`cd $ac_aux_dir && pwd`
20670 # expand $ac_aux_dir to an absolute path
20671 am_aux_dir=`cd $ac_aux_dir && pwd`
20673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20674 # Use eval to expand $SHELL
20675 if eval "$MISSING --run true"; then
20676 am_missing_run="$MISSING --run "
20679 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20684 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20687 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20690 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20693 # Extract the first word of "locate", so it can be a program name with args.
20694 set dummy locate; ac_word=$2
20695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20697 if test "${ac_cv_path_LOCATE+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20709 test -z "$as_dir" && as_dir=.
20710 for ac_exec_ext in '' $ac_executable_extensions; do
20711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20712 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20723 LOCATE=$ac_cv_path_LOCATE
20724 if test -n "$LOCATE"; then
20725 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20726 echo "${ECHO_T}$LOCATE" >&6; }
20728 { echo "$as_me:$LINENO: result: no" >&5
20729 echo "${ECHO_T}no" >&6; }
20733 # Extract the first word of "dirname", so it can be a program name with args.
20734 set dummy dirname; ac_word=$2
20735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20737 if test "${ac_cv_path_DIRNAME+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20746 for as_dir in $PATH
20749 test -z "$as_dir" && as_dir=.
20750 for ac_exec_ext in '' $ac_executable_extensions; do
20751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20763 DIRNAME=$ac_cv_path_DIRNAME
20764 if test -n "$DIRNAME"; then
20765 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20766 echo "${ECHO_T}$DIRNAME" >&6; }
20768 { echo "$as_me:$LINENO: result: no" >&5
20769 echo "${ECHO_T}no" >&6; }
20773 # Extract the first word of "grep", so it can be a program name with args.
20774 set dummy grep; ac_word=$2
20775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20777 if test "${ac_cv_path_GREP+set}" = set; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20786 for as_dir in $PATH
20789 test -z "$as_dir" && as_dir=.
20790 for ac_exec_ext in '' $ac_executable_extensions; do
20791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20792 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20803 GREP=$ac_cv_path_GREP
20804 if test -n "$GREP"; then
20805 { echo "$as_me:$LINENO: result: $GREP" >&5
20806 echo "${ECHO_T}$GREP" >&6; }
20808 { echo "$as_me:$LINENO: result: no" >&5
20809 echo "${ECHO_T}no" >&6; }
20816 if test "x$WITH_THREADS" = "xyes"; then
20817 if test $ac_cv_prog_suncc = "yes"; then
20818 CFLAGS="$CFLAGS -mt"
20822 for ac_header in pthread.h
20824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20829 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 ac_res=`eval echo '${'$as_ac_Header'}'`
20832 { echo "$as_me:$LINENO: result: $ac_res" >&5
20833 echo "${ECHO_T}$ac_res" >&6; }
20835 # Is the header compilable?
20836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 $ac_includes_default
20845 #include <$ac_header>
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest.$ac_objext; then
20864 ac_header_compiler=yes
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_header_compiler=no
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20874 echo "${ECHO_T}$ac_header_compiler" >&6; }
20876 # Is the header present?
20877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 #include <$ac_header>
20887 if { (ac_try="$ac_cpp conftest.$ac_ext"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } >/dev/null && {
20900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20903 ac_header_preproc=yes
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_header_preproc=no
20911 rm -f conftest.err conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20913 echo "${ECHO_T}$ac_header_preproc" >&6; }
20915 # So? What about this header?
20916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20922 ac_header_preproc=yes
20925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20945 eval "$as_ac_Header=\$ac_header_preproc"
20947 ac_res=`eval echo '${'$as_ac_Header'}'`
20948 { echo "$as_me:$LINENO: result: $ac_res" >&5
20949 echo "${ECHO_T}$ac_res" >&6; }
20952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20953 cat >>confdefs.h <<_ACEOF
20954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20964 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20965 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20966 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 ac_check_lib_save_LIBS=$LIBS
20970 LIBS="-lpthread $LIBS"
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20978 /* Override any GCC internal prototype to avoid an error.
20979 Use char because int might match the return type of a GCC
20980 builtin and then its argument prototype would still apply. */
20984 char pthread_create ();
20988 return pthread_create ();
20993 rm -f conftest.$ac_objext conftest$ac_exeext
20994 if { (ac_try="$ac_link"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_link") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } && {
21007 test -z "$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 } && test -s conftest$ac_exeext &&
21010 $as_test_x conftest$ac_exeext; then
21011 ac_cv_lib_pthread_pthread_create=yes
21013 echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ac_cv_lib_pthread_pthread_create=no
21019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21020 conftest$ac_exeext conftest.$ac_ext
21021 LIBS=$ac_check_lib_save_LIBS
21023 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21024 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21025 if test $ac_cv_lib_pthread_pthread_create = yes; then
21026 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21027 LIBS="-lpthread $LIBS"
21029 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21030 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21031 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 ac_check_lib_save_LIBS=$LIBS
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21043 /* Override any GCC internal prototype to avoid an error.
21044 Use char because int might match the return type of a GCC
21045 builtin and then its argument prototype would still apply. */
21049 char pthread_create ();
21053 return pthread_create ();
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest$ac_exeext &&
21075 $as_test_x conftest$ac_exeext; then
21076 ac_cv_lib_c_r_pthread_create=yes
21078 echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21081 ac_cv_lib_c_r_pthread_create=no
21084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21085 conftest$ac_exeext conftest.$ac_ext
21086 LIBS=$ac_check_lib_save_LIBS
21088 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21089 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21090 if test $ac_cv_lib_c_r_pthread_create = yes; then
21091 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21102 if test "x$WITH_THREADS" != "xyes"; then
21104 ac_cv_header_pthread_h="no"
21108 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21109 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21110 if test "${ac_cv_search_sem_init+set}" = set; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21113 ac_func_search_save_LIBS=$LIBS
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 /* Override any GCC internal prototype to avoid an error.
21122 Use char because int might match the return type of a GCC
21123 builtin and then its argument prototype would still apply. */
21131 return sem_init ();
21136 for ac_lib in '' pthread sem posix4 rt semaphore; do
21137 if test -z "$ac_lib"; then
21138 ac_res="none required"
21141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_link") 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest$ac_exeext &&
21160 $as_test_x conftest$ac_exeext; then
21161 ac_cv_search_sem_init=$ac_res
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21171 if test "${ac_cv_search_sem_init+set}" = set; then
21175 if test "${ac_cv_search_sem_init+set}" = set; then
21178 ac_cv_search_sem_init=no
21180 rm conftest.$ac_ext
21181 LIBS=$ac_func_search_save_LIBS
21183 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21184 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21185 ac_res=$ac_cv_search_sem_init
21186 if test "$ac_res" != no; then
21187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21190 { { 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
21191 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;}
21192 { (exit 1); exit 1; }; }
21199 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21200 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21201 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21204 ac_check_lib_save_LIBS=$LIBS
21205 LIBS="-lsocket $LIBS"
21206 cat >conftest.$ac_ext <<_ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21213 /* Override any GCC internal prototype to avoid an error.
21214 Use char because int might match the return type of a GCC
21215 builtin and then its argument prototype would still apply. */
21219 char getsockname ();
21223 return getsockname ();
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (ac_try="$ac_link"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_link") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && {
21242 test -z "$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21244 } && test -s conftest$ac_exeext &&
21245 $as_test_x conftest$ac_exeext; then
21246 ac_cv_lib_socket_getsockname=yes
21248 echo "$as_me: failed program was:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_lib_socket_getsockname=no
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21256 LIBS=$ac_check_lib_save_LIBS
21258 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21259 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21260 if test $ac_cv_lib_socket_getsockname = yes; then
21261 cat >>confdefs.h <<_ACEOF
21262 #define HAVE_LIBSOCKET 1
21265 LIBS="-lsocket $LIBS"
21271 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21272 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21273 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 ac_check_lib_save_LIBS=$LIBS
21277 LIBS="-lresolv $LIBS"
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21285 /* Override any GCC internal prototype to avoid an error.
21286 Use char because int might match the return type of a GCC
21287 builtin and then its argument prototype would still apply. */
21295 return inet_aton ();
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (ac_try="$ac_link"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_link") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } && {
21314 test -z "$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 } && test -s conftest$ac_exeext &&
21317 $as_test_x conftest$ac_exeext; then
21318 ac_cv_lib_resolv_inet_aton=yes
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_cv_lib_resolv_inet_aton=no
21326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21327 conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21330 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21331 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21332 if test $ac_cv_lib_resolv_inet_aton = yes; then
21333 cat >>confdefs.h <<_ACEOF
21334 #define HAVE_LIBRESOLV 1
21337 LIBS="-lresolv $LIBS"
21343 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21344 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21345 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 ac_check_lib_save_LIBS=$LIBS
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21357 /* Override any GCC internal prototype to avoid an error.
21358 Use char because int might match the return type of a GCC
21359 builtin and then its argument prototype would still apply. */
21367 return inet_ntoa ();
21372 rm -f conftest.$ac_objext conftest$ac_exeext
21373 if { (ac_try="$ac_link"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_link") 2>conftest.er1
21381 grep -v '^ *+' conftest.er1 >conftest.err
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext &&
21389 $as_test_x conftest$ac_exeext; then
21390 ac_cv_lib_nsl_inet_ntoa=yes
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_cv_lib_nsl_inet_ntoa=no
21398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21399 conftest$ac_exeext conftest.$ac_ext
21400 LIBS=$ac_check_lib_save_LIBS
21402 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21403 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21404 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define HAVE_LIBNSL 1
21415 if test "x$WITH_OPENSSL" = xyes; then
21417 old_LDFLAGS="$LDFLAGS"
21418 if test "x$OPENSSL_LIB_DIR" != "x"; then
21419 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21421 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21422 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21423 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 ac_check_lib_save_LIBS=$LIBS
21427 LIBS="-lcrypto $LIBS"
21428 cat >conftest.$ac_ext <<_ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h. */
21435 /* Override any GCC internal prototype to avoid an error.
21436 Use char because int might match the return type of a GCC
21437 builtin and then its argument prototype would still apply. */
21450 rm -f conftest.$ac_objext conftest$ac_exeext
21451 if { (ac_try="$ac_link"
21452 case "(($ac_try" in
21453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_link") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext &&
21467 $as_test_x conftest$ac_exeext; then
21468 ac_cv_lib_crypto_DH_new=yes
21470 echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 ac_cv_lib_crypto_DH_new=no
21476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21477 conftest$ac_exeext conftest.$ac_ext
21478 LIBS=$ac_check_lib_save_LIBS
21480 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21481 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21482 if test $ac_cv_lib_crypto_DH_new = yes; then
21484 LIBS="-lcrypto $LIBS"
21486 cat >>confdefs.h <<\_ACEOF
21487 #define HAVE_LIBCRYPTO 1
21490 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21491 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21492 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21493 echo $ECHO_N "(cached) $ECHO_C" >&6
21495 ac_check_lib_save_LIBS=$LIBS
21497 cat >conftest.$ac_ext <<_ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h. */
21504 /* Override any GCC internal prototype to avoid an error.
21505 Use char because int might match the return type of a GCC
21506 builtin and then its argument prototype would still apply. */
21519 rm -f conftest.$ac_objext conftest$ac_exeext
21520 if { (ac_try="$ac_link"
21521 case "(($ac_try" in
21522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523 *) ac_try_echo=$ac_try;;
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526 (eval "$ac_link") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest$ac_exeext &&
21536 $as_test_x conftest$ac_exeext; then
21537 ac_cv_lib_ssl_SSL_new=yes
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 ac_cv_lib_ssl_SSL_new=no
21545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21546 conftest$ac_exeext conftest.$ac_ext
21547 LIBS=$ac_check_lib_save_LIBS
21549 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21550 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21551 if test $ac_cv_lib_ssl_SSL_new = yes; then
21554 cat >>confdefs.h <<\_ACEOF
21555 #define HAVE_LIBSSL 1
21558 if test "x$OPENSSL_LIB_DIR" != "x"; then
21559 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21561 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21569 LDFLAGS="$old_LDFLAGS"
21573 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21574 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21575 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 ac_check_lib_save_LIBS=$LIBS
21579 LIBS="-lws2_32 $LIBS"
21580 cat >conftest.$ac_ext <<_ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h. */
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21602 rm -f conftest.$ac_objext conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_link") 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } && {
21616 test -z "$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 } && test -s conftest$ac_exeext &&
21619 $as_test_x conftest$ac_exeext; then
21620 ac_cv_lib_ws2_32_htonl=yes
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21625 ac_cv_lib_ws2_32_htonl=no
21628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21629 conftest$ac_exeext conftest.$ac_ext
21630 LIBS=$ac_check_lib_save_LIBS
21632 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21633 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21634 if test $ac_cv_lib_ws2_32_htonl = yes; then
21635 cat >>confdefs.h <<_ACEOF
21636 #define HAVE_LIBWS2_32 1
21639 LIBS="-lws2_32 $LIBS"
21645 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21646 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21647 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 ac_check_lib_save_LIBS=$LIBS
21651 LIBS="-lpcap $LIBS"
21652 cat >conftest.$ac_ext <<_ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */
21659 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */
21665 char pcap_open_live ();
21669 return pcap_open_live ();
21674 rm -f conftest.$ac_objext conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_link") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest$ac_exeext &&
21691 $as_test_x conftest$ac_exeext; then
21692 ac_cv_lib_pcap_pcap_open_live=yes
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_cv_lib_pcap_pcap_open_live=no
21700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21701 conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21704 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21705 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21706 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21709 cat >>confdefs.h <<\_ACEOF
21710 #define HAVE_LIBPCAP 1
21715 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21716 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21721 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21722 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21723 if test "${ac_cv_lib_readline+set}" = set; then
21724 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 for readline_lib in readline edit editline; do
21729 for termcap_lib in "" termcap curses ncurses; do
21730 if test -z "$termcap_lib"; then
21731 TRY_LIB="-l$readline_lib"
21733 TRY_LIB="-l$readline_lib -l$termcap_lib"
21735 LIBS="$ORIG_LIBS $TRY_LIB"
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21753 return readline ();
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
21767 grep -v '^ *+' conftest.er1 >conftest.err
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } && {
21772 test -z "$ac_c_werror_flag" ||
21773 test ! -s conftest.err
21774 } && test -s conftest$ac_exeext &&
21775 $as_test_x conftest$ac_exeext; then
21776 ac_cv_lib_readline="$TRY_LIB"
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21785 conftest$ac_exeext conftest.$ac_ext
21786 if test -n "$ac_cv_lib_readline"; then
21787 LIBREADLINE="$TRY_LIB"
21792 if test -n "$ac_cv_lib_readline"; then
21796 if test -z "$ac_cv_lib_readline"; then
21797 ac_cv_lib_readline="no"
21802 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21803 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21805 if test "$ac_cv_lib_readline" != "no"; then
21807 cat >>confdefs.h <<\_ACEOF
21808 #define HAVE_LIBREADLINE 1
21813 for ac_header in readline.h readline/readline.h
21815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 ac_res=`eval echo '${'$as_ac_Header'}'`
21823 { echo "$as_me:$LINENO: result: $ac_res" >&5
21824 echo "${ECHO_T}$ac_res" >&6; }
21826 # Is the header compilable?
21827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 $ac_includes_default
21836 #include <$ac_header>
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_compile") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } && {
21852 test -z "$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21854 } && test -s conftest.$ac_objext; then
21855 ac_header_compiler=yes
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_header_compiler=no
21863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21865 echo "${ECHO_T}$ac_header_compiler" >&6; }
21867 # Is the header present?
21868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21876 #include <$ac_header>
21878 if { (ac_try="$ac_cpp conftest.$ac_ext"
21879 case "(($ac_try" in
21880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21881 *) ac_try_echo=$ac_try;;
21883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21886 grep -v '^ *+' conftest.er1 >conftest.err
21888 cat conftest.err >&5
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } >/dev/null && {
21891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21892 test ! -s conftest.err
21894 ac_header_preproc=yes
21896 echo "$as_me: failed program was:" >&5
21897 sed 's/^/| /' conftest.$ac_ext >&5
21899 ac_header_preproc=no
21902 rm -f conftest.err conftest.$ac_ext
21903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21904 echo "${ECHO_T}$ac_header_preproc" >&6; }
21906 # So? What about this header?
21907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21913 ac_header_preproc=yes
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 eval "$as_ac_Header=\$ac_header_preproc"
21938 ac_res=`eval echo '${'$as_ac_Header'}'`
21939 { echo "$as_me:$LINENO: result: $ac_res" >&5
21940 echo "${ECHO_T}$ac_res" >&6; }
21943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21944 cat >>confdefs.h <<_ACEOF
21945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21952 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21953 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21954 if test "${ac_cv_lib_readline_history+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21958 ac_cv_lib_readline_history="no"
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21972 char add_history ();
21976 return add_history ();
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext &&
21998 $as_test_x conftest$ac_exeext; then
21999 ac_cv_lib_readline_history="yes"
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22008 conftest$ac_exeext conftest.$ac_ext
22011 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
22012 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
22013 if test "$ac_cv_lib_readline_history" = "yes"; then
22015 cat >>confdefs.h <<\_ACEOF
22016 #define HAVE_READLINE_HISTORY 1
22021 for ac_header in history.h readline/history.h
22023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 ac_res=`eval echo '${'$as_ac_Header'}'`
22031 { echo "$as_me:$LINENO: result: $ac_res" >&5
22032 echo "${ECHO_T}$ac_res" >&6; }
22034 # Is the header compilable?
22035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 $ac_includes_default
22044 #include <$ac_header>
22046 rm -f conftest.$ac_objext
22047 if { (ac_try="$ac_compile"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_compile") 2>conftest.er1
22055 grep -v '^ *+' conftest.er1 >conftest.err
22057 cat conftest.err >&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } && {
22060 test -z "$ac_c_werror_flag" ||
22061 test ! -s conftest.err
22062 } && test -s conftest.$ac_objext; then
22063 ac_header_compiler=yes
22065 echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_header_compiler=no
22071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22073 echo "${ECHO_T}$ac_header_compiler" >&6; }
22075 # Is the header present?
22076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22078 cat >conftest.$ac_ext <<_ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22084 #include <$ac_header>
22086 if { (ac_try="$ac_cpp conftest.$ac_ext"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); } >/dev/null && {
22099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22102 ac_header_preproc=yes
22104 echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22107 ac_header_preproc=no
22110 rm -f conftest.err conftest.$ac_ext
22111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22112 echo "${ECHO_T}$ac_header_preproc" >&6; }
22114 # So? What about this header?
22115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22121 ac_header_preproc=yes
22124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22139 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22144 eval "$as_ac_Header=\$ac_header_preproc"
22146 ac_res=`eval echo '${'$as_ac_Header'}'`
22147 { echo "$as_me:$LINENO: result: $ac_res" >&5
22148 echo "${ECHO_T}$ac_res" >&6; }
22151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22152 cat >>confdefs.h <<_ACEOF
22153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22167 CFLAGS="$CFLAGS -D_ALL_SOURCE"
22170 CFLAGS="$CFLAGS -DDARWIN"
22171 LIBS="-framework DirectoryService $LIBS"
22180 ac_header_dirent=no
22181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22183 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22184 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 #include <sys/types.h>
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_compile") 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } && {
22220 test -z "$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 } && test -s conftest.$ac_objext; then
22223 eval "$as_ac_Header=yes"
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 eval "$as_ac_Header=no"
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 ac_res=`eval echo '${'$as_ac_Header'}'`
22234 { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22241 ac_header_dirent=$ac_hdr; break
22245 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22246 if test $ac_header_dirent = dirent.h; then
22247 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22248 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22249 if test "${ac_cv_search_opendir+set}" = set; then
22250 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 ac_func_search_save_LIBS=$LIBS
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 /* Override any GCC internal prototype to avoid an error.
22261 Use char because int might match the return type of a GCC
22262 builtin and then its argument prototype would still apply. */
22275 for ac_lib in '' dir; do
22276 if test -z "$ac_lib"; then
22277 ac_res="none required"
22280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22282 rm -f conftest.$ac_objext conftest$ac_exeext
22283 if { (ac_try="$ac_link"
22284 case "(($ac_try" in
22285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22286 *) ac_try_echo=$ac_try;;
22288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22289 (eval "$ac_link") 2>conftest.er1
22291 grep -v '^ *+' conftest.er1 >conftest.err
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } && {
22296 test -z "$ac_c_werror_flag" ||
22297 test ! -s conftest.err
22298 } && test -s conftest$ac_exeext &&
22299 $as_test_x conftest$ac_exeext; then
22300 ac_cv_search_opendir=$ac_res
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310 if test "${ac_cv_search_opendir+set}" = set; then
22314 if test "${ac_cv_search_opendir+set}" = set; then
22317 ac_cv_search_opendir=no
22319 rm conftest.$ac_ext
22320 LIBS=$ac_func_search_save_LIBS
22322 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22323 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22324 ac_res=$ac_cv_search_opendir
22325 if test "$ac_res" != no; then
22326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22331 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22332 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22333 if test "${ac_cv_search_opendir+set}" = set; then
22334 echo $ECHO_N "(cached) $ECHO_C" >&6
22336 ac_func_search_save_LIBS=$LIBS
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22344 /* Override any GCC internal prototype to avoid an error.
22345 Use char because int might match the return type of a GCC
22346 builtin and then its argument prototype would still apply. */
22359 for ac_lib in '' x; do
22360 if test -z "$ac_lib"; then
22361 ac_res="none required"
22364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22366 rm -f conftest.$ac_objext conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_link") 2>conftest.er1
22375 grep -v '^ *+' conftest.er1 >conftest.err
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest$ac_exeext &&
22383 $as_test_x conftest$ac_exeext; then
22384 ac_cv_search_opendir=$ac_res
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22394 if test "${ac_cv_search_opendir+set}" = set; then
22398 if test "${ac_cv_search_opendir+set}" = set; then
22401 ac_cv_search_opendir=no
22403 rm conftest.$ac_ext
22404 LIBS=$ac_func_search_save_LIBS
22406 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22407 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22408 ac_res=$ac_cv_search_opendir
22409 if test "$ac_res" != no; then
22410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22416 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22418 if test "${ac_cv_header_stdc+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22421 cat >conftest.$ac_ext <<_ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22427 #include <stdlib.h>
22428 #include <stdarg.h>
22429 #include <string.h>
22440 rm -f conftest.$ac_objext
22441 if { (ac_try="$ac_compile"
22442 case "(($ac_try" in
22443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444 *) ac_try_echo=$ac_try;;
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447 (eval "$ac_compile") 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest.$ac_objext; then
22457 ac_cv_header_stdc=yes
22459 echo "$as_me: failed program was:" >&5
22460 sed 's/^/| /' conftest.$ac_ext >&5
22462 ac_cv_header_stdc=no
22465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22467 if test $ac_cv_header_stdc = yes; then
22468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include <string.h>
22478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22479 $EGREP "memchr" >/dev/null 2>&1; then
22482 ac_cv_header_stdc=no
22488 if test $ac_cv_header_stdc = yes; then
22489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 #include <stdlib.h>
22499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22500 $EGREP "free" >/dev/null 2>&1; then
22503 ac_cv_header_stdc=no
22509 if test $ac_cv_header_stdc = yes; then
22510 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22511 if test "$cross_compiling" = yes; then
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22521 #include <stdlib.h>
22522 #if ((' ' & 0x0FF) == 0x020)
22523 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22524 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22526 # define ISLOWER(c) \
22527 (('a' <= (c) && (c) <= 'i') \
22528 || ('j' <= (c) && (c) <= 'r') \
22529 || ('s' <= (c) && (c) <= 'z'))
22530 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22533 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22538 for (i = 0; i < 256; i++)
22539 if (XOR (islower (i), ISLOWER (i))
22540 || toupper (i) != TOUPPER (i))
22545 rm -f conftest$ac_exeext
22546 if { (ac_try="$ac_link"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_link") 2>&5
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22556 { (case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_try") 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22567 echo "$as_me: program exited with status $ac_status" >&5
22568 echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 ( exit $ac_status )
22572 ac_cv_header_stdc=no
22574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22580 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22581 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22582 if test $ac_cv_header_stdc = yes; then
22584 cat >>confdefs.h <<\_ACEOF
22585 #define STDC_HEADERS 1
22590 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22591 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22592 if test "${ac_cv_header_time+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 #include <sys/types.h>
22602 #include <sys/time.h>
22608 if ((struct tm *) 0)
22614 rm -f conftest.$ac_objext
22615 if { (ac_try="$ac_compile"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_compile") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest.$ac_objext; then
22631 ac_cv_header_time=yes
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ac_cv_header_time=no
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22642 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22643 if test $ac_cv_header_time = yes; then
22645 cat >>confdefs.h <<\_ACEOF
22646 #define TIME_WITH_SYS_TIME 1
22651 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22652 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22653 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22654 echo $ECHO_N "(cached) $ECHO_C" >&6
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 #include <sys/types.h>
22663 #include <sys/wait.h>
22664 #ifndef WEXITSTATUS
22665 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22668 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22676 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685 *) ac_try_echo=$ac_try;;
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688 (eval "$ac_compile") 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } && {
22695 test -z "$ac_c_werror_flag" ||
22696 test ! -s conftest.err
22697 } && test -s conftest.$ac_objext; then
22698 ac_cv_header_sys_wait_h=yes
22700 echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22703 ac_cv_header_sys_wait_h=no
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22709 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22710 if test $ac_cv_header_sys_wait_h = yes; then
22712 cat >>confdefs.h <<\_ACEOF
22713 #define HAVE_SYS_WAIT_H 1
22796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22801 echo $ECHO_N "(cached) $ECHO_C" >&6
22803 ac_res=`eval echo '${'$as_ac_Header'}'`
22804 { echo "$as_me:$LINENO: result: $ac_res" >&5
22805 echo "${ECHO_T}$ac_res" >&6; }
22807 # Is the header compilable?
22808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22810 cat >conftest.$ac_ext <<_ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 #include <$ac_header>
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_compile") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1 >conftest.err
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.$ac_objext; then
22836 ac_header_compiler=yes
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_header_compiler=no
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22846 echo "${ECHO_T}$ac_header_compiler" >&6; }
22848 # Is the header present?
22849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 #include <$ac_header>
22859 if { (ac_try="$ac_cpp conftest.$ac_ext"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } >/dev/null && {
22872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22875 ac_header_preproc=yes
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 ac_header_preproc=no
22883 rm -f conftest.err conftest.$ac_ext
22884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22885 echo "${ECHO_T}$ac_header_preproc" >&6; }
22887 # So? What about this header?
22888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22894 ac_header_preproc=yes
22897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 eval "$as_ac_Header=\$ac_header_preproc"
22919 ac_res=`eval echo '${'$as_ac_Header'}'`
22920 { echo "$as_me:$LINENO: result: $ac_res" >&5
22921 echo "${ECHO_T}$ac_res" >&6; }
22924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22925 cat >>confdefs.h <<_ACEOF
22926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22935 for ac_header in net/if.h
22937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 #ifdef HAVE_SYS_SOCKET_H
22950 # include <sys/socket.h>
22954 #include <$ac_header>
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963 (eval "$ac_compile") 2>conftest.er1
22965 grep -v '^ *+' conftest.er1 >conftest.err
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } && {
22970 test -z "$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 } && test -s conftest.$ac_objext; then
22973 eval "$as_ac_Header=yes"
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 eval "$as_ac_Header=no"
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 ac_res=`eval echo '${'$as_ac_Header'}'`
22984 { echo "$as_me:$LINENO: result: $ac_res" >&5
22985 echo "${ECHO_T}$ac_res" >&6; }
22986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22987 cat >>confdefs.h <<_ACEOF
22988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22997 if test "${ac_cv_header_regex_h+set}" = set; then
22998 { echo "$as_me:$LINENO: checking for regex.h" >&5
22999 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23000 if test "${ac_cv_header_regex_h+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23004 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23006 # Is the header compilable?
23007 { echo "$as_me:$LINENO: checking regex.h usability" >&5
23008 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
23009 cat >conftest.$ac_ext <<_ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 $ac_includes_default
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_compile") 2>conftest.er1
23027 grep -v '^ *+' conftest.er1 >conftest.err
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } && {
23032 test -z "$ac_c_werror_flag" ||
23033 test ! -s conftest.err
23034 } && test -s conftest.$ac_objext; then
23035 ac_header_compiler=yes
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ac_header_compiler=no
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23045 echo "${ECHO_T}$ac_header_compiler" >&6; }
23047 # Is the header present?
23048 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23049 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23050 cat >conftest.$ac_ext <<_ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23058 if { (ac_try="$ac_cpp conftest.$ac_ext"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23066 grep -v '^ *+' conftest.er1 >conftest.err
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } >/dev/null && {
23071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23074 ac_header_preproc=yes
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ac_header_preproc=no
23082 rm -f conftest.err conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23084 echo "${ECHO_T}$ac_header_preproc" >&6; }
23086 # So? What about this header?
23087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23089 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23090 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23092 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23093 ac_header_preproc=yes
23096 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23097 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23099 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23101 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23103 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23105 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23107 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23111 { echo "$as_me:$LINENO: checking for regex.h" >&5
23112 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23113 if test "${ac_cv_header_regex_h+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23116 ac_cv_header_regex_h=$ac_header_preproc
23118 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23119 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23122 if test $ac_cv_header_regex_h = yes; then
23124 cat >>confdefs.h <<\_ACEOF
23125 #define HAVE_REGEX_H
23131 if test "x$ac_cv_header_regex_h" = "xyes"; then
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23141 #ifdef REG_EXTENDED
23146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23147 $EGREP "yes" >/dev/null 2>&1; then
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_REG_EXTENDED
23160 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23163 cat >>confdefs.h <<\_ACEOF
23169 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23172 cat >>confdefs.h <<\_ACEOF
23178 OPENSSL_INCLUDE="-DNO_OPENSSL"
23179 if test "x$WITH_OPENSSL" = xyes; then
23180 if test "x$OPENSSL_LIBS" = "x"; then
23181 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23182 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23184 old_CPPFLAGS=$CPPFLAGS
23185 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23186 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23188 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23208 echo $ECHO_N "(cached) $ECHO_C" >&6
23210 ac_res=`eval echo '${'$as_ac_Header'}'`
23211 { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23214 # Is the header compilable?
23215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23217 cat >conftest.$ac_ext <<_ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23223 $ac_includes_default
23224 #include <$ac_header>
23226 rm -f conftest.$ac_objext
23227 if { (ac_try="$ac_compile"
23228 case "(($ac_try" in
23229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23230 *) ac_try_echo=$ac_try;;
23232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23233 (eval "$ac_compile") 2>conftest.er1
23235 grep -v '^ *+' conftest.er1 >conftest.err
23237 cat conftest.err >&5
23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239 (exit $ac_status); } && {
23240 test -z "$ac_c_werror_flag" ||
23241 test ! -s conftest.err
23242 } && test -s conftest.$ac_objext; then
23243 ac_header_compiler=yes
23245 echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23248 ac_header_compiler=no
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23253 echo "${ECHO_T}$ac_header_compiler" >&6; }
23255 # Is the header present?
23256 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 #include <$ac_header>
23266 if { (ac_try="$ac_cpp conftest.$ac_ext"
23267 case "(($ac_try" in
23268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23269 *) ac_try_echo=$ac_try;;
23271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } >/dev/null && {
23279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23280 test ! -s conftest.err
23282 ac_header_preproc=yes
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23287 ac_header_preproc=no
23290 rm -f conftest.err conftest.$ac_ext
23291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23292 echo "${ECHO_T}$ac_header_preproc" >&6; }
23294 # So? What about this header?
23295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23301 ac_header_preproc=yes
23304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23324 eval "$as_ac_Header=\$ac_header_preproc"
23326 ac_res=`eval echo '${'$as_ac_Header'}'`
23327 { echo "$as_me:$LINENO: result: $ac_res" >&5
23328 echo "${ECHO_T}$ac_res" >&6; }
23331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23332 cat >>confdefs.h <<_ACEOF
23333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23343 if test "x$OPENSSL_LIBS" != "x"; then
23344 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23345 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 #include <openssl/crypto.h>
23353 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23359 $EGREP "yes" >/dev/null 2>&1; then
23364 if test "x$goodssl" != "xyes"; then
23365 { echo "$as_me:$LINENO: result: no" >&5
23366 echo "${ECHO_T}no" >&6; }
23369 { echo "$as_me:$LINENO: result: yes" >&5
23370 echo "${ECHO_T}yes" >&6; }
23371 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23372 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23374 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23378 CPPFLAGS=$old_CPPFLAGS
23383 export OPENSSL_LIBS
23385 if test "x$PCAP_LIBS" = x; then
23386 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23387 echo "$as_me: skipping test for pcap.h." >&6;}
23389 if test "${ac_cv_header_pcap_h+set}" = set; then
23390 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23391 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23392 if test "${ac_cv_header_pcap_h+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23396 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23398 # Is the header compilable?
23399 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23400 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23401 cat >conftest.$ac_ext <<_ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 $ac_includes_default
23410 rm -f conftest.$ac_objext
23411 if { (ac_try="$ac_compile"
23412 case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_compile") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest.$ac_objext; then
23427 ac_header_compiler=yes
23429 echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 ac_header_compiler=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23437 echo "${ECHO_T}$ac_header_compiler" >&6; }
23439 # Is the header present?
23440 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23441 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23450 if { (ac_try="$ac_cpp conftest.$ac_ext"
23451 case "(($ac_try" in
23452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453 *) ac_try_echo=$ac_try;;
23455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23458 grep -v '^ *+' conftest.er1 >conftest.err
23460 cat conftest.err >&5
23461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462 (exit $ac_status); } >/dev/null && {
23463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23464 test ! -s conftest.err
23466 ac_header_preproc=yes
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23471 ac_header_preproc=no
23474 rm -f conftest.err conftest.$ac_ext
23475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23476 echo "${ECHO_T}$ac_header_preproc" >&6; }
23478 # So? What about this header?
23479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23481 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23482 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23483 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23484 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23485 ac_header_preproc=yes
23488 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23489 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23491 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23493 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23494 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23495 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23496 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23497 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23498 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23499 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23503 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23504 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23505 if test "${ac_cv_header_pcap_h+set}" = set; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 ac_cv_header_pcap_h=$ac_header_preproc
23510 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23511 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23514 if test $ac_cv_header_pcap_h = yes; then
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_PCAP_H 1
23522 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23523 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23529 { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5
23530 echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; }
23531 if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23534 ac_check_lib_save_LIBS=$LIBS
23535 LIBS="-lpcap $LIBS"
23536 cat >conftest.$ac_ext <<_ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23543 /* Override any GCC internal prototype to avoid an error.
23544 Use char because int might match the return type of a GCC
23545 builtin and then its argument prototype would still apply. */
23549 char pcap_fopen_offline ();
23553 return pcap_fopen_offline ();
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_link") 2>conftest.er1
23567 grep -v '^ *+' conftest.er1 >conftest.err
23569 cat conftest.err >&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest$ac_exeext &&
23575 $as_test_x conftest$ac_exeext; then
23576 ac_cv_lib_pcap_pcap_fopen_offline=yes
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23581 ac_cv_lib_pcap_pcap_fopen_offline=no
23584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23585 conftest$ac_exeext conftest.$ac_ext
23586 LIBS=$ac_check_lib_save_LIBS
23588 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
23589 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
23590 if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then
23592 cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_PCAP_FOPEN_OFFLINE 1
23599 { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5
23600 echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; }
23601 if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23604 ac_check_lib_save_LIBS=$LIBS
23605 LIBS="-lpcap $LIBS"
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23613 /* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23619 char pcap_dump_fopen ();
23623 return pcap_dump_fopen ();
23628 rm -f conftest.$ac_objext conftest$ac_exeext
23629 if { (ac_try="$ac_link"
23630 case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_link") 2>conftest.er1
23637 grep -v '^ *+' conftest.er1 >conftest.err
23639 cat conftest.err >&5
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && {
23642 test -z "$ac_c_werror_flag" ||
23643 test ! -s conftest.err
23644 } && test -s conftest$ac_exeext &&
23645 $as_test_x conftest$ac_exeext; then
23646 ac_cv_lib_pcap_pcap_dump_fopen=yes
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ac_cv_lib_pcap_pcap_dump_fopen=no
23654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23655 conftest$ac_exeext conftest.$ac_ext
23656 LIBS=$ac_check_lib_save_LIBS
23658 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
23659 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
23660 if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then
23662 cat >>confdefs.h <<\_ACEOF
23663 #define HAVE_PCAP_DUMP_FOPEN 1
23673 { echo "$as_me:$LINENO: checking for off_t" >&5
23674 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23675 if test "${ac_cv_type_off_t+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23684 $ac_includes_default
23685 typedef off_t ac__type_new_;
23689 if ((ac__type_new_ *) 0)
23691 if (sizeof (ac__type_new_))
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_compile") 2>conftest.er1
23706 grep -v '^ *+' conftest.er1 >conftest.err
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } && {
23711 test -z "$ac_c_werror_flag" ||
23712 test ! -s conftest.err
23713 } && test -s conftest.$ac_objext; then
23714 ac_cv_type_off_t=yes
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23719 ac_cv_type_off_t=no
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23725 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23726 if test $ac_cv_type_off_t = yes; then
23730 cat >>confdefs.h <<_ACEOF
23731 #define off_t long int
23736 { echo "$as_me:$LINENO: checking for pid_t" >&5
23737 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23738 if test "${ac_cv_type_pid_t+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23741 cat >conftest.$ac_ext <<_ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 $ac_includes_default
23748 typedef pid_t ac__type_new_;
23752 if ((ac__type_new_ *) 0)
23754 if (sizeof (ac__type_new_))
23760 rm -f conftest.$ac_objext
23761 if { (ac_try="$ac_compile"
23762 case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23769 grep -v '^ *+' conftest.er1 >conftest.err
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_cv_type_pid_t=yes
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ac_cv_type_pid_t=no
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23788 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23789 if test $ac_cv_type_pid_t = yes; then
23793 cat >>confdefs.h <<_ACEOF
23799 { echo "$as_me:$LINENO: checking for size_t" >&5
23800 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23801 if test "${ac_cv_type_size_t+set}" = set; then
23802 echo $ECHO_N "(cached) $ECHO_C" >&6
23804 cat >conftest.$ac_ext <<_ACEOF
23807 cat confdefs.h >>conftest.$ac_ext
23808 cat >>conftest.$ac_ext <<_ACEOF
23809 /* end confdefs.h. */
23810 $ac_includes_default
23811 typedef size_t ac__type_new_;
23815 if ((ac__type_new_ *) 0)
23817 if (sizeof (ac__type_new_))
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_compile") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest.$ac_objext; then
23840 ac_cv_type_size_t=yes
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 ac_cv_type_size_t=no
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23851 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23852 if test $ac_cv_type_size_t = yes; then
23856 cat >>confdefs.h <<_ACEOF
23857 #define size_t unsigned int
23862 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23863 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23864 if test "${ac_cv_type_uid_t+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23867 cat >conftest.$ac_ext <<_ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h. */
23873 #include <sys/types.h>
23876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23877 $EGREP "uid_t" >/dev/null 2>&1; then
23878 ac_cv_type_uid_t=yes
23880 ac_cv_type_uid_t=no
23885 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23886 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23887 if test $ac_cv_type_uid_t = no; then
23889 cat >>confdefs.h <<\_ACEOF
23894 cat >>confdefs.h <<\_ACEOF
23902 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23903 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23904 if test "${ac_cv_type_socklen_t+set}" = set; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 ac_cv_type_socklen_t=no
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 #ifdef HAVE_SYS_TYPES_H
23915 #include <sys/types.h>
23917 #ifdef HAVE_SYS_SOCKET_H
23918 #include <sys/socket.h>
23929 rm -f conftest.$ac_objext
23930 if { (ac_try="$ac_compile"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23938 grep -v '^ *+' conftest.er1 >conftest.err
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.$ac_objext; then
23946 ac_cv_type_socklen_t=yes
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23959 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23961 if test "$ac_cv_type_socklen_t" != "yes"; then
23963 cat >>confdefs.h <<\_ACEOF
23964 #define socklen_t int
23971 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23972 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23973 if test "${ac_cv_type_uint8_t+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 ac_cv_type_uint8_t=no
23977 cat >conftest.$ac_ext <<_ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 #ifdef HAVE_INTTYPES_H
23984 #include <inttypes.h>
23986 #ifdef HAVE_STDINT_H
23987 #include <stdint.h>
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24007 grep -v '^ *+' conftest.er1 >conftest.err
24009 cat conftest.err >&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_cv_type_uint8_t=yes
24017 echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.$ac_ext >&5
24023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
24028 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
24030 if test "$ac_cv_type_uint8_t" != "yes"; then
24032 cat >>confdefs.h <<\_ACEOF
24033 #define uint8_t unsigned char
24040 { echo "$as_me:$LINENO: checking for uint16_t" >&5
24041 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24042 if test "${ac_cv_type_uint16_t+set}" = set; then
24043 echo $ECHO_N "(cached) $ECHO_C" >&6
24045 ac_cv_type_uint16_t=no
24046 cat >conftest.$ac_ext <<_ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h. */
24052 #ifdef HAVE_INTTYPES_H
24053 #include <inttypes.h>
24055 #ifdef HAVE_STDINT_H
24056 #include <stdint.h>
24067 rm -f conftest.$ac_objext
24068 if { (ac_try="$ac_compile"
24069 case "(($ac_try" in
24070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071 *) ac_try_echo=$ac_try;;
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074 (eval "$ac_compile") 2>conftest.er1
24076 grep -v '^ *+' conftest.er1 >conftest.err
24078 cat conftest.err >&5
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } && {
24081 test -z "$ac_c_werror_flag" ||
24082 test ! -s conftest.err
24083 } && test -s conftest.$ac_objext; then
24084 ac_cv_type_uint16_t=yes
24086 echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24097 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24099 if test "$ac_cv_type_uint16_t" != "yes"; then
24101 cat >>confdefs.h <<\_ACEOF
24102 #define uint16_t unsigned short
24109 { echo "$as_me:$LINENO: checking for uint32_t" >&5
24110 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24111 if test "${ac_cv_type_uint32_t+set}" = set; then
24112 echo $ECHO_N "(cached) $ECHO_C" >&6
24114 ac_cv_type_uint32_t=no
24115 cat >conftest.$ac_ext <<_ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24121 #ifdef HAVE_INTTYPES_H
24122 #include <inttypes.h>
24124 #ifdef HAVE_STDINT_H
24125 #include <stdint.h>
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest.$ac_objext; then
24153 ac_cv_type_uint32_t=yes
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24166 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24168 if test "$ac_cv_type_uint32_t" != "yes"; then
24170 cat >>confdefs.h <<\_ACEOF
24171 #define uint32_t unsigned int
24177 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24178 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24179 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24189 #ifdef HAVE_NETINET_IN_H
24190 #include <netinet/in.h>
24194 typedef struct in6_addr ac__type_new_;
24198 if ((ac__type_new_ *) 0)
24200 if (sizeof (ac__type_new_))
24206 rm -f conftest.$ac_objext
24207 if { (ac_try="$ac_compile"
24208 case "(($ac_try" in
24209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210 *) ac_try_echo=$ac_try;;
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213 (eval "$ac_compile") 2>conftest.er1
24215 grep -v '^ *+' conftest.er1 >conftest.err
24217 cat conftest.err >&5
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest.$ac_objext; then
24223 ac_cv_type_struct_in6_addr=yes
24225 echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 ac_cv_type_struct_in6_addr=no
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24234 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24235 if test $ac_cv_type_struct_in6_addr = yes; then
24237 cat >>confdefs.h <<\_ACEOF
24238 #define HAVE_STRUCT_IN6_ADDR 1
24244 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24245 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24246 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24249 cat >conftest.$ac_ext <<_ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24256 #ifdef HAVE_NETINET_IN_H
24257 #include <netinet/in.h>
24259 #ifdef HAVE_SYS_SOCKET_H
24260 #include <sys/socket.h>
24264 typedef struct sockaddr_storage ac__type_new_;
24268 if ((ac__type_new_ *) 0)
24270 if (sizeof (ac__type_new_))
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_cv_type_struct_sockaddr_storage=yes
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_cv_type_struct_sockaddr_storage=no
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24304 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24305 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24307 cat >>confdefs.h <<\_ACEOF
24308 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24314 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24315 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24316 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24317 echo $ECHO_N "(cached) $ECHO_C" >&6
24319 cat >conftest.$ac_ext <<_ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h. */
24326 #ifdef HAVE_NETINET_IN_H
24327 #include <netinet/in.h>
24331 typedef struct sockaddr_in6 ac__type_new_;
24335 if ((ac__type_new_ *) 0)
24337 if (sizeof (ac__type_new_))
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_compile") 2>conftest.er1
24352 grep -v '^ *+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest.$ac_objext; then
24360 ac_cv_type_struct_sockaddr_in6=yes
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24365 ac_cv_type_struct_sockaddr_in6=no
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24371 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24372 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24374 cat >>confdefs.h <<\_ACEOF
24375 #define HAVE_STRUCT_SOCKADDR_IN6 1
24381 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24382 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24383 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24386 cat >conftest.$ac_ext <<_ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24393 #ifdef HAVE_SYS_TYPES_H
24394 #include <sys/types.h>
24396 #ifdef HAVE_SYS_SOCKET_H
24397 #include <sys/socket.h>
24399 #ifdef HAVE_NETDB_H
24404 typedef struct addrinfo ac__type_new_;
24408 if ((ac__type_new_ *) 0)
24410 if (sizeof (ac__type_new_))
24416 rm -f conftest.$ac_objext
24417 if { (ac_try="$ac_compile"
24418 case "(($ac_try" in
24419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420 *) ac_try_echo=$ac_try;;
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423 (eval "$ac_compile") 2>conftest.er1
24425 grep -v '^ *+' conftest.er1 >conftest.err
24427 cat conftest.err >&5
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } && {
24430 test -z "$ac_c_werror_flag" ||
24431 test ! -s conftest.err
24432 } && test -s conftest.$ac_objext; then
24433 ac_cv_type_struct_addrinfo=yes
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_cv_type_struct_addrinfo=no
24441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24443 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24444 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24445 if test $ac_cv_type_struct_addrinfo = yes; then
24447 cat >>confdefs.h <<\_ACEOF
24448 #define HAVE_STRUCT_ADDRINFO 1
24521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24522 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24525 echo $ECHO_N "(cached) $ECHO_C" >&6
24527 cat >conftest.$ac_ext <<_ACEOF
24530 cat confdefs.h >>conftest.$ac_ext
24531 cat >>conftest.$ac_ext <<_ACEOF
24532 /* end confdefs.h. */
24533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24535 #define $ac_func innocuous_$ac_func
24537 /* System header to define __stub macros and hopefully few prototypes,
24538 which can conflict with char $ac_func (); below.
24539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24540 <limits.h> exists even on freestanding compilers. */
24543 # include <limits.h>
24545 # include <assert.h>
24550 /* Override any GCC internal prototype to avoid an error.
24551 Use char because int might match the return type of a GCC
24552 builtin and then its argument prototype would still apply. */
24557 /* The GNU C library defines this for functions which it implements
24558 to always fail with ENOSYS. Some functions are actually named
24559 something starting with __ and the normal name is an alias. */
24560 #if defined __stub_$ac_func || defined __stub___$ac_func
24567 return $ac_func ();
24572 rm -f conftest.$ac_objext conftest$ac_exeext
24573 if { (ac_try="$ac_link"
24574 case "(($ac_try" in
24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_link") 2>conftest.er1
24581 grep -v '^ *+' conftest.er1 >conftest.err
24583 cat conftest.err >&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } && {
24586 test -z "$ac_c_werror_flag" ||
24587 test ! -s conftest.err
24588 } && test -s conftest$ac_exeext &&
24589 $as_test_x conftest$ac_exeext; then
24590 eval "$as_ac_var=yes"
24592 echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24595 eval "$as_ac_var=no"
24598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24599 conftest$ac_exeext conftest.$ac_ext
24601 ac_res=`eval echo '${'$as_ac_var'}'`
24602 { echo "$as_me:$LINENO: result: $ac_res" >&5
24603 echo "${ECHO_T}$ac_res" >&6; }
24604 if test `eval echo '${'$as_ac_var'}'` = yes; then
24605 cat >>confdefs.h <<_ACEOF
24606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24622 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24623 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24624 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24625 echo $ECHO_N "(cached) $ECHO_C" >&6
24627 cat >conftest.$ac_ext <<_ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24635 #include <string.h>
24636 #ifdef HAVE_UNISTD_H
24637 #include <unistd.h>
24639 #ifdef HAVE_CRYPT_H
24642 #ifdef HAVE_ERRNO_H
24645 #ifdef HAVE_RESOURCE_H
24646 #include <resource.h>
24648 #ifdef HAVE_GETOPT_H
24649 #include <getopt.h>
24651 #ifdef HAVE_MALLOC_H
24652 #include <malloc.h>
24657 #ifdef HAVE_UTMPX_H
24660 #ifdef HAVE_SYS_SELECT_H
24661 #include <sys/select.h>
24663 #ifdef HAVE_DLFCN_H
24666 #ifdef HAVE_REGEX_H
24669 #ifdef HAVE_SYSLOG_H
24670 #include <syslog.h>
24672 #ifdef HAVE_INTTYPES_H
24673 #include <inttypes.h>
24675 #ifdef HAVE_STDINT_H
24676 #include <stdint.h>
24678 #ifdef HAVE_ARPA_INET_H
24679 #include <arpa/inet.h>
24685 char *(*pfn) = (char *(*)) $ac_func
24690 rm -f conftest.$ac_objext
24691 if { (ac_try="$ac_compile"
24692 case "(($ac_try" in
24693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694 *) ac_try_echo=$ac_try;;
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697 (eval "$ac_compile") 2>conftest.er1
24699 grep -v '^ *+' conftest.er1 >conftest.err
24701 cat conftest.err >&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); } && {
24704 test -z "$ac_c_werror_flag" ||
24705 test ! -s conftest.err
24706 } && test -s conftest.$ac_objext; then
24707 eval "radius_cv_decl_needed_$ac_func=no"
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 eval "radius_cv_decl_needed_$ac_func=yes"
24715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24719 { echo "$as_me:$LINENO: result: yes" >&5
24720 echo "${ECHO_T}yes" >&6; }
24721 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24722 cat >>confdefs.h <<_ACEOF
24723 #define $radius_tr_decl 1
24727 { echo "$as_me:$LINENO: result: no" >&5
24728 echo "${ECHO_T}no" >&6; }
24734 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24735 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24736 if test "${ac_cv_type_signal+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24739 cat >conftest.$ac_ext <<_ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h. */
24745 #include <sys/types.h>
24746 #include <signal.h>
24751 return *(signal (0, 0)) (0) == 1;
24756 rm -f conftest.$ac_objext
24757 if { (ac_try="$ac_compile"
24758 case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_compile") 2>conftest.er1
24765 grep -v '^ *+' conftest.er1 >conftest.err
24767 cat conftest.err >&5
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); } && {
24770 test -z "$ac_c_werror_flag" ||
24771 test ! -s conftest.err
24772 } && test -s conftest.$ac_objext; then
24773 ac_cv_type_signal=int
24775 echo "$as_me: failed program was:" >&5
24776 sed 's/^/| /' conftest.$ac_ext >&5
24778 ac_cv_type_signal=void
24781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24783 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24784 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24786 cat >>confdefs.h <<_ACEOF
24787 #define RETSIGTYPE $ac_cv_type_signal
24792 if test "x$ac_cv_header_utmpx_h" = "xyes"
24795 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24796 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24799 cat >conftest.$ac_ext <<_ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h. */
24807 #ifdef HAVE_STDDEF_H
24808 #include <stddef.h>
24811 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24817 int foo = offsetof(struct utmpx, ut_xtime)
24822 rm -f conftest.$ac_objext
24823 if { (ac_try="$ac_compile"
24824 case "(($ac_try" in
24825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826 *) ac_try_echo=$ac_try;;
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829 (eval "$ac_compile") 2>conftest.er1
24831 grep -v '^ *+' conftest.er1 >conftest.err
24833 cat conftest.err >&5
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && {
24836 test -z "$ac_c_werror_flag" ||
24837 test ! -s conftest.err
24838 } && test -s conftest.$ac_objext; then
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24850 if test "x$has_element" != "x"; then
24851 { echo "$as_me:$LINENO: result: yes" >&5
24852 echo "${ECHO_T}yes" >&6; }
24853 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24855 { echo "$as_me:$LINENO: result: no" >&5
24856 echo "${ECHO_T}no" >&6; }
24857 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24860 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24863 cat >>confdefs.h <<\_ACEOF
24864 #define ut_xtime ut_tv.tv_sec
24871 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24872 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24875 cat >conftest.$ac_ext <<_ACEOF
24878 cat confdefs.h >>conftest.$ac_ext
24879 cat >>conftest.$ac_ext <<_ACEOF
24880 /* end confdefs.h. */
24882 #include <netinet/in.h>
24883 #ifdef HAVE_STDDEF_H
24884 #include <stddef.h>
24887 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24893 int foo = offsetof(struct in_pktinfo, ipi_addr)
24898 rm -f conftest.$ac_objext
24899 if { (ac_try="$ac_compile"
24900 case "(($ac_try" in
24901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902 *) ac_try_echo=$ac_try;;
24904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24907 grep -v '^ *+' conftest.er1 >conftest.err
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24917 echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24926 if test "x$has_element" != "x"; then
24927 { echo "$as_me:$LINENO: result: yes" >&5
24928 echo "${ECHO_T}yes" >&6; }
24929 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24931 { echo "$as_me:$LINENO: result: no" >&5
24932 echo "${ECHO_T}no" >&6; }
24933 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24936 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24939 cat >>confdefs.h <<\_ACEOF
24940 #define HAVE_IP_PKTINFO
24946 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24947 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24957 #include <netinet/in.h>
24958 #ifdef HAVE_STDDEF_H
24959 #include <stddef.h>
24962 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24968 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24973 rm -f conftest.$ac_objext
24974 if { (ac_try="$ac_compile"
24975 case "(($ac_try" in
24976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977 *) ac_try_echo=$ac_try;;
24979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980 (eval "$ac_compile") 2>conftest.er1
24982 grep -v '^ *+' conftest.er1 >conftest.err
24984 cat conftest.err >&5
24985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } && {
24987 test -z "$ac_c_werror_flag" ||
24988 test ! -s conftest.err
24989 } && test -s conftest.$ac_objext; then
24992 echo "$as_me: failed program was:" >&5
24993 sed 's/^/| /' conftest.$ac_ext >&5
24998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25001 if test "x$has_element" != "x"; then
25002 { echo "$as_me:$LINENO: result: yes" >&5
25003 echo "${ECHO_T}yes" >&6; }
25004 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25006 { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25008 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25011 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25014 cat >>confdefs.h <<\_ACEOF
25015 #define HAVE_IN6_PKTINFO
25021 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25022 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25023 if test "${ac_cv_c_const+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25036 /* FIXME: Include the comments suggested by Paul. */
25037 #ifndef __cplusplus
25038 /* Ultrix mips cc rejects this. */
25039 typedef int charset[2];
25041 /* SunOS 4.1.1 cc rejects this. */
25042 char const *const *pcpcc;
25044 /* NEC SVR4.0.2 mips cc rejects this. */
25045 struct point {int x, y;};
25046 static struct point const zero = {0,0};
25047 /* AIX XL C 1.02.0.0 rejects this.
25048 It does not let you subtract one const X* pointer from another in
25049 an arm of an if-expression whose if-part is not a constant
25051 const char *g = "string";
25052 pcpcc = &g + (g ? g-g : 0);
25053 /* HPUX 7.0 cc rejects these. */
25055 ppc = (char**) pcpcc;
25056 pcpcc = (char const *const *) ppc;
25057 { /* SCO 3.2v4 cc rejects this. */
25059 char const *s = 0 ? (char *) 0 : (char const *) 0;
25064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25065 int x[] = {25, 17};
25066 const int *foo = &x[0];
25069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25070 typedef const int *iptr;
25074 { /* AIX XL C 1.02.0.0 rejects this saying
25075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25076 struct s { int j; const int *ap[3]; };
25077 struct s *b; b->j = 5;
25079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25080 const int foo = 10;
25081 if (!foo) return 0;
25083 return !cs[0] && !zero.x;
25090 rm -f conftest.$ac_objext
25091 if { (ac_try="$ac_compile"
25092 case "(($ac_try" in
25093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094 *) ac_try_echo=$ac_try;;
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097 (eval "$ac_compile") 2>conftest.er1
25099 grep -v '^ *+' conftest.er1 >conftest.err
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } && {
25104 test -z "$ac_c_werror_flag" ||
25105 test ! -s conftest.err
25106 } && test -s conftest.$ac_objext; then
25109 echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25118 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25119 if test $ac_cv_c_const = no; then
25121 cat >>confdefs.h <<\_ACEOF
25128 { echo "$as_me:$LINENO: checking type of OS" >&5
25129 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25131 { echo "$as_me:$LINENO: result: $OS" >&5
25132 echo "${ECHO_T}$OS" >&6; }
25133 if test "$OS" = "OS/2"; then
25140 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25141 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25142 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25143 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25144 CFLAGS="$CFLAGS $devflags"
25146 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
25147 echo "${ECHO_T}yes. Using $devflags" >&6; }
25150 CFLAGS="$CFLAGS -DNDEBUG"
25152 { echo "$as_me:$LINENO: result: no." >&5
25153 echo "${ECHO_T}no." >&6; }
25157 { echo "$as_me:$LINENO: checking for TLS" >&5
25158 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
25159 if test "$cross_compiling" = yes; then
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
25170 rm -f conftest$ac_exeext
25171 if { (ac_try="$ac_link"
25172 case "(($ac_try" in
25173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174 *) ac_try_echo=$ac_try;;
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177 (eval "$ac_link") 2>&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25181 { (case "(($ac_try" in
25182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25183 *) ac_try_echo=$ac_try;;
25185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25186 (eval "$ac_try") 2>&5
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; }; then
25192 echo "$as_me: program exited with status $ac_status" >&5
25193 echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25196 ( exit $ac_status )
25199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25203 { echo "$as_me:$LINENO: result: $have_tls" >&5
25204 echo "${ECHO_T}$have_tls" >&6; }
25205 if test "$have_tls" = "yes"; then
25207 cat >>confdefs.h <<\_ACEOF
25208 #define HAVE_THREAD_TLS 1
25216 LIBS="$LIBS $LIBLTDL"
25217 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25218 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25219 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25220 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 cat >conftest.$ac_ext <<_ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h. */
25228 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25230 #define lt_dladvise_init innocuous_lt_dladvise_init
25232 /* System header to define __stub macros and hopefully few prototypes,
25233 which can conflict with char lt_dladvise_init (); below.
25234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25235 <limits.h> exists even on freestanding compilers. */
25238 # include <limits.h>
25240 # include <assert.h>
25243 #undef lt_dladvise_init
25245 /* Override any GCC internal prototype to avoid an error.
25246 Use char because int might match the return type of a GCC
25247 builtin and then its argument prototype would still apply. */
25251 char lt_dladvise_init ();
25252 /* The GNU C library defines this for functions which it implements
25253 to always fail with ENOSYS. Some functions are actually named
25254 something starting with __ and the normal name is an alias. */
25255 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25262 return lt_dladvise_init ();
25267 rm -f conftest.$ac_objext conftest$ac_exeext
25268 if { (ac_try="$ac_link"
25269 case "(($ac_try" in
25270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25271 *) ac_try_echo=$ac_try;;
25273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25274 (eval "$ac_link") 2>conftest.er1
25276 grep -v '^ *+' conftest.er1 >conftest.err
25278 cat conftest.err >&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); } && {
25281 test -z "$ac_c_werror_flag" ||
25282 test ! -s conftest.err
25283 } && test -s conftest$ac_exeext &&
25284 $as_test_x conftest$ac_exeext; then
25285 ac_cv_func_lt_dladvise_init=yes
25287 echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25290 ac_cv_func_lt_dladvise_init=no
25293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25294 conftest$ac_exeext conftest.$ac_ext
25296 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25297 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25298 if test $ac_cv_func_lt_dladvise_init = yes; then
25300 cat >>confdefs.h <<\_ACEOF
25301 #define HAVE_LT_DLADVISE_INIT
25308 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25309 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25310 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25313 ac_check_lib_save_LIBS=$LIBS
25314 LIBS="-lcrypt $LIBS"
25315 cat >conftest.$ac_ext <<_ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25322 /* Override any GCC internal prototype to avoid an error.
25323 Use char because int might match the return type of a GCC
25324 builtin and then its argument prototype would still apply. */
25337 rm -f conftest.$ac_objext conftest$ac_exeext
25338 if { (ac_try="$ac_link"
25339 case "(($ac_try" in
25340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25341 *) ac_try_echo=$ac_try;;
25343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25344 (eval "$ac_link") 2>conftest.er1
25346 grep -v '^ *+' conftest.er1 >conftest.err
25348 cat conftest.err >&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } && {
25351 test -z "$ac_c_werror_flag" ||
25352 test ! -s conftest.err
25353 } && test -s conftest$ac_exeext &&
25354 $as_test_x conftest$ac_exeext; then
25355 ac_cv_lib_crypt_crypt=yes
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 ac_cv_lib_crypt_crypt=no
25363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25364 conftest$ac_exeext conftest.$ac_ext
25365 LIBS=$ac_check_lib_save_LIBS
25367 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25368 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25369 if test $ac_cv_lib_crypt_crypt = yes; then
25374 if test "$CRYPTLIB" != ""; then
25376 cat >>confdefs.h <<\_ACEOF
25381 { echo "$as_me:$LINENO: checking for crypt" >&5
25382 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25383 if test "${ac_cv_func_crypt+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
25386 cat >conftest.$ac_ext <<_ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25394 #define crypt innocuous_crypt
25396 /* System header to define __stub macros and hopefully few prototypes,
25397 which can conflict with char crypt (); below.
25398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25399 <limits.h> exists even on freestanding compilers. */
25402 # include <limits.h>
25404 # include <assert.h>
25409 /* Override any GCC internal prototype to avoid an error.
25410 Use char because int might match the return type of a GCC
25411 builtin and then its argument prototype would still apply. */
25416 /* The GNU C library defines this for functions which it implements
25417 to always fail with ENOSYS. Some functions are actually named
25418 something starting with __ and the normal name is an alias. */
25419 #if defined __stub_crypt || defined __stub___crypt
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
25433 case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_link") 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } && {
25445 test -z "$ac_c_werror_flag" ||
25446 test ! -s conftest.err
25447 } && test -s conftest$ac_exeext &&
25448 $as_test_x conftest$ac_exeext; then
25449 ac_cv_func_crypt=yes
25451 echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25454 ac_cv_func_crypt=no
25457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25458 conftest$ac_exeext conftest.$ac_ext
25460 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25461 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25462 if test $ac_cv_func_crypt = yes; then
25464 cat >>confdefs.h <<\_ACEOF
25472 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25473 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25474 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25475 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 ac_check_lib_save_LIBS=$LIBS
25478 LIBS="-lcipher $LIBS"
25479 cat >conftest.$ac_ext <<_ACEOF
25482 cat confdefs.h >>conftest.$ac_ext
25483 cat >>conftest.$ac_ext <<_ACEOF
25484 /* end confdefs.h. */
25486 /* Override any GCC internal prototype to avoid an error.
25487 Use char because int might match the return type of a GCC
25488 builtin and then its argument prototype would still apply. */
25501 rm -f conftest.$ac_objext conftest$ac_exeext
25502 if { (ac_try="$ac_link"
25503 case "(($ac_try" in
25504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_link") 2>conftest.er1
25510 grep -v '^ *+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_c_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest$ac_exeext &&
25518 $as_test_x conftest$ac_exeext; then
25519 ac_cv_lib_cipher_setkey=yes
25521 echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.$ac_ext >&5
25524 ac_cv_lib_cipher_setkey=no
25527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25528 conftest$ac_exeext conftest.$ac_ext
25529 LIBS=$ac_check_lib_save_LIBS
25531 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25532 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25533 if test $ac_cv_lib_cipher_setkey = yes; then
25534 CRYPTLIB="${CRYPTLIB} -lcipher"
25541 cat >>confdefs.h <<\_ACEOF
25546 cat >>confdefs.h <<\_ACEOF
25547 #define SYSVSTYLE 2
25551 cat >>confdefs.h <<\_ACEOF
25555 gethostbyaddrrstyle=""
25556 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25557 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25560 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25561 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25562 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25563 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 cat >conftest.$ac_ext <<_ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25572 #ifdef HAVE_NETDB_H
25580 #ifndef gethostbyaddr_r
25581 (void) gethostbyaddr_r;
25588 rm -f conftest.$ac_objext
25589 if { (ac_try="$ac_compile"
25590 case "(($ac_try" in
25591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592 *) ac_try_echo=$ac_try;;
25594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595 (eval "$ac_compile") 2>conftest.er1
25597 grep -v '^ *+' conftest.er1 >conftest.err
25599 cat conftest.err >&5
25600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); } && {
25602 test -z "$ac_c_werror_flag" ||
25603 test ! -s conftest.err
25604 } && test -s conftest.$ac_objext; then
25605 ac_cv_have_decl_gethostbyaddr_r=yes
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_cv_have_decl_gethostbyaddr_r=no
25613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25616 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25617 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25619 cat >>confdefs.h <<_ACEOF
25620 #define HAVE_DECL_GETHOSTBYADDR_R 1
25625 cat >>confdefs.h <<_ACEOF
25626 #define HAVE_DECL_GETHOSTBYADDR_R 0
25631 cat >>confdefs.h <<\_ACEOF
25632 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25635 gethostbyaddrrstyle=BSD
25636 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25637 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25644 if test "x$gethostbyaddrrstyle" = "x"; then
25645 cat >conftest.$ac_ext <<_ACEOF
25648 cat confdefs.h >>conftest.$ac_ext
25649 cat >>conftest.$ac_ext <<_ACEOF
25650 /* end confdefs.h. */
25658 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25663 rm -f conftest.$ac_objext conftest$ac_exeext
25664 if { (ac_try="$ac_link"
25665 case "(($ac_try" in
25666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25667 *) ac_try_echo=$ac_try;;
25669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25670 (eval "$ac_link") 2>conftest.er1
25672 grep -v '^ *+' conftest.er1 >conftest.err
25674 cat conftest.err >&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); } && {
25677 test -z "$ac_c_werror_flag" ||
25678 test ! -s conftest.err
25679 } && test -s conftest$ac_exeext &&
25680 $as_test_x conftest$ac_exeext; then
25683 cat >>confdefs.h <<\_ACEOF
25684 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25687 gethostbyaddrrstyle=GNU
25690 echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25697 conftest$ac_exeext conftest.$ac_ext
25699 if test "x$gethostbyaddrrstyle" = "x"; then
25700 cat >conftest.$ac_ext <<_ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25713 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25718 rm -f conftest.$ac_objext conftest$ac_exeext
25719 if { (ac_try="$ac_link"
25720 case "(($ac_try" in
25721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722 *) ac_try_echo=$ac_try;;
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725 (eval "$ac_link") 2>conftest.er1
25727 grep -v '^ *+' conftest.er1 >conftest.err
25729 cat conftest.err >&5
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } && {
25732 test -z "$ac_c_werror_flag" ||
25733 test ! -s conftest.err
25734 } && test -s conftest$ac_exeext &&
25735 $as_test_x conftest$ac_exeext; then
25738 cat >>confdefs.h <<\_ACEOF
25739 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25742 gethostbyaddrrstyle=SYSV
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25752 conftest$ac_exeext conftest.$ac_ext
25754 if test "x$gethostbyaddrrstyle" = "x"; then
25755 cat >conftest.$ac_ext <<_ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25768 gethostbyaddr(NULL, 0, 0)
25773 rm -f conftest.$ac_objext conftest$ac_exeext
25774 if { (ac_try="$ac_link"
25775 case "(($ac_try" in
25776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777 *) ac_try_echo=$ac_try;;
25779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780 (eval "$ac_link") 2>conftest.er1
25782 grep -v '^ *+' conftest.er1 >conftest.err
25784 cat conftest.err >&5
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); } && {
25787 test -z "$ac_c_werror_flag" ||
25788 test ! -s conftest.err
25789 } && test -s conftest$ac_exeext &&
25790 $as_test_x conftest$ac_exeext; then
25793 cat >>confdefs.h <<\_ACEOF
25794 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25797 gethostbyaddrrstyle=BSD
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25807 conftest$ac_exeext conftest.$ac_ext
25810 if test "x$gethostbyaddrrstyle" = "x"; then
25811 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25812 echo "${ECHO_T}none! It must not exist, here." >&6; }
25814 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25815 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25818 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25819 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25820 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25823 gethostbynamerstyle=""
25824 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25825 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25839 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25844 rm -f conftest.$ac_objext conftest$ac_exeext
25845 if { (ac_try="$ac_link"
25846 case "(($ac_try" in
25847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848 *) ac_try_echo=$ac_try;;
25850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851 (eval "$ac_link") 2>conftest.er1
25853 grep -v '^ *+' conftest.er1 >conftest.err
25855 cat conftest.err >&5
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); } && {
25858 test -z "$ac_c_werror_flag" ||
25859 test ! -s conftest.err
25860 } && test -s conftest$ac_exeext &&
25861 $as_test_x conftest$ac_exeext; then
25864 cat >>confdefs.h <<\_ACEOF
25865 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25868 gethostbynamerstyle=GNU
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25878 conftest$ac_exeext conftest.$ac_ext
25879 if test "x$gethostbynamerstyle" = "x"; then
25880 cat >conftest.$ac_ext <<_ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h. */
25893 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25898 rm -f conftest.$ac_objext conftest$ac_exeext
25899 if { (ac_try="$ac_link"
25900 case "(($ac_try" in
25901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902 *) ac_try_echo=$ac_try;;
25904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25905 (eval "$ac_link") 2>conftest.er1
25907 grep -v '^ *+' conftest.er1 >conftest.err
25909 cat conftest.err >&5
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } && {
25912 test -z "$ac_c_werror_flag" ||
25913 test ! -s conftest.err
25914 } && test -s conftest$ac_exeext &&
25915 $as_test_x conftest$ac_exeext; then
25918 cat >>confdefs.h <<\_ACEOF
25919 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25922 gethostbynamerstyle=SYSV
25925 echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25932 conftest$ac_exeext conftest.$ac_ext
25934 if test "x$gethostbynamerstyle" = "x"; then
25935 cat >conftest.$ac_ext <<_ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h. */
25948 gethostbyname(NULL)
25953 rm -f conftest.$ac_objext conftest$ac_exeext
25954 if { (ac_try="$ac_link"
25955 case "(($ac_try" in
25956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25957 *) ac_try_echo=$ac_try;;
25959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25960 (eval "$ac_link") 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); } && {
25967 test -z "$ac_c_werror_flag" ||
25968 test ! -s conftest.err
25969 } && test -s conftest$ac_exeext &&
25970 $as_test_x conftest$ac_exeext; then
25973 cat >>confdefs.h <<\_ACEOF
25974 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25977 gethostbynamerstyle=BSD
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25987 conftest$ac_exeext conftest.$ac_ext
25990 if test "x$gethostbynamerstyle" = "x"; then
25991 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25992 echo "${ECHO_T}none! It must not exist, here." >&6; }
25994 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25995 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25998 if test "x$gethostbynamerstyle" = "xBSD"; then
25999 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26000 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26004 cat >>confdefs.h <<\_ACEOF
26005 #define POSIXSTYLE 1
26009 cat >>confdefs.h <<\_ACEOF
26010 #define SOLARISSTYLE 2
26014 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26015 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26016 cat >conftest.$ac_ext <<_ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h. */
26028 ctime_r(NULL, NULL, 0)
26033 rm -f conftest.$ac_objext conftest$ac_exeext
26034 if { (ac_try="$ac_link"
26035 case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_link") 2>conftest.er1
26042 grep -v '^ *+' conftest.er1 >conftest.err
26044 cat conftest.err >&5
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); } && {
26047 test -z "$ac_c_werror_flag" ||
26048 test ! -s conftest.err
26049 } && test -s conftest$ac_exeext &&
26050 $as_test_x conftest$ac_exeext; then
26053 cat >>confdefs.h <<\_ACEOF
26054 #define CTIMERSTYLE SOLARISSTYLE
26057 ctimerstyle="SOLARIS"
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.$ac_ext >&5
26066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26067 conftest$ac_exeext conftest.$ac_ext
26068 if test "x$ctimerstyle" = "x"; then
26069 cat >conftest.$ac_ext <<_ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26081 ctime_r(NULL, NULL)
26086 rm -f conftest.$ac_objext conftest$ac_exeext
26087 if { (ac_try="$ac_link"
26088 case "(($ac_try" in
26089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26090 *) ac_try_echo=$ac_try;;
26092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26093 (eval "$ac_link") 2>conftest.er1
26095 grep -v '^ *+' conftest.er1 >conftest.err
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } && {
26100 test -z "$ac_c_werror_flag" ||
26101 test ! -s conftest.err
26102 } && test -s conftest$ac_exeext &&
26103 $as_test_x conftest$ac_exeext; then
26106 cat >>confdefs.h <<\_ACEOF
26107 #define CTIMERSTYLE POSIXSTYLE
26110 ctimerstyle="POSIX"
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26120 conftest$ac_exeext conftest.$ac_ext
26123 if test "x$ctimerstyle" = "x"; then
26124 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26125 echo "${ECHO_T}none! It must not exist, here." >&6; }
26127 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26128 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26134 if test "x$WITH_POST_PROXY_AUTHORIZE" != "x"; then
26136 cat >>confdefs.h <<\_ACEOF
26137 #define WITH_POST_PROXY_AUTHORIZE 1
26144 export top_builddir
26145 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26146 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26152 mysubdirs="$LIBLTDLPATH"
26153 if test "x$EXPERIMENTAL" = "xyes"; then
26154 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26155 mysubdirs=`echo $mysubdirs $bar`
26157 for bar in `cat "${srcdir}"/src/modules/stable`; do
26158 if test -f "${srcdir}"/src/modules/$bar/configure; then
26159 mysubdirs="$mysubdirs src/modules/$bar"
26164 if test "x$EXPERIMENTAL" = "xyes"; then
26165 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26166 MODULES="$MODULES $foo"
26169 for foo in `cat "${srcdir}"/src/modules/stable`; do
26170 MODULES="$MODULES $foo"
26174 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26179 ac_config_commands="$ac_config_commands stamp-h"
26181 ac_config_commands="$ac_config_commands build-radpaths-h"
26183 ac_config_commands="$ac_config_commands main-chmod"
26185 ac_config_commands="$ac_config_commands scripts-chmod"
26191 USE_SHARED_LIBS=$enable_shared
26193 USE_STATIC_LIBS=$enable_static
26201 unset ac_cv_env_LIBS_set
26202 unset ac_cv_env_LIBS_value
26204 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/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
26206 cat >confcache <<\_ACEOF
26207 # This file is a shell script that caches the results of configure
26208 # tests run on this system so they can be shared between configure
26209 # scripts and configure runs, see configure's option --config-cache.
26210 # It is not useful on other systems. If it contains results you don't
26211 # want to keep, you may remove or edit it.
26213 # config.status only pays attention to the cache file if you give it
26214 # the --recheck option to rerun configure.
26216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26218 # following values.
26222 # The following way of writing the cache mishandles newlines in values,
26223 # but we know of no workaround that is simple, portable, and efficient.
26224 # So, we kill variables containing newlines.
26225 # Ultrix sh set writes to stderr and can't be redirected directly,
26226 # and sets the high bit in the cache file unless we assign to the vars.
26228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26229 eval ac_val=\$$ac_var
26233 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26234 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26237 _ | IFS | as_nl) ;; #(
26238 *) $as_unset $ac_var ;;
26244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26245 *${as_nl}ac_space=\ *)
26246 # `set' does not quote correctly, so add quotes (double-quote
26247 # substitution turns \\\\ into \\, and sed turns \\ into \).
26250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26253 # `set' quotes correctly as required by POSIX, so do not add quotes.
26254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26268 if test -w "$cache_file"; then
26269 test "x$cache_file" != "x/dev/null" &&
26270 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26271 echo "$as_me: updating cache $cache_file" >&6;}
26272 cat confcache >$cache_file
26274 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26275 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26281 # Let make expand exec_prefix.
26282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26284 DEFS=-DHAVE_CONFIG_H
26288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26289 # 1. Remove the extension, and $U if already installed.
26290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26291 ac_i=`echo "$ac_i" | sed "$ac_script"`
26292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26293 # will be set to the directory where LIBOBJS objects are built.
26294 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26295 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26297 LIBOBJS=$ac_libobjs
26299 LTLIBOBJS=$ac_ltlibobjs
26303 : ${CONFIG_STATUS=./config.status}
26304 ac_clean_files_save=$ac_clean_files
26305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26306 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26307 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26308 cat >$CONFIG_STATUS <<_ACEOF
26310 # Generated by $as_me.
26311 # Run this file to recreate the current configuration.
26312 # Compiler output produced by configure, useful for debugging
26313 # configure, is in config.log if it exists.
26316 ac_cs_recheck=false
26318 SHELL=\${CONFIG_SHELL-$SHELL}
26321 cat >>$CONFIG_STATUS <<\_ACEOF
26322 ## --------------------- ##
26323 ## M4sh Initialization. ##
26324 ## --------------------- ##
26326 # Be more Bourne compatible
26327 DUALCASE=1; export DUALCASE # for MKS sh
26328 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26331 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26332 # is contrary to our usage. Disable this feature.
26333 alias -g '${1+"$@"}'='"$@"'
26334 setopt NO_GLOB_SUBST
26336 case `(set -o) 2>/dev/null` in
26337 *posix*) set -o posix ;;
26346 # Avoid depending upon Character Ranges.
26347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26350 as_cr_digits='0123456789'
26351 as_cr_alnum=$as_cr_Letters$as_cr_digits
26353 # The user is always right.
26354 if test "${PATH_SEPARATOR+set}" != set; then
26355 echo "#! /bin/sh" >conf$$.sh
26356 echo "exit 0" >>conf$$.sh
26358 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26366 # Support unset when possible.
26367 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26375 # We need space, tab and new line, in precisely that order. Quoting is
26376 # there to prevent editors from complaining about space-tab.
26377 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26378 # splitting by setting IFS to empty value.)
26383 # Find who we are. Look in the path if we contain no directory separator.
26385 *[\\/]* ) as_myself=$0 ;;
26386 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26387 for as_dir in $PATH
26390 test -z "$as_dir" && as_dir=.
26391 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26397 # We did not find ourselves, most probably we were run as `sh COMMAND'
26398 # in which case we are not to be found in the path.
26399 if test "x$as_myself" = x; then
26402 if test ! -f "$as_myself"; then
26403 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26404 { (exit 1); exit 1; }
26407 # Work around bugs in pre-3.0 UWIN ksh.
26408 for as_var in ENV MAIL MAILPATH
26409 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26419 LC_TELEPHONE LC_TIME
26421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26422 eval $as_var=C; export $as_var
26424 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26428 # Required to use basename.
26429 if expr a : '\(a\)' >/dev/null 2>&1 &&
26430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26437 as_basename=basename
26443 # Name of the executable.
26444 as_me=`$as_basename -- "$0" ||
26445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26446 X"$0" : 'X\(//\)$' \| \
26447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26449 sed '/^.*\/\([^/][^/]*\)\/*$/{
26468 as_lineno_1=$LINENO
26469 as_lineno_2=$LINENO
26470 test "x$as_lineno_1" != "x$as_lineno_2" &&
26471 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26473 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26474 # uniformly replaced by the line number. The first 'sed' inserts a
26475 # line-number line after each line using $LINENO; the second 'sed'
26476 # does the real work. The second script uses 'N' to pair each
26477 # line-number line with the line containing $LINENO, and appends
26478 # trailing '-' during substitution so that $LINENO is not a special
26479 # case at line end.
26480 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26481 # scripts with optimization help from Paolo Bonzini. Blame Lee
26482 # E. McMahon (1931-1989) for sed's syntax. :-)
26494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26497 ' >$as_me.lineno &&
26498 chmod +x "$as_me.lineno" ||
26499 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26500 { (exit 1); exit 1; }; }
26502 # Don't try to exec as it changes $[0], causing all sort of problems
26503 # (the dirname of $[0] is not the place where we might find the
26504 # original and so on. Autoconf is especially sensitive to this).
26505 . "./$as_me.lineno"
26506 # Exit status is that of the last command.
26511 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26517 ECHO_C= ECHO_N= ECHO_T=
26518 case `echo -n x` in
26520 case `echo 'x\c'` in
26521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26528 if expr a : '\(a\)' >/dev/null 2>&1 &&
26529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26535 rm -f conf$$ conf$$.exe conf$$.file
26536 if test -d conf$$.dir; then
26537 rm -f conf$$.dir/conf$$.file
26543 if ln -s conf$$.file conf$$ 2>/dev/null; then
26545 # ... but there are two gotchas:
26546 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26547 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26548 # In both cases, we have to default to `cp -p'.
26549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26551 elif ln conf$$.file conf$$ 2>/dev/null; then
26556 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26557 rmdir conf$$.dir 2>/dev/null
26559 if mkdir -p . 2>/dev/null; then
26562 test -d ./-p && rmdir ./-p
26566 if test -x / >/dev/null 2>&1; then
26567 as_test_x='test -x'
26569 if ls -dL / >/dev/null 2>&1; then
26576 if test -d "$1"; then
26582 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26583 ???[sx]*):;;*)false;;esac;fi
26587 as_executable_p=$as_test_x
26589 # Sed expression to map a string onto a valid CPP name.
26590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26592 # Sed expression to map a string onto a valid variable name.
26593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26598 # Save the log message, to keep $[0] and so on meaningful, and to
26599 # report actual input values of CONFIG_FILES etc. instead of their
26600 # values after options handling.
26602 This file was extended by $as_me, which was
26603 generated by GNU Autoconf 2.61. Invocation command line was
26605 CONFIG_FILES = $CONFIG_FILES
26606 CONFIG_HEADERS = $CONFIG_HEADERS
26607 CONFIG_LINKS = $CONFIG_LINKS
26608 CONFIG_COMMANDS = $CONFIG_COMMANDS
26611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26616 cat >>$CONFIG_STATUS <<_ACEOF
26617 # Files that config.status was made for.
26618 config_files="$ac_config_files"
26619 config_headers="$ac_config_headers"
26620 config_commands="$ac_config_commands"
26624 cat >>$CONFIG_STATUS <<\_ACEOF
26626 \`$as_me' instantiates files from templates according to the
26627 current configuration.
26629 Usage: $0 [OPTIONS] [FILE]...
26631 -h, --help print this help, then exit
26632 -V, --version print version number and configuration settings, then exit
26633 -q, --quiet do not print progress messages
26634 -d, --debug don't remove temporary files
26635 --recheck update $as_me by reconfiguring in the same conditions
26636 --file=FILE[:TEMPLATE]
26637 instantiate the configuration file FILE
26638 --header=FILE[:TEMPLATE]
26639 instantiate the configuration header FILE
26641 Configuration files:
26644 Configuration headers:
26647 Configuration commands:
26650 Report bugs to <bug-autoconf@gnu.org>."
26653 cat >>$CONFIG_STATUS <<_ACEOF
26656 configured by $0, generated by GNU Autoconf 2.61,
26657 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26659 Copyright (C) 2006 Free Software Foundation, Inc.
26660 This config.status script is free software; the Free Software Foundation
26661 gives unlimited permission to copy, distribute and modify it."
26667 cat >>$CONFIG_STATUS <<\_ACEOF
26668 # If no file are specified by the user, then we need to provide default
26669 # value. By we need to know if files were specified by the user.
26675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26687 # Handling of the options.
26688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26691 echo "$ac_cs_version"; exit ;;
26692 --debug | --debu | --deb | --de | --d | -d )
26694 --file | --fil | --fi | --f )
26696 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26697 ac_need_defaults=false;;
26698 --header | --heade | --head | --hea )
26700 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26701 ac_need_defaults=false;;
26703 # Conflict between --help and --header
26704 { echo "$as_me: error: ambiguous option: $1
26705 Try \`$0 --help' for more information." >&2
26706 { (exit 1); exit 1; }; };;
26707 --help | --hel | -h )
26708 echo "$ac_cs_usage"; exit ;;
26709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26713 # This is an error.
26714 -*) { echo "$as_me: error: unrecognized option: $1
26715 Try \`$0 --help' for more information." >&2
26716 { (exit 1); exit 1; }; } ;;
26718 *) ac_config_targets="$ac_config_targets $1"
26719 ac_need_defaults=false ;;
26725 ac_configure_extra_args=
26727 if $ac_cs_silent; then
26729 ac_configure_extra_args="$ac_configure_extra_args --silent"
26733 cat >>$CONFIG_STATUS <<_ACEOF
26734 if \$ac_cs_recheck; then
26735 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26736 CONFIG_SHELL=$SHELL
26737 export CONFIG_SHELL
26738 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26742 cat >>$CONFIG_STATUS <<\_ACEOF
26746 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26747 ## Running $as_me. ##
26753 cat >>$CONFIG_STATUS <<_ACEOF
26756 cat >>$CONFIG_STATUS <<\_ACEOF
26758 # Handling of arguments.
26759 for ac_config_target in $ac_config_targets
26761 case $ac_config_target in
26762 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26763 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26764 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26765 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26766 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26767 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26768 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26769 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26770 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26771 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26772 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26773 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26774 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26775 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26776 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26777 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26778 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26779 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26780 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26782 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26783 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26784 { (exit 1); exit 1; }; };;
26789 # If the user did not use the arguments to specify the items to instantiate,
26790 # then the envvar interface is used. Set only those that are not.
26791 # We use the long form for the default assignment because of an extremely
26792 # bizarre bug on SunOS 4.1.3.
26793 if $ac_need_defaults; then
26794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26799 # Have a temporary directory for convenience. Make it in the build tree
26800 # simply because there is no reason against having it here, and in addition,
26801 # creating and moving files from /tmp can sometimes cause problems.
26802 # Hook for its removal unless debugging.
26803 # Note that there is a small window in which the directory will not be cleaned:
26804 # after its creation but before its name has been assigned to `$tmp'.
26808 trap 'exit_status=$?
26809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26811 trap '{ (exit 1); exit 1; }' 1 2 13 15
26813 # Create a (secure) tmp directory for tmp files.
26816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26817 test -n "$tmp" && test -d "$tmp"
26820 tmp=./conf$$-$RANDOM
26821 (umask 077 && mkdir "$tmp")
26824 echo "$me: cannot create a temporary directory in ." >&2
26825 { (exit 1); exit 1; }
26829 # Set up the sed scripts for CONFIG_FILES section.
26832 # No need to generate the scripts if there are no CONFIG_FILES.
26833 # This happens for instance when ./config.status config.h
26834 if test -n "$CONFIG_FILES"; then
26841 for ac_last_try in false false false false false :; do
26842 cat >conf$$subs.sed <<_ACEOF
26843 SHELL!$SHELL$ac_delim
26844 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26845 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26846 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26847 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26848 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26849 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26850 exec_prefix!$exec_prefix$ac_delim
26851 prefix!$prefix$ac_delim
26852 program_transform_name!$program_transform_name$ac_delim
26853 bindir!$bindir$ac_delim
26854 sbindir!$sbindir$ac_delim
26855 libexecdir!$libexecdir$ac_delim
26856 datarootdir!$datarootdir$ac_delim
26857 datadir!$datadir$ac_delim
26858 sysconfdir!$sysconfdir$ac_delim
26859 sharedstatedir!$sharedstatedir$ac_delim
26860 localstatedir!$localstatedir$ac_delim
26861 includedir!$includedir$ac_delim
26862 oldincludedir!$oldincludedir$ac_delim
26863 docdir!$docdir$ac_delim
26864 infodir!$infodir$ac_delim
26865 htmldir!$htmldir$ac_delim
26866 dvidir!$dvidir$ac_delim
26867 pdfdir!$pdfdir$ac_delim
26868 psdir!$psdir$ac_delim
26869 libdir!$libdir$ac_delim
26870 localedir!$localedir$ac_delim
26871 mandir!$mandir$ac_delim
26872 DEFS!$DEFS$ac_delim
26873 ECHO_C!$ECHO_C$ac_delim
26874 ECHO_N!$ECHO_N$ac_delim
26875 ECHO_T!$ECHO_T$ac_delim
26876 LIBS!$LIBS$ac_delim
26877 build_alias!$build_alias$ac_delim
26878 host_alias!$host_alias$ac_delim
26879 target_alias!$target_alias$ac_delim
26881 CFLAGS!$CFLAGS$ac_delim
26882 LDFLAGS!$LDFLAGS$ac_delim
26883 CPPFLAGS!$CPPFLAGS$ac_delim
26884 ac_ct_CC!$ac_ct_CC$ac_delim
26885 EXEEXT!$EXEEXT$ac_delim
26886 OBJEXT!$OBJEXT$ac_delim
26888 CXXFLAGS!$CXXFLAGS$ac_delim
26889 ac_ct_CXX!$ac_ct_CXX$ac_delim
26891 GREP!$GREP$ac_delim
26892 EGREP!$EGREP$ac_delim
26893 RANLIB!$RANLIB$ac_delim
26894 GMAKE!$GMAKE$ac_delim
26895 MAKE!$MAKE$ac_delim
26896 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26897 LIBTOOL!$LIBTOOL$ac_delim
26898 build!$build$ac_delim
26899 build_cpu!$build_cpu$ac_delim
26900 build_vendor!$build_vendor$ac_delim
26901 build_os!$build_os$ac_delim
26902 host!$host$ac_delim
26903 host_cpu!$host_cpu$ac_delim
26904 host_vendor!$host_vendor$ac_delim
26905 host_os!$host_os$ac_delim
26907 LN_S!$LN_S$ac_delim
26908 ECHO!$ECHO$ac_delim
26910 STRIP!$STRIP$ac_delim
26911 DSYMUTIL!$DSYMUTIL$ac_delim
26912 NMEDIT!$NMEDIT$ac_delim
26913 CXXCPP!$CXXCPP$ac_delim
26915 FFLAGS!$FFLAGS$ac_delim
26916 ac_ct_F77!$ac_ct_F77$ac_delim
26917 logdir!$logdir$ac_delim
26918 radacctdir!$radacctdir$ac_delim
26919 raddbdir!$raddbdir$ac_delim
26920 PERL!$PERL$ac_delim
26921 SNMPGET!$SNMPGET$ac_delim
26922 SNMPWALK!$SNMPWALK$ac_delim
26923 RUSERS!$RUSERS$ac_delim
26924 ACLOCAL!$ACLOCAL$ac_delim
26925 AUTOCONF!$AUTOCONF$ac_delim
26926 AUTOHEADER!$AUTOHEADER$ac_delim
26927 LOCATE!$LOCATE$ac_delim
26928 DIRNAME!$DIRNAME$ac_delim
26929 LIBREADLINE!$LIBREADLINE$ac_delim
26930 REGEX!$REGEX$ac_delim
26931 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26932 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26933 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26934 PCAP_LIBS!$PCAP_LIBS$ac_delim
26935 LIBPREFIX!$LIBPREFIX$ac_delim
26936 CRYPTLIB!$CRYPTLIB$ac_delim
26937 HOSTINFO!$HOSTINFO$ac_delim
26938 LIBLTDL!$LIBLTDL$ac_delim
26939 INCLTDL!$INCLTDL$ac_delim
26942 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26944 elif $ac_last_try; then
26945 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26946 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26947 { (exit 1); exit 1; }; }
26949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26953 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26954 if test -n "$ac_eof"; then
26955 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26956 ac_eof=`expr $ac_eof + 1`
26959 cat >>$CONFIG_STATUS <<_ACEOF
26960 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26964 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26965 s/^/s,@/; s/!/@,|#_!!_#|/
26968 s/'"$ac_delim"'$/,g/; t
26970 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26971 ' >>$CONFIG_STATUS <conf$$subs.sed
26972 rm -f conf$$subs.sed
26973 cat >>$CONFIG_STATUS <<_ACEOF
26979 for ac_last_try in false false false false false :; do
26980 cat >conf$$subs.sed <<_ACEOF
26981 subdirs!$subdirs$ac_delim
26982 MODULES!$MODULES$ac_delim
26983 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26984 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26985 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26986 STATIC_MODULES!$STATIC_MODULES$ac_delim
26987 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26988 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26989 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26990 LIBOBJS!$LIBOBJS$ac_delim
26991 LTLIBOBJS!$LTLIBOBJS$ac_delim
26994 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26996 elif $ac_last_try; then
26997 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26998 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26999 { (exit 1); exit 1; }; }
27001 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27005 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27006 if test -n "$ac_eof"; then
27007 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27008 ac_eof=`expr $ac_eof + 1`
27011 cat >>$CONFIG_STATUS <<_ACEOF
27012 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27016 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27017 s/^/s,@/; s/!/@,|#_!!_#|/
27020 s/'"$ac_delim"'$/,g/; t
27022 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27023 ' >>$CONFIG_STATUS <conf$$subs.sed
27024 rm -f conf$$subs.sed
27025 cat >>$CONFIG_STATUS <<_ACEOF
27032 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27033 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27034 # trailing colons and then remove the whole line if VPATH becomes empty
27035 # (actually we leave an empty line to preserve line numbers).
27036 if test "x$srcdir" = x.; then
27037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27038 s/:*\$(srcdir):*/:/
27039 s/:*\${srcdir}:*/:/
27041 s/^\([^=]*=[ ]*\):*/\1/
27047 cat >>$CONFIG_STATUS <<\_ACEOF
27048 fi # test -n "$CONFIG_FILES"
27051 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27054 :[FHLC]) ac_mode=$ac_tag; continue;;
27056 case $ac_mode$ac_tag in
27058 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27059 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27060 { (exit 1); exit 1; }; };;
27061 :[FH]-) ac_tag=-:-;;
27062 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27079 -) ac_f="$tmp/stdin";;
27080 *) # Look for the file first in the build tree, then in the source tree
27081 # (if the path is not absolute). The absolute path cannot be DOS-style,
27082 # because $ac_f cannot contain `:'.
27086 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27088 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27089 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27090 { (exit 1); exit 1; }; };;
27092 ac_file_inputs="$ac_file_inputs $ac_f"
27095 # Let's still pretend it is `configure' which instantiates (i.e., don't
27096 # use $as_me), people would be surprised to read:
27097 # /* config.h. Generated by config.status. */
27098 configure_input="Generated from "`IFS=:
27099 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27100 if test x"$ac_file" != x-; then
27101 configure_input="$ac_file. $configure_input"
27102 { echo "$as_me:$LINENO: creating $ac_file" >&5
27103 echo "$as_me: creating $ac_file" >&6;}
27107 *:-:* | *:-) cat >"$tmp/stdin";;
27112 ac_dir=`$as_dirname -- "$ac_file" ||
27113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27114 X"$ac_file" : 'X\(//\)[^/]' \| \
27115 X"$ac_file" : 'X\(//\)$' \| \
27116 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27122 /^X\(\/\/\)[^/].*/{
27137 -*) as_dir=./$as_dir;;
27139 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27143 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27144 *) as_qdir=$as_dir;;
27146 as_dirs="'$as_qdir' $as_dirs"
27147 as_dir=`$as_dirname -- "$as_dir" ||
27148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27149 X"$as_dir" : 'X\(//\)[^/]' \| \
27150 X"$as_dir" : 'X\(//\)$' \| \
27151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27157 /^X\(\/\/\)[^/].*/{
27170 test -d "$as_dir" && break
27172 test -z "$as_dirs" || eval "mkdir $as_dirs"
27173 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27174 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27175 { (exit 1); exit 1; }; }; }
27179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27182 # A ".." for each directory in $ac_dir_suffix.
27183 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27184 case $ac_top_builddir_sub in
27185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27189 ac_abs_top_builddir=$ac_pwd
27190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27191 # for backward compatibility:
27192 ac_top_builddir=$ac_top_build_prefix
27195 .) # We are building in place.
27197 ac_top_srcdir=$ac_top_builddir_sub
27198 ac_abs_top_srcdir=$ac_pwd ;;
27199 [\\/]* | ?:[\\/]* ) # Absolute name.
27200 ac_srcdir=$srcdir$ac_dir_suffix;
27201 ac_top_srcdir=$srcdir
27202 ac_abs_top_srcdir=$srcdir ;;
27203 *) # Relative name.
27204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27205 ac_top_srcdir=$ac_top_build_prefix$srcdir
27206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27219 cat >>$CONFIG_STATUS <<\_ACEOF
27220 # If the template does not know about datarootdir, expand it.
27221 # FIXME: This hack should be removed a few years after 2.60.
27222 ac_datarootdir_hack=; ac_datarootdir_seen=
27224 case `sed -n '/datarootdir/ {
27233 ' $ac_file_inputs` in
27234 *datarootdir*) ac_datarootdir_seen=yes;;
27235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27236 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27237 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27239 cat >>$CONFIG_STATUS <<_ACEOF
27240 ac_datarootdir_hack='
27241 s&@datadir@&$datadir&g
27242 s&@docdir@&$docdir&g
27243 s&@infodir@&$infodir&g
27244 s&@localedir@&$localedir&g
27245 s&@mandir@&$mandir&g
27246 s&\\\${datarootdir}&$datarootdir&g' ;;
27250 # Neutralize VPATH when `$srcdir' = `.'.
27251 # Shell code in configure.ac might set extrasub.
27252 # FIXME: do we really want to maintain this feature?
27253 cat >>$CONFIG_STATUS <<_ACEOF
27257 cat >>$CONFIG_STATUS <<\_ACEOF
27259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27260 s&@configure_input@&$configure_input&;t t
27261 s&@top_builddir@&$ac_top_builddir_sub&;t t
27262 s&@srcdir@&$ac_srcdir&;t t
27263 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27264 s&@top_srcdir@&$ac_top_srcdir&;t t
27265 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27266 s&@builddir@&$ac_builddir&;t t
27267 s&@abs_builddir@&$ac_abs_builddir&;t t
27268 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27269 $ac_datarootdir_hack
27270 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27272 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27273 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27274 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27275 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27276 which seems to be undefined. Please make sure it is defined." >&5
27277 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27278 which seems to be undefined. Please make sure it is defined." >&2;}
27282 -) cat "$tmp/out"; rm -f "$tmp/out";;
27283 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27292 # Transform confdefs.h into a sed script `conftest.defines', that
27293 # substitutes the proper values into config.h.in to produce config.h.
27294 rm -f conftest.defines conftest.tail
27295 # First, append a space to every undef/define line, to ease matching.
27296 echo 's/$/ /' >conftest.defines
27297 # Then, protect against being on the right side of a sed subst, or in
27298 # an unquoted here document, in config.status. If some macros were
27299 # called several times there might be several #defines for the same
27300 # symbol, which is useless. But do not sort them, since the last
27301 # AC_DEFINE must be honored.
27302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27303 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27304 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27305 # PARAMS is the parameter list in the macro definition--in most cases, it's
27306 # just an empty string.
27307 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27308 ac_dB='\\)[ (].*,\\1define\\2'
27316 s/^[ ]*#[ ]*define[ ][ ]*//
27321 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27322 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27323 ' >>conftest.defines
27325 # Remove the space that was appended to ease matching.
27326 # Then replace #undef with comments. This is necessary, for
27327 # example, in the case of _POSIX_SOURCE, which is predefined and required
27328 # on some systems where configure will not decide to define it.
27329 # (The regexp can be short, since the line contains either #define or #undef.)
27331 s,^[ #]*u.*,/* & */,' >>conftest.defines
27333 # Break up conftest.defines:
27334 ac_max_sed_lines=50
27336 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27337 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27338 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27340 ac_in='$ac_file_inputs'
27341 ac_out='"$tmp/out1"'
27342 ac_nxt='"$tmp/out2"'
27346 # Write a here document:
27347 cat >>$CONFIG_STATUS <<_ACEOF
27348 # First, check the format of the line:
27349 cat >"\$tmp/defines.sed" <<\\CEOF
27350 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27351 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27355 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27357 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27358 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27359 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27360 grep . conftest.tail >/dev/null || break
27361 rm -f conftest.defines
27362 mv conftest.tail conftest.defines
27364 rm -f conftest.defines conftest.tail
27366 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27367 cat >>$CONFIG_STATUS <<\_ACEOF
27368 if test x"$ac_file" != x-; then
27369 echo "/* $configure_input */" >"$tmp/config.h"
27370 cat "$ac_result" >>"$tmp/config.h"
27371 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27372 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27373 echo "$as_me: $ac_file is unchanged" >&6;}
27376 mv "$tmp/config.h" $ac_file
27379 echo "/* $configure_input */"
27385 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27386 echo "$as_me: executing $ac_file commands" >&6;}
27391 case $ac_file$ac_mode in
27392 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27393 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27394 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
27395 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27401 { (exit 0); exit 0; }
27403 chmod +x $CONFIG_STATUS
27404 ac_clean_files=$ac_clean_files_save
27407 # configure is writing to config.log, and then calls config.status.
27408 # config.status does its own redirection, appending to config.log.
27409 # Unfortunately, on DOS this fails, as config.log is still kept open
27410 # by configure, so config.status won't be able to write to it; its
27411 # output is simply discarded. So we exec the FD to /dev/null,
27412 # effectively closing config.log, so it can be properly (re)opened and
27413 # appended to by config.status. When coming back to configure, we
27414 # need to make the FD available again.
27415 if test "$no_create" != yes; then
27417 ac_config_status_args=
27418 test "$silent" = yes &&
27419 ac_config_status_args="$ac_config_status_args --quiet"
27421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27424 # would make configure fail if this is the last instruction.
27425 $ac_cs_success || { (exit 1); exit 1; }
27429 # CONFIG_SUBDIRS section.
27431 if test "$no_recursion" != yes; then
27433 # Remove --cache-file and --srcdir arguments so they do not pile up.
27434 ac_sub_configure_args=
27436 eval "set x $ac_configure_args"
27440 if test -n "$ac_prev"; then
27445 -cache-file | --cache-file | --cache-fil | --cache-fi \
27446 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27447 ac_prev=cache_file ;;
27448 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27449 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27452 --config-cache | -C)
27454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27464 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27466 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27470 # Always prepend --prefix to ensure using the same prefix
27471 # in subdir configurations.
27472 ac_arg="--prefix=$prefix"
27474 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27476 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27479 if test "$silent" = yes; then
27480 ac_sub_configure_args="--silent $ac_sub_configure_args"
27484 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27486 # Do not complain, so a configure script can configure whichever
27487 # parts of a large source tree are present.
27488 test -d "$srcdir/$ac_dir" || continue
27490 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27491 echo "$as_me:$LINENO: $ac_msg" >&5
27495 -*) as_dir=./$as_dir;;
27497 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27501 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27502 *) as_qdir=$as_dir;;
27504 as_dirs="'$as_qdir' $as_dirs"
27505 as_dir=`$as_dirname -- "$as_dir" ||
27506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27507 X"$as_dir" : 'X\(//\)[^/]' \| \
27508 X"$as_dir" : 'X\(//\)$' \| \
27509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27515 /^X\(\/\/\)[^/].*/{
27528 test -d "$as_dir" && break
27530 test -z "$as_dirs" || eval "mkdir $as_dirs"
27531 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27532 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27533 { (exit 1); exit 1; }; }; }
27537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27540 # A ".." for each directory in $ac_dir_suffix.
27541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27542 case $ac_top_builddir_sub in
27543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27547 ac_abs_top_builddir=$ac_pwd
27548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27549 # for backward compatibility:
27550 ac_top_builddir=$ac_top_build_prefix
27553 .) # We are building in place.
27555 ac_top_srcdir=$ac_top_builddir_sub
27556 ac_abs_top_srcdir=$ac_pwd ;;
27557 [\\/]* | ?:[\\/]* ) # Absolute name.
27558 ac_srcdir=$srcdir$ac_dir_suffix;
27559 ac_top_srcdir=$srcdir
27560 ac_abs_top_srcdir=$srcdir ;;
27561 *) # Relative name.
27562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27563 ac_top_srcdir=$ac_top_build_prefix$srcdir
27564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27571 # Check for guested configure; otherwise get Cygnus style configure.
27572 if test -f "$ac_srcdir/configure.gnu"; then
27573 ac_sub_configure=$ac_srcdir/configure.gnu
27574 elif test -f "$ac_srcdir/configure"; then
27575 ac_sub_configure=$ac_srcdir/configure
27576 elif test -f "$ac_srcdir/configure.in"; then
27577 # This should be Cygnus configure.
27578 ac_sub_configure=$ac_aux_dir/configure
27580 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27581 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27585 # The recursion is here.
27586 if test -n "$ac_sub_configure"; then
27587 # Make the cache file name correct relative to the subdirectory.
27588 case $cache_file in
27589 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27590 *) # Relative name.
27591 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27594 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27595 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27596 # The eval makes quoting arguments work.
27597 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27598 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27599 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27600 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27601 { (exit 1); exit 1; }; }