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=no)
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 # Check whether --enable-largefile was given.
3828 if test "${enable_largefile+set}" = set; then
3829 enableval=$enable_largefile;
3832 if test "$enable_largefile" != no; then
3834 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_sys_largefile_CC=no
3840 if test "$GCC" != yes; then
3843 # IRIX 6.2 and later do not support large files by default,
3844 # so use the C compiler's -n32 option if that helps.
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #include <sys/types.h>
3852 /* Check that off_t can represent 2**63 - 1 correctly.
3853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3854 since some C++ compilers masquerading as C compilers
3855 incorrectly reject 9223372036854775807. */
3856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3858 && LARGE_OFF_T % 2147483647 == 1)
3868 rm -f conftest.$ac_objext
3869 if { (ac_try="$ac_compile"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3893 rm -f core conftest.err conftest.$ac_objext
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3912 ac_cv_sys_largefile_CC=' -n32'; break
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f core conftest.err conftest.$ac_objext
3924 rm -f conftest.$ac_ext
3927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3929 if test "$ac_cv_sys_largefile_CC" != no; then
3930 CC=$CC$ac_cv_sys_largefile_CC
3933 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 #include <sys/types.h>
3946 /* Check that off_t can represent 2**63 - 1 correctly.
3947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3948 since some C++ compilers masquerading as C compilers
3949 incorrectly reject 9223372036854775807. */
3950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3952 && LARGE_OFF_T % 2147483647 == 1)
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_compile") 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest.$ac_objext; then
3979 ac_cv_sys_file_offset_bits=no; break
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 cat >conftest.$ac_ext <<_ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 #define _FILE_OFFSET_BITS 64
3995 #include <sys/types.h>
3996 /* Check that off_t can represent 2**63 - 1 correctly.
3997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3998 since some C++ compilers masquerading as C compilers
3999 incorrectly reject 9223372036854775807. */
4000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4002 && LARGE_OFF_T % 2147483647 == 1)
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_sys_file_offset_bits=64; break
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_sys_file_offset_bits=unknown
4042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4044 case $ac_cv_sys_file_offset_bits in #(
4047 cat >>confdefs.h <<_ACEOF
4048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4053 if test $ac_cv_sys_file_offset_bits = unknown; then
4054 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4056 if test "${ac_cv_sys_large_files+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 /* Check that off_t can represent 2**63 - 1 correctly.
4068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4069 since some C++ compilers masquerading as C compilers
4070 incorrectly reject 9223372036854775807. */
4071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4073 && LARGE_OFF_T % 2147483647 == 1)
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 ac_cv_sys_large_files=no; break
4102 echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_sys_large_files=1; break
4152 echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_cv_sys_large_files=unknown
4163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4165 case $ac_cv_sys_large_files in #(
4168 cat >>confdefs.h <<_ACEOF
4169 #define _LARGE_FILES $ac_cv_sys_large_files
4178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4180 if test "${ac_cv_header_stdc+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } && {
4216 test -z "$ac_c_werror_flag" ||
4217 test ! -s conftest.err
4218 } && test -s conftest.$ac_objext; then
4219 ac_cv_header_stdc=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_header_stdc=no
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 if test $ac_cv_header_stdc = yes; then
4230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4241 $EGREP "memchr" >/dev/null 2>&1; then
4244 ac_cv_header_stdc=no
4250 if test $ac_cv_header_stdc = yes; then
4251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "free" >/dev/null 2>&1; then
4265 ac_cv_header_stdc=no
4271 if test $ac_cv_header_stdc = yes; then
4272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273 if test "$cross_compiling" = yes; then
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4284 #if ((' ' & 0x0FF) == 0x020)
4285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288 # define ISLOWER(c) \
4289 (('a' <= (c) && (c) <= 'i') \
4290 || ('j' <= (c) && (c) <= 'r') \
4291 || ('s' <= (c) && (c) <= 'z'))
4292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300 for (i = 0; i < 256; i++)
4301 if (XOR (islower (i), ISLOWER (i))
4302 || toupper (i) != TOUPPER (i))
4307 rm -f conftest$ac_exeext
4308 if { (ac_try="$ac_link"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314 (eval "$ac_link") 2>&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4318 { (case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_try") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then
4329 echo "$as_me: program exited with status $ac_status" >&5
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4334 ac_cv_header_stdc=no
4336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4344 if test $ac_cv_header_stdc = yes; then
4346 cat >>confdefs.h <<\_ACEOF
4347 #define STDC_HEADERS 1
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4363 inttypes.h stdint.h unistd.h
4365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 $ac_includes_default
4379 #include <$ac_header>
4381 rm -f conftest.$ac_objext
4382 if { (ac_try="$ac_compile"
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
4398 eval "$as_ac_Header=yes"
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4403 eval "$as_ac_Header=no"
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 ac_res=`eval echo '${'$as_ac_Header'}'`
4409 { echo "$as_me:$LINENO: result: $ac_res" >&5
4410 echo "${ECHO_T}$ac_res" >&6; }
4411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4423 if test "${ac_cv_c_bigendian+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 # See if sys/param.h defines the BYTE_ORDER macro.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4440 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } && {
4462 test -z "$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 } && test -s conftest.$ac_objext; then
4465 # It does; now see whether it defined to BIG_ENDIAN or not.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <sys/types.h>
4473 #include <sys/param.h>
4478 #if BYTE_ORDER != BIG_ENDIAN
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_c_bigendian=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_c_bigendian=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # It does not; compile a test program.
4517 if test "$cross_compiling" = yes; then
4518 # try to guess the endianness by grepping values into an object file
4519 ac_cv_c_bigendian=unknown
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4535 _ascii (); _ebcdic ();
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547 (eval "$ac_compile") 2>conftest.er1
4549 grep -v '^ *+' conftest.er1 >conftest.err
4551 cat conftest.err >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } && {
4554 test -z "$ac_c_werror_flag" ||
4555 test ! -s conftest.err
4556 } && test -s conftest.$ac_objext; then
4557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4558 ac_cv_c_bigendian=yes
4560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4561 if test "$ac_cv_c_bigendian" = unknown; then
4562 ac_cv_c_bigendian=no
4564 # finding both strings is unlikely to happen, but who knows?
4565 ac_cv_c_bigendian=unknown
4569 echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 cat >conftest.$ac_ext <<_ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 $ac_includes_default
4588 /* Are we little or big endian? From Harbison&Steele. */
4592 char c[sizeof (long int)];
4595 return u.c[sizeof (long int) - 1] == 1;
4601 rm -f conftest$ac_exeext
4602 if { (ac_try="$ac_link"
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_link") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 ac_cv_c_bigendian=no
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_cv_c_bigendian=yes
4630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4640 case $ac_cv_c_bigendian in
4643 cat >>confdefs.h <<\_ACEOF
4644 #define WORDS_BIGENDIAN 1
4650 { { echo "$as_me:$LINENO: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4652 echo "$as_me: error: unknown endianness
4653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4654 { (exit 1); exit 1; }; } ;;
4658 # Extract the first word of "gmake", so it can be a program name with args.
4659 set dummy gmake; ac_word=$2
4660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4662 if test "${ac_cv_prog_GMAKE+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$GMAKE"; then
4666 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_prog_GMAKE="yes"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4686 GMAKE=$ac_cv_prog_GMAKE
4687 if test -n "$GMAKE"; then
4688 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4689 echo "${ECHO_T}$GMAKE" >&6; }
4691 { echo "$as_me:$LINENO: result: no" >&5
4692 echo "${ECHO_T}no" >&6; }
4696 if test $GMAKE = no; then
4697 # Extract the first word of "make", so it can be a program name with args.
4698 set dummy make; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MAKE+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4728 MAKE=$ac_cv_path_MAKE
4729 if test -n "$MAKE"; then
4730 { echo "$as_me:$LINENO: result: $MAKE" >&5
4731 echo "${ECHO_T}$MAKE" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4739 # Extract the first word of "gmake", so it can be a program name with args.
4740 set dummy gmake; ac_word=$2
4741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_MAKE+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4770 MAKE=$ac_cv_path_MAKE
4771 if test -n "$MAKE"; then
4772 { echo "$as_me:$LINENO: result: $MAKE" >&5
4773 echo "${ECHO_T}$MAKE" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4781 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4782 if test -z "$makever"; then
4783 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4784 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4785 echo "$as_me: error: GNU Make is not installed. Please download and install it
4786 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4787 { (exit 1); exit 1; }; }
4791 # Check whether --with-system-libltdl was given.
4792 if test "${with_system_libltdl+set}" = set; then
4793 withval=$with_system_libltdl;
4800 test x"$enable_ltdl_install" = x && enable_ltdl_install=yes
4801 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4802 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4803 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_check_lib_save_LIBS=$LIBS
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4815 /* Override any GCC internal prototype to avoid an error.
4816 Use char because int might match the return type of a GCC
4817 builtin and then its argument prototype would still apply. */
4825 return lt_dlinit ();
4830 rm -f conftest.$ac_objext conftest$ac_exeext
4831 if { (ac_try="$ac_link"
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_link") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest$ac_exeext &&
4847 $as_test_x conftest$ac_exeext; then
4848 ac_cv_lib_ltdl_lt_dlinit=yes
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 ac_cv_lib_ltdl_lt_dlinit=no
4856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4857 conftest$ac_exeext conftest.$ac_ext
4858 LIBS=$ac_check_lib_save_LIBS
4860 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4861 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4862 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4863 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4865 if test x"$enable_ltdl_install" = xno; then
4866 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4867 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4869 enable_ltdl_install=yes
4874 if test x"$enable_ltdl_install" = x"yes"; then
4875 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4876 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4877 LTDLINCL='-I${top_srcdir}/''libltdl'
4879 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4883 # For backwards non-gettext consistent compatibility...
4887 if test x"$enable_ltdl_install" = x"yes"; then
4888 LTDL_SUBDIRS=libltdl
4895 # Check whether --enable-shared was given.
4896 if test "${enable_shared+set}" = set; then
4897 enableval=$enable_shared; p=${PACKAGE-default}
4899 yes) enable_shared=yes ;;
4900 no) enable_shared=no ;;
4903 # Look at the argument we got. We use all the common list separators.
4904 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4905 for pkg in $enableval; do
4907 if test "X$pkg" = "X$p"; then
4919 # Check whether --enable-static was given.
4920 if test "${enable_static+set}" = set; then
4921 enableval=$enable_static; p=${PACKAGE-default}
4923 yes) enable_static=yes ;;
4924 no) enable_static=no ;;
4927 # Look at the argument we got. We use all the common list separators.
4928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4929 for pkg in $enableval; do
4931 if test "X$pkg" = "X$p"; then
4943 # Check whether --enable-fast-install was given.
4944 if test "${enable_fast_install+set}" = set; then
4945 enableval=$enable_fast_install; p=${PACKAGE-default}
4947 yes) enable_fast_install=yes ;;
4948 no) enable_fast_install=no ;;
4950 enable_fast_install=no
4951 # Look at the argument we got. We use all the common list separators.
4952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4953 for pkg in $enableval; do
4955 if test "X$pkg" = "X$p"; then
4956 enable_fast_install=yes
4963 enable_fast_install=yes
4968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4969 if test -f "$ac_dir/install-sh"; then
4971 ac_install_sh="$ac_aux_dir/install-sh -c"
4973 elif test -f "$ac_dir/install.sh"; then
4975 ac_install_sh="$ac_aux_dir/install.sh -c"
4977 elif test -f "$ac_dir/shtool"; then
4979 ac_install_sh="$ac_aux_dir/shtool install -c"
4983 if test -z "$ac_aux_dir"; then
4984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4986 { (exit 1); exit 1; }; }
4989 # These three variables are undocumented and unsupported,
4990 # and are intended to be withdrawn in a future Autoconf release.
4991 # They can cause serious problems if a builder's source tree is in a directory
4992 # whose full name contains unusual characters.
4993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4998 # Make sure we can run config.sub.
4999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5000 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5001 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5002 { (exit 1); exit 1; }; }
5004 { echo "$as_me:$LINENO: checking build system type" >&5
5005 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5006 if test "${ac_cv_build+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_build_alias=$build_alias
5010 test "x$ac_build_alias" = x &&
5011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5012 test "x$ac_build_alias" = x &&
5013 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5014 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5015 { (exit 1); exit 1; }; }
5016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5019 { (exit 1); exit 1; }; }
5022 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5023 echo "${ECHO_T}$ac_cv_build" >&6; }
5024 case $ac_cv_build in
5026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5027 echo "$as_me: error: invalid value of canonical build" >&2;}
5028 { (exit 1); exit 1; }; };;
5031 ac_save_IFS=$IFS; IFS='-'
5037 # Remember, the first character of IFS is used to create $*,
5038 # except with old shells:
5041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5044 { echo "$as_me:$LINENO: checking host system type" >&5
5045 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5046 if test "${ac_cv_host+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 if test "x$host_alias" = x; then
5050 ac_cv_host=$ac_cv_build
5052 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5055 { (exit 1); exit 1; }; }
5059 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5060 echo "${ECHO_T}$ac_cv_host" >&6; }
5063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5064 echo "$as_me: error: invalid value of canonical host" >&2;}
5065 { (exit 1); exit 1; }; };;
5068 ac_save_IFS=$IFS; IFS='-'
5074 # Remember, the first character of IFS is used to create $*,
5075 # except with old shells:
5078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5081 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5082 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5083 if test "${lt_cv_path_SED+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 # Loop through the user's path and test for sed and gsed.
5087 # Then use that list of sed's as ones to test for truncation.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir=.
5093 for lt_ac_prog in sed gsed; do
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5096 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5104 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5105 # along with /bin/sed that truncates output.
5106 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5107 test ! -f $lt_ac_sed && continue
5108 cat /dev/null > conftest.in
5110 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5111 # Check for GNU sed and select it if it is found.
5112 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5113 lt_cv_path_SED=$lt_ac_sed
5117 cat conftest.in conftest.in >conftest.tmp
5118 mv conftest.tmp conftest.in
5119 cp conftest.in conftest.nl
5121 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5122 cmp -s conftest.out conftest.nl || break
5123 # 10000 chars as input seems more than enough
5124 test $lt_ac_count -gt 10 && break
5125 lt_ac_count=`expr $lt_ac_count + 1`
5126 if test $lt_ac_count -gt $lt_ac_max; then
5127 lt_ac_max=$lt_ac_count
5128 lt_cv_path_SED=$lt_ac_sed
5137 { echo "$as_me:$LINENO: result: $SED" >&5
5138 echo "${ECHO_T}$SED" >&6; }
5141 # Check whether --with-gnu-ld was given.
5142 if test "${with_gnu_ld+set}" = set; then
5143 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5149 if test "$GCC" = yes; then
5150 # Check if gcc -print-prog-name=ld gives a path.
5151 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5152 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5155 # gcc leaves a trailing carriage return which upsets mingw
5156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5161 # Accept absolute paths.
5163 re_direlt='/[^/][^/]*/\.\./'
5164 # Canonicalize the pathname of ld
5165 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5167 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5169 test -z "$LD" && LD="$ac_prog"
5172 # If it fails, then pretend we aren't using GCC.
5176 # If it is relative, then search for the first ld in PATH.
5180 elif test "$with_gnu_ld" = yes; then
5181 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5184 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5187 if test "${lt_cv_path_LD+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 if test -z "$LD"; then
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH; do
5194 test -z "$ac_dir" && ac_dir=.
5195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196 lt_cv_path_LD="$ac_dir/$ac_prog"
5197 # Check to see if the program is GNU ld. I'd rather use --version,
5198 # but apparently some variants of GNU ld only accept -v.
5199 # Break only if it was the GNU/non-GNU ld that we prefer.
5200 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201 *GNU* | *'with BFD'*)
5202 test "$with_gnu_ld" != no && break
5205 test "$with_gnu_ld" != yes && break
5212 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5217 if test -n "$LD"; then
5218 { echo "$as_me:$LINENO: result: $LD" >&5
5219 echo "${ECHO_T}$LD" >&6; }
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5224 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5225 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5226 { (exit 1); exit 1; }; }
5227 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5228 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5229 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5233 case `$LD -v 2>&1 </dev/null` in
5234 *GNU* | *'with BFD'*)
5235 lt_cv_prog_gnu_ld=yes
5238 lt_cv_prog_gnu_ld=no
5242 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5243 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5244 with_gnu_ld=$lt_cv_prog_gnu_ld
5247 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5248 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5249 if test "${lt_cv_ld_reload_flag+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 lt_cv_ld_reload_flag='-r'
5254 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5255 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5256 reload_flag=$lt_cv_ld_reload_flag
5257 case $reload_flag in
5259 *) reload_flag=" $reload_flag" ;;
5261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5264 if test "$GCC" = yes; then
5265 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5273 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5274 if test "${lt_cv_path_NM+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5304 lt_cv_path_NM="$tmp_nm -p"
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5318 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5321 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5322 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5325 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5326 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5328 if test "$LN_S" = "ln -s"; then
5329 { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5332 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5333 echo "${ECHO_T}no, using $LN_S" >&6; }
5336 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5337 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5338 if test "${lt_cv_deplibs_check_method+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 lt_cv_file_magic_cmd='$MAGIC_CMD'
5342 lt_cv_file_magic_test_file=
5343 lt_cv_deplibs_check_method='unknown'
5344 # Need to set the preceding variable on all platforms that support
5345 # interlibrary dependencies.
5346 # 'none' -- dependencies not supported.
5347 # `unknown' -- same as none, but documents that we really don't know.
5348 # 'pass_all' -- all dependencies passed with no checks.
5349 # 'test_compile' -- check by making test program.
5350 # 'file_magic [[regex]]' -- check by looking for files in library path
5351 # which responds to the $file_magic_cmd with a given extended regex.
5352 # If you have `file' or equivalent on your system and you're not sure
5353 # whether `pass_all' will *always* work, you probably want this one.
5357 lt_cv_deplibs_check_method=pass_all
5361 lt_cv_deplibs_check_method=pass_all
5365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5366 lt_cv_file_magic_cmd='/usr/bin/file -L'
5367 lt_cv_file_magic_test_file=/shlib/libc.so
5371 # func_win32_libid is a shell function defined in ltmain.sh
5372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5373 lt_cv_file_magic_cmd='func_win32_libid'
5377 # Base MSYS/MinGW do not provide the 'file' command needed by
5378 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5379 # unless we find 'file', for example because we are cross-compiling.
5380 if ( file / ) >/dev/null 2>&1; then
5381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5382 lt_cv_file_magic_cmd='func_win32_libid'
5384 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5385 lt_cv_file_magic_cmd='$OBJDUMP -f'
5389 darwin* | rhapsody*)
5390 lt_cv_deplibs_check_method=pass_all
5393 freebsd* | dragonfly*)
5394 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5397 # Not sure whether the presence of OpenBSD here was a mistake.
5398 # Let's accept both of them until this is cleared up.
5399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5400 lt_cv_file_magic_cmd=/usr/bin/file
5401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5405 lt_cv_deplibs_check_method=pass_all
5410 lt_cv_deplibs_check_method=pass_all
5413 hpux10.20* | hpux11*)
5414 lt_cv_file_magic_cmd=/usr/bin/file
5417 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5421 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]'
5422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5436 irix5* | irix6* | nonstopux*)
5438 *-32|*"-32 ") libmagic=32-bit;;
5439 *-n32|*"-n32 ") libmagic=N32;;
5440 *-64|*"-64 ") libmagic=64-bit;;
5441 *) libmagic=never-match;;
5443 lt_cv_deplibs_check_method=pass_all
5446 # This must be Linux ELF.
5447 linux* | k*bsd*-gnu)
5448 lt_cv_deplibs_check_method=pass_all
5451 netbsd* | netbsdelf*-gnu)
5452 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5461 lt_cv_file_magic_cmd=/usr/bin/file
5462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5466 lt_cv_deplibs_check_method=unknown
5470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5477 osf3* | osf4* | osf5*)
5478 lt_cv_deplibs_check_method=pass_all
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5490 case $host_vendor in
5492 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]'
5493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5496 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_file_magic_cmd='/bin/file'
5500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5503 lt_cv_file_magic_cmd='/bin/file'
5504 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505 lt_cv_file_magic_test_file=/lib/libc.so
5508 lt_cv_deplibs_check_method=pass_all
5511 lt_cv_deplibs_check_method=pass_all
5516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5517 lt_cv_deplibs_check_method=pass_all
5522 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5523 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5524 file_magic_cmd=$lt_cv_file_magic_cmd
5525 deplibs_check_method=$lt_cv_deplibs_check_method
5526 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5531 # If no C compiler was specified, use CC.
5534 # If no C compiler flags were specified, use CFLAGS.
5535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5537 # Allow CC to be a program name with arguments.
5540 # Check whether --enable-libtool-lock was given.
5541 if test "${enable_libtool_lock+set}" = set; then
5542 enableval=$enable_libtool_lock;
5545 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5547 # Some flags need to be propagated to the compiler or linker for good
5551 # Find out which ABI we are using.
5552 echo 'int i;' > conftest.$ac_ext
5553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554 (eval $ac_compile) 2>&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; then
5558 case `/usr/bin/file conftest.$ac_objext` in
5570 # Find out which ABI we are using.
5571 echo '#line 5571 "configure"' > conftest.$ac_ext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; then
5577 if test "$lt_cv_prog_gnu_ld" = yes; then
5578 case `/usr/bin/file conftest.$ac_objext` in
5580 LD="${LD-ld} -melf32bsmip"
5583 LD="${LD-ld} -melf32bmipn32"
5586 LD="${LD-ld} -melf64bmip"
5590 case `/usr/bin/file conftest.$ac_objext` in
5606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5607 s390*-*linux*|sparc*-*linux*)
5608 # Find out which ABI we are using.
5609 echo 'int i;' > conftest.$ac_ext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; then
5615 case `/usr/bin/file conftest.o` in
5618 x86_64-*kfreebsd*-gnu)
5619 LD="${LD-ld} -m elf_i386_fbsd"
5622 LD="${LD-ld} -m elf_i386"
5624 ppc64-*linux*|powerpc64-*linux*)
5625 LD="${LD-ld} -m elf32ppclinux"
5628 LD="${LD-ld} -m elf_s390"
5631 LD="${LD-ld} -m elf32_sparc"
5637 x86_64-*kfreebsd*-gnu)
5638 LD="${LD-ld} -m elf_x86_64_fbsd"
5641 LD="${LD-ld} -m elf_x86_64"
5643 ppc*-*linux*|powerpc*-*linux*)
5644 LD="${LD-ld} -m elf64ppc"
5647 LD="${LD-ld} -m elf64_s390"
5650 LD="${LD-ld} -m elf64_sparc"
5660 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5661 SAVE_CFLAGS="$CFLAGS"
5662 CFLAGS="$CFLAGS -belf"
5663 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5664 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5665 if test "${lt_cv_cc_needs_belf+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 ac_cpp='$CPP $CPPFLAGS'
5670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5689 rm -f conftest.$ac_objext conftest$ac_exeext
5690 if { (ac_try="$ac_link"
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_link") 2>conftest.er1
5698 grep -v '^ *+' conftest.er1 >conftest.err
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest$ac_exeext &&
5706 $as_test_x conftest$ac_exeext; then
5707 lt_cv_cc_needs_belf=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5712 lt_cv_cc_needs_belf=no
5715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5716 conftest$ac_exeext conftest.$ac_ext
5718 ac_cpp='$CPP $CPPFLAGS'
5719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5724 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5725 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5728 CFLAGS="$SAVE_CFLAGS"
5732 # Find out which ABI we are using.
5733 echo 'int i;' > conftest.$ac_ext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735 (eval $ac_compile) 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; then
5739 case `/usr/bin/file conftest.o` in
5741 case $lt_cv_prog_gnu_ld in
5742 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5744 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5758 need_locks="$enable_libtool_lock"
5762 for ac_header in dlfcn.h
5764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 ac_res=`eval echo '${'$as_ac_Header'}'`
5772 { echo "$as_me:$LINENO: result: $ac_res" >&5
5773 echo "${ECHO_T}$ac_res" >&6; }
5775 # Is the header compilable?
5776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 $ac_includes_default
5785 #include <$ac_header>
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 ac_header_compiler=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_header_compiler=no
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5814 echo "${ECHO_T}$ac_header_compiler" >&6; }
5816 # Is the header present?
5817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <$ac_header>
5827 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5843 ac_header_preproc=yes
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5848 ac_header_preproc=no
5851 rm -f conftest.err conftest.$ac_ext
5852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853 echo "${ECHO_T}$ac_header_preproc" >&6; }
5855 # So? What about this header?
5856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 eval "$as_ac_Header=\$ac_header_preproc"
5887 ac_res=`eval echo '${'$as_ac_Header'}'`
5888 { echo "$as_me:$LINENO: result: $ac_res" >&5
5889 echo "${ECHO_T}$ac_res" >&6; }
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5904 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5905 (test "X$CXX" != "Xg++"))) ; then
5907 ac_cpp='$CXXCPP $CPPFLAGS'
5908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5912 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5913 if test -z "$CXXCPP"; then
5914 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 # Double quotes because CXXCPP needs to be expanded
5918 for CXXCPP in "$CXX -E" "/lib/cpp"
5921 for ac_cxx_preproc_warn_flag in '' yes
5923 # Use a header file that comes with gcc, so configuring glibc
5924 # with a fresh cross-compiler works.
5925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5926 # <limits.h> exists even on freestanding compilers.
5927 # On the NeXT, cc -E runs the code through the compiler's parser,
5928 # not just through cpp. "Syntax error" is here to catch this case.
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5936 # include <limits.h>
5938 # include <assert.h>
5942 if { (ac_try="$ac_cpp conftest.$ac_ext"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 # Broken: fails on valid input.
5967 rm -f conftest.err conftest.$ac_ext
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <ac_nonexistent.h>
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } >/dev/null && {
5992 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5993 test ! -s conftest.err
5995 # Broken: success on invalid input.
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 # Passes both tests.
6006 rm -f conftest.err conftest.$ac_ext
6009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6010 rm -f conftest.err conftest.$ac_ext
6011 if $ac_preproc_ok; then
6016 ac_cv_prog_CXXCPP=$CXXCPP
6019 CXXCPP=$ac_cv_prog_CXXCPP
6021 ac_cv_prog_CXXCPP=$CXXCPP
6023 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6024 echo "${ECHO_T}$CXXCPP" >&6; }
6026 for ac_cxx_preproc_warn_flag in '' yes
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6041 # include <limits.h>
6043 # include <assert.h>
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } >/dev/null && {
6060 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6061 test ! -s conftest.err
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 # Broken: fails on valid input.
6072 rm -f conftest.err conftest.$ac_ext
6074 # OK, works on sane cases. Now check whether nonexistent headers
6075 # can be detected and how.
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <ac_nonexistent.h>
6084 if { (ac_try="$ac_cpp conftest.$ac_ext"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6098 test ! -s conftest.err
6100 # Broken: success on invalid input.
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 # Passes both tests.
6111 rm -f conftest.err conftest.$ac_ext
6114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6115 rm -f conftest.err conftest.$ac_ext
6116 if $ac_preproc_ok; then
6119 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6120 See \`config.log' for more details." >&5
6121 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6122 See \`config.log' for more details." >&2;}
6123 { (exit 1); exit 1; }; }
6127 ac_cpp='$CXXCPP $CPPFLAGS'
6128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139 if test -n "$ac_tool_prefix"; then
6140 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
6142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_prog_F77+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 if test -n "$F77"; then
6150 ac_cv_prog_F77="$F77" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 if test -n "$F77"; then
6171 { echo "$as_me:$LINENO: result: $F77" >&5
6172 echo "${ECHO_T}$F77" >&6; }
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6179 test -n "$F77" && break
6182 if test -z "$F77"; then
6184 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
6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 if test -n "$ac_ct_F77"; then
6194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_ac_ct_F77="$ac_prog"
6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214 if test -n "$ac_ct_F77"; then
6215 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6216 echo "${ECHO_T}$ac_ct_F77" >&6; }
6218 { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6223 test -n "$ac_ct_F77" && break
6226 if test "x$ac_ct_F77" = x; then
6229 case $cross_compiling:$ac_tool_warned in
6231 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet. If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&5
6234 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6235 whose name does not start with the host triplet. If you think this
6236 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6237 ac_tool_warned=yes ;;
6244 # Provide some information about the compiler.
6245 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6246 ac_compiler=`set X $ac_compile; echo $2`
6247 { (ac_try="$ac_compiler --version >&5"
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler --version >&5") 2>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 { (ac_try="$ac_compiler -v >&5"
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -v >&5") 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6267 { (ac_try="$ac_compiler -V >&5"
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compiler -V >&5") 2>&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }
6279 # If we don't use `.F' as extension, the preprocessor is not run on the
6280 # input file. (Note that this only needs to work for GNU compilers.)
6283 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6284 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6285 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_f77_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest.$ac_objext; then
6315 echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6325 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6326 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6328 ac_test_FFLAGS=${FFLAGS+set}
6329 ac_save_FFLAGS=$FFLAGS
6331 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6332 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6333 if test "${ac_cv_prog_f77_g+set}" = set; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_f77_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_cv_prog_f77_g=yes
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6371 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6372 if test "$ac_test_FFLAGS" = set; then
6373 FFLAGS=$ac_save_FFLAGS
6374 elif test $ac_cv_prog_f77_g = yes; then
6375 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6381 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6388 G77=`test $ac_compiler_gnu = yes && echo yes`
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6397 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6398 # find the maximum length of command line arguments
6399 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6400 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6401 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 # On DJGPP, this test can blow up pretty badly due to problems in libc
6410 # (any single argument exceeding 2000 bytes causes a buffer overrun
6411 # during glob expansion). Even if it were fixed, the result of this
6412 # check would be larger than it should be.
6413 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6417 # Under GNU Hurd, this test is not required because there is
6418 # no limit to the length of command line arguments.
6419 # Libtool will interpret -1 as no limit whatsoever
6420 lt_cv_sys_max_cmd_len=-1;
6424 # On Win9x/ME, this test blows up -- it succeeds, but takes
6425 # about 5 minutes as the teststring grows exponentially.
6426 # Worse, since 9x/ME are not pre-emptively multitasking,
6427 # you end up with a "frozen" computer, even though with patience
6428 # the test eventually succeeds (with a max line length of 256k).
6429 # Instead, let's just punt: use the minimum linelength reported by
6430 # all of the supported platforms: 8192 (on NT/2K/XP).
6431 lt_cv_sys_max_cmd_len=8192;
6435 # On AmigaOS with pdksh, this test takes hours, literally.
6436 # So we just punt and use a minimum line length of 8192.
6437 lt_cv_sys_max_cmd_len=8192;
6440 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6441 # This has been around since 386BSD, at least. Likely further.
6442 if test -x /sbin/sysctl; then
6443 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6444 elif test -x /usr/sbin/sysctl; then
6445 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6447 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6449 # And add a safety zone
6450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6455 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6456 lt_cv_sys_max_cmd_len=196608
6460 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6461 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6462 # nice to cause kernel panics so lets avoid the loop below.
6463 # First set a reasonable default.
6464 lt_cv_sys_max_cmd_len=16384
6466 if test -x /sbin/sysconfig; then
6467 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6468 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6473 lt_cv_sys_max_cmd_len=102400
6475 sysv5* | sco5v6* | sysv4.2uw2*)
6476 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6477 if test -n "$kargmax"; then
6478 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6480 lt_cv_sys_max_cmd_len=32768
6484 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6485 if test -n "$lt_cv_sys_max_cmd_len"; then
6486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6489 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6490 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6491 = "XX$teststring") >/dev/null 2>&1 &&
6492 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6493 lt_cv_sys_max_cmd_len=$new_result &&
6494 test $i != 17 # 1/2 MB should be enough
6497 teststring=$teststring$teststring
6500 # Add a significant safety factor because C++ compilers can tack on massive
6501 # amounts of additional arguments before passing them to the linker.
6502 # It appears as though 1/2 is a usable value.
6503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6510 if test -n $lt_cv_sys_max_cmd_len ; then
6511 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6512 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6514 { echo "$as_me:$LINENO: result: none" >&5
6515 echo "${ECHO_T}none" >&6; }
6522 # Check for command to grab the raw symbol name followed by C symbol from nm.
6523 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6524 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6525 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 # These are sane defaults that work on at least a few old systems.
6530 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6532 # Character class describing NM global symbol codes.
6533 symcode='[BCDEGRST]'
6535 # Regexp to match symbols that can be accessed directly from C.
6536 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6538 # Transform an extracted symbol line into a proper C declaration
6539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6541 # Transform an extracted symbol line into symbol name and symbol address
6542 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'"
6544 # Define system-specific variables.
6549 cygwin* | mingw* | pw32*)
6550 symcode='[ABCDGISTW]'
6552 hpux*) # Its linker distinguishes data from code symbols
6553 if test "$host_cpu" = ia64; then
6554 symcode='[ABCDEGRST]'
6556 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6557 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'"
6559 linux* | k*bsd*-gnu)
6560 if test "$host_cpu" = ia64; then
6561 symcode='[ABCDGIRSTW]'
6562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6563 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'"
6567 symcode='[BCDEGRST]'
6570 symcode='[BCDEGQRST]'
6581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6589 # Handle CRLF in mingw tool chain
6593 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6597 # If we're using GNU nm, then use its standard symbol codes.
6598 case `$NM -V 2>&1` in
6599 *GNU* | *'with BFD'*)
6600 symcode='[ABCDGIRSTW]' ;;
6603 # Try without a prefix undercore, then with it.
6604 for ac_symprfx in "" "_"; do
6606 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6607 symxfrm="\\1 $ac_symprfx\\2 \\2"
6609 # Write the raw and C identifiers.
6610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6612 # Check to see that the pipe works correctly.
6616 cat > conftest.$ac_ext <<EOF
6621 void nm_test_func(){}
6625 int main(){nm_test_var='a';nm_test_func();return(0);}
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629 (eval $ac_compile) 2>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; then
6633 # Now try to grab the symbols.
6635 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && test -s "$nlist"; then
6640 # Try sorting and uniquifying the output.
6641 if sort "$nlist" | uniq > "$nlist"T; then
6642 mv -f "$nlist"T "$nlist"
6647 # Make sure that we snagged all the symbols we need.
6648 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6649 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6650 cat <<EOF > conftest.$ac_ext
6656 # Now generate the symbol file.
6657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6659 cat <<EOF >> conftest.$ac_ext
6660 #if defined (__STDC__) && __STDC__
6661 # define lt_ptr_t void *
6663 # define lt_ptr_t char *
6667 /* The mapping between symbol names and symbols. */
6672 lt_preloaded_symbols[] =
6675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6676 cat <<\EOF >> conftest.$ac_ext
6684 # Now try linking the two files.
6685 mv conftest.$ac_objext conftstm.$ac_objext
6686 lt_save_LIBS="$LIBS"
6687 lt_save_CFLAGS="$CFLAGS"
6688 LIBS="conftstm.$ac_objext"
6689 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6697 LIBS="$lt_save_LIBS"
6698 CFLAGS="$lt_save_CFLAGS"
6700 echo "cannot find nm_test_func in $nlist" >&5
6703 echo "cannot find nm_test_var in $nlist" >&5
6706 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6709 echo "$progname: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 rm -rf conftest* conftst*
6714 # Do not use the global_symbol_pipe unless it works.
6715 if test "$pipe_works" = yes; then
6718 lt_cv_sys_global_symbol_pipe=
6724 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6725 lt_cv_sys_global_symbol_to_cdecl=
6727 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6728 { echo "$as_me:$LINENO: result: failed" >&5
6729 echo "${ECHO_T}failed" >&6; }
6731 { echo "$as_me:$LINENO: result: ok" >&5
6732 echo "${ECHO_T}ok" >&6; }
6735 { echo "$as_me:$LINENO: checking for objdir" >&5
6736 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6737 if test "${lt_cv_objdir+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 rm -f .libs 2>/dev/null
6741 mkdir .libs 2>/dev/null
6742 if test -d .libs; then
6745 # MS-DOS does not allow filenames that begin with a dot.
6748 rmdir .libs 2>/dev/null
6750 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6751 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6752 objdir=$lt_cv_objdir
6760 # AIX sometimes has problems with the GCC collect2 program. For some
6761 # reason, if we set the COLLECT_NAMES environment variable, the problems
6762 # vanish in a puff of smoke.
6763 if test "X${COLLECT_NAMES+set}" != Xset; then
6765 export COLLECT_NAMES
6770 # Sed substitution that helps us do robust quoting. It backslashifies
6771 # metacharacters that are still active within double-quoted strings.
6772 Xsed='sed -e 1s/^X//'
6773 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6775 # Same as above, but do not quote variable references.
6776 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6778 # Sed substitution to delay expansion of an escaped shell variable in a
6779 # double_quote_subst'ed string.
6780 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6782 # Sed substitution to avoid accidental globbing in evaled expressions
6783 no_glob_subst='s/\*/\\\*/g'
6789 default_ofile=libtool
6790 can_build_shared=yes
6792 # All known linkers require a `.a' archive for static linking (except MSVC,
6793 # which needs '.lib').
6795 ltmain="$ac_aux_dir/ltmain.sh"
6796 ofile="$default_ofile"
6797 with_gnu_ld="$lt_cv_prog_gnu_ld"
6799 if test -n "$ac_tool_prefix"; then
6800 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6801 set dummy ${ac_tool_prefix}ar; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_AR+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 if test -n "$AR"; then
6808 ac_cv_prog_AR="$AR" # Let the user override the test.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_AR="${ac_tool_prefix}ar"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 if test -n "$AR"; then
6829 { echo "$as_me:$LINENO: result: $AR" >&5
6830 echo "${ECHO_T}$AR" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6838 if test -z "$ac_cv_prog_AR"; then
6840 # Extract the first word of "ar", so it can be a program name with args.
6841 set dummy ar; ac_word=$2
6842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 if test -n "$ac_ct_AR"; then
6848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857 ac_cv_prog_ac_ct_AR="ar"
6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6868 if test -n "$ac_ct_AR"; then
6869 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6870 echo "${ECHO_T}$ac_ct_AR" >&6; }
6872 { echo "$as_me:$LINENO: result: no" >&5
6873 echo "${ECHO_T}no" >&6; }
6876 if test "x$ac_ct_AR" = x; then
6879 case $cross_compiling:$ac_tool_warned in
6881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6882 whose name does not start with the host triplet. If you think this
6883 configuration is useful to you, please write to autoconf@gnu.org." >&5
6884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6885 whose name does not start with the host triplet. If you think this
6886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6887 ac_tool_warned=yes ;;
6895 if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_prog_RANLIB+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 if test -n "$RANLIB"; then
6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 RANLIB=$ac_cv_prog_RANLIB
6924 if test -n "$RANLIB"; then
6925 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6926 echo "${ECHO_T}$RANLIB" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6934 if test -z "$ac_cv_prog_RANLIB"; then
6935 ac_ct_RANLIB=$RANLIB
6936 # Extract the first word of "ranlib", so it can be a program name with args.
6937 set dummy ranlib; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 if test -n "$ac_ct_RANLIB"; then
6944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_prog_ac_ct_RANLIB="ranlib"
6954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964 if test -n "$ac_ct_RANLIB"; then
6965 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6966 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6972 if test "x$ac_ct_RANLIB" = x; then
6975 case $cross_compiling:$ac_tool_warned in
6977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6978 whose name does not start with the host triplet. If you think this
6979 configuration is useful to you, please write to autoconf@gnu.org." >&5
6980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6981 whose name does not start with the host triplet. If you think this
6982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6983 ac_tool_warned=yes ;;
6985 RANLIB=$ac_ct_RANLIB
6988 RANLIB="$ac_cv_prog_RANLIB"
6991 if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6993 set dummy ${ac_tool_prefix}strip; ac_word=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_prog_STRIP+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -n "$STRIP"; then
7000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 STRIP=$ac_cv_prog_STRIP
7020 if test -n "$STRIP"; then
7021 { echo "$as_me:$LINENO: result: $STRIP" >&5
7022 echo "${ECHO_T}$STRIP" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7030 if test -z "$ac_cv_prog_STRIP"; then
7032 # Extract the first word of "strip", so it can be a program name with args.
7033 set dummy strip; ac_word=$2
7034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 if test -n "$ac_ct_STRIP"; then
7040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_ac_ct_STRIP="strip"
7050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7060 if test -n "$ac_ct_STRIP"; then
7061 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7062 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7068 if test "x$ac_ct_STRIP" = x; then
7071 case $cross_compiling:$ac_tool_warned in
7073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074 whose name does not start with the host triplet. If you think this
7075 configuration is useful to you, please write to autoconf@gnu.org." >&5
7076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077 whose name does not start with the host triplet. If you think this
7078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7079 ac_tool_warned=yes ;;
7084 STRIP="$ac_cv_prog_STRIP"
7089 old_CFLAGS="$CFLAGS"
7091 # Set sane defaults for various variables
7092 test -z "$AR" && AR=ar
7093 test -z "$AR_FLAGS" && AR_FLAGS=cru
7094 test -z "$AS" && AS=as
7095 test -z "$CC" && CC=cc
7096 test -z "$LTCC" && LTCC=$CC
7097 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7098 test -z "$DLLTOOL" && DLLTOOL=dlltool
7099 test -z "$LD" && LD=ld
7100 test -z "$LN_S" && LN_S="ln -s"
7101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7102 test -z "$NM" && NM=nm
7103 test -z "$SED" && SED=sed
7104 test -z "$OBJDUMP" && OBJDUMP=objdump
7105 test -z "$RANLIB" && RANLIB=:
7106 test -z "$STRIP" && STRIP=:
7107 test -z "$ac_objext" && ac_objext=o
7109 # Determine commands to create old-style static archives.
7110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7111 old_postinstall_cmds='chmod 644 $oldlib'
7112 old_postuninstall_cmds=
7114 if test -n "$RANLIB"; then
7117 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7123 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7126 for cc_temp in $compiler""; do
7128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7137 # Only perform the check for file, if the check method requires it
7138 case $deplibs_check_method in
7140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7141 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7142 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7151 lt_save_MAGIC_CMD="$MAGIC_CMD"
7152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7154 for ac_dir in $ac_dummy; do
7156 test -z "$ac_dir" && ac_dir=.
7157 if test -f $ac_dir/${ac_tool_prefix}file; then
7158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7159 if test -n "$file_magic_test_file"; then
7160 case $deplibs_check_method in
7162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7165 $EGREP "$file_magic_regex" > /dev/null; then
7170 *** Warning: the command libtool uses to detect shared libraries,
7171 *** $file_magic_cmd, produces output that libtool cannot recognize.
7172 *** The result is that libtool may fail to recognize shared libraries
7173 *** as such. This will affect the creation of libtool libraries that
7174 *** depend on shared libraries, but programs linked with such libtool
7175 *** libraries will work regardless of this problem. Nevertheless, you
7176 *** may want to report the problem to your system manager and/or to
7177 *** bug-libtool@gnu.org
7187 MAGIC_CMD="$lt_save_MAGIC_CMD"
7192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193 if test -n "$MAGIC_CMD"; then
7194 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7195 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7201 if test -z "$lt_cv_path_MAGIC_CMD"; then
7202 if test -n "$ac_tool_prefix"; then
7203 { echo "$as_me:$LINENO: checking for file" >&5
7204 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213 lt_save_MAGIC_CMD="$MAGIC_CMD"
7214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216 for ac_dir in $ac_dummy; do
7218 test -z "$ac_dir" && ac_dir=.
7219 if test -f $ac_dir/file; then
7220 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7221 if test -n "$file_magic_test_file"; then
7222 case $deplibs_check_method in
7224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227 $EGREP "$file_magic_regex" > /dev/null; then
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such. This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem. Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7249 MAGIC_CMD="$lt_save_MAGIC_CMD"
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7257 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7259 { echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6; }
7274 rhapsody* | darwin*)
7275 if test -n "$ac_tool_prefix"; then
7276 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7277 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 if test -n "$DSYMUTIL"; then
7284 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7304 if test -n "$DSYMUTIL"; then
7305 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7306 echo "${ECHO_T}$DSYMUTIL" >&6; }
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7314 if test -z "$ac_cv_prog_DSYMUTIL"; then
7315 ac_ct_DSYMUTIL=$DSYMUTIL
7316 # Extract the first word of "dsymutil", so it can be a program name with args.
7317 set dummy dsymutil; ac_word=$2
7318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 if test -n "$ac_ct_DSYMUTIL"; then
7324 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7344 if test -n "$ac_ct_DSYMUTIL"; then
7345 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7346 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7352 if test "x$ac_ct_DSYMUTIL" = x; then
7355 case $cross_compiling:$ac_tool_warned in
7357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7358 whose name does not start with the host triplet. If you think this
7359 configuration is useful to you, please write to autoconf@gnu.org." >&5
7360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7361 whose name does not start with the host triplet. If you think this
7362 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7363 ac_tool_warned=yes ;;
7365 DSYMUTIL=$ac_ct_DSYMUTIL
7368 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7371 if test -n "$ac_tool_prefix"; then
7372 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7376 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 if test -n "$NMEDIT"; then
7380 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 NMEDIT=$ac_cv_prog_NMEDIT
7400 if test -n "$NMEDIT"; then
7401 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7402 echo "${ECHO_T}$NMEDIT" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7410 if test -z "$ac_cv_prog_NMEDIT"; then
7411 ac_ct_NMEDIT=$NMEDIT
7412 # Extract the first word of "nmedit", so it can be a program name with args.
7413 set dummy nmedit; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 if test -n "$ac_ct_NMEDIT"; then
7420 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7440 if test -n "$ac_ct_NMEDIT"; then
7441 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7442 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7448 if test "x$ac_ct_NMEDIT" = x; then
7451 case $cross_compiling:$ac_tool_warned in
7453 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7454 whose name does not start with the host triplet. If you think this
7455 configuration is useful to you, please write to autoconf@gnu.org." >&5
7456 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7457 whose name does not start with the host triplet. If you think this
7458 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7459 ac_tool_warned=yes ;;
7461 NMEDIT=$ac_ct_NMEDIT
7464 NMEDIT="$ac_cv_prog_NMEDIT"
7468 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7469 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7470 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 lt_cv_apple_cc_single_mod=no
7474 if test -z "${LT_MULTI_MODULE}"; then
7475 # By default we will add the -single_module flag. You can override
7476 # by either setting the environment variable LT_MULTI_MODULE
7477 # non-empty at configure time, or by adding -multi_module to the
7479 echo "int foo(void){return 1;}" > conftest.c
7480 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7481 -dynamiclib ${wl}-single_module conftest.c
7482 if test -f libconftest.dylib; then
7483 lt_cv_apple_cc_single_mod=yes
7484 rm -rf libconftest.dylib*
7489 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7490 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7491 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7492 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7493 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 lt_cv_ld_exported_symbols_list=no
7497 save_LDFLAGS=$LDFLAGS
7498 echo "_main" > conftest.sym
7499 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7515 rm -f conftest.$ac_objext conftest$ac_exeext
7516 if { (ac_try="$ac_link"
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7522 (eval "$ac_link") 2>conftest.er1
7524 grep -v '^ *+' conftest.er1 >conftest.err
7526 cat conftest.err >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); } && {
7529 test -z "$ac_c_werror_flag" ||
7530 test ! -s conftest.err
7531 } && test -s conftest$ac_exeext &&
7532 $as_test_x conftest$ac_exeext; then
7533 lt_cv_ld_exported_symbols_list=yes
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 lt_cv_ld_exported_symbols_list=no
7541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7542 conftest$ac_exeext conftest.$ac_ext
7543 LDFLAGS="$save_LDFLAGS"
7546 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7547 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7549 rhapsody* | darwin1.[0123])
7550 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7552 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7554 # if running on 10.5 or later, the deployment target defaults
7555 # to the OS version, if on x86, and 10.4, the deployment
7556 # target defaults to 10.4. Don't you love it?
7557 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7558 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7561 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7563 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7567 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7568 _lt_dar_single_mod='$single_module'
7570 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7571 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7573 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7575 if test "$DSYMUTIL" != ":"; then
7576 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7587 # Check whether --enable-libtool-lock was given.
7588 if test "${enable_libtool_lock+set}" = set; then
7589 enableval=$enable_libtool_lock;
7592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7595 # Check whether --with-pic was given.
7596 if test "${with_pic+set}" = set; then
7597 withval=$with_pic; pic_mode="$withval"
7602 test -z "$pic_mode" && pic_mode=default
7604 # Use C for the default configuration in the libtool script
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614 # Source file extension for C test sources.
7617 # Object file extension for compiled C test sources.
7621 # Code to be used in simple compile tests
7622 lt_simple_compile_test_code="int some_variable = 0;"
7624 # Code to be used in simple link tests
7625 lt_simple_link_test_code='int main(){return(0);}'
7628 # If no C compiler was specified, use CC.
7631 # If no C compiler flags were specified, use CFLAGS.
7632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7634 # Allow CC to be a program name with arguments.
7638 # save warnings/boilerplate of simple test code
7639 ac_outfile=conftest.$ac_objext
7640 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7642 _lt_compiler_boilerplate=`cat conftest.err`
7645 ac_outfile=conftest.$ac_objext
7646 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7648 _lt_linker_boilerplate=`cat conftest.err`
7653 lt_prog_compiler_no_builtin_flag=
7655 if test "$GCC" = yes; then
7656 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7659 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7660 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7661 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 lt_cv_prog_compiler_rtti_exceptions=no
7665 ac_outfile=conftest.$ac_objext
7666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7667 lt_compiler_flag="-fno-rtti -fno-exceptions"
7668 # Insert the option either (1) after the last *FLAGS variable, or
7669 # (2) before a word containing "conftest.", or (3) at the end.
7670 # Note that $ac_compile itself does not contain backslashes and begins
7671 # with a dollar sign (not a hyphen), so the echo should work correctly.
7672 # The option is referenced via a variable to avoid confusing sed.
7673 lt_compile=`echo "$ac_compile" | $SED \
7674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7676 -e 's:$: $lt_compiler_flag:'`
7677 (eval echo "\"\$as_me:7677: $lt_compile\"" >&5)
7678 (eval "$lt_compile" 2>conftest.err)
7680 cat conftest.err >&5
7681 echo "$as_me:7681: \$? = $ac_status" >&5
7682 if (exit $ac_status) && test -s "$ac_outfile"; then
7683 # The compiler can only warn and ignore the option if not recognized
7684 # So say no if there are warnings other than the usual output.
7685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7688 lt_cv_prog_compiler_rtti_exceptions=yes
7694 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7695 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7697 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7705 lt_prog_compiler_wl=
7706 lt_prog_compiler_pic=
7707 lt_prog_compiler_static=
7709 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7710 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7712 if test "$GCC" = yes; then
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_static='-static'
7718 # All AIX code is PIC.
7719 if test "$host_cpu" = ia64; then
7720 # AIX 5 now supports IA64 processor
7721 lt_prog_compiler_static='-Bstatic'
7726 # FIXME: we need at least 68020 code to build shared libraries, but
7727 # adding the `-m68020' flag to GCC prevents building anything better,
7729 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7732 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7733 # PIC is the default for these OSes.
7736 mingw* | cygwin* | pw32* | os2*)
7737 # This hack is so that the source file can tell whether it is being
7738 # built for inclusion in a dll (and should export symbols for example).
7739 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7740 # (--disable-auto-import) libraries
7741 lt_prog_compiler_pic='-DDLL_EXPORT'
7744 darwin* | rhapsody*)
7745 # PIC is the default on this platform
7746 # Common symbols not allowed in MH_DYLIB files
7747 lt_prog_compiler_pic='-fno-common'
7751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7752 # Instead, we relocate shared libraries at runtime.
7756 # Just because we use GCC doesn't mean we suddenly get shared libraries
7757 # on systems that don't support them.
7758 lt_prog_compiler_can_build_shared=no
7763 if test -d /usr/nec; then
7764 lt_prog_compiler_pic=-Kconform_pic
7769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776 lt_prog_compiler_pic='-fPIC'
7782 lt_prog_compiler_pic='-fPIC'
7786 # PORTME Check for flag to pass linker flags through the system compiler.
7789 lt_prog_compiler_wl='-Wl,'
7790 if test "$host_cpu" = ia64; then
7791 # AIX 5 now supports IA64 processor
7792 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7798 # PIC is the default on this platform
7799 # Common symbols not allowed in MH_DYLIB files
7800 case $cc_basename in
7802 lt_prog_compiler_pic='-qnocommon'
7803 lt_prog_compiler_wl='-Wl,'
7808 mingw* | cygwin* | pw32* | os2*)
7809 # This hack is so that the source file can tell whether it is being
7810 # built for inclusion in a dll (and should export symbols for example).
7811 lt_prog_compiler_pic='-DDLL_EXPORT'
7814 hpux9* | hpux10* | hpux11*)
7815 lt_prog_compiler_wl='-Wl,'
7816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7823 lt_prog_compiler_pic='+Z'
7826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7827 lt_prog_compiler_static='${wl}-a ${wl}archive'
7830 irix5* | irix6* | nonstopux*)
7831 lt_prog_compiler_wl='-Wl,'
7832 # PIC (with -KPIC) is the default.
7833 lt_prog_compiler_static='-non_shared'
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7841 linux* | k*bsd*-gnu)
7842 case $cc_basename in
7844 lt_prog_compiler_wl='-Wl,'
7845 lt_prog_compiler_pic='-KPIC'
7846 lt_prog_compiler_static='-static'
7848 pgcc* | pgf77* | pgf90* | pgf95*)
7849 # Portland Group compilers (*not* the Pentium gcc compiler,
7850 # which looks to be a dead project)
7851 lt_prog_compiler_wl='-Wl,'
7852 lt_prog_compiler_pic='-fpic'
7853 lt_prog_compiler_static='-Bstatic'
7856 lt_prog_compiler_wl='-Wl,'
7857 # All Alpha code is PIC.
7858 lt_prog_compiler_static='-non_shared'
7861 case `$CC -V 2>&1 | sed 5q` in
7864 lt_prog_compiler_pic='-KPIC'
7865 lt_prog_compiler_static='-Bstatic'
7866 lt_prog_compiler_wl='-Wl,'
7869 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7870 lt_prog_compiler_pic='-KPIC'
7871 lt_prog_compiler_static='-Bstatic'
7872 lt_prog_compiler_wl=''
7879 osf3* | osf4* | osf5*)
7880 lt_prog_compiler_wl='-Wl,'
7881 # All OSF/1 code is PIC.
7882 lt_prog_compiler_static='-non_shared'
7886 lt_prog_compiler_static='-non_shared'
7890 lt_prog_compiler_pic='-KPIC'
7891 lt_prog_compiler_static='-Bstatic'
7892 case $cc_basename in
7894 lt_prog_compiler_wl='-Qoption ld ';;
7896 lt_prog_compiler_wl='-Wl,';;
7901 lt_prog_compiler_wl='-Qoption ld '
7902 lt_prog_compiler_pic='-PIC'
7903 lt_prog_compiler_static='-Bstatic'
7906 sysv4 | sysv4.2uw2* | sysv4.3*)
7907 lt_prog_compiler_wl='-Wl,'
7908 lt_prog_compiler_pic='-KPIC'
7909 lt_prog_compiler_static='-Bstatic'
7913 if test -d /usr/nec ;then
7914 lt_prog_compiler_pic='-Kconform_pic'
7915 lt_prog_compiler_static='-Bstatic'
7919 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-Bstatic'
7926 lt_prog_compiler_wl='-Wl,'
7927 lt_prog_compiler_can_build_shared=no
7931 lt_prog_compiler_pic='-pic'
7932 lt_prog_compiler_static='-Bstatic'
7936 lt_prog_compiler_can_build_shared=no
7941 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7942 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7945 # Check to make sure the PIC flag actually works.
7947 if test -n "$lt_prog_compiler_pic"; then
7949 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7950 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7951 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 lt_cv_prog_compiler_pic_works=no
7955 ac_outfile=conftest.$ac_objext
7956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7957 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7958 # Insert the option either (1) after the last *FLAGS variable, or
7959 # (2) before a word containing "conftest.", or (3) at the end.
7960 # Note that $ac_compile itself does not contain backslashes and begins
7961 # with a dollar sign (not a hyphen), so the echo should work correctly.
7962 # The option is referenced via a variable to avoid confusing sed.
7963 lt_compile=`echo "$ac_compile" | $SED \
7964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966 -e 's:$: $lt_compiler_flag:'`
7967 (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968 (eval "$lt_compile" 2>conftest.err)
7970 cat conftest.err >&5
7971 echo "$as_me:7971: \$? = $ac_status" >&5
7972 if (exit $ac_status) && test -s "$ac_outfile"; then
7973 # The compiler can only warn and ignore the option if not recognized
7974 # So say no if there are warnings other than the usual output.
7975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7978 lt_cv_prog_compiler_pic_works=yes
7984 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7985 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7987 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7988 case $lt_prog_compiler_pic in
7990 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7993 lt_prog_compiler_pic=
7994 lt_prog_compiler_can_build_shared=no
7999 # For platforms which do not support PIC, -DPIC is meaningless:
8001 lt_prog_compiler_pic=
8004 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8009 # Check to make sure the static flag actually works.
8011 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8012 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8013 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8014 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 lt_cv_prog_compiler_static_works=no
8018 save_LDFLAGS="$LDFLAGS"
8019 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8020 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8021 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8022 # The linker can only warn and ignore the option if not recognized
8023 # So say no if there are warnings
8024 if test -s conftest.err; then
8025 # Append any errors to the config.log.
8026 cat conftest.err 1>&5
8027 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8029 if diff conftest.exp conftest.er2 >/dev/null; then
8030 lt_cv_prog_compiler_static_works=yes
8033 lt_cv_prog_compiler_static_works=yes
8037 LDFLAGS="$save_LDFLAGS"
8040 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8041 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8043 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8046 lt_prog_compiler_static=
8050 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8051 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8052 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 lt_cv_prog_compiler_c_o=no
8056 $rm -r conftest 2>/dev/null
8060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8062 lt_compiler_flag="-o out/conftest2.$ac_objext"
8063 # Insert the option either (1) after the last *FLAGS variable, or
8064 # (2) before a word containing "conftest.", or (3) at the end.
8065 # Note that $ac_compile itself does not contain backslashes and begins
8066 # with a dollar sign (not a hyphen), so the echo should work correctly.
8067 lt_compile=`echo "$ac_compile" | $SED \
8068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070 -e 's:$: $lt_compiler_flag:'`
8071 (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072 (eval "$lt_compile" 2>out/conftest.err)
8074 cat out/conftest.err >&5
8075 echo "$as_me:8075: \$? = $ac_status" >&5
8076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8078 # The compiler can only warn and ignore the option if not recognized
8079 # So say no if there are warnings
8080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8083 lt_cv_prog_compiler_c_o=yes
8088 # SGI C++ compiler will create directory out/ii_files/ for
8089 # template instantiation
8090 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8091 $rm out/* && rmdir out
8097 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8098 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8101 hard_links="nottested"
8102 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8103 # do not overwrite the value of need_locks provided by the user
8104 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8105 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8108 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8110 ln conftest.a conftest.b 2>&5 || hard_links=no
8111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8112 { echo "$as_me:$LINENO: result: $hard_links" >&5
8113 echo "${ECHO_T}$hard_links" >&6; }
8114 if test "$hard_links" = no; then
8115 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8116 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8123 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8124 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8127 allow_undefined_flag=
8128 enable_shared_with_static_runtimes=no
8130 archive_expsym_cmds=
8131 old_archive_From_new_cmds=
8132 old_archive_from_expsyms_cmds=
8133 export_dynamic_flag_spec=
8134 whole_archive_flag_spec=
8135 thread_safe_flag_spec=
8136 hardcode_libdir_flag_spec=
8137 hardcode_libdir_flag_spec_ld=
8138 hardcode_libdir_separator=
8141 hardcode_shlibpath_var=unsupported
8142 link_all_deplibs=unknown
8143 hardcode_automatic=no
8146 always_export_symbols=no
8147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8148 # include_expsyms should be a list of space-separated symbols to be *always*
8149 # included in the symbol list
8151 # exclude_expsyms can be an extended regexp of symbols to exclude
8152 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8154 # as well as any symbol that contains `d'.
8155 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8157 # platforms (ab)use it in PIC code, but their linkers get confused if
8158 # the symbol is explicitly referenced. Since portable code cannot
8159 # rely on this symbol name, it's probably fine to never include it in
8160 # preloaded symbol tables.
8161 # Exclude shared library initialization/finalization symbols.
8162 extract_expsyms_cmds=
8163 # Just being paranoid about ensuring that cc_basename is set.
8164 for cc_temp in $compiler""; do
8166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8175 cygwin* | mingw* | pw32*)
8176 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8177 # When not using gcc, we currently assume that we are using
8178 # Microsoft Visual C++.
8179 if test "$GCC" != yes; then
8184 # we just hope/assume this is gcc and not c89 (= MSVC++)
8193 if test "$with_gnu_ld" = yes; then
8194 # If archive_cmds runs LD, not CC, wlarc should be empty
8197 # Set some defaults for GNU ld with shared library support. These
8198 # are reset later if shared libraries are not supported. Putting them
8199 # here allows them to be overridden if necessary.
8200 runpath_var=LD_RUN_PATH
8201 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8202 export_dynamic_flag_spec='${wl}--export-dynamic'
8203 # ancient GNU ld didn't support --whole-archive et. al.
8204 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8207 whole_archive_flag_spec=
8209 supports_anon_versioning=no
8210 case `$LD -v 2>/dev/null` in
8211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8214 *\ 2.11.*) ;; # other 2.11 versions
8215 *) supports_anon_versioning=yes ;;
8218 # See if GNU ld supports shared libraries.
8221 # On AIX/PPC, the GNU linker is very broken
8222 if test "$host_cpu" != ia64; then
8226 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8227 *** to be unable to reliably create shared libraries on AIX.
8228 *** Therefore, libtool is disabling shared libraries support. If you
8229 *** really care for shared libraries, you may want to modify your PATH
8230 *** so that a non-GNU linker is found, and then restart.
8237 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)'
8238 hardcode_libdir_flag_spec='-L$libdir'
8239 hardcode_minus_L=yes
8241 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8242 # that the semantics of dynamic libraries on AmigaOS, at least up
8243 # to version 4, is to share data among multiple programs linked
8244 # with the same dynamic library. Since this doesn't match the
8245 # behavior of shared libraries on other platforms, we can't use
8251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252 allow_undefined_flag=unsupported
8253 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8254 # support --undefined. This deserves some investigation. FIXME
8255 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261 cygwin* | mingw* | pw32*)
8262 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8263 # as there is no search path for DLLs.
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 allow_undefined_flag=unsupported
8266 always_export_symbols=no
8267 enable_shared_with_static_runtimes=yes
8268 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8270 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8272 # If the export-symbols file already is a .def file (1st line
8273 # is EXPORTS), use it as is; otherwise, prepend...
8274 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8275 cp $export_symbols $output_objdir/$soname.def;
8277 echo EXPORTS > $output_objdir/$soname.def;
8278 cat $export_symbols >> $output_objdir/$soname.def;
8280 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8288 hardcode_shlibpath_var=no
8289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8290 export_dynamic_flag_spec='${wl}-E'
8291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8292 # Instead, shared libraries are loaded at an image base (0x10000000 by
8293 # default) and relocated if they conflict, which is a slow very memory
8294 # consuming and fragmenting process. To avoid this, we pick a random,
8295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8298 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'
8301 gnu* | linux* | k*bsd*-gnu)
8302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8304 case $cc_basename,$host_cpu in
8305 pgcc*) # Portland Group C compiler
8306 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'
8307 tmp_addflag=' $pic_flag'
8309 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8313 tmp_addflag=' -i_dynamic' ;;
8314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8315 tmp_addflag=' -i_dynamic -nofor_main' ;;
8316 ifc* | ifort*) # Intel Fortran compiler
8317 tmp_addflag=' -nofor_main' ;;
8319 case `$CC -V 2>&1 | sed 5q` in
8320 *Sun\ C*) # Sun C 5.9
8321 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'
8322 tmp_sharedflag='-G' ;;
8323 *Sun\ F*) # Sun Fortran 8.3
8324 tmp_sharedflag='-G' ;;
8326 tmp_sharedflag='-shared' ;;
8328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8330 if test $supports_anon_versioning = yes; then
8331 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8333 $echo "local: *; };" >> $output_objdir/$libname.ver~
8334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8342 netbsd* | netbsdelf*-gnu)
8343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8344 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8357 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8358 *** create shared libraries on Solaris systems. Therefore, libtool
8359 *** is disabling shared libraries support. We urge you to upgrade GNU
8360 *** binutils to release 2.9.1 or newer. Another option is to modify
8361 *** your PATH or compiler configuration so that the native linker is
8362 *** used, and then restart.
8365 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8374 case `$LD -v 2>&1` in
8375 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8379 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8380 *** reliably create shared libraries on SCO systems. Therefore, libtool
8381 *** is disabling shared libraries support. We urge you to upgrade GNU
8382 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8383 *** your PATH or compiler configuration so that the native linker is
8384 *** used, and then restart.
8389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8404 hardcode_shlibpath_var=no
8408 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 if test "$ld_shlibs" = no; then
8419 hardcode_libdir_flag_spec=
8420 export_dynamic_flag_spec=
8421 whole_archive_flag_spec=
8424 # PORTME fill in a description of your system's linker (not GNU ld)
8427 allow_undefined_flag=unsupported
8428 always_export_symbols=yes
8429 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'
8430 # Note: this linker hardcodes the directories in LIBPATH if there
8431 # are no directories specified by -L.
8432 hardcode_minus_L=yes
8433 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8434 # Neither direct hardcoding nor static linking is supported with a
8436 hardcode_direct=unsupported
8441 if test "$host_cpu" = ia64; then
8442 # On IA64, the linker does run time linking by default, so we don't
8443 # have to do anything special.
8444 aix_use_runtimelinking=no
8445 exp_sym_flag='-Bexport'
8448 # If we're using GNU nm, then we don't want the "-C" option.
8449 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8450 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8451 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'
8453 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'
8455 aix_use_runtimelinking=no
8457 # Test if we are trying to use run time linking or normal
8458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8459 # need to do runtime linking.
8460 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8461 for ld_flag in $LDFLAGS; do
8462 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8463 aix_use_runtimelinking=yes
8470 exp_sym_flag='-bexport'
8471 no_entry_flag='-bnoentry'
8474 # When large executables or shared objects are built, AIX ld can
8475 # have problems creating the table of contents. If linking a library
8476 # or program results in "error TOC overflow" add -mminimal-toc to
8477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8482 hardcode_libdir_separator=':'
8483 link_all_deplibs=yes
8485 if test "$GCC" = yes; then
8486 case $host_os in aix4.[012]|aix4.[012].*)
8487 # We only want to do this on AIX 4.2 and lower, the check
8488 # below for broken collect2 doesn't work under 4.3+
8489 collect2name=`${CC} -print-prog-name=collect2`
8490 if test -f "$collect2name" && \
8491 strings "$collect2name" | grep resolve_lib_name >/dev/null
8493 # We have reworked collect2
8496 # We have old collect2
8497 hardcode_direct=unsupported
8498 # It fails to find uninstalled libraries when the uninstalled
8499 # path is not listed in the libpath. Setting hardcode_minus_L
8500 # to unsupported forces relinking
8501 hardcode_minus_L=yes
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_libdir_separator=
8507 shared_flag='-shared'
8508 if test "$aix_use_runtimelinking" = yes; then
8509 shared_flag="$shared_flag "'${wl}-G'
8513 if test "$host_cpu" = ia64; then
8514 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8515 # chokes on -Wl,-G. The following line is correct:
8518 if test "$aix_use_runtimelinking" = yes; then
8519 shared_flag='${wl}-G'
8521 shared_flag='${wl}-bM:SRE'
8526 # It seems that -bexpall does not export symbols beginning with
8527 # underscore (_), so it is better to generate a list of symbols to export.
8528 always_export_symbols=yes
8529 if test "$aix_use_runtimelinking" = yes; then
8530 # Warning - without using the other runtime loading flags (-brtl),
8531 # -berok will link without error, but may produce a broken library.
8532 allow_undefined_flag='-berok'
8533 # Determine the default libpath from the value encoded in an empty executable.
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (ac_try="$ac_link"
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_link") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest$ac_exeext &&
8566 $as_test_x conftest$ac_exeext; then
8568 lt_aix_libpath_sed='
8569 /Import File Strings/,/^$/ {
8575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8576 # Check for a 64-bit object if we didn't find anything.
8577 if test -z "$aix_libpath"; then
8578 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8588 conftest$ac_exeext conftest.$ac_ext
8589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8592 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"
8594 if test "$host_cpu" = ia64; then
8595 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8596 allow_undefined_flag="-z nodefs"
8597 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"
8599 # Determine the default libpath from the value encoded in an empty executable.
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8615 rm -f conftest.$ac_objext conftest$ac_exeext
8616 if { (ac_try="$ac_link"
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_link") 2>conftest.er1
8624 grep -v '^ *+' conftest.er1 >conftest.err
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && {
8629 test -z "$ac_c_werror_flag" ||
8630 test ! -s conftest.err
8631 } && test -s conftest$ac_exeext &&
8632 $as_test_x conftest$ac_exeext; then
8634 lt_aix_libpath_sed='
8635 /Import File Strings/,/^$/ {
8641 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8642 # Check for a 64-bit object if we didn't find anything.
8643 if test -z "$aix_libpath"; then
8644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8647 echo "$as_me: failed program was:" >&5
8648 sed 's/^/| /' conftest.$ac_ext >&5
8653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8654 conftest$ac_exeext conftest.$ac_ext
8655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8658 # Warning - without using the other run time loading flags,
8659 # -berok will link without error, but may produce a broken library.
8660 no_undefined_flag=' ${wl}-bernotok'
8661 allow_undefined_flag=' ${wl}-berok'
8662 # Exported symbols can be pulled into shared objects from archives
8663 whole_archive_flag_spec='$convenience'
8664 archive_cmds_need_lc=yes
8665 # This is similar to how AIX traditionally builds its shared libraries.
8666 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'
8672 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)'
8673 hardcode_libdir_flag_spec='-L$libdir'
8674 hardcode_minus_L=yes
8675 # see comment about different semantics on the GNU ld section
8680 export_dynamic_flag_spec=-rdynamic
8683 cygwin* | mingw* | pw32*)
8684 # When not using gcc, we currently assume that we are using
8685 # Microsoft Visual C++.
8686 # hardcode_libdir_flag_spec is actually meaningless, as there is
8687 # no search path for DLLs.
8688 hardcode_libdir_flag_spec=' '
8689 allow_undefined_flag=unsupported
8690 # Tell ltmain to make .lib files, not .a files.
8692 # Tell ltmain to make .dll files, not .so files.
8694 # FIXME: Setting linknames here is a bad hack.
8695 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8696 # The linker will automatically build a .lib file if we build a DLL.
8697 old_archive_From_new_cmds='true'
8698 # FIXME: Should let the user specify the lib program.
8699 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8700 fix_srcfile_path='`cygpath -w "$srcfile"`'
8701 enable_shared_with_static_runtimes=yes
8704 darwin* | rhapsody*)
8706 rhapsody* | darwin1.[012])
8707 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8711 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8713 case ${MACOSX_DEPLOYMENT_TARGET} in
8715 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8718 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8724 archive_cmds_need_lc=no
8726 hardcode_automatic=yes
8727 hardcode_shlibpath_var=unsupported
8728 whole_archive_flag_spec=''
8729 link_all_deplibs=yes
8730 if test "$GCC" = yes ; then
8731 output_verbose_link_cmd='echo'
8732 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8733 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8734 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}"
8735 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}"
8737 case $cc_basename in
8739 output_verbose_link_cmd='echo'
8740 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8741 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8743 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}'
8744 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}'
8754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755 hardcode_libdir_flag_spec='-L$libdir'
8756 hardcode_shlibpath_var=no
8763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8764 # support. Future versions do this automatically, but an explicit c++rt0.o
8765 # does not break anything, and helps significantly (at the cost of a little
8768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8769 hardcode_libdir_flag_spec='-R$libdir'
8771 hardcode_shlibpath_var=no
8774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_minus_L=yes
8779 hardcode_shlibpath_var=no
8782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8783 freebsd* | dragonfly*)
8784 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8785 hardcode_libdir_flag_spec='-R$libdir'
8787 hardcode_shlibpath_var=no
8791 if test "$GCC" = yes; then
8792 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'
8794 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'
8796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8797 hardcode_libdir_separator=:
8800 # hardcode_minus_L: Not really in the search PATH,
8801 # but as the default location of the library.
8802 hardcode_minus_L=yes
8803 export_dynamic_flag_spec='${wl}-E'
8807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8812 if test "$with_gnu_ld" = no; then
8813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814 hardcode_libdir_separator=:
8817 export_dynamic_flag_spec='${wl}-E'
8819 # hardcode_minus_L: Not really in the search PATH,
8820 # but as the default location of the library.
8821 hardcode_minus_L=yes
8826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8829 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8835 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 if test "$with_gnu_ld" = no; then
8852 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8853 hardcode_libdir_separator=:
8857 hardcode_libdir_flag_spec_ld='+b $libdir'
8859 hardcode_shlibpath_var=no
8863 export_dynamic_flag_spec='${wl}-E'
8865 # hardcode_minus_L: Not really in the search PATH,
8866 # but as the default location of the library.
8867 hardcode_minus_L=yes
8873 irix5* | irix6* | nonstopux*)
8874 if test "$GCC" = yes; then
8875 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'
8877 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'
8878 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881 hardcode_libdir_separator=:
8882 link_all_deplibs=yes
8885 netbsd* | netbsdelf*-gnu)
8886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8889 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8891 hardcode_libdir_flag_spec='-R$libdir'
8893 hardcode_shlibpath_var=no
8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 hardcode_libdir_separator=:
8901 hardcode_shlibpath_var=no
8905 if test -f /usr/libexec/ld.so; then
8907 hardcode_shlibpath_var=no
8908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8910 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8912 export_dynamic_flag_spec='${wl}-E'
8915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_libdir_flag_spec='-R$libdir'
8920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 hardcode_minus_L=yes
8933 allow_undefined_flag=unsupported
8934 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'
8935 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8939 if test "$GCC" = yes; then
8940 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8941 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'
8943 allow_undefined_flag=' -expect_unresolved \*'
8944 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'
8946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8947 hardcode_libdir_separator=:
8950 osf4* | osf5*) # as osf3* with the addition of -msym flag
8951 if test "$GCC" = yes; then
8952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8953 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'
8954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956 allow_undefined_flag=' -expect_unresolved \*'
8957 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'
8958 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8959 $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'
8961 # Both c and cxx compiler support -rpath directly
8962 hardcode_libdir_flag_spec='-rpath $libdir'
8964 hardcode_libdir_separator=:
8968 no_undefined_flag=' -z text'
8969 if test "$GCC" = yes; then
8971 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8976 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8980 hardcode_libdir_flag_spec='-R$libdir'
8981 hardcode_shlibpath_var=no
8983 solaris2.[0-5] | solaris2.[0-5].*) ;;
8985 # The compiler driver will combine and reorder linker options,
8986 # but understands `-z linker_flag'. GCC discards it without `$wl',
8987 # but is careful enough not to reorder.
8988 # Supported since Solaris 2.6 (maybe 2.5.1?)
8989 if test "$GCC" = yes; then
8990 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8996 link_all_deplibs=yes
9000 if test "x$host_vendor" = xsequent; then
9001 # Use $CC to link under sequent, because it throws in some extra .o
9002 # files that make .init and .fini sections work.
9003 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9010 hardcode_shlibpath_var=no
9014 case $host_vendor in
9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017 hardcode_direct=yes # is this really true???
9020 ## LD is ld it makes a PLAMLIB
9021 ## CC just makes a GrossModule.
9022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9023 reload_cmds='$CC -r -o $output$reload_objs'
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9031 runpath_var='LD_RUN_PATH'
9032 hardcode_shlibpath_var=no
9036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037 hardcode_shlibpath_var=no
9038 export_dynamic_flag_spec='-Bexport'
9042 if test -d /usr/nec; then
9043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044 hardcode_shlibpath_var=no
9045 runpath_var=LD_RUN_PATH
9046 hardcode_runpath_var=yes
9051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9052 no_undefined_flag='${wl}-z,text'
9053 archive_cmds_need_lc=no
9054 hardcode_shlibpath_var=no
9055 runpath_var='LD_RUN_PATH'
9057 if test "$GCC" = yes; then
9058 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9066 sysv5* | sco3.2v5* | sco5v6*)
9067 # Note: We can NOT use -z defs as we might desire, because we do not
9068 # link with -lc, and that would cause any symbols used from libc to
9069 # always be unresolved, which means just about no library would
9070 # ever link correctly. If we're not using GNU ld we use -z text
9071 # though, which does catch some bad symbols but isn't as heavy-handed
9073 no_undefined_flag='${wl}-z,text'
9074 allow_undefined_flag='${wl}-z,nodefs'
9075 archive_cmds_need_lc=no
9076 hardcode_shlibpath_var=no
9077 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9078 hardcode_libdir_separator=':'
9079 link_all_deplibs=yes
9080 export_dynamic_flag_spec='${wl}-Bexport'
9081 runpath_var='LD_RUN_PATH'
9083 if test "$GCC" = yes; then
9084 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 hardcode_libdir_flag_spec='-L$libdir'
9095 hardcode_shlibpath_var=no
9104 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9105 echo "${ECHO_T}$ld_shlibs" >&6; }
9106 test "$ld_shlibs" = no && can_build_shared=no
9109 # Do we need to explicitly link libc?
9111 case "x$archive_cmds_need_lc" in
9113 # Assume -lc should be added
9114 archive_cmds_need_lc=yes
9116 if test "$enable_shared" = yes && test "$GCC" = yes; then
9117 case $archive_cmds in
9119 # FIXME: we may have to deal with multi-command sequences.
9122 # Test whether the compiler implicitly links with -lc since on some
9123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9124 # to ld, don't add -lc before -lgcc.
9125 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9126 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } 2>conftest.err; then
9137 libobjs=conftest.$ac_objext
9139 wl=$lt_prog_compiler_wl
9140 pic_flag=$lt_prog_compiler_pic
9146 lt_save_allow_undefined_flag=$allow_undefined_flag
9147 allow_undefined_flag=
9148 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9149 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }
9154 archive_cmds_need_lc=no
9156 archive_cmds_need_lc=yes
9158 allow_undefined_flag=$lt_save_allow_undefined_flag
9160 cat conftest.err 1>&5
9163 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9164 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9171 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9172 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9174 libname_spec='lib$name'
9182 shlibpath_overrides_runpath=unknown
9184 dynamic_linker="$host_os ld.so"
9185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9187 if test "$GCC" = yes; then
9189 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9190 *) lt_awk_arg="/^libraries:/" ;;
9192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9193 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9194 # if the path contains ";" then we assume it to be the separator
9195 # otherwise default to the standard path separator (i.e. ":") - it is
9196 # assumed that no part of a normal pathname contains ";" but that should
9197 # okay in the real world where ";" in dirpaths is itself problematic.
9198 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9200 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9202 # Ok, now we have the path, separated by spaces, we can step through it
9203 # and add multilib dir if necessary.
9204 lt_tmp_lt_search_path_spec=
9205 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9206 for lt_sys_path in $lt_search_path_spec; do
9207 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9210 test -d "$lt_sys_path" && \
9211 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9214 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9215 BEGIN {RS=" "; FS="/|\n";} {
9218 for (lt_i = NF; lt_i > 0; lt_i--) {
9219 if ($lt_i != "" && $lt_i != ".") {
9220 if ($lt_i == "..") {
9223 if (lt_count == 0) {
9224 lt_foo="/" $lt_i lt_foo;
9231 if (lt_foo != "") { lt_freq[lt_foo]++; }
9232 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9234 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9238 need_lib_prefix=unknown
9239 hardcode_into_libs=no
9241 # when you set need_version to no, make sure it does not cause -set_version
9242 # flags to be left without arguments
9243 need_version=unknown
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9249 shlibpath_var=LIBPATH
9251 # AIX 3 has no versioning support, so we append a major version to the name.
9252 soname_spec='${libname}${release}${shared_ext}$major'
9259 hardcode_into_libs=yes
9260 if test "$host_cpu" = ia64; then
9261 # AIX 5 supports IA64
9262 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9263 shlibpath_var=LD_LIBRARY_PATH
9265 # With GCC up to 2.95.x, collect2 would create an import file
9266 # for dependence libraries. The import file would start with
9267 # the line `#! .'. This would cause the generated library to
9268 # depend on `.', always an invalid library. This was fixed in
9269 # development snapshots of GCC prior to 3.0.
9271 aix4 | aix4.[01] | aix4.[01].*)
9272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9274 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9281 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9282 # soname into executable. Probably we can add versioning support to
9283 # collect2, so additional links can be useful in future.
9284 if test "$aix_use_runtimelinking" = yes; then
9285 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9286 # instead of lib<name>.a to let people know that these are not
9287 # typical AIX shared libraries.
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 # We preserve .a as extension for shared libraries through AIX4.2
9291 # and later when we are not doing run time linking.
9292 library_names_spec='${libname}${release}.a $libname.a'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9295 shlibpath_var=LIBPATH
9300 library_names_spec='$libname.ixlibrary $libname.a'
9301 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9302 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'
9306 library_names_spec='${libname}${shared_ext}'
9307 dynamic_linker="$host_os ld.so"
9308 shlibpath_var=LIBRARY_PATH
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9319 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9320 # the default ld.so.conf also contains /usr/contrib/lib and
9321 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9322 # libtool to hard-code these into programs
9325 cygwin* | mingw* | pw32*)
9326 version_type=windows
9331 case $GCC,$host_os in
9332 yes,cygwin* | yes,mingw* | yes,pw32*)
9333 library_names_spec='$libname.dll.a'
9334 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9335 postinstall_cmds='base_file=`basename \${file}`~
9336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9337 dldir=$destdir/`dirname \$dlpath`~
9338 test -d \$dldir || mkdir -p \$dldir~
9339 $install_prog $dir/$dlname \$dldir/$dlname~
9340 chmod a+x \$dldir/$dlname'
9341 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9342 dlpath=$dir/\$dldll~
9344 shlibpath_overrides_runpath=yes
9348 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9349 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9353 # MinGW DLLs use traditional 'lib' prefix
9354 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9356 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9357 # It is most probably a Windows format PATH printed by
9358 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9359 # path with ; separators, and with drive letters. We can handle the
9360 # drive letters (cygwin fileutils understands them), so leave them,
9361 # especially as we might pass files found there to a mingw objdump,
9362 # which wouldn't understand a cygwinified path. Ahh.
9363 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9365 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9369 # pw32 DLLs use 'pw' prefix rather than 'lib'
9370 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9376 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9379 dynamic_linker='Win32 ld.exe'
9380 # FIXME: first we should search . and the directory the executable is in
9384 darwin* | rhapsody*)
9385 dynamic_linker="$host_os dyld"
9389 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9390 soname_spec='${libname}${release}${major}$shared_ext'
9391 shlibpath_overrides_runpath=yes
9392 shlibpath_var=DYLD_LIBRARY_PATH
9393 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9395 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9404 soname_spec='${libname}${release}${shared_ext}$major'
9405 shlibpath_var=LD_LIBRARY_PATH
9412 freebsd* | dragonfly*)
9413 # DragonFly does not have aout. When/if they implement a new
9414 # versioning mechanism, adjust this.
9415 if test -x /usr/bin/objformat; then
9416 objformat=`/usr/bin/objformat`
9419 freebsd[123]*) objformat=aout ;;
9423 version_type=freebsd-$objformat
9424 case $version_type in
9426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9435 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=yes
9440 freebsd3.[01]* | freebsdelf3.[01]*)
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9446 shlibpath_overrides_runpath=no
9447 hardcode_into_libs=yes
9449 *) # from 4.6 on, and DragonFly
9450 shlibpath_overrides_runpath=yes
9451 hardcode_into_libs=yes
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 hardcode_into_libs=yes
9466 hpux9* | hpux10* | hpux11*)
9467 # Give a soname corresponding to the major version so that dld.sl refuses to
9468 # link against other versions.
9475 hardcode_into_libs=yes
9476 dynamic_linker="$host_os dld.so"
9477 shlibpath_var=LD_LIBRARY_PATH
9478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9481 if test "X$HPUX_IA64_MODE" = X32; then
9482 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9484 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9490 hardcode_into_libs=yes
9491 dynamic_linker="$host_os dld.sl"
9492 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495 soname_spec='${libname}${release}${shared_ext}$major'
9496 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9501 dynamic_linker="$host_os dld.sl"
9502 shlibpath_var=SHLIB_PATH
9503 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9508 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9509 postinstall_cmds='chmod 555 $lib'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=no
9521 hardcode_into_libs=yes
9524 irix5* | irix6* | nonstopux*)
9526 nonstopux*) version_type=nonstopux ;;
9528 if test "$lt_cv_prog_gnu_ld" = yes; then
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9539 irix5* | nonstopux*)
9543 case $LD in # libtool.m4 will add one of these switches to LD
9544 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9545 libsuff= shlibsuff= libmagic=32-bit;;
9546 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9547 libsuff=32 shlibsuff=N32 libmagic=N32;;
9548 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9549 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9550 *) libsuff= shlibsuff= libmagic=never-match;;
9554 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9555 shlibpath_overrides_runpath=no
9556 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9557 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9558 hardcode_into_libs=yes
9561 # No shared lib support for Linux oldld, aout, or coff.
9562 linux*oldld* | linux*aout* | linux*coff*)
9566 # This must be Linux ELF.
9567 linux* | k*bsd*-gnu)
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=no
9576 # This implies no fast_install, which is unacceptable.
9577 # Some rework will be needed to allow for fast_install
9578 # before this can be enabled.
9579 hardcode_into_libs=yes
9581 # Append ld.so.conf contents to the search path
9582 if test -f /etc/ld.so.conf; then
9583 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' ' '`
9584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9587 # We used to test for /lib/ld.so.1 and disable shared libraries on
9588 # powerpc, because MkLinux only supported shared libraries with the
9589 # GNU dynamic linker. Since this was broken with cross compilers,
9590 # most powerpc-linux boxes support dynamic linking these days and
9591 # people can always --disable-shared, the test was removed, and we
9592 # assume the GNU/Linux dynamic linker is in use.
9593 dynamic_linker='GNU/Linux ld.so'
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 shlibpath_overrides_runpath=no
9604 hardcode_into_libs=yes
9605 dynamic_linker='NetBSD ld.elf_so'
9612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9615 dynamic_linker='NetBSD (a.out) ld.so'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 dynamic_linker='NetBSD ld.elf_so'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=yes
9623 hardcode_into_libs=yes
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=yes
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes
9645 sys_lib_dlsearch_path_spec="/usr/lib"
9647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9650 *) need_version=no ;;
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9657 openbsd2.[89] | openbsd2.[89].*)
9658 shlibpath_overrides_runpath=no
9661 shlibpath_overrides_runpath=yes
9665 shlibpath_overrides_runpath=yes
9670 libname_spec='$name'
9673 library_names_spec='$libname${shared_ext} $libname.a'
9674 dynamic_linker='OS/2 ld.exe'
9675 shlibpath_var=LIBPATH
9678 osf3* | osf4* | osf5*)
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 shlibpath_var=LD_LIBRARY_PATH
9685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9702 # ldd complains unless libraries are executable
9703 postinstall_cmds='chmod +x $lib'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9710 shlibpath_var=LD_LIBRARY_PATH
9711 shlibpath_overrides_runpath=yes
9712 if test "$with_gnu_ld" = yes; then
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 case $host_vendor in
9725 shlibpath_overrides_runpath=no
9727 export_dynamic_flag_spec='${wl}-Blargedynsym'
9728 runpath_var=LD_RUN_PATH
9736 shlibpath_overrides_runpath=no
9737 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9743 if test -d /usr/nec ;then
9745 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9746 soname_spec='$libname${shared_ext}.$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9752 version_type=freebsd-elf
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 shlibpath_var=LD_LIBRARY_PATH
9758 hardcode_into_libs=yes
9759 if test "$with_gnu_ld" = yes; then
9760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9761 shlibpath_overrides_runpath=no
9763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9764 shlibpath_overrides_runpath=yes
9767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771 sys_lib_dlsearch_path_spec='/usr/lib'
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 soname_spec='${libname}${release}${shared_ext}$major'
9778 shlibpath_var=LD_LIBRARY_PATH
9785 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9786 echo "${ECHO_T}$dynamic_linker" >&6; }
9787 test "$dynamic_linker" = no && can_build_shared=no
9789 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9795 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9805 if test "$GCC" = yes; then
9806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9810 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9812 if test -n "$hardcode_libdir_flag_spec" || \
9813 test -n "$runpath_var" || \
9814 test "X$hardcode_automatic" = "Xyes" ; then
9816 # We can hardcode non-existant directories.
9817 if test "$hardcode_direct" != no &&
9818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9819 # have to relink, otherwise we might link with an installed library
9820 # when we should be linking with a yet-to-be-installed one
9821 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9822 test "$hardcode_minus_L" != no; then
9823 # Linking always hardcodes the temporary library directory.
9824 hardcode_action=relink
9826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9827 hardcode_action=immediate
9830 # We cannot hardcode anything, or else we can only hardcode existing
9832 hardcode_action=unsupported
9834 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9835 echo "${ECHO_T}$hardcode_action" >&6; }
9837 if test "$hardcode_action" = relink; then
9838 # Fast installation is not supported
9839 enable_fast_install=no
9840 elif test "$shlibpath_overrides_runpath" = yes ||
9841 test "$enable_shared" = no; then
9842 # Fast installation is not necessary
9843 enable_fast_install=needless
9848 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9849 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9850 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9851 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9852 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9853 { echo "$as_me:$LINENO: result: yes" >&5
9854 echo "${ECHO_T}yes" >&6; }
9856 # FIXME - insert some real tests, host_os isn't really good enough
9859 if test -n "$STRIP" ; then
9860 striplib="$STRIP -x"
9861 old_striplib="$STRIP -S"
9862 { echo "$as_me:$LINENO: result: yes" >&5
9863 echo "${ECHO_T}yes" >&6; }
9865 { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9870 { echo "$as_me:$LINENO: result: no" >&5
9871 echo "${ECHO_T}no" >&6; }
9876 if test "x$enable_dlopen" != xyes; then
9877 enable_dlopen=unknown
9878 enable_dlopen_self=unknown
9879 enable_dlopen_self_static=unknown
9886 lt_cv_dlopen="load_add_on"
9888 lt_cv_dlopen_self=yes
9892 lt_cv_dlopen="LoadLibrary"
9897 lt_cv_dlopen="dlopen"
9902 # if libdl is installed we need to link against it
9903 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9904 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest$ac_exeext &&
9949 $as_test_x conftest$ac_exeext; then
9950 ac_cv_lib_dl_dlopen=yes
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 ac_cv_lib_dl_dlopen=no
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9962 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9964 if test $ac_cv_lib_dl_dlopen = yes; then
9965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9970 lt_cv_dlopen_self=yes
9977 { echo "$as_me:$LINENO: checking for shl_load" >&5
9978 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9979 if test "${ac_cv_func_shl_load+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990 #define shl_load innocuous_shl_load
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char shl_load (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9998 # include <limits.h>
10000 # include <assert.h>
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10012 /* The GNU C library defines this for functions which it implements
10013 to always fail with ENOSYS. Some functions are actually named
10014 something starting with __ and the normal name is an alias. */
10015 #if defined __stub_shl_load || defined __stub___shl_load
10022 return shl_load ();
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest$ac_exeext &&
10044 $as_test_x conftest$ac_exeext; then
10045 ac_cv_func_shl_load=yes
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 ac_cv_func_shl_load=no
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10056 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10057 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10058 if test $ac_cv_func_shl_load = yes; then
10059 lt_cv_dlopen="shl_load"
10061 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10062 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10063 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS=$LIBS
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10075 /* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
10085 return shl_load ();
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (ac_try="$ac_link"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_link") 2>conftest.er1
10099 grep -v '^ *+' conftest.er1 >conftest.err
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest$ac_exeext &&
10107 $as_test_x conftest$ac_exeext; then
10108 ac_cv_lib_dld_shl_load=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_lib_dld_shl_load=no
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10120 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10121 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10122 if test $ac_cv_lib_dld_shl_load = yes; then
10123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10125 { echo "$as_me:$LINENO: checking for dlopen" >&5
10126 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10127 if test "${ac_cv_func_dlopen+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10138 #define dlopen innocuous_dlopen
10140 /* System header to define __stub macros and hopefully few prototypes,
10141 which can conflict with char dlopen (); below.
10142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10143 <limits.h> exists even on freestanding compilers. */
10146 # include <limits.h>
10148 # include <assert.h>
10153 /* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */
10160 /* The GNU C library defines this for functions which it implements
10161 to always fail with ENOSYS. Some functions are actually named
10162 something starting with __ and the normal name is an alias. */
10163 #if defined __stub_dlopen || defined __stub___dlopen
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10184 grep -v '^ *+' conftest.er1 >conftest.err
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 ac_cv_func_dlopen=yes
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_cv_func_dlopen=no
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10205 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10206 if test $ac_cv_func_dlopen = yes; then
10207 lt_cv_dlopen="dlopen"
10209 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_check_lib_save_LIBS=$LIBS
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10223 /* Override any GCC internal prototype to avoid an error.
10224 Use char because int might match the return type of a GCC
10225 builtin and then its argument prototype would still apply. */
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext &&
10255 $as_test_x conftest$ac_exeext; then
10256 ac_cv_lib_dl_dlopen=yes
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ac_cv_lib_dl_dlopen=no
10264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10268 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10269 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10270 if test $ac_cv_lib_dl_dlopen = yes; then
10271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10273 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10274 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10275 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lsvld $LIBS"
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (ac_try="$ac_link"
10304 case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309 (eval "$ac_link") 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } && {
10316 test -z "$ac_c_werror_flag" ||
10317 test ! -s conftest.err
10318 } && test -s conftest$ac_exeext &&
10319 $as_test_x conftest$ac_exeext; then
10320 ac_cv_lib_svld_dlopen=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_cv_lib_svld_dlopen=no
10328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10333 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10334 if test $ac_cv_lib_svld_dlopen = yes; then
10335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10337 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10338 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10342 ac_check_lib_save_LIBS=$LIBS
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10361 return dld_link ();
10366 rm -f conftest.$ac_objext conftest$ac_exeext
10367 if { (ac_try="$ac_link"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_link") 2>conftest.er1
10375 grep -v '^ *+' conftest.er1 >conftest.err
10377 cat conftest.err >&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest$ac_exeext &&
10383 $as_test_x conftest$ac_exeext; then
10384 ac_cv_lib_dld_dld_link=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10389 ac_cv_lib_dld_dld_link=no
10392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10393 conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10398 if test $ac_cv_lib_dld_dld_link = yes; then
10399 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10420 if test "x$lt_cv_dlopen" != xno; then
10426 case $lt_cv_dlopen in
10428 save_CPPFLAGS="$CPPFLAGS"
10429 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10431 save_LDFLAGS="$LDFLAGS"
10432 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10435 LIBS="$lt_cv_dlopen_libs $LIBS"
10437 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10438 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10439 if test "${lt_cv_dlopen_self+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 if test "$cross_compiling" = yes; then :
10443 lt_cv_dlopen_self=cross
10445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10446 lt_status=$lt_dlunknown
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10448 "configure"
10449 #include "confdefs.h"
10458 # define LT_DLGLOBAL RTLD_GLOBAL
10461 # define LT_DLGLOBAL DL_GLOBAL
10463 # define LT_DLGLOBAL 0
10467 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10468 find out it does not work in some platform. */
10469 #ifndef LT_DLLAZY_OR_NOW
10471 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10474 # define LT_DLLAZY_OR_NOW DL_LAZY
10477 # define LT_DLLAZY_OR_NOW RTLD_NOW
10480 # define LT_DLLAZY_OR_NOW DL_NOW
10482 # define LT_DLLAZY_OR_NOW 0
10490 extern "C" void exit (int);
10493 void fnord() { int i=42;}
10496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10497 int status = $lt_dlunknown;
10501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10502 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10503 /* dlclose (self); */
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10516 (./conftest; exit; ) >&5 2>/dev/null
10518 case x$lt_status in
10519 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10520 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10521 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10524 # compilation failed
10525 lt_cv_dlopen_self=no
10532 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10533 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10535 if test "x$lt_cv_dlopen_self" = xyes; then
10536 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10537 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10538 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10539 if test "${lt_cv_dlopen_self_static+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 if test "$cross_compiling" = yes; then :
10543 lt_cv_dlopen_self_static=cross
10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10546 lt_status=$lt_dlunknown
10547 cat > conftest.$ac_ext <<EOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10558 # define LT_DLGLOBAL RTLD_GLOBAL
10561 # define LT_DLGLOBAL DL_GLOBAL
10563 # define LT_DLGLOBAL 0
10567 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10568 find out it does not work in some platform. */
10569 #ifndef LT_DLLAZY_OR_NOW
10571 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10574 # define LT_DLLAZY_OR_NOW DL_LAZY
10577 # define LT_DLLAZY_OR_NOW RTLD_NOW
10580 # define LT_DLLAZY_OR_NOW DL_NOW
10582 # define LT_DLLAZY_OR_NOW 0
10590 extern "C" void exit (int);
10593 void fnord() { int i=42;}
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10603 /* dlclose (self); */
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10616 (./conftest; exit; ) >&5 2>/dev/null
10618 case x$lt_status in
10619 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10620 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10621 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10624 # compilation failed
10625 lt_cv_dlopen_self_static=no
10632 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10633 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10636 CPPFLAGS="$save_CPPFLAGS"
10637 LDFLAGS="$save_LDFLAGS"
10642 case $lt_cv_dlopen_self in
10643 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10644 *) enable_dlopen_self=unknown ;;
10647 case $lt_cv_dlopen_self_static in
10648 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10649 *) enable_dlopen_self_static=unknown ;;
10654 # Report which library types will actually be built
10655 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10656 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10657 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10658 echo "${ECHO_T}$can_build_shared" >&6; }
10660 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10661 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10662 test "$can_build_shared" = "no" && enable_shared=no
10664 # On AIX, shared libraries and static libraries use the same namespace, and
10665 # are all built from PIC.
10668 test "$enable_shared" = yes && enable_static=no
10669 if test -n "$RANLIB"; then
10670 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10671 postinstall_cmds='$RANLIB $lib'
10676 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10677 test "$enable_shared" = yes && enable_static=no
10681 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10682 echo "${ECHO_T}$enable_shared" >&6; }
10684 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10685 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10686 # Make sure either enable_shared or enable_static is yes.
10687 test "$enable_shared" = yes || enable_static=yes
10688 { echo "$as_me:$LINENO: result: $enable_static" >&5
10689 echo "${ECHO_T}$enable_static" >&6; }
10691 # The else clause should only fire when bootstrapping the
10692 # libtool distribution, otherwise you forgot to ship ltmain.sh
10693 # with your package, and you will get complaints that there are
10694 # no rules to generate ltmain.sh.
10695 if test -f "$ltmain"; then
10696 # See if we are running on zsh, and set the options which allow our commands through
10697 # without removal of \ escapes.
10698 if test -n "${ZSH_VERSION+set}" ; then
10699 setopt NO_GLOB_SUBST
10701 # Now quote all the things that may contain metacharacters while being
10702 # careful not to overquote the AC_SUBSTed values. We take copies of the
10703 # variables and quote the copies for generation of the libtool script.
10704 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10706 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10707 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10708 deplibs_check_method reload_flag reload_cmds need_locks \
10709 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10710 lt_cv_sys_global_symbol_to_c_name_address \
10711 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10712 old_postinstall_cmds old_postuninstall_cmds \
10716 lt_prog_compiler_wl \
10717 lt_prog_compiler_pic \
10718 lt_prog_compiler_static \
10719 lt_prog_compiler_no_builtin_flag \
10720 export_dynamic_flag_spec \
10721 thread_safe_flag_spec \
10722 whole_archive_flag_spec \
10723 enable_shared_with_static_runtimes \
10725 old_archive_from_new_cmds \
10730 compiler_lib_search_path \
10731 compiler_lib_search_dirs \
10733 archive_expsym_cmds \
10735 postuninstall_cmds \
10736 old_archive_from_expsyms_cmds \
10737 allow_undefined_flag \
10738 no_undefined_flag \
10739 export_symbols_cmds \
10740 hardcode_libdir_flag_spec \
10741 hardcode_libdir_flag_spec_ld \
10742 hardcode_libdir_separator \
10743 hardcode_automatic \
10745 module_expsym_cmds \
10746 lt_cv_prog_compiler_c_o \
10749 include_expsyms; do
10752 old_archive_cmds | \
10753 old_archive_from_new_cmds | \
10755 archive_expsym_cmds | \
10757 module_expsym_cmds | \
10758 old_archive_from_expsyms_cmds | \
10759 export_symbols_cmds | \
10760 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10761 postinstall_cmds | postuninstall_cmds | \
10762 old_postinstall_cmds | old_postuninstall_cmds | \
10763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10764 # Double-quote double-evaled strings.
10765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10774 *'\$0 --fallback-echo"')
10775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10779 cfgfile="${ofile}T"
10780 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10782 { echo "$as_me:$LINENO: creating $ofile" >&5
10783 echo "$as_me: creating $ofile" >&6;}
10785 cat <<__EOF__ >> "$cfgfile"
10788 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10789 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10790 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10792 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10793 # Free Software Foundation, Inc.
10795 # This file is part of GNU Libtool:
10796 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10798 # This program is free software; you can redistribute it and/or modify
10799 # it under the terms of the GNU General Public License as published by
10800 # the Free Software Foundation; either version 2 of the License, or
10801 # (at your option) any later version.
10803 # This program is distributed in the hope that it will be useful, but
10804 # WITHOUT ANY WARRANTY; without even the implied warranty of
10805 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10806 # General Public License for more details.
10808 # You should have received a copy of the GNU General Public License
10809 # along with this program; if not, write to the Free Software
10810 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10812 # As a special exception to the GNU General Public License, if you
10813 # distribute this file as part of a program that contains a
10814 # configuration script generated by Autoconf, you may include it under
10815 # the same distribution terms that you use for the rest of that program.
10817 # A sed program that does not truncate output.
10820 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10821 Xsed="$SED -e 1s/^X//"
10823 # The HP-UX ksh and POSIX shell print the target directory to stdout
10824 # if CDPATH is set.
10825 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10827 # The names of the tagged configurations supported by this script.
10830 # ### BEGIN LIBTOOL CONFIG
10832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10834 # Shell to use when invoking shell scripts.
10837 # Whether or not to build shared libraries.
10838 build_libtool_libs=$enable_shared
10840 # Whether or not to build static libraries.
10841 build_old_libs=$enable_static
10843 # Whether or not to add -lc for building shared libraries.
10844 build_libtool_need_lc=$archive_cmds_need_lc
10846 # Whether or not to disallow shared libs when runtime libs are static
10847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10849 # Whether or not to optimize for fast installation.
10850 fast_install=$enable_fast_install
10853 host_alias=$host_alias
10857 # The build system.
10858 build_alias=$build_alias
10862 # An echo program that does not interpret backslashes.
10867 AR_FLAGS=$lt_AR_FLAGS
10872 # LTCC compiler flags.
10873 LTCFLAGS=$lt_LTCFLAGS
10875 # A language-specific compiler.
10878 # Is the compiler the GNU C compiler?
10884 # The linker used to build libraries.
10887 # Whether we need hard or soft links.
10890 # A BSD-compatible nm program.
10893 # A symbol stripping program
10896 # Used to examine libraries when file_magic_cmd begins "file"
10897 MAGIC_CMD=$MAGIC_CMD
10899 # Used on cygwin: DLL creation program.
10902 # Used on cygwin: object dumper.
10905 # Used on cygwin: assembler.
10908 # The name of the directory that contains temporary libtool files.
10911 # How to create reloadable object files.
10912 reload_flag=$lt_reload_flag
10913 reload_cmds=$lt_reload_cmds
10915 # How to pass a linker flag through the compiler.
10916 wl=$lt_lt_prog_compiler_wl
10918 # Object file suffix (normally "o").
10919 objext="$ac_objext"
10921 # Old archive suffix (normally "a").
10924 # Shared library suffix (normally ".so").
10925 shrext_cmds='$shrext_cmds'
10927 # Executable file suffix (normally "").
10930 # Additional compiler flags for building library objects.
10931 pic_flag=$lt_lt_prog_compiler_pic
10934 # What is the maximum length of a command?
10935 max_cmd_len=$lt_cv_sys_max_cmd_len
10937 # Does compiler simultaneously support -c and -o options?
10938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10940 # Must we lock files when doing compilation?
10941 need_locks=$lt_need_locks
10943 # Do we need the lib prefix for modules?
10944 need_lib_prefix=$need_lib_prefix
10946 # Do we need a version for libraries?
10947 need_version=$need_version
10949 # Whether dlopen is supported.
10950 dlopen_support=$enable_dlopen
10952 # Whether dlopen of programs is supported.
10953 dlopen_self=$enable_dlopen_self
10955 # Whether dlopen of statically linked programs is supported.
10956 dlopen_self_static=$enable_dlopen_self_static
10958 # Compiler flag to prevent dynamic linking.
10959 link_static_flag=$lt_lt_prog_compiler_static
10961 # Compiler flag to turn off builtin functions.
10962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10964 # Compiler flag to allow reflexive dlopens.
10965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10967 # Compiler flag to generate shared objects directly from archives.
10968 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10970 # Compiler flag to generate thread-safe objects.
10971 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10973 # Library versioning type.
10974 version_type=$version_type
10976 # Format of library name prefix.
10977 libname_spec=$lt_libname_spec
10979 # List of archive names. First name is the real one, the rest are links.
10980 # The last name is the one that the linker finds with -lNAME.
10981 library_names_spec=$lt_library_names_spec
10983 # The coded name of the library, if different from the real name.
10984 soname_spec=$lt_soname_spec
10986 # Commands used to build and install an old-style archive.
10988 old_archive_cmds=$lt_old_archive_cmds
10989 old_postinstall_cmds=$lt_old_postinstall_cmds
10990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10992 # Create an old-style archive from a shared archive.
10993 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10995 # Create a temporary old-style archive to link instead of a shared archive.
10996 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10998 # Commands used to build and install a shared archive.
10999 archive_cmds=$lt_archive_cmds
11000 archive_expsym_cmds=$lt_archive_expsym_cmds
11001 postinstall_cmds=$lt_postinstall_cmds
11002 postuninstall_cmds=$lt_postuninstall_cmds
11004 # Commands used to build a loadable module (assumed same as above if empty)
11005 module_cmds=$lt_module_cmds
11006 module_expsym_cmds=$lt_module_expsym_cmds
11008 # Commands to strip libraries.
11009 old_striplib=$lt_old_striplib
11010 striplib=$lt_striplib
11012 # Dependencies to place before the objects being linked to create a
11014 predep_objects=$lt_predep_objects
11016 # Dependencies to place after the objects being linked to create a
11018 postdep_objects=$lt_postdep_objects
11020 # Dependencies to place before the objects being linked to create a
11022 predeps=$lt_predeps
11024 # Dependencies to place after the objects being linked to create a
11026 postdeps=$lt_postdeps
11028 # The directories searched by this compiler when creating a shared
11030 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11032 # The library search path used internally by the compiler when linking
11033 # a shared library.
11034 compiler_lib_search_path=$lt_compiler_lib_search_path
11036 # Method to check whether dependent libraries are shared objects.
11037 deplibs_check_method=$lt_deplibs_check_method
11039 # Command to use when deplibs_check_method == file_magic.
11040 file_magic_cmd=$lt_file_magic_cmd
11042 # Flag that allows shared libraries with undefined symbols to be built.
11043 allow_undefined_flag=$lt_allow_undefined_flag
11045 # Flag that forces no undefined symbols.
11046 no_undefined_flag=$lt_no_undefined_flag
11048 # Commands used to finish a libtool library installation in a directory.
11049 finish_cmds=$lt_finish_cmds
11051 # Same as above, but a single script fragment to be evaled but not shown.
11052 finish_eval=$lt_finish_eval
11054 # Take the output of nm and produce a listing of raw symbols and C names.
11055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11057 # Transform the output of nm in a proper C declaration
11058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11060 # Transform the output of nm in a C name address pair
11061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11063 # This is the shared library runtime path variable.
11064 runpath_var=$runpath_var
11066 # This is the shared library path variable.
11067 shlibpath_var=$shlibpath_var
11069 # Is shlibpath searched before the hard-coded library search path?
11070 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11072 # How to hardcode a shared library path into an executable.
11073 hardcode_action=$hardcode_action
11075 # Whether we should hardcode library paths into libraries.
11076 hardcode_into_libs=$hardcode_into_libs
11078 # Flag to hardcode \$libdir into a binary during linking.
11079 # This must work even if \$libdir does not exist.
11080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11082 # If ld is used when linking, flag to hardcode \$libdir into
11083 # a binary during linking. This must work even if \$libdir does
11085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11087 # Whether we need a single -rpath flag with a separated argument.
11088 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11090 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11091 # resulting binary.
11092 hardcode_direct=$hardcode_direct
11094 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11095 # resulting binary.
11096 hardcode_minus_L=$hardcode_minus_L
11098 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11099 # the resulting binary.
11100 hardcode_shlibpath_var=$hardcode_shlibpath_var
11102 # Set to yes if building a shared library automatically hardcodes DIR into the library
11103 # and all subsequent libraries and executables linked against it.
11104 hardcode_automatic=$hardcode_automatic
11106 # Variables whose values should be saved in libtool wrapper scripts and
11107 # restored at relink time.
11108 variables_saved_for_relink="$variables_saved_for_relink"
11110 # Whether libtool must link a program against all its dependency libraries.
11111 link_all_deplibs=$link_all_deplibs
11113 # Compile-time system search path for libraries
11114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11116 # Run-time system search path for libraries
11117 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11119 # Fix the shell variable \$srcfile for the compiler.
11120 fix_srcfile_path=$lt_fix_srcfile_path
11122 # Set to yes if exported symbols are required.
11123 always_export_symbols=$always_export_symbols
11125 # The commands to list exported symbols.
11126 export_symbols_cmds=$lt_export_symbols_cmds
11128 # The commands to extract the exported symbol list from a shared archive.
11129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11131 # Symbols that should not be listed in the preloaded symbols.
11132 exclude_expsyms=$lt_exclude_expsyms
11134 # Symbols that must always be exported.
11135 include_expsyms=$lt_include_expsyms
11137 # ### END LIBTOOL CONFIG
11144 cat <<\EOF >> "$cfgfile"
11146 # AIX sometimes has problems with the GCC collect2 program. For some
11147 # reason, if we set the COLLECT_NAMES environment variable, the problems
11148 # vanish in a puff of smoke.
11149 if test "X${COLLECT_NAMES+set}" != Xset; then
11151 export COLLECT_NAMES
11157 # We use sed instead of cat because bash on DJGPP gets confused if
11158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11159 # text mode, it properly converts lines to CR/LF. This bash problem
11160 # is reportedly fixed, but why not run on old versions too?
11161 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11163 mv -f "$cfgfile" "$ofile" || \
11164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11168 # If there is no Makefile yet, we rely on a make rule to execute
11169 # `config.status --recheck' to rerun these tests and create the
11170 # libtool script then.
11171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11172 if test -f "$ltmain_in"; then
11173 test -f Makefile && make "$ltmain"
11179 ac_cpp='$CPP $CPPFLAGS'
11180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11187 # Check whether --with-tags was given.
11188 if test "${with_tags+set}" = set; then
11189 withval=$with_tags; tagnames="$withval"
11193 if test -f "$ltmain" && test -n "$tagnames"; then
11194 if test ! -f "${ofile}"; then
11195 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11196 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11199 if test -z "$LTCC"; then
11200 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11201 if test -z "$LTCC"; then
11202 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11203 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11206 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11209 if test -z "$LTCFLAGS"; then
11210 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11213 # Extract list of available tagged configurations in $ofile.
11214 # Note that this assumes the entire list is on one line.
11215 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11218 for tagname in $tagnames; do
11220 # Check whether tagname contains only valid characters
11221 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11223 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11224 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11225 { (exit 1); exit 1; }; }
11229 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11231 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11232 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11233 { (exit 1); exit 1; }; }
11236 # Update the list of available tags.
11237 if test -n "$tagname"; then
11238 echo appending configuration tag \"$tagname\" to $ofile
11242 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11243 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11244 (test "X$CXX" != "Xg++"))) ; then
11246 ac_cpp='$CXXCPP $CPPFLAGS'
11247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11254 archive_cmds_need_lc_CXX=no
11255 allow_undefined_flag_CXX=
11256 always_export_symbols_CXX=no
11257 archive_expsym_cmds_CXX=
11258 export_dynamic_flag_spec_CXX=
11259 hardcode_direct_CXX=no
11260 hardcode_libdir_flag_spec_CXX=
11261 hardcode_libdir_flag_spec_ld_CXX=
11262 hardcode_libdir_separator_CXX=
11263 hardcode_minus_L_CXX=no
11264 hardcode_shlibpath_var_CXX=unsupported
11265 hardcode_automatic_CXX=no
11267 module_expsym_cmds_CXX=
11268 link_all_deplibs_CXX=unknown
11269 old_archive_cmds_CXX=$old_archive_cmds
11270 no_undefined_flag_CXX=
11271 whole_archive_flag_spec_CXX=
11272 enable_shared_with_static_runtimes_CXX=no
11274 # Dependencies to place before and after the object being linked:
11275 predep_objects_CXX=
11276 postdep_objects_CXX=
11279 compiler_lib_search_path_CXX=
11280 compiler_lib_search_dirs_CXX=
11282 # Source file extension for C++ test sources.
11285 # Object file extension for compiled C++ test sources.
11289 # Code to be used in simple compile tests
11290 lt_simple_compile_test_code="int some_variable = 0;"
11292 # Code to be used in simple link tests
11293 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11295 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11297 # If no C compiler was specified, use CC.
11300 # If no C compiler flags were specified, use CFLAGS.
11301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11303 # Allow CC to be a program name with arguments.
11307 # save warnings/boilerplate of simple test code
11308 ac_outfile=conftest.$ac_objext
11309 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11310 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11311 _lt_compiler_boilerplate=`cat conftest.err`
11314 ac_outfile=conftest.$ac_objext
11315 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11316 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11317 _lt_linker_boilerplate=`cat conftest.err`
11321 # Allow CC to be a program name with arguments.
11326 lt_save_with_gnu_ld=$with_gnu_ld
11327 lt_save_path_LD=$lt_cv_path_LD
11328 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11329 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11331 $as_unset lt_cv_prog_gnu_ld
11333 if test -n "${lt_cv_path_LDCXX+set}"; then
11334 lt_cv_path_LD=$lt_cv_path_LDCXX
11336 $as_unset lt_cv_path_LD
11338 test -z "${LDCXX+set}" || LD=$LDCXX
11342 for cc_temp in $compiler""; do
11344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11353 # We don't want -fno-exception wen compiling C++ code, so set the
11354 # no_builtin_flag separately
11355 if test "$GXX" = yes; then
11356 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11358 lt_prog_compiler_no_builtin_flag_CXX=
11361 if test "$GXX" = yes; then
11362 # Set up default GNU C++ configuration
11365 # Check whether --with-gnu-ld was given.
11366 if test "${with_gnu_ld+set}" = set; then
11367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11373 if test "$GCC" = yes; then
11374 # Check if gcc -print-prog-name=ld gives a path.
11375 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11376 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11379 # gcc leaves a trailing carriage return which upsets mingw
11380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11385 # Accept absolute paths.
11387 re_direlt='/[^/][^/]*/\.\./'
11388 # Canonicalize the pathname of ld
11389 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11391 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11393 test -z "$LD" && LD="$ac_prog"
11396 # If it fails, then pretend we aren't using GCC.
11400 # If it is relative, then search for the first ld in PATH.
11401 with_gnu_ld=unknown
11404 elif test "$with_gnu_ld" = yes; then
11405 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11406 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11408 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11409 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11411 if test "${lt_cv_path_LD+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 if test -z "$LD"; then
11415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11416 for ac_dir in $PATH; do
11418 test -z "$ac_dir" && ac_dir=.
11419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11420 lt_cv_path_LD="$ac_dir/$ac_prog"
11421 # Check to see if the program is GNU ld. I'd rather use --version,
11422 # but apparently some variants of GNU ld only accept -v.
11423 # Break only if it was the GNU/non-GNU ld that we prefer.
11424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11425 *GNU* | *'with BFD'*)
11426 test "$with_gnu_ld" != no && break
11429 test "$with_gnu_ld" != yes && break
11436 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11440 LD="$lt_cv_path_LD"
11441 if test -n "$LD"; then
11442 { echo "$as_me:$LINENO: result: $LD" >&5
11443 echo "${ECHO_T}$LD" >&6; }
11445 { echo "$as_me:$LINENO: result: no" >&5
11446 echo "${ECHO_T}no" >&6; }
11448 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11449 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11450 { (exit 1); exit 1; }; }
11451 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11452 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11453 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11457 case `$LD -v 2>&1 </dev/null` in
11458 *GNU* | *'with BFD'*)
11459 lt_cv_prog_gnu_ld=yes
11462 lt_cv_prog_gnu_ld=no
11466 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11467 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11468 with_gnu_ld=$lt_cv_prog_gnu_ld
11472 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11473 # archiving commands below assume that GNU ld is being used.
11474 if test "$with_gnu_ld" = yes; then
11475 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11476 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'
11478 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11479 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11481 # If archive_cmds runs LD, not CC, wlarc should be empty
11482 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11483 # investigate it a little bit more. (MM)
11486 # ancient GNU ld didn't support --whole-archive et. al.
11487 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11488 grep 'no-whole-archive' > /dev/null; then
11489 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11491 whole_archive_flag_spec_CXX=
11497 # A generic and very simple default shared library creation
11498 # command for GNU C++ for the case where it uses the native
11499 # linker, instead of GNU ld. If possible, this setting should
11500 # overridden to take advantage of the native linker features on
11501 # the platform it is being used on.
11502 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11505 # Commands to make compiler produce verbose output that lists
11506 # what "hidden" libraries, object files and flags are used when
11507 # linking a shared library.
11508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11516 # PORTME: fill in a description of your system's C++ link characteristics
11517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11522 # FIXME: insert proper C++ library support
11526 if test "$host_cpu" = ia64; then
11527 # On IA64, the linker does run time linking by default, so we don't
11528 # have to do anything special.
11529 aix_use_runtimelinking=no
11530 exp_sym_flag='-Bexport'
11533 aix_use_runtimelinking=no
11535 # Test if we are trying to use run time linking or normal
11536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11537 # need to do runtime linking.
11538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11539 for ld_flag in $LDFLAGS; do
11542 aix_use_runtimelinking=yes
11550 exp_sym_flag='-bexport'
11551 no_entry_flag='-bnoentry'
11554 # When large executables or shared objects are built, AIX ld can
11555 # have problems creating the table of contents. If linking a library
11556 # or program results in "error TOC overflow" add -mminimal-toc to
11557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11560 archive_cmds_CXX=''
11561 hardcode_direct_CXX=yes
11562 hardcode_libdir_separator_CXX=':'
11563 link_all_deplibs_CXX=yes
11565 if test "$GXX" = yes; then
11566 case $host_os in aix4.[012]|aix4.[012].*)
11567 # We only want to do this on AIX 4.2 and lower, the check
11568 # below for broken collect2 doesn't work under 4.3+
11569 collect2name=`${CC} -print-prog-name=collect2`
11570 if test -f "$collect2name" && \
11571 strings "$collect2name" | grep resolve_lib_name >/dev/null
11573 # We have reworked collect2
11576 # We have old collect2
11577 hardcode_direct_CXX=unsupported
11578 # It fails to find uninstalled libraries when the uninstalled
11579 # path is not listed in the libpath. Setting hardcode_minus_L
11580 # to unsupported forces relinking
11581 hardcode_minus_L_CXX=yes
11582 hardcode_libdir_flag_spec_CXX='-L$libdir'
11583 hardcode_libdir_separator_CXX=
11587 shared_flag='-shared'
11588 if test "$aix_use_runtimelinking" = yes; then
11589 shared_flag="$shared_flag "'${wl}-G'
11593 if test "$host_cpu" = ia64; then
11594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11595 # chokes on -Wl,-G. The following line is correct:
11598 if test "$aix_use_runtimelinking" = yes; then
11599 shared_flag='${wl}-G'
11601 shared_flag='${wl}-bM:SRE'
11606 # It seems that -bexpall does not export symbols beginning with
11607 # underscore (_), so it is better to generate a list of symbols to export.
11608 always_export_symbols_CXX=yes
11609 if test "$aix_use_runtimelinking" = yes; then
11610 # Warning - without using the other runtime loading flags (-brtl),
11611 # -berok will link without error, but may produce a broken library.
11612 allow_undefined_flag_CXX='-berok'
11613 # Determine the default libpath from the value encoded in an empty executable.
11614 cat >conftest.$ac_ext <<_ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (ac_try="$ac_link"
11631 case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_link") 2>conftest.er1
11638 grep -v '^ *+' conftest.er1 >conftest.err
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } && {
11643 test -z "$ac_cxx_werror_flag" ||
11644 test ! -s conftest.err
11645 } && test -s conftest$ac_exeext &&
11646 $as_test_x conftest$ac_exeext; then
11648 lt_aix_libpath_sed='
11649 /Import File Strings/,/^$/ {
11655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11656 # Check for a 64-bit object if we didn't find anything.
11657 if test -z "$aix_libpath"; then
11658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11671 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11673 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"
11675 if test "$host_cpu" = ia64; then
11676 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11677 allow_undefined_flag_CXX="-z nodefs"
11678 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"
11680 # Determine the default libpath from the value encoded in an empty executable.
11681 cat >conftest.$ac_ext <<_ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11696 rm -f conftest.$ac_objext conftest$ac_exeext
11697 if { (ac_try="$ac_link"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_link") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_cxx_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest$ac_exeext &&
11713 $as_test_x conftest$ac_exeext; then
11715 lt_aix_libpath_sed='
11716 /Import File Strings/,/^$/ {
11722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11723 # Check for a 64-bit object if we didn't find anything.
11724 if test -z "$aix_libpath"; then
11725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11735 conftest$ac_exeext conftest.$ac_ext
11736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11739 # Warning - without using the other run time loading flags,
11740 # -berok will link without error, but may produce a broken library.
11741 no_undefined_flag_CXX=' ${wl}-bernotok'
11742 allow_undefined_flag_CXX=' ${wl}-berok'
11743 # Exported symbols can be pulled into shared objects from archives
11744 whole_archive_flag_spec_CXX='$convenience'
11745 archive_cmds_need_lc_CXX=yes
11746 # This is similar to how AIX traditionally builds its shared libraries.
11747 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'
11753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11754 allow_undefined_flag_CXX=unsupported
11755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11756 # support --undefined. This deserves some investigation. FIXME
11757 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11764 case $cc_basename in
11766 # FIXME: insert proper C++ library support
11772 cygwin* | mingw* | pw32*)
11773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11774 # as there is no search path for DLLs.
11775 hardcode_libdir_flag_spec_CXX='-L$libdir'
11776 allow_undefined_flag_CXX=unsupported
11777 always_export_symbols_CXX=no
11778 enable_shared_with_static_runtimes_CXX=yes
11780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11781 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'
11782 # If the export-symbols file already is a .def file (1st line
11783 # is EXPORTS), use it as is; otherwise, prepend...
11784 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11785 cp $export_symbols $output_objdir/$soname.def;
11787 echo EXPORTS > $output_objdir/$soname.def;
11788 cat $export_symbols >> $output_objdir/$soname.def;
11790 $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'
11795 darwin* | rhapsody*)
11796 archive_cmds_need_lc_CXX=no
11797 hardcode_direct_CXX=no
11798 hardcode_automatic_CXX=yes
11799 hardcode_shlibpath_var_CXX=unsupported
11800 whole_archive_flag_spec_CXX=''
11801 link_all_deplibs_CXX=yes
11802 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11803 if test "$GXX" = yes ; then
11804 output_verbose_link_cmd='echo'
11805 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}"
11806 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11807 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}"
11808 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}"
11809 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11810 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}"
11811 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}"
11814 case $cc_basename in
11816 output_verbose_link_cmd='echo'
11817 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'
11818 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11820 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}'
11821 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}'
11831 case $cc_basename in
11833 # FIXME: insert proper C++ library support
11837 # Green Hills C++ Compiler
11838 # FIXME: insert proper C++ library support
11842 # FIXME: insert proper C++ library support
11848 # C++ shared libraries reported to be fairly broken before switch to ELF
11852 archive_cmds_need_lc_CXX=no
11854 freebsd* | dragonfly*)
11855 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11862 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11863 hardcode_libdir_separator_CXX=:
11864 export_dynamic_flag_spec_CXX='${wl}-E'
11865 hardcode_direct_CXX=yes
11866 hardcode_minus_L_CXX=yes # Not in the search PATH,
11867 # but as the default
11868 # location of the library.
11870 case $cc_basename in
11872 # FIXME: insert proper C++ library support
11876 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'
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11885 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'
11888 if test "$GXX" = yes; then
11889 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'
11891 # FIXME: insert proper C++ library support
11898 if test $with_gnu_ld = no; then
11899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11900 hardcode_libdir_separator_CXX=:
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11911 hardcode_direct_CXX=no
11912 hardcode_shlibpath_var_CXX=no
11915 hardcode_direct_CXX=yes
11916 hardcode_minus_L_CXX=yes # Not in the search PATH,
11917 # but as the default
11918 # location of the library.
11922 case $cc_basename in
11924 # FIXME: insert proper C++ library support
11930 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11933 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11939 # Commands to make compiler produce verbose output that lists
11940 # what "hidden" libraries, object files and flags are used when
11941 # linking a shared library.
11943 # There doesn't appear to be a way to prevent this compiler from
11944 # explicitly linking system object files so we need to strip them
11945 # from the output so that they don't get included in the library
11947 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'
11950 if test "$GXX" = yes; then
11951 if test $with_gnu_ld = no; then
11954 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960 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'
11965 # FIXME: insert proper C++ library support
11972 hardcode_direct_CXX=no
11973 hardcode_shlibpath_var_CXX=no
11974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975 export_dynamic_flag_spec_CXX='${wl}-E'
11976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11977 # Instead, shared libraries are loaded at an image base (0x10000000 by
11978 # default) and relocated if they conflict, which is a slow very memory
11979 # consuming and fragmenting process. To avoid this, we pick a random,
11980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11981 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11982 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'
11983 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'
11986 case $cc_basename in
11989 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'
11991 # Archives containing C++ object files must be created using
11992 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11993 # necessary to make sure instantiated templates are included
11995 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11998 if test "$GXX" = yes; then
11999 if test "$with_gnu_ld" = no; then
12000 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'
12002 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'
12005 link_all_deplibs_CXX=yes
12008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009 hardcode_libdir_separator_CXX=:
12011 linux* | k*bsd*-gnu)
12012 case $cc_basename in
12014 # Kuck and Associates, Inc. (KAI) C++ Compiler
12016 # KCC will only create a shared library if the output file
12017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018 # to its proper name (with version) after linking.
12019 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'
12020 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'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12025 # There doesn't appear to be a way to prevent this compiler from
12026 # explicitly linking system object files so we need to strip them
12027 # from the output so that they don't get included in the library
12029 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'
12031 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12034 # Archives containing C++ object files must be created using
12035 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12041 # version 8.0 and above of icpc choke on multiply defined symbols
12042 # if we add $predep_objects and $postdep_objects, however 7.1 and
12043 # earlier do not add the objects themselves.
12044 case `$CC -V 2>&1` in
12046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 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'
12049 *) # Version 8.0 or newer
12052 ia64*) tmp_idyn=' -i_dynamic';;
12054 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055 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'
12058 archive_cmds_need_lc_CXX=no
12059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12064 # Portland Group C++ compiler
12065 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12066 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'
12068 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070 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'
12074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075 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'
12077 runpath_var=LD_RUN_PATH
12078 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12079 hardcode_libdir_separator_CXX=:
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12089 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'
12092 case `$CC -V 2>&1 | sed 5q` in
12095 no_undefined_flag_CXX=' -zdefs'
12096 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097 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'
12098 hardcode_libdir_flag_spec_CXX='-R$libdir'
12099 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'
12101 # Not sure whether something based on
12102 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12104 output_verbose_link_cmd='echo'
12106 # Archives containing C++ object files must be created using
12107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12108 # necessary to make sure instantiated templates are included
12110 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12117 # FIXME: insert proper C++ library support
12121 # FIXME: insert proper C++ library support
12125 case $cc_basename in
12127 # FIXME: insert proper C++ library support
12131 # FIXME: insert proper C++ library support
12136 netbsd* | netbsdelf*-gnu)
12137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12138 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12140 hardcode_libdir_flag_spec_CXX='-R$libdir'
12141 hardcode_direct_CXX=yes
12142 hardcode_shlibpath_var_CXX=no
12144 # Workaround some broken pre-1.5 toolchains
12145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12148 # C++ shared libraries are fairly broken
12152 if test -f /usr/libexec/ld.so; then
12153 hardcode_direct_CXX=yes
12154 hardcode_shlibpath_var_CXX=no
12155 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12159 export_dynamic_flag_spec_CXX='${wl}-E'
12160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12162 output_verbose_link_cmd='echo'
12168 case $cc_basename in
12170 # Kuck and Associates, Inc. (KAI) C++ Compiler
12172 # KCC will only create a shared library if the output file
12173 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12174 # to its proper name (with version) after linking.
12175 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'
12177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178 hardcode_libdir_separator_CXX=:
12180 # Archives containing C++ object files must be created using
12181 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12182 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12186 # Rational C++ 2.4.1
12187 # FIXME: insert proper C++ library support
12191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192 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'
12194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12197 # Commands to make compiler produce verbose output that lists
12198 # what "hidden" libraries, object files and flags are used when
12199 # linking a shared library.
12201 # There doesn't appear to be a way to prevent this compiler from
12202 # explicitly linking system object files so we need to strip them
12203 # from the output so that they don't get included in the library
12205 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'
12208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12210 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'
12212 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12213 hardcode_libdir_separator_CXX=:
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12221 # FIXME: insert proper C++ library support
12228 case $cc_basename in
12230 # Kuck and Associates, Inc. (KAI) C++ Compiler
12232 # KCC will only create a shared library if the output file
12233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12234 # to its proper name (with version) after linking.
12235 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'
12237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12238 hardcode_libdir_separator_CXX=:
12240 # Archives containing C++ object files must be created using
12241 # the KAI C++ compiler.
12242 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12245 # Rational C++ 2.4.1
12246 # FIXME: insert proper C++ library support
12250 allow_undefined_flag_CXX=' -expect_unresolved \*'
12251 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'
12252 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12253 echo "-hidden">> $lib.exp~
12254 $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~
12257 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12258 hardcode_libdir_separator_CXX=:
12260 # Commands to make compiler produce verbose output that lists
12261 # what "hidden" libraries, object files and flags are used when
12262 # linking a shared library.
12264 # There doesn't appear to be a way to prevent this compiler from
12265 # explicitly linking system object files so we need to strip them
12266 # from the output so that they don't get included in the library
12268 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'
12271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12273 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'
12275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12276 hardcode_libdir_separator_CXX=:
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12284 # FIXME: insert proper C++ library support
12291 # FIXME: insert proper C++ library support
12295 case $cc_basename in
12298 # FIXME: insert proper C++ library support
12303 # FIXME: insert proper C++ library support
12307 # FIXME: insert proper C++ library support
12313 case $cc_basename in
12315 # Sun C++ 4.2, 5.x and Centerline C++
12316 archive_cmds_need_lc_CXX=yes
12317 no_undefined_flag_CXX=' -zdefs'
12318 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12320 $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'
12322 hardcode_libdir_flag_spec_CXX='-R$libdir'
12323 hardcode_shlibpath_var_CXX=no
12325 solaris2.[0-5] | solaris2.[0-5].*) ;;
12327 # The compiler driver will combine and reorder linker options,
12328 # but understands `-z linker_flag'.
12329 # Supported since Solaris 2.6 (maybe 2.5.1?)
12330 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12333 link_all_deplibs_CXX=yes
12335 output_verbose_link_cmd='echo'
12337 # Archives containing C++ object files must be created using
12338 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12339 # necessary to make sure instantiated templates are included
12341 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12344 # Green Hills C++ Compiler
12345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12347 # The C++ compiler must be used to create the archive.
12348 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12351 # GNU C++ compiler with Solaris linker
12352 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12353 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12354 if $CC --version | grep -v '^2\.7' > /dev/null; then
12355 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12356 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12357 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12359 # Commands to make compiler produce verbose output that lists
12360 # what "hidden" libraries, object files and flags are used when
12361 # linking a shared library.
12362 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12364 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12366 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12368 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12370 # Commands to make compiler produce verbose output that lists
12371 # what "hidden" libraries, object files and flags are used when
12372 # linking a shared library.
12373 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12376 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12378 solaris2.[0-5] | solaris2.[0-5].*) ;;
12380 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12388 no_undefined_flag_CXX='${wl}-z,text'
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_shlibpath_var_CXX=no
12391 runpath_var='LD_RUN_PATH'
12393 case $cc_basename in
12395 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12399 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404 sysv5* | sco3.2v5* | sco5v6*)
12405 # Note: We can NOT use -z defs as we might desire, because we do not
12406 # link with -lc, and that would cause any symbols used from libc to
12407 # always be unresolved, which means just about no library would
12408 # ever link correctly. If we're not using GNU ld we use -z text
12409 # though, which does catch some bad symbols but isn't as heavy-handed
12411 # For security reasons, it is highly recommended that you always
12412 # use absolute paths for naming shared libraries, and exclude the
12413 # DT_RUNPATH tag from executables and libraries. But doing so
12414 # requires that you compile everything twice, which is a pain.
12415 # So that behaviour is only enabled if SCOABSPATH is set to a
12416 # non-empty value in the environment. Most likely only useful for
12417 # creating official distributions of packages.
12418 # This is a hack until libtool officially supports absolute path
12419 # names for shared libraries.
12420 no_undefined_flag_CXX='${wl}-z,text'
12421 allow_undefined_flag_CXX='${wl}-z,nodefs'
12422 archive_cmds_need_lc_CXX=no
12423 hardcode_shlibpath_var_CXX=no
12424 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12425 hardcode_libdir_separator_CXX=':'
12426 link_all_deplibs_CXX=yes
12427 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12428 runpath_var='LD_RUN_PATH'
12430 case $cc_basename in
12432 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12436 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12442 case $cc_basename in
12444 # NonStop-UX NCC 3.20
12445 # FIXME: insert proper C++ library support
12449 # FIXME: insert proper C++ library support
12455 # FIXME: insert proper C++ library support
12459 # FIXME: insert proper C++ library support
12463 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12464 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12465 test "$ld_shlibs_CXX" = no && can_build_shared=no
12470 cat > conftest.$ac_ext <<EOF
12474 Foo (void) { a = 0; }
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; then
12485 # Parse the compiler output and extract the necessary
12486 # objects, libraries and library flags.
12488 # Sentinel used to keep track of whether or not we are before
12489 # the conftest object file.
12490 pre_test_object_deps_done=no
12492 # The `*' in the case matches for architectures that use `case' in
12493 # $output_verbose_cmd can trigger glob expansion during the loop
12494 # eval without this substitution.
12495 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12497 for p in `eval $output_verbose_link_cmd`; do
12501 # Some compilers place space between "-{L,R}" and the path.
12502 # Remove the space.
12503 if test $p = "-L" \
12504 || test $p = "-R"; then
12511 if test "$pre_test_object_deps_done" = no; then
12514 # Internal compiler library paths should come after those
12515 # provided the user. The postdeps already come after the
12516 # user supplied libs so there is no need to process them.
12517 if test -z "$compiler_lib_search_path_CXX"; then
12518 compiler_lib_search_path_CXX="${prev}${p}"
12520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12523 # The "-l" case would never come before the object being
12524 # linked, so don't bother handling this case.
12527 if test -z "$postdeps_CXX"; then
12528 postdeps_CXX="${prev}${p}"
12530 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12536 # This assumes that the test object file only shows up
12537 # once in the compiler output.
12538 if test "$p" = "conftest.$objext"; then
12539 pre_test_object_deps_done=yes
12543 if test "$pre_test_object_deps_done" = no; then
12544 if test -z "$predep_objects_CXX"; then
12545 predep_objects_CXX="$p"
12547 predep_objects_CXX="$predep_objects_CXX $p"
12550 if test -z "$postdep_objects_CXX"; then
12551 postdep_objects_CXX="$p"
12553 postdep_objects_CXX="$postdep_objects_CXX $p"
12558 *) ;; # Ignore the rest.
12566 echo "libtool.m4: error: problem compiling CXX test program"
12569 $rm -f confest.$objext
12571 compiler_lib_search_dirs_CXX=
12572 if test -n "$compiler_lib_search_path_CXX"; then
12573 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12576 # PORTME: override above test on systems where it is broken
12579 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12580 # hack all around it, let's just trust "g++" to DTRT.
12581 predep_objects_CXX=
12582 postdep_objects_CXX=
12587 case `$CC -V 2>&1 | sed 5q` in
12591 # The more standards-conforming stlport4 library is
12592 # incompatible with the Cstd library. Avoid specifying
12593 # it if it's in CXXFLAGS. Ignore libCrun as
12594 # -library=stlport4 depends on it.
12595 case " $CXX $CXXFLAGS " in
12596 *" -library=stlport4 "*)
12597 solaris_use_stlport4=yes
12600 if test "$solaris_use_stlport4" != yes; then
12601 postdeps_CXX='-library=Cstd -library=Crun'
12608 case $cc_basename in
12610 # The more standards-conforming stlport4 library is
12611 # incompatible with the Cstd library. Avoid specifying
12612 # it if it's in CXXFLAGS. Ignore libCrun as
12613 # -library=stlport4 depends on it.
12614 case " $CXX $CXXFLAGS " in
12615 *" -library=stlport4 "*)
12616 solaris_use_stlport4=yes
12620 # Adding this requires a known-good setup of shared libraries for
12621 # Sun compiler versions before 5.6, else PIC objects from an old
12622 # archive will be linked into the output, leading to subtle bugs.
12623 if test "$solaris_use_stlport4" != yes; then
12624 postdeps_CXX='-library=Cstd -library=Crun'
12631 case " $postdeps_CXX " in
12632 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12635 lt_prog_compiler_wl_CXX=
12636 lt_prog_compiler_pic_CXX=
12637 lt_prog_compiler_static_CXX=
12639 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12642 # C++ specific cases for pic, static, wl, etc.
12643 if test "$GXX" = yes; then
12644 lt_prog_compiler_wl_CXX='-Wl,'
12645 lt_prog_compiler_static_CXX='-static'
12649 # All AIX code is PIC.
12650 if test "$host_cpu" = ia64; then
12651 # AIX 5 now supports IA64 processor
12652 lt_prog_compiler_static_CXX='-Bstatic'
12656 # FIXME: we need at least 68020 code to build shared libraries, but
12657 # adding the `-m68020' flag to GCC prevents building anything better,
12659 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12662 # PIC is the default for these OSes.
12664 mingw* | cygwin* | os2* | pw32*)
12665 # This hack is so that the source file can tell whether it is being
12666 # built for inclusion in a dll (and should export symbols for example).
12667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12668 # (--disable-auto-import) libraries
12669 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12671 darwin* | rhapsody*)
12672 # PIC is the default on this platform
12673 # Common symbols not allowed in MH_DYLIB files
12674 lt_prog_compiler_pic_CXX='-fno-common'
12677 # DJGPP does not support shared libraries at all
12678 lt_prog_compiler_pic_CXX=
12681 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12682 # Instead, we relocate shared libraries at runtime.
12685 if test -d /usr/nec; then
12686 lt_prog_compiler_pic_CXX=-Kconform_pic
12690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12691 # not for PA HP-UX.
12696 lt_prog_compiler_pic_CXX='-fPIC'
12701 lt_prog_compiler_pic_CXX='-fPIC'
12707 # All AIX code is PIC.
12708 if test "$host_cpu" = ia64; then
12709 # AIX 5 now supports IA64 processor
12710 lt_prog_compiler_static_CXX='-Bstatic'
12712 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12716 case $cc_basename in
12718 # Green Hills C++ Compiler
12719 # _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"
12724 # PIC is the default on this platform
12725 # Common symbols not allowed in MH_DYLIB files
12726 case $cc_basename in
12728 lt_prog_compiler_pic_CXX='-qnocommon'
12729 lt_prog_compiler_wl_CXX='-Wl,'
12734 case $cc_basename in
12736 lt_prog_compiler_pic_CXX='-KPIC'
12739 # Green Hills C++ Compiler
12740 lt_prog_compiler_pic_CXX='-pic'
12746 freebsd* | dragonfly*)
12747 # FreeBSD uses GNU C++
12749 hpux9* | hpux10* | hpux11*)
12750 case $cc_basename in
12752 lt_prog_compiler_wl_CXX='-Wl,'
12753 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12754 if test "$host_cpu" != ia64; then
12755 lt_prog_compiler_pic_CXX='+Z'
12759 lt_prog_compiler_wl_CXX='-Wl,'
12760 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12766 lt_prog_compiler_pic_CXX='+Z'
12775 # This is c89, which is MS Visual C++ (no shared libs)
12776 # Anyone wants to do a port?
12778 irix5* | irix6* | nonstopux*)
12779 case $cc_basename in
12781 lt_prog_compiler_wl_CXX='-Wl,'
12782 lt_prog_compiler_static_CXX='-non_shared'
12783 # CC pic flag -KPIC is the default.
12789 linux* | k*bsd*-gnu)
12790 case $cc_basename in
12793 lt_prog_compiler_wl_CXX='--backend -Wl,'
12794 lt_prog_compiler_pic_CXX='-fPIC'
12798 lt_prog_compiler_wl_CXX='-Wl,'
12799 lt_prog_compiler_pic_CXX='-KPIC'
12800 lt_prog_compiler_static_CXX='-static'
12803 # Portland Group C++ compiler.
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-fpic'
12806 lt_prog_compiler_static_CXX='-Bstatic'
12810 # Make sure the PIC flag is empty. It appears that all Alpha
12811 # Linux and Compaq Tru64 Unix objects are PIC.
12812 lt_prog_compiler_pic_CXX=
12813 lt_prog_compiler_static_CXX='-non_shared'
12816 case `$CC -V 2>&1 | sed 5q` in
12819 lt_prog_compiler_pic_CXX='-KPIC'
12820 lt_prog_compiler_static_CXX='-Bstatic'
12821 lt_prog_compiler_wl_CXX='-Qoption ld '
12832 case $cc_basename in
12834 lt_prog_compiler_pic_CXX='-W c,exportall'
12840 netbsd* | netbsdelf*-gnu)
12842 osf3* | osf4* | osf5*)
12843 case $cc_basename in
12845 lt_prog_compiler_wl_CXX='--backend -Wl,'
12848 # Rational C++ 2.4.1
12849 lt_prog_compiler_pic_CXX='-pic'
12852 # Digital/Compaq C++
12853 lt_prog_compiler_wl_CXX='-Wl,'
12854 # Make sure the PIC flag is empty. It appears that all Alpha
12855 # Linux and Compaq Tru64 Unix objects are PIC.
12856 lt_prog_compiler_pic_CXX=
12857 lt_prog_compiler_static_CXX='-non_shared'
12866 case $cc_basename in
12868 # Sun C++ 4.2, 5.x and Centerline C++
12869 lt_prog_compiler_pic_CXX='-KPIC'
12870 lt_prog_compiler_static_CXX='-Bstatic'
12871 lt_prog_compiler_wl_CXX='-Qoption ld '
12874 # Green Hills C++ Compiler
12875 lt_prog_compiler_pic_CXX='-PIC'
12882 case $cc_basename in
12885 lt_prog_compiler_pic_CXX='-pic'
12886 lt_prog_compiler_static_CXX='-Bstatic'
12890 lt_prog_compiler_pic_CXX='-pic'
12897 case $cc_basename in
12899 # NonStop-UX NCC 3.20
12900 lt_prog_compiler_pic_CXX='-KPIC'
12906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12907 case $cc_basename in
12909 lt_prog_compiler_wl_CXX='-Wl,'
12910 lt_prog_compiler_pic_CXX='-KPIC'
12911 lt_prog_compiler_static_CXX='-Bstatic'
12918 lt_prog_compiler_can_build_shared_CXX=no
12923 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12924 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12927 # Check to make sure the PIC flag actually works.
12929 if test -n "$lt_prog_compiler_pic_CXX"; then
12931 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12932 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12933 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 lt_cv_prog_compiler_pic_works_CXX=no
12937 ac_outfile=conftest.$ac_objext
12938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12939 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12940 # Insert the option either (1) after the last *FLAGS variable, or
12941 # (2) before a word containing "conftest.", or (3) at the end.
12942 # Note that $ac_compile itself does not contain backslashes and begins
12943 # with a dollar sign (not a hyphen), so the echo should work correctly.
12944 # The option is referenced via a variable to avoid confusing sed.
12945 lt_compile=`echo "$ac_compile" | $SED \
12946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12948 -e 's:$: $lt_compiler_flag:'`
12949 (eval echo "\"\$as_me:12949: $lt_compile\"" >&5)
12950 (eval "$lt_compile" 2>conftest.err)
12952 cat conftest.err >&5
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 if (exit $ac_status) && test -s "$ac_outfile"; then
12955 # The compiler can only warn and ignore the option if not recognized
12956 # So say no if there are warnings other than the usual output.
12957 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12960 lt_cv_prog_compiler_pic_works_CXX=yes
12966 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12967 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12969 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12970 case $lt_prog_compiler_pic_CXX in
12972 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12975 lt_prog_compiler_pic_CXX=
12976 lt_prog_compiler_can_build_shared_CXX=no
12981 # For platforms which do not support PIC, -DPIC is meaningless:
12983 lt_prog_compiler_pic_CXX=
12986 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12991 # Check to make sure the static flag actually works.
12993 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12994 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12995 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12996 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12999 lt_cv_prog_compiler_static_works_CXX=no
13000 save_LDFLAGS="$LDFLAGS"
13001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13004 # The linker can only warn and ignore the option if not recognized
13005 # So say no if there are warnings
13006 if test -s conftest.err; then
13007 # Append any errors to the config.log.
13008 cat conftest.err 1>&5
13009 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13011 if diff conftest.exp conftest.er2 >/dev/null; then
13012 lt_cv_prog_compiler_static_works_CXX=yes
13015 lt_cv_prog_compiler_static_works_CXX=yes
13019 LDFLAGS="$save_LDFLAGS"
13022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13023 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13025 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13028 lt_prog_compiler_static_CXX=
13032 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 lt_cv_prog_compiler_c_o_CXX=no
13038 $rm -r conftest 2>/dev/null
13042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13044 lt_compiler_flag="-o out/conftest2.$ac_objext"
13045 # Insert the option either (1) after the last *FLAGS variable, or
13046 # (2) before a word containing "conftest.", or (3) at the end.
13047 # Note that $ac_compile itself does not contain backslashes and begins
13048 # with a dollar sign (not a hyphen), so the echo should work correctly.
13049 lt_compile=`echo "$ac_compile" | $SED \
13050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13052 -e 's:$: $lt_compiler_flag:'`
13053 (eval echo "\"\$as_me:13053: $lt_compile\"" >&5)
13054 (eval "$lt_compile" 2>out/conftest.err)
13056 cat out/conftest.err >&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13060 # The compiler can only warn and ignore the option if not recognized
13061 # So say no if there are warnings
13062 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13065 lt_cv_prog_compiler_c_o_CXX=yes
13070 # SGI C++ compiler will create directory out/ii_files/ for
13071 # template instantiation
13072 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13073 $rm out/* && rmdir out
13079 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13080 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13083 hard_links="nottested"
13084 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13085 # do not overwrite the value of need_locks provided by the user
13086 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13092 ln conftest.a conftest.b 2>&5 || hard_links=no
13093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13094 { echo "$as_me:$LINENO: result: $hard_links" >&5
13095 echo "${ECHO_T}$hard_links" >&6; }
13096 if test "$hard_links" = no; then
13097 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13105 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13106 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13111 # If we're using GNU nm, then we don't want the "-C" option.
13112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13113 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13114 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'
13116 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'
13120 export_symbols_cmds_CXX="$ltdll_cmds"
13123 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'
13125 linux* | k*bsd*-gnu)
13126 link_all_deplibs_CXX=no
13129 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13132 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13134 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13135 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13136 test "$ld_shlibs_CXX" = no && can_build_shared=no
13139 # Do we need to explicitly link libc?
13141 case "x$archive_cmds_need_lc_CXX" in
13143 # Assume -lc should be added
13144 archive_cmds_need_lc_CXX=yes
13146 if test "$enable_shared" = yes && test "$GCC" = yes; then
13147 case $archive_cmds_CXX in
13149 # FIXME: we may have to deal with multi-command sequences.
13152 # Test whether the compiler implicitly links with -lc since on some
13153 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13154 # to ld, don't add -lc before -lgcc.
13155 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13156 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } 2>conftest.err; then
13167 libobjs=conftest.$ac_objext
13169 wl=$lt_prog_compiler_wl_CXX
13170 pic_flag=$lt_prog_compiler_pic_CXX
13176 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13177 allow_undefined_flag_CXX=
13178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13179 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }
13184 archive_cmds_need_lc_CXX=no
13186 archive_cmds_need_lc_CXX=yes
13188 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13190 cat conftest.err 1>&5
13193 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13194 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13201 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13202 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13203 library_names_spec=
13204 libname_spec='lib$name'
13208 postuninstall_cmds=
13212 shlibpath_overrides_runpath=unknown
13214 dynamic_linker="$host_os ld.so"
13215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13217 need_lib_prefix=unknown
13218 hardcode_into_libs=no
13220 # when you set need_version to no, make sure it does not cause -set_version
13221 # flags to be left without arguments
13222 need_version=unknown
13227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13228 shlibpath_var=LIBPATH
13230 # AIX 3 has no versioning support, so we append a major version to the name.
13231 soname_spec='${libname}${release}${shared_ext}$major'
13238 hardcode_into_libs=yes
13239 if test "$host_cpu" = ia64; then
13240 # AIX 5 supports IA64
13241 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13242 shlibpath_var=LD_LIBRARY_PATH
13244 # With GCC up to 2.95.x, collect2 would create an import file
13245 # for dependence libraries. The import file would start with
13246 # the line `#! .'. This would cause the generated library to
13247 # depend on `.', always an invalid library. This was fixed in
13248 # development snapshots of GCC prior to 3.0.
13250 aix4 | aix4.[01] | aix4.[01].*)
13251 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13253 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13256 can_build_shared=no
13260 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13261 # soname into executable. Probably we can add versioning support to
13262 # collect2, so additional links can be useful in future.
13263 if test "$aix_use_runtimelinking" = yes; then
13264 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13265 # instead of lib<name>.a to let people know that these are not
13266 # typical AIX shared libraries.
13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13269 # We preserve .a as extension for shared libraries through AIX4.2
13270 # and later when we are not doing run time linking.
13271 library_names_spec='${libname}${release}.a $libname.a'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13274 shlibpath_var=LIBPATH
13279 library_names_spec='$libname.ixlibrary $libname.a'
13280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13281 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'
13285 library_names_spec='${libname}${shared_ext}'
13286 dynamic_linker="$host_os ld.so"
13287 shlibpath_var=LIBRARY_PATH
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13298 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13299 # the default ld.so.conf also contains /usr/contrib/lib and
13300 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13301 # libtool to hard-code these into programs
13304 cygwin* | mingw* | pw32*)
13305 version_type=windows
13310 case $GCC,$host_os in
13311 yes,cygwin* | yes,mingw* | yes,pw32*)
13312 library_names_spec='$libname.dll.a'
13313 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13314 postinstall_cmds='base_file=`basename \${file}`~
13315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13316 dldir=$destdir/`dirname \$dlpath`~
13317 test -d \$dldir || mkdir -p \$dldir~
13318 $install_prog $dir/$dlname \$dldir/$dlname~
13319 chmod a+x \$dldir/$dlname'
13320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13321 dlpath=$dir/\$dldll~
13323 shlibpath_overrides_runpath=yes
13327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13328 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13329 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13332 # MinGW DLLs use traditional 'lib' prefix
13333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13335 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13336 # It is most probably a Windows format PATH printed by
13337 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13338 # path with ; separators, and with drive letters. We can handle the
13339 # drive letters (cygwin fileutils understands them), so leave them,
13340 # especially as we might pass files found there to a mingw objdump,
13341 # which wouldn't understand a cygwinified path. Ahh.
13342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13344 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13348 # pw32 DLLs use 'pw' prefix rather than 'lib'
13349 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13358 dynamic_linker='Win32 ld.exe'
13359 # FIXME: first we should search . and the directory the executable is in
13363 darwin* | rhapsody*)
13364 dynamic_linker="$host_os dyld"
13365 version_type=darwin
13368 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13369 soname_spec='${libname}${release}${major}$shared_ext'
13370 shlibpath_overrides_runpath=yes
13371 shlibpath_var=DYLD_LIBRARY_PATH
13372 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13374 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 shlibpath_var=LD_LIBRARY_PATH
13390 freebsd* | dragonfly*)
13391 # DragonFly does not have aout. When/if they implement a new
13392 # versioning mechanism, adjust this.
13393 if test -x /usr/bin/objformat; then
13394 objformat=`/usr/bin/objformat`
13397 freebsd[123]*) objformat=aout ;;
13398 *) objformat=elf ;;
13401 version_type=freebsd-$objformat
13402 case $version_type in
13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13413 shlibpath_var=LD_LIBRARY_PATH
13416 shlibpath_overrides_runpath=yes
13418 freebsd3.[01]* | freebsdelf3.[01]*)
13419 shlibpath_overrides_runpath=yes
13420 hardcode_into_libs=yes
13422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13424 shlibpath_overrides_runpath=no
13425 hardcode_into_libs=yes
13427 *) # from 4.6 on, and DragonFly
13428 shlibpath_overrides_runpath=yes
13429 hardcode_into_libs=yes
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439 soname_spec='${libname}${release}${shared_ext}$major'
13440 shlibpath_var=LD_LIBRARY_PATH
13441 hardcode_into_libs=yes
13444 hpux9* | hpux10* | hpux11*)
13445 # Give a soname corresponding to the major version so that dld.sl refuses to
13446 # link against other versions.
13453 hardcode_into_libs=yes
13454 dynamic_linker="$host_os dld.so"
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458 soname_spec='${libname}${release}${shared_ext}$major'
13459 if test "X$HPUX_IA64_MODE" = X32; then
13460 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13464 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13468 hardcode_into_libs=yes
13469 dynamic_linker="$host_os dld.sl"
13470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473 soname_spec='${libname}${release}${shared_ext}$major'
13474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13479 dynamic_linker="$host_os dld.sl"
13480 shlibpath_var=SHLIB_PATH
13481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483 soname_spec='${libname}${release}${shared_ext}$major'
13486 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487 postinstall_cmds='chmod 555 $lib'
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13495 soname_spec='${libname}${release}${shared_ext}$major'
13496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13497 shlibpath_var=LD_LIBRARY_PATH
13498 shlibpath_overrides_runpath=no
13499 hardcode_into_libs=yes
13502 irix5* | irix6* | nonstopux*)
13504 nonstopux*) version_type=nonstopux ;;
13506 if test "$lt_cv_prog_gnu_ld" = yes; then
13514 soname_spec='${libname}${release}${shared_ext}$major'
13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13517 irix5* | nonstopux*)
13518 libsuff= shlibsuff=
13521 case $LD in # libtool.m4 will add one of these switches to LD
13522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13523 libsuff= shlibsuff= libmagic=32-bit;;
13524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13525 libsuff=32 shlibsuff=N32 libmagic=N32;;
13526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13528 *) libsuff= shlibsuff= libmagic=never-match;;
13532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13533 shlibpath_overrides_runpath=no
13534 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13535 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13536 hardcode_into_libs=yes
13539 # No shared lib support for Linux oldld, aout, or coff.
13540 linux*oldld* | linux*aout* | linux*coff*)
13544 # This must be Linux ELF.
13545 linux* | k*bsd*-gnu)
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13550 soname_spec='${libname}${release}${shared_ext}$major'
13551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13552 shlibpath_var=LD_LIBRARY_PATH
13553 shlibpath_overrides_runpath=no
13554 # This implies no fast_install, which is unacceptable.
13555 # Some rework will be needed to allow for fast_install
13556 # before this can be enabled.
13557 hardcode_into_libs=yes
13559 # Append ld.so.conf contents to the search path
13560 if test -f /etc/ld.so.conf; then
13561 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' ' '`
13562 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13565 # We used to test for /lib/ld.so.1 and disable shared libraries on
13566 # powerpc, because MkLinux only supported shared libraries with the
13567 # GNU dynamic linker. Since this was broken with cross compilers,
13568 # most powerpc-linux boxes support dynamic linking these days and
13569 # people can always --disable-shared, the test was removed, and we
13570 # assume the GNU/Linux dynamic linker is in use.
13571 dynamic_linker='GNU/Linux ld.so'
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 shlibpath_overrides_runpath=no
13582 hardcode_into_libs=yes
13583 dynamic_linker='NetBSD ld.elf_so'
13590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13593 dynamic_linker='NetBSD (a.out) ld.so'
13595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 dynamic_linker='NetBSD ld.elf_so'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 shlibpath_overrides_runpath=yes
13601 hardcode_into_libs=yes
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 shlibpath_var=LD_LIBRARY_PATH
13608 shlibpath_overrides_runpath=yes
13615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616 soname_spec='${libname}${release}${shared_ext}$major'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 shlibpath_overrides_runpath=yes
13623 sys_lib_dlsearch_path_spec="/usr/lib"
13625 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13627 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13628 *) need_version=no ;;
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13632 shlibpath_var=LD_LIBRARY_PATH
13633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13635 openbsd2.[89] | openbsd2.[89].*)
13636 shlibpath_overrides_runpath=no
13639 shlibpath_overrides_runpath=yes
13643 shlibpath_overrides_runpath=yes
13648 libname_spec='$name'
13651 library_names_spec='$libname${shared_ext} $libname.a'
13652 dynamic_linker='OS/2 ld.exe'
13653 shlibpath_var=LIBPATH
13656 osf3* | osf4* | osf5*)
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 shlibpath_var=LD_LIBRARY_PATH
13663 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13664 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676 soname_spec='${libname}${release}${shared_ext}$major'
13677 shlibpath_var=LD_LIBRARY_PATH
13678 shlibpath_overrides_runpath=yes
13679 hardcode_into_libs=yes
13680 # ldd complains unless libraries are executable
13681 postinstall_cmds='chmod +x $lib'
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13688 shlibpath_var=LD_LIBRARY_PATH
13689 shlibpath_overrides_runpath=yes
13690 if test "$with_gnu_ld" = yes; then
13698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13699 soname_spec='${libname}${release}${shared_ext}$major'
13700 shlibpath_var=LD_LIBRARY_PATH
13701 case $host_vendor in
13703 shlibpath_overrides_runpath=no
13705 export_dynamic_flag_spec='${wl}-Blargedynsym'
13706 runpath_var=LD_RUN_PATH
13714 shlibpath_overrides_runpath=no
13715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13721 if test -d /usr/nec ;then
13723 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13724 soname_spec='$libname${shared_ext}.$major'
13725 shlibpath_var=LD_LIBRARY_PATH
13729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13730 version_type=freebsd-elf
13733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13734 soname_spec='${libname}${release}${shared_ext}$major'
13735 shlibpath_var=LD_LIBRARY_PATH
13736 hardcode_into_libs=yes
13737 if test "$with_gnu_ld" = yes; then
13738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13739 shlibpath_overrides_runpath=no
13741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13742 shlibpath_overrides_runpath=yes
13745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13749 sys_lib_dlsearch_path_spec='/usr/lib'
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755 soname_spec='${libname}${release}${shared_ext}$major'
13756 shlibpath_var=LD_LIBRARY_PATH
13763 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13764 echo "${ECHO_T}$dynamic_linker" >&6; }
13765 test "$dynamic_linker" = no && can_build_shared=no
13767 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13773 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13774 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13780 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13782 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13783 if test "$GCC" = yes; then
13784 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13787 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13788 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13789 hardcode_action_CXX=
13790 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13791 test -n "$runpath_var_CXX" || \
13792 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13794 # We can hardcode non-existant directories.
13795 if test "$hardcode_direct_CXX" != no &&
13796 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13797 # have to relink, otherwise we might link with an installed library
13798 # when we should be linking with a yet-to-be-installed one
13799 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13800 test "$hardcode_minus_L_CXX" != no; then
13801 # Linking always hardcodes the temporary library directory.
13802 hardcode_action_CXX=relink
13804 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13805 hardcode_action_CXX=immediate
13808 # We cannot hardcode anything, or else we can only hardcode existing
13810 hardcode_action_CXX=unsupported
13812 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13813 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13815 if test "$hardcode_action_CXX" = relink; then
13816 # Fast installation is not supported
13817 enable_fast_install=no
13818 elif test "$shlibpath_overrides_runpath" = yes ||
13819 test "$enable_shared" = no; then
13820 # Fast installation is not necessary
13821 enable_fast_install=needless
13825 # The else clause should only fire when bootstrapping the
13826 # libtool distribution, otherwise you forgot to ship ltmain.sh
13827 # with your package, and you will get complaints that there are
13828 # no rules to generate ltmain.sh.
13829 if test -f "$ltmain"; then
13830 # See if we are running on zsh, and set the options which allow our commands through
13831 # without removal of \ escapes.
13832 if test -n "${ZSH_VERSION+set}" ; then
13833 setopt NO_GLOB_SUBST
13835 # Now quote all the things that may contain metacharacters while being
13836 # careful not to overquote the AC_SUBSTed values. We take copies of the
13837 # variables and quote the copies for generation of the libtool script.
13838 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13840 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13841 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13842 deplibs_check_method reload_flag reload_cmds need_locks \
13843 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13844 lt_cv_sys_global_symbol_to_c_name_address \
13845 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13846 old_postinstall_cmds old_postuninstall_cmds \
13850 lt_prog_compiler_wl_CXX \
13851 lt_prog_compiler_pic_CXX \
13852 lt_prog_compiler_static_CXX \
13853 lt_prog_compiler_no_builtin_flag_CXX \
13854 export_dynamic_flag_spec_CXX \
13855 thread_safe_flag_spec_CXX \
13856 whole_archive_flag_spec_CXX \
13857 enable_shared_with_static_runtimes_CXX \
13858 old_archive_cmds_CXX \
13859 old_archive_from_new_cmds_CXX \
13860 predep_objects_CXX \
13861 postdep_objects_CXX \
13864 compiler_lib_search_path_CXX \
13865 compiler_lib_search_dirs_CXX \
13867 archive_expsym_cmds_CXX \
13868 postinstall_cmds_CXX \
13869 postuninstall_cmds_CXX \
13870 old_archive_from_expsyms_cmds_CXX \
13871 allow_undefined_flag_CXX \
13872 no_undefined_flag_CXX \
13873 export_symbols_cmds_CXX \
13874 hardcode_libdir_flag_spec_CXX \
13875 hardcode_libdir_flag_spec_ld_CXX \
13876 hardcode_libdir_separator_CXX \
13877 hardcode_automatic_CXX \
13879 module_expsym_cmds_CXX \
13880 lt_cv_prog_compiler_c_o_CXX \
13881 fix_srcfile_path_CXX \
13882 exclude_expsyms_CXX \
13883 include_expsyms_CXX; do
13886 old_archive_cmds_CXX | \
13887 old_archive_from_new_cmds_CXX | \
13888 archive_cmds_CXX | \
13889 archive_expsym_cmds_CXX | \
13890 module_cmds_CXX | \
13891 module_expsym_cmds_CXX | \
13892 old_archive_from_expsyms_cmds_CXX | \
13893 export_symbols_cmds_CXX | \
13894 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13895 postinstall_cmds | postuninstall_cmds | \
13896 old_postinstall_cmds | old_postuninstall_cmds | \
13897 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13898 # Double-quote double-evaled strings.
13899 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13908 *'\$0 --fallback-echo"')
13909 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13915 cat <<__EOF__ >> "$cfgfile"
13916 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13918 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13920 # Shell to use when invoking shell scripts.
13923 # Whether or not to build shared libraries.
13924 build_libtool_libs=$enable_shared
13926 # Whether or not to build static libraries.
13927 build_old_libs=$enable_static
13929 # Whether or not to add -lc for building shared libraries.
13930 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13932 # Whether or not to disallow shared libs when runtime libs are static
13933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13935 # Whether or not to optimize for fast installation.
13936 fast_install=$enable_fast_install
13939 host_alias=$host_alias
13943 # The build system.
13944 build_alias=$build_alias
13948 # An echo program that does not interpret backslashes.
13953 AR_FLAGS=$lt_AR_FLAGS
13958 # LTCC compiler flags.
13959 LTCFLAGS=$lt_LTCFLAGS
13961 # A language-specific compiler.
13962 CC=$lt_compiler_CXX
13964 # Is the compiler the GNU C compiler?
13970 # The linker used to build libraries.
13973 # Whether we need hard or soft links.
13976 # A BSD-compatible nm program.
13979 # A symbol stripping program
13982 # Used to examine libraries when file_magic_cmd begins "file"
13983 MAGIC_CMD=$MAGIC_CMD
13985 # Used on cygwin: DLL creation program.
13988 # Used on cygwin: object dumper.
13991 # Used on cygwin: assembler.
13994 # The name of the directory that contains temporary libtool files.
13997 # How to create reloadable object files.
13998 reload_flag=$lt_reload_flag
13999 reload_cmds=$lt_reload_cmds
14001 # How to pass a linker flag through the compiler.
14002 wl=$lt_lt_prog_compiler_wl_CXX
14004 # Object file suffix (normally "o").
14005 objext="$ac_objext"
14007 # Old archive suffix (normally "a").
14010 # Shared library suffix (normally ".so").
14011 shrext_cmds='$shrext_cmds'
14013 # Executable file suffix (normally "").
14016 # Additional compiler flags for building library objects.
14017 pic_flag=$lt_lt_prog_compiler_pic_CXX
14020 # What is the maximum length of a command?
14021 max_cmd_len=$lt_cv_sys_max_cmd_len
14023 # Does compiler simultaneously support -c and -o options?
14024 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14026 # Must we lock files when doing compilation?
14027 need_locks=$lt_need_locks
14029 # Do we need the lib prefix for modules?
14030 need_lib_prefix=$need_lib_prefix
14032 # Do we need a version for libraries?
14033 need_version=$need_version
14035 # Whether dlopen is supported.
14036 dlopen_support=$enable_dlopen
14038 # Whether dlopen of programs is supported.
14039 dlopen_self=$enable_dlopen_self
14041 # Whether dlopen of statically linked programs is supported.
14042 dlopen_self_static=$enable_dlopen_self_static
14044 # Compiler flag to prevent dynamic linking.
14045 link_static_flag=$lt_lt_prog_compiler_static_CXX
14047 # Compiler flag to turn off builtin functions.
14048 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14050 # Compiler flag to allow reflexive dlopens.
14051 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14053 # Compiler flag to generate shared objects directly from archives.
14054 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14056 # Compiler flag to generate thread-safe objects.
14057 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14059 # Library versioning type.
14060 version_type=$version_type
14062 # Format of library name prefix.
14063 libname_spec=$lt_libname_spec
14065 # List of archive names. First name is the real one, the rest are links.
14066 # The last name is the one that the linker finds with -lNAME.
14067 library_names_spec=$lt_library_names_spec
14069 # The coded name of the library, if different from the real name.
14070 soname_spec=$lt_soname_spec
14072 # Commands used to build and install an old-style archive.
14074 old_archive_cmds=$lt_old_archive_cmds_CXX
14075 old_postinstall_cmds=$lt_old_postinstall_cmds
14076 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14078 # Create an old-style archive from a shared archive.
14079 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14081 # Create a temporary old-style archive to link instead of a shared archive.
14082 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14084 # Commands used to build and install a shared archive.
14085 archive_cmds=$lt_archive_cmds_CXX
14086 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14087 postinstall_cmds=$lt_postinstall_cmds
14088 postuninstall_cmds=$lt_postuninstall_cmds
14090 # Commands used to build a loadable module (assumed same as above if empty)
14091 module_cmds=$lt_module_cmds_CXX
14092 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14094 # Commands to strip libraries.
14095 old_striplib=$lt_old_striplib
14096 striplib=$lt_striplib
14098 # Dependencies to place before the objects being linked to create a
14100 predep_objects=$lt_predep_objects_CXX
14102 # Dependencies to place after the objects being linked to create a
14104 postdep_objects=$lt_postdep_objects_CXX
14106 # Dependencies to place before the objects being linked to create a
14108 predeps=$lt_predeps_CXX
14110 # Dependencies to place after the objects being linked to create a
14112 postdeps=$lt_postdeps_CXX
14114 # The directories searched by this compiler when creating a shared
14116 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14118 # The library search path used internally by the compiler when linking
14119 # a shared library.
14120 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14122 # Method to check whether dependent libraries are shared objects.
14123 deplibs_check_method=$lt_deplibs_check_method
14125 # Command to use when deplibs_check_method == file_magic.
14126 file_magic_cmd=$lt_file_magic_cmd
14128 # Flag that allows shared libraries with undefined symbols to be built.
14129 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14131 # Flag that forces no undefined symbols.
14132 no_undefined_flag=$lt_no_undefined_flag_CXX
14134 # Commands used to finish a libtool library installation in a directory.
14135 finish_cmds=$lt_finish_cmds
14137 # Same as above, but a single script fragment to be evaled but not shown.
14138 finish_eval=$lt_finish_eval
14140 # Take the output of nm and produce a listing of raw symbols and C names.
14141 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14143 # Transform the output of nm in a proper C declaration
14144 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14146 # Transform the output of nm in a C name address pair
14147 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14149 # This is the shared library runtime path variable.
14150 runpath_var=$runpath_var
14152 # This is the shared library path variable.
14153 shlibpath_var=$shlibpath_var
14155 # Is shlibpath searched before the hard-coded library search path?
14156 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14158 # How to hardcode a shared library path into an executable.
14159 hardcode_action=$hardcode_action_CXX
14161 # Whether we should hardcode library paths into libraries.
14162 hardcode_into_libs=$hardcode_into_libs
14164 # Flag to hardcode \$libdir into a binary during linking.
14165 # This must work even if \$libdir does not exist.
14166 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14168 # If ld is used when linking, flag to hardcode \$libdir into
14169 # a binary during linking. This must work even if \$libdir does
14171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14173 # Whether we need a single -rpath flag with a separated argument.
14174 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14176 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14177 # resulting binary.
14178 hardcode_direct=$hardcode_direct_CXX
14180 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14181 # resulting binary.
14182 hardcode_minus_L=$hardcode_minus_L_CXX
14184 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14185 # the resulting binary.
14186 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14188 # Set to yes if building a shared library automatically hardcodes DIR into the library
14189 # and all subsequent libraries and executables linked against it.
14190 hardcode_automatic=$hardcode_automatic_CXX
14192 # Variables whose values should be saved in libtool wrapper scripts and
14193 # restored at relink time.
14194 variables_saved_for_relink="$variables_saved_for_relink"
14196 # Whether libtool must link a program against all its dependency libraries.
14197 link_all_deplibs=$link_all_deplibs_CXX
14199 # Compile-time system search path for libraries
14200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14202 # Run-time system search path for libraries
14203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14205 # Fix the shell variable \$srcfile for the compiler.
14206 fix_srcfile_path=$lt_fix_srcfile_path
14208 # Set to yes if exported symbols are required.
14209 always_export_symbols=$always_export_symbols_CXX
14211 # The commands to list exported symbols.
14212 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14214 # The commands to extract the exported symbol list from a shared archive.
14215 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14217 # Symbols that should not be listed in the preloaded symbols.
14218 exclude_expsyms=$lt_exclude_expsyms_CXX
14220 # Symbols that must always be exported.
14221 include_expsyms=$lt_include_expsyms_CXX
14223 # ### END LIBTOOL TAG CONFIG: $tagname
14229 # If there is no Makefile yet, we rely on a make rule to execute
14230 # `config.status --recheck' to rerun these tests and create the
14231 # libtool script then.
14232 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14233 if test -f "$ltmain_in"; then
14234 test -f Makefile && make "$ltmain"
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249 with_gnu_ldcxx=$with_gnu_ld
14250 with_gnu_ld=$lt_save_with_gnu_ld
14251 lt_cv_path_LDCXX=$lt_cv_path_LD
14252 lt_cv_path_LD=$lt_save_path_LD
14253 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14254 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14262 if test -n "$F77" && test "X$F77" != "Xno"; then
14265 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14266 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14270 archive_cmds_need_lc_F77=no
14271 allow_undefined_flag_F77=
14272 always_export_symbols_F77=no
14273 archive_expsym_cmds_F77=
14274 export_dynamic_flag_spec_F77=
14275 hardcode_direct_F77=no
14276 hardcode_libdir_flag_spec_F77=
14277 hardcode_libdir_flag_spec_ld_F77=
14278 hardcode_libdir_separator_F77=
14279 hardcode_minus_L_F77=no
14280 hardcode_automatic_F77=no
14282 module_expsym_cmds_F77=
14283 link_all_deplibs_F77=unknown
14284 old_archive_cmds_F77=$old_archive_cmds
14285 no_undefined_flag_F77=
14286 whole_archive_flag_spec_F77=
14287 enable_shared_with_static_runtimes_F77=no
14289 # Source file extension for f77 test sources.
14292 # Object file extension for compiled f77 test sources.
14296 # Code to be used in simple compile tests
14297 lt_simple_compile_test_code="\
14303 # Code to be used in simple link tests
14304 lt_simple_link_test_code="\
14309 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14311 # If no C compiler was specified, use CC.
14314 # If no C compiler flags were specified, use CFLAGS.
14315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14317 # Allow CC to be a program name with arguments.
14321 # save warnings/boilerplate of simple test code
14322 ac_outfile=conftest.$ac_objext
14323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14325 _lt_compiler_boilerplate=`cat conftest.err`
14328 ac_outfile=conftest.$ac_objext
14329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14331 _lt_linker_boilerplate=`cat conftest.err`
14335 # Allow CC to be a program name with arguments.
14340 for cc_temp in $compiler""; do
14342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14351 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14352 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14353 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14354 echo "${ECHO_T}$can_build_shared" >&6; }
14356 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14357 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14358 test "$can_build_shared" = "no" && enable_shared=no
14360 # On AIX, shared libraries and static libraries use the same namespace, and
14361 # are all built from PIC.
14364 test "$enable_shared" = yes && enable_static=no
14365 if test -n "$RANLIB"; then
14366 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14367 postinstall_cmds='$RANLIB $lib'
14371 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14372 test "$enable_shared" = yes && enable_static=no
14376 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14377 echo "${ECHO_T}$enable_shared" >&6; }
14379 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14380 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14381 # Make sure either enable_shared or enable_static is yes.
14382 test "$enable_shared" = yes || enable_static=yes
14383 { echo "$as_me:$LINENO: result: $enable_static" >&5
14384 echo "${ECHO_T}$enable_static" >&6; }
14389 lt_prog_compiler_wl_F77=
14390 lt_prog_compiler_pic_F77=
14391 lt_prog_compiler_static_F77=
14393 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14394 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14396 if test "$GCC" = yes; then
14397 lt_prog_compiler_wl_F77='-Wl,'
14398 lt_prog_compiler_static_F77='-static'
14402 # All AIX code is PIC.
14403 if test "$host_cpu" = ia64; then
14404 # AIX 5 now supports IA64 processor
14405 lt_prog_compiler_static_F77='-Bstatic'
14410 # FIXME: we need at least 68020 code to build shared libraries, but
14411 # adding the `-m68020' flag to GCC prevents building anything better,
14413 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14417 # PIC is the default for these OSes.
14420 mingw* | cygwin* | pw32* | os2*)
14421 # This hack is so that the source file can tell whether it is being
14422 # built for inclusion in a dll (and should export symbols for example).
14423 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14424 # (--disable-auto-import) libraries
14425 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14428 darwin* | rhapsody*)
14429 # PIC is the default on this platform
14430 # Common symbols not allowed in MH_DYLIB files
14431 lt_prog_compiler_pic_F77='-fno-common'
14435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14436 # Instead, we relocate shared libraries at runtime.
14440 # Just because we use GCC doesn't mean we suddenly get shared libraries
14441 # on systems that don't support them.
14442 lt_prog_compiler_can_build_shared_F77=no
14447 if test -d /usr/nec; then
14448 lt_prog_compiler_pic_F77=-Kconform_pic
14453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454 # not for PA HP-UX.
14460 lt_prog_compiler_pic_F77='-fPIC'
14466 lt_prog_compiler_pic_F77='-fPIC'
14470 # PORTME Check for flag to pass linker flags through the system compiler.
14473 lt_prog_compiler_wl_F77='-Wl,'
14474 if test "$host_cpu" = ia64; then
14475 # AIX 5 now supports IA64 processor
14476 lt_prog_compiler_static_F77='-Bstatic'
14478 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14482 # PIC is the default on this platform
14483 # Common symbols not allowed in MH_DYLIB files
14484 case $cc_basename in
14486 lt_prog_compiler_pic_F77='-qnocommon'
14487 lt_prog_compiler_wl_F77='-Wl,'
14492 mingw* | cygwin* | pw32* | os2*)
14493 # This hack is so that the source file can tell whether it is being
14494 # built for inclusion in a dll (and should export symbols for example).
14495 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14498 hpux9* | hpux10* | hpux11*)
14499 lt_prog_compiler_wl_F77='-Wl,'
14500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501 # not for PA HP-UX.
14507 lt_prog_compiler_pic_F77='+Z'
14510 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14511 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14514 irix5* | irix6* | nonstopux*)
14515 lt_prog_compiler_wl_F77='-Wl,'
14516 # PIC (with -KPIC) is the default.
14517 lt_prog_compiler_static_F77='-non_shared'
14521 lt_prog_compiler_pic_F77='-KPIC'
14522 lt_prog_compiler_static_F77='-Bstatic'
14525 linux* | k*bsd*-gnu)
14526 case $cc_basename in
14528 lt_prog_compiler_wl_F77='-Wl,'
14529 lt_prog_compiler_pic_F77='-KPIC'
14530 lt_prog_compiler_static_F77='-static'
14532 pgcc* | pgf77* | pgf90* | pgf95*)
14533 # Portland Group compilers (*not* the Pentium gcc compiler,
14534 # which looks to be a dead project)
14535 lt_prog_compiler_wl_F77='-Wl,'
14536 lt_prog_compiler_pic_F77='-fpic'
14537 lt_prog_compiler_static_F77='-Bstatic'
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 # All Alpha code is PIC.
14542 lt_prog_compiler_static_F77='-non_shared'
14545 case `$CC -V 2>&1 | sed 5q` in
14548 lt_prog_compiler_pic_F77='-KPIC'
14549 lt_prog_compiler_static_F77='-Bstatic'
14550 lt_prog_compiler_wl_F77='-Wl,'
14553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14554 lt_prog_compiler_pic_F77='-KPIC'
14555 lt_prog_compiler_static_F77='-Bstatic'
14556 lt_prog_compiler_wl_F77=''
14563 osf3* | osf4* | osf5*)
14564 lt_prog_compiler_wl_F77='-Wl,'
14565 # All OSF/1 code is PIC.
14566 lt_prog_compiler_static_F77='-non_shared'
14570 lt_prog_compiler_static_F77='-non_shared'
14574 lt_prog_compiler_pic_F77='-KPIC'
14575 lt_prog_compiler_static_F77='-Bstatic'
14576 case $cc_basename in
14577 f77* | f90* | f95*)
14578 lt_prog_compiler_wl_F77='-Qoption ld ';;
14580 lt_prog_compiler_wl_F77='-Wl,';;
14585 lt_prog_compiler_wl_F77='-Qoption ld '
14586 lt_prog_compiler_pic_F77='-PIC'
14587 lt_prog_compiler_static_F77='-Bstatic'
14590 sysv4 | sysv4.2uw2* | sysv4.3*)
14591 lt_prog_compiler_wl_F77='-Wl,'
14592 lt_prog_compiler_pic_F77='-KPIC'
14593 lt_prog_compiler_static_F77='-Bstatic'
14597 if test -d /usr/nec ;then
14598 lt_prog_compiler_pic_F77='-Kconform_pic'
14599 lt_prog_compiler_static_F77='-Bstatic'
14603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14604 lt_prog_compiler_wl_F77='-Wl,'
14605 lt_prog_compiler_pic_F77='-KPIC'
14606 lt_prog_compiler_static_F77='-Bstatic'
14610 lt_prog_compiler_wl_F77='-Wl,'
14611 lt_prog_compiler_can_build_shared_F77=no
14615 lt_prog_compiler_pic_F77='-pic'
14616 lt_prog_compiler_static_F77='-Bstatic'
14620 lt_prog_compiler_can_build_shared_F77=no
14625 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14626 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14629 # Check to make sure the PIC flag actually works.
14631 if test -n "$lt_prog_compiler_pic_F77"; then
14633 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14634 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14635 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14636 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 lt_cv_prog_compiler_pic_works_F77=no
14639 ac_outfile=conftest.$ac_objext
14640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14641 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14642 # Insert the option either (1) after the last *FLAGS variable, or
14643 # (2) before a word containing "conftest.", or (3) at the end.
14644 # Note that $ac_compile itself does not contain backslashes and begins
14645 # with a dollar sign (not a hyphen), so the echo should work correctly.
14646 # The option is referenced via a variable to avoid confusing sed.
14647 lt_compile=`echo "$ac_compile" | $SED \
14648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14650 -e 's:$: $lt_compiler_flag:'`
14651 (eval echo "\"\$as_me:14651: $lt_compile\"" >&5)
14652 (eval "$lt_compile" 2>conftest.err)
14654 cat conftest.err >&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 if (exit $ac_status) && test -s "$ac_outfile"; then
14657 # The compiler can only warn and ignore the option if not recognized
14658 # So say no if there are warnings other than the usual output.
14659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14662 lt_cv_prog_compiler_pic_works_F77=yes
14668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14669 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14671 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14672 case $lt_prog_compiler_pic_F77 in
14674 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14677 lt_prog_compiler_pic_F77=
14678 lt_prog_compiler_can_build_shared_F77=no
14683 # For platforms which do not support PIC, -DPIC is meaningless:
14685 lt_prog_compiler_pic_F77=
14688 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14693 # Check to make sure the static flag actually works.
14695 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14696 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14697 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14698 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 lt_cv_prog_compiler_static_works_F77=no
14702 save_LDFLAGS="$LDFLAGS"
14703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14704 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14706 # The linker can only warn and ignore the option if not recognized
14707 # So say no if there are warnings
14708 if test -s conftest.err; then
14709 # Append any errors to the config.log.
14710 cat conftest.err 1>&5
14711 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if diff conftest.exp conftest.er2 >/dev/null; then
14714 lt_cv_prog_compiler_static_works_F77=yes
14717 lt_cv_prog_compiler_static_works_F77=yes
14721 LDFLAGS="$save_LDFLAGS"
14724 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14725 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14727 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14730 lt_prog_compiler_static_F77=
14734 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14735 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14736 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 lt_cv_prog_compiler_c_o_F77=no
14740 $rm -r conftest 2>/dev/null
14744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14746 lt_compiler_flag="-o out/conftest2.$ac_objext"
14747 # Insert the option either (1) after the last *FLAGS variable, or
14748 # (2) before a word containing "conftest.", or (3) at the end.
14749 # Note that $ac_compile itself does not contain backslashes and begins
14750 # with a dollar sign (not a hyphen), so the echo should work correctly.
14751 lt_compile=`echo "$ac_compile" | $SED \
14752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754 -e 's:$: $lt_compiler_flag:'`
14755 (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756 (eval "$lt_compile" 2>out/conftest.err)
14758 cat out/conftest.err >&5
14759 echo "$as_me:14759: \$? = $ac_status" >&5
14760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14762 # The compiler can only warn and ignore the option if not recognized
14763 # So say no if there are warnings
14764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14767 lt_cv_prog_compiler_c_o_F77=yes
14772 # SGI C++ compiler will create directory out/ii_files/ for
14773 # template instantiation
14774 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14775 $rm out/* && rmdir out
14781 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14782 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14785 hard_links="nottested"
14786 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14787 # do not overwrite the value of need_locks provided by the user
14788 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14789 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14794 ln conftest.a conftest.b 2>&5 || hard_links=no
14795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14796 { echo "$as_me:$LINENO: result: $hard_links" >&5
14797 echo "${ECHO_T}$hard_links" >&6; }
14798 if test "$hard_links" = no; then
14799 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14800 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14807 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14811 allow_undefined_flag_F77=
14812 enable_shared_with_static_runtimes_F77=no
14814 archive_expsym_cmds_F77=
14815 old_archive_From_new_cmds_F77=
14816 old_archive_from_expsyms_cmds_F77=
14817 export_dynamic_flag_spec_F77=
14818 whole_archive_flag_spec_F77=
14819 thread_safe_flag_spec_F77=
14820 hardcode_libdir_flag_spec_F77=
14821 hardcode_libdir_flag_spec_ld_F77=
14822 hardcode_libdir_separator_F77=
14823 hardcode_direct_F77=no
14824 hardcode_minus_L_F77=no
14825 hardcode_shlibpath_var_F77=unsupported
14826 link_all_deplibs_F77=unknown
14827 hardcode_automatic_F77=no
14829 module_expsym_cmds_F77=
14830 always_export_symbols_F77=no
14831 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14832 # include_expsyms should be a list of space-separated symbols to be *always*
14833 # included in the symbol list
14834 include_expsyms_F77=
14835 # exclude_expsyms can be an extended regexp of symbols to exclude
14836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14838 # as well as any symbol that contains `d'.
14839 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14841 # platforms (ab)use it in PIC code, but their linkers get confused if
14842 # the symbol is explicitly referenced. Since portable code cannot
14843 # rely on this symbol name, it's probably fine to never include it in
14844 # preloaded symbol tables.
14845 # Exclude shared library initialization/finalization symbols.
14846 extract_expsyms_cmds=
14847 # Just being paranoid about ensuring that cc_basename is set.
14848 for cc_temp in $compiler""; do
14850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14859 cygwin* | mingw* | pw32*)
14860 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14861 # When not using gcc, we currently assume that we are using
14862 # Microsoft Visual C++.
14863 if test "$GCC" != yes; then
14868 # we just hope/assume this is gcc and not c89 (= MSVC++)
14877 if test "$with_gnu_ld" = yes; then
14878 # If archive_cmds runs LD, not CC, wlarc should be empty
14881 # Set some defaults for GNU ld with shared library support. These
14882 # are reset later if shared libraries are not supported. Putting them
14883 # here allows them to be overridden if necessary.
14884 runpath_var=LD_RUN_PATH
14885 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14886 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14887 # ancient GNU ld didn't support --whole-archive et. al.
14888 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14889 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14891 whole_archive_flag_spec_F77=
14893 supports_anon_versioning=no
14894 case `$LD -v 2>/dev/null` in
14895 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14896 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14897 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14898 *\ 2.11.*) ;; # other 2.11 versions
14899 *) supports_anon_versioning=yes ;;
14902 # See if GNU ld supports shared libraries.
14905 # On AIX/PPC, the GNU linker is very broken
14906 if test "$host_cpu" != ia64; then
14910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14911 *** to be unable to reliably create shared libraries on AIX.
14912 *** Therefore, libtool is disabling shared libraries support. If you
14913 *** really care for shared libraries, you may want to modify your PATH
14914 *** so that a non-GNU linker is found, and then restart.
14921 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)'
14922 hardcode_libdir_flag_spec_F77='-L$libdir'
14923 hardcode_minus_L_F77=yes
14925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14926 # that the semantics of dynamic libraries on AmigaOS, at least up
14927 # to version 4, is to share data among multiple programs linked
14928 # with the same dynamic library. Since this doesn't match the
14929 # behavior of shared libraries on other platforms, we can't use
14935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14936 allow_undefined_flag_F77=unsupported
14937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14938 # support --undefined. This deserves some investigation. FIXME
14939 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14945 cygwin* | mingw* | pw32*)
14946 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14947 # as there is no search path for DLLs.
14948 hardcode_libdir_flag_spec_F77='-L$libdir'
14949 allow_undefined_flag_F77=unsupported
14950 always_export_symbols_F77=no
14951 enable_shared_with_static_runtimes_F77=yes
14952 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14954 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14955 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14956 # If the export-symbols file already is a .def file (1st line
14957 # is EXPORTS), use it as is; otherwise, prepend...
14958 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14959 cp $export_symbols $output_objdir/$soname.def;
14961 echo EXPORTS > $output_objdir/$soname.def;
14962 cat $export_symbols >> $output_objdir/$soname.def;
14964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14971 hardcode_direct_F77=no
14972 hardcode_shlibpath_var_F77=no
14973 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14974 export_dynamic_flag_spec_F77='${wl}-E'
14975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14976 # Instead, shared libraries are loaded at an image base (0x10000000 by
14977 # default) and relocated if they conflict, which is a slow very memory
14978 # consuming and fragmenting process. To avoid this, we pick a random,
14979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14980 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14981 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'
14982 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'
14985 gnu* | linux* | k*bsd*-gnu)
14986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14988 case $cc_basename,$host_cpu in
14989 pgcc*) # Portland Group C compiler
14990 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'
14991 tmp_addflag=' $pic_flag'
14993 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
14996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14997 tmp_addflag=' -i_dynamic' ;;
14998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14999 tmp_addflag=' -i_dynamic -nofor_main' ;;
15000 ifc* | ifort*) # Intel Fortran compiler
15001 tmp_addflag=' -nofor_main' ;;
15003 case `$CC -V 2>&1 | sed 5q` in
15004 *Sun\ C*) # Sun C 5.9
15005 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'
15006 tmp_sharedflag='-G' ;;
15007 *Sun\ F*) # Sun Fortran 8.3
15008 tmp_sharedflag='-G' ;;
15010 tmp_sharedflag='-shared' ;;
15012 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15014 if test $supports_anon_versioning = yes; then
15015 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15017 $echo "local: *; };" >> $output_objdir/$libname.ver~
15018 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15020 link_all_deplibs_F77=no
15026 netbsd* | netbsdelf*-gnu)
15027 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15028 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15031 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15032 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15041 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15042 *** create shared libraries on Solaris systems. Therefore, libtool
15043 *** is disabling shared libraries support. We urge you to upgrade GNU
15044 *** binutils to release 2.9.1 or newer. Another option is to modify
15045 *** your PATH or compiler configuration so that the native linker is
15046 *** used, and then restart.
15049 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15058 case `$LD -v 2>&1` in
15059 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15063 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15064 *** reliably create shared libraries on SCO systems. Therefore, libtool
15065 *** is disabling shared libraries support. We urge you to upgrade GNU
15066 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15067 *** your PATH or compiler configuration so that the native linker is
15068 *** used, and then restart.
15073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15075 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15076 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15085 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15087 hardcode_direct_F77=yes
15088 hardcode_shlibpath_var_F77=no
15092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15093 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15101 if test "$ld_shlibs_F77" = no; then
15103 hardcode_libdir_flag_spec_F77=
15104 export_dynamic_flag_spec_F77=
15105 whole_archive_flag_spec_F77=
15108 # PORTME fill in a description of your system's linker (not GNU ld)
15111 allow_undefined_flag_F77=unsupported
15112 always_export_symbols_F77=yes
15113 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'
15114 # Note: this linker hardcodes the directories in LIBPATH if there
15115 # are no directories specified by -L.
15116 hardcode_minus_L_F77=yes
15117 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15118 # Neither direct hardcoding nor static linking is supported with a
15120 hardcode_direct_F77=unsupported
15125 if test "$host_cpu" = ia64; then
15126 # On IA64, the linker does run time linking by default, so we don't
15127 # have to do anything special.
15128 aix_use_runtimelinking=no
15129 exp_sym_flag='-Bexport'
15132 # If we're using GNU nm, then we don't want the "-C" option.
15133 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15134 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15135 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'
15137 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'
15139 aix_use_runtimelinking=no
15141 # Test if we are trying to use run time linking or normal
15142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15143 # need to do runtime linking.
15144 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15145 for ld_flag in $LDFLAGS; do
15146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15147 aix_use_runtimelinking=yes
15154 exp_sym_flag='-bexport'
15155 no_entry_flag='-bnoentry'
15158 # When large executables or shared objects are built, AIX ld can
15159 # have problems creating the table of contents. If linking a library
15160 # or program results in "error TOC overflow" add -mminimal-toc to
15161 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15162 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15164 archive_cmds_F77=''
15165 hardcode_direct_F77=yes
15166 hardcode_libdir_separator_F77=':'
15167 link_all_deplibs_F77=yes
15169 if test "$GCC" = yes; then
15170 case $host_os in aix4.[012]|aix4.[012].*)
15171 # We only want to do this on AIX 4.2 and lower, the check
15172 # below for broken collect2 doesn't work under 4.3+
15173 collect2name=`${CC} -print-prog-name=collect2`
15174 if test -f "$collect2name" && \
15175 strings "$collect2name" | grep resolve_lib_name >/dev/null
15177 # We have reworked collect2
15180 # We have old collect2
15181 hardcode_direct_F77=unsupported
15182 # It fails to find uninstalled libraries when the uninstalled
15183 # path is not listed in the libpath. Setting hardcode_minus_L
15184 # to unsupported forces relinking
15185 hardcode_minus_L_F77=yes
15186 hardcode_libdir_flag_spec_F77='-L$libdir'
15187 hardcode_libdir_separator_F77=
15191 shared_flag='-shared'
15192 if test "$aix_use_runtimelinking" = yes; then
15193 shared_flag="$shared_flag "'${wl}-G'
15197 if test "$host_cpu" = ia64; then
15198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15199 # chokes on -Wl,-G. The following line is correct:
15202 if test "$aix_use_runtimelinking" = yes; then
15203 shared_flag='${wl}-G'
15205 shared_flag='${wl}-bM:SRE'
15210 # It seems that -bexpall does not export symbols beginning with
15211 # underscore (_), so it is better to generate a list of symbols to export.
15212 always_export_symbols_F77=yes
15213 if test "$aix_use_runtimelinking" = yes; then
15214 # Warning - without using the other runtime loading flags (-brtl),
15215 # -berok will link without error, but may produce a broken library.
15216 allow_undefined_flag_F77='-berok'
15217 # Determine the default libpath from the value encoded in an empty executable.
15218 cat >conftest.$ac_ext <<_ACEOF
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (ac_try="$ac_link"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_link") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && {
15237 test -z "$ac_f77_werror_flag" ||
15238 test ! -s conftest.err
15239 } && test -s conftest$ac_exeext &&
15240 $as_test_x conftest$ac_exeext; then
15242 lt_aix_libpath_sed='
15243 /Import File Strings/,/^$/ {
15249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15250 # Check for a 64-bit object if we didn't find anything.
15251 if test -z "$aix_libpath"; then
15252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262 conftest$ac_exeext conftest.$ac_ext
15263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15265 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15266 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"
15268 if test "$host_cpu" = ia64; then
15269 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15270 allow_undefined_flag_F77="-z nodefs"
15271 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"
15273 # Determine the default libpath from the value encoded in an empty executable.
15274 cat >conftest.$ac_ext <<_ACEOF
15279 rm -f conftest.$ac_objext conftest$ac_exeext
15280 if { (ac_try="$ac_link"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } && {
15293 test -z "$ac_f77_werror_flag" ||
15294 test ! -s conftest.err
15295 } && test -s conftest$ac_exeext &&
15296 $as_test_x conftest$ac_exeext; then
15298 lt_aix_libpath_sed='
15299 /Import File Strings/,/^$/ {
15305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15306 # Check for a 64-bit object if we didn't find anything.
15307 if test -z "$aix_libpath"; then
15308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318 conftest$ac_exeext conftest.$ac_ext
15319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15321 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15322 # Warning - without using the other run time loading flags,
15323 # -berok will link without error, but may produce a broken library.
15324 no_undefined_flag_F77=' ${wl}-bernotok'
15325 allow_undefined_flag_F77=' ${wl}-berok'
15326 # Exported symbols can be pulled into shared objects from archives
15327 whole_archive_flag_spec_F77='$convenience'
15328 archive_cmds_need_lc_F77=yes
15329 # This is similar to how AIX traditionally builds its shared libraries.
15330 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'
15336 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)'
15337 hardcode_libdir_flag_spec_F77='-L$libdir'
15338 hardcode_minus_L_F77=yes
15339 # see comment about different semantics on the GNU ld section
15344 export_dynamic_flag_spec_F77=-rdynamic
15347 cygwin* | mingw* | pw32*)
15348 # When not using gcc, we currently assume that we are using
15349 # Microsoft Visual C++.
15350 # hardcode_libdir_flag_spec is actually meaningless, as there is
15351 # no search path for DLLs.
15352 hardcode_libdir_flag_spec_F77=' '
15353 allow_undefined_flag_F77=unsupported
15354 # Tell ltmain to make .lib files, not .a files.
15356 # Tell ltmain to make .dll files, not .so files.
15358 # FIXME: Setting linknames here is a bad hack.
15359 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15360 # The linker will automatically build a .lib file if we build a DLL.
15361 old_archive_From_new_cmds_F77='true'
15362 # FIXME: Should let the user specify the lib program.
15363 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15364 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15365 enable_shared_with_static_runtimes_F77=yes
15368 darwin* | rhapsody*)
15370 rhapsody* | darwin1.[012])
15371 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15375 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15377 case ${MACOSX_DEPLOYMENT_TARGET} in
15379 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15382 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15388 archive_cmds_need_lc_F77=no
15389 hardcode_direct_F77=no
15390 hardcode_automatic_F77=yes
15391 hardcode_shlibpath_var_F77=unsupported
15392 whole_archive_flag_spec_F77=''
15393 link_all_deplibs_F77=yes
15394 if test "$GCC" = yes ; then
15395 output_verbose_link_cmd='echo'
15396 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}"
15397 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15398 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}"
15399 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}"
15401 case $cc_basename in
15403 output_verbose_link_cmd='echo'
15404 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15405 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15407 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}'
15408 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}'
15418 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_libdir_flag_spec_F77='-L$libdir'
15420 hardcode_shlibpath_var_F77=no
15427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15428 # support. Future versions do this automatically, but an explicit c++rt0.o
15429 # does not break anything, and helps significantly (at the cost of a little
15432 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15433 hardcode_libdir_flag_spec_F77='-R$libdir'
15434 hardcode_direct_F77=yes
15435 hardcode_shlibpath_var_F77=no
15438 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15440 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15441 hardcode_direct_F77=yes
15442 hardcode_minus_L_F77=yes
15443 hardcode_shlibpath_var_F77=no
15446 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15447 freebsd* | dragonfly*)
15448 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15449 hardcode_libdir_flag_spec_F77='-R$libdir'
15450 hardcode_direct_F77=yes
15451 hardcode_shlibpath_var_F77=no
15455 if test "$GCC" = yes; then
15456 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'
15458 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'
15460 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15461 hardcode_libdir_separator_F77=:
15462 hardcode_direct_F77=yes
15464 # hardcode_minus_L: Not really in the search PATH,
15465 # but as the default location of the library.
15466 hardcode_minus_L_F77=yes
15467 export_dynamic_flag_spec_F77='${wl}-E'
15471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15472 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15474 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15476 if test "$with_gnu_ld" = no; then
15477 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator_F77=:
15480 hardcode_direct_F77=yes
15481 export_dynamic_flag_spec_F77='${wl}-E'
15483 # hardcode_minus_L: Not really in the search PATH,
15484 # but as the default location of the library.
15485 hardcode_minus_L_F77=yes
15490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15493 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15499 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15511 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15515 if test "$with_gnu_ld" = no; then
15516 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15517 hardcode_libdir_separator_F77=:
15521 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15522 hardcode_direct_F77=no
15523 hardcode_shlibpath_var_F77=no
15526 hardcode_direct_F77=yes
15527 export_dynamic_flag_spec_F77='${wl}-E'
15529 # hardcode_minus_L: Not really in the search PATH,
15530 # but as the default location of the library.
15531 hardcode_minus_L_F77=yes
15537 irix5* | irix6* | nonstopux*)
15538 if test "$GCC" = yes; then
15539 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'
15541 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'
15542 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15544 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15545 hardcode_libdir_separator_F77=:
15546 link_all_deplibs_F77=yes
15549 netbsd* | netbsdelf*-gnu)
15550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15553 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15555 hardcode_libdir_flag_spec_F77='-R$libdir'
15556 hardcode_direct_F77=yes
15557 hardcode_shlibpath_var_F77=no
15561 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15562 hardcode_direct_F77=yes
15563 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15564 hardcode_libdir_separator_F77=:
15565 hardcode_shlibpath_var_F77=no
15569 if test -f /usr/libexec/ld.so; then
15570 hardcode_direct_F77=yes
15571 hardcode_shlibpath_var_F77=no
15572 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15573 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15575 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15576 export_dynamic_flag_spec_F77='${wl}-E'
15579 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15580 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_libdir_flag_spec_F77='-R$libdir'
15584 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15585 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15595 hardcode_libdir_flag_spec_F77='-L$libdir'
15596 hardcode_minus_L_F77=yes
15597 allow_undefined_flag_F77=unsupported
15598 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'
15599 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15603 if test "$GCC" = yes; then
15604 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15605 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'
15607 allow_undefined_flag_F77=' -expect_unresolved \*'
15608 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'
15610 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15611 hardcode_libdir_separator_F77=:
15614 osf4* | osf5*) # as osf3* with the addition of -msym flag
15615 if test "$GCC" = yes; then
15616 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617 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'
15618 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15620 allow_undefined_flag_F77=' -expect_unresolved \*'
15621 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'
15622 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~
15623 $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'
15625 # Both c and cxx compiler support -rpath directly
15626 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15628 hardcode_libdir_separator_F77=:
15632 no_undefined_flag_F77=' -z text'
15633 if test "$GCC" = yes; then
15635 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15637 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15640 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15644 hardcode_libdir_flag_spec_F77='-R$libdir'
15645 hardcode_shlibpath_var_F77=no
15647 solaris2.[0-5] | solaris2.[0-5].*) ;;
15649 # The compiler driver will combine and reorder linker options,
15650 # but understands `-z linker_flag'. GCC discards it without `$wl',
15651 # but is careful enough not to reorder.
15652 # Supported since Solaris 2.6 (maybe 2.5.1?)
15653 if test "$GCC" = yes; then
15654 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15656 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15660 link_all_deplibs_F77=yes
15664 if test "x$host_vendor" = xsequent; then
15665 # Use $CC to link under sequent, because it throws in some extra .o
15666 # files that make .init and .fini sections work.
15667 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_libdir_flag_spec_F77='-L$libdir'
15672 hardcode_direct_F77=yes
15673 hardcode_minus_L_F77=yes
15674 hardcode_shlibpath_var_F77=no
15678 case $host_vendor in
15680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_direct_F77=yes # is this really true???
15684 ## LD is ld it makes a PLAMLIB
15685 ## CC just makes a GrossModule.
15686 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15687 reload_cmds_F77='$CC -r -o $output$reload_objs'
15688 hardcode_direct_F77=no
15691 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15695 runpath_var='LD_RUN_PATH'
15696 hardcode_shlibpath_var_F77=no
15700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_shlibpath_var_F77=no
15702 export_dynamic_flag_spec_F77='-Bexport'
15706 if test -d /usr/nec; then
15707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_shlibpath_var_F77=no
15709 runpath_var=LD_RUN_PATH
15710 hardcode_runpath_var=yes
15715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15716 no_undefined_flag_F77='${wl}-z,text'
15717 archive_cmds_need_lc_F77=no
15718 hardcode_shlibpath_var_F77=no
15719 runpath_var='LD_RUN_PATH'
15721 if test "$GCC" = yes; then
15722 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15723 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15730 sysv5* | sco3.2v5* | sco5v6*)
15731 # Note: We can NOT use -z defs as we might desire, because we do not
15732 # link with -lc, and that would cause any symbols used from libc to
15733 # always be unresolved, which means just about no library would
15734 # ever link correctly. If we're not using GNU ld we use -z text
15735 # though, which does catch some bad symbols but isn't as heavy-handed
15737 no_undefined_flag_F77='${wl}-z,text'
15738 allow_undefined_flag_F77='${wl}-z,nodefs'
15739 archive_cmds_need_lc_F77=no
15740 hardcode_shlibpath_var_F77=no
15741 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15742 hardcode_libdir_separator_F77=':'
15743 link_all_deplibs_F77=yes
15744 export_dynamic_flag_spec_F77='${wl}-Bexport'
15745 runpath_var='LD_RUN_PATH'
15747 if test "$GCC" = yes; then
15748 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15749 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15751 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15752 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_libdir_flag_spec_F77='-L$libdir'
15759 hardcode_shlibpath_var_F77=no
15768 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15769 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15770 test "$ld_shlibs_F77" = no && can_build_shared=no
15773 # Do we need to explicitly link libc?
15775 case "x$archive_cmds_need_lc_F77" in
15777 # Assume -lc should be added
15778 archive_cmds_need_lc_F77=yes
15780 if test "$enable_shared" = yes && test "$GCC" = yes; then
15781 case $archive_cmds_F77 in
15783 # FIXME: we may have to deal with multi-command sequences.
15786 # Test whether the compiler implicitly links with -lc since on some
15787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15788 # to ld, don't add -lc before -lgcc.
15789 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15790 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } 2>conftest.err; then
15801 libobjs=conftest.$ac_objext
15803 wl=$lt_prog_compiler_wl_F77
15804 pic_flag=$lt_prog_compiler_pic_F77
15810 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15811 allow_undefined_flag_F77=
15812 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15813 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }
15818 archive_cmds_need_lc_F77=no
15820 archive_cmds_need_lc_F77=yes
15822 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15824 cat conftest.err 1>&5
15827 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15828 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15835 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15836 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15837 library_names_spec=
15838 libname_spec='lib$name'
15842 postuninstall_cmds=
15846 shlibpath_overrides_runpath=unknown
15848 dynamic_linker="$host_os ld.so"
15849 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15851 need_lib_prefix=unknown
15852 hardcode_into_libs=no
15854 # when you set need_version to no, make sure it does not cause -set_version
15855 # flags to be left without arguments
15856 need_version=unknown
15861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15862 shlibpath_var=LIBPATH
15864 # AIX 3 has no versioning support, so we append a major version to the name.
15865 soname_spec='${libname}${release}${shared_ext}$major'
15872 hardcode_into_libs=yes
15873 if test "$host_cpu" = ia64; then
15874 # AIX 5 supports IA64
15875 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15876 shlibpath_var=LD_LIBRARY_PATH
15878 # With GCC up to 2.95.x, collect2 would create an import file
15879 # for dependence libraries. The import file would start with
15880 # the line `#! .'. This would cause the generated library to
15881 # depend on `.', always an invalid library. This was fixed in
15882 # development snapshots of GCC prior to 3.0.
15884 aix4 | aix4.[01] | aix4.[01].*)
15885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15887 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15890 can_build_shared=no
15894 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15895 # soname into executable. Probably we can add versioning support to
15896 # collect2, so additional links can be useful in future.
15897 if test "$aix_use_runtimelinking" = yes; then
15898 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15899 # instead of lib<name>.a to let people know that these are not
15900 # typical AIX shared libraries.
15901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903 # We preserve .a as extension for shared libraries through AIX4.2
15904 # and later when we are not doing run time linking.
15905 library_names_spec='${libname}${release}.a $libname.a'
15906 soname_spec='${libname}${release}${shared_ext}$major'
15908 shlibpath_var=LIBPATH
15913 library_names_spec='$libname.ixlibrary $libname.a'
15914 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15915 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'
15919 library_names_spec='${libname}${shared_ext}'
15920 dynamic_linker="$host_os ld.so"
15921 shlibpath_var=LIBRARY_PATH
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933 # the default ld.so.conf also contains /usr/contrib/lib and
15934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935 # libtool to hard-code these into programs
15938 cygwin* | mingw* | pw32*)
15939 version_type=windows
15944 case $GCC,$host_os in
15945 yes,cygwin* | yes,mingw* | yes,pw32*)
15946 library_names_spec='$libname.dll.a'
15947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15948 postinstall_cmds='base_file=`basename \${file}`~
15949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15950 dldir=$destdir/`dirname \$dlpath`~
15951 test -d \$dldir || mkdir -p \$dldir~
15952 $install_prog $dir/$dlname \$dldir/$dlname~
15953 chmod a+x \$dldir/$dlname'
15954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15955 dlpath=$dir/\$dldll~
15957 shlibpath_overrides_runpath=yes
15961 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15962 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15966 # MinGW DLLs use traditional 'lib' prefix
15967 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15969 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15970 # It is most probably a Windows format PATH printed by
15971 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15972 # path with ; separators, and with drive letters. We can handle the
15973 # drive letters (cygwin fileutils understands them), so leave them,
15974 # especially as we might pass files found there to a mingw objdump,
15975 # which wouldn't understand a cygwinified path. Ahh.
15976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15982 # pw32 DLLs use 'pw' prefix rather than 'lib'
15983 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15992 dynamic_linker='Win32 ld.exe'
15993 # FIXME: first we should search . and the directory the executable is in
15997 darwin* | rhapsody*)
15998 dynamic_linker="$host_os dyld"
15999 version_type=darwin
16002 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16003 soname_spec='${libname}${release}${major}$shared_ext'
16004 shlibpath_overrides_runpath=yes
16005 shlibpath_var=DYLD_LIBRARY_PATH
16006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 shlibpath_var=LD_LIBRARY_PATH
16024 freebsd* | dragonfly*)
16025 # DragonFly does not have aout. When/if they implement a new
16026 # versioning mechanism, adjust this.
16027 if test -x /usr/bin/objformat; then
16028 objformat=`/usr/bin/objformat`
16031 freebsd[123]*) objformat=aout ;;
16032 *) objformat=elf ;;
16035 version_type=freebsd-$objformat
16036 case $version_type in
16038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16047 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=yes
16052 freebsd3.[01]* | freebsdelf3.[01]*)
16053 shlibpath_overrides_runpath=yes
16054 hardcode_into_libs=yes
16056 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16057 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16058 shlibpath_overrides_runpath=no
16059 hardcode_into_libs=yes
16061 *) # from 4.6 on, and DragonFly
16062 shlibpath_overrides_runpath=yes
16063 hardcode_into_libs=yes
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16075 hardcode_into_libs=yes
16078 hpux9* | hpux10* | hpux11*)
16079 # Give a soname corresponding to the major version so that dld.sl refuses to
16080 # link against other versions.
16087 hardcode_into_libs=yes
16088 dynamic_linker="$host_os dld.so"
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 if test "X$HPUX_IA64_MODE" = X32; then
16094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16102 hardcode_into_libs=yes
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16113 dynamic_linker="$host_os dld.sl"
16114 shlibpath_var=SHLIB_PATH
16115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16120 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16121 postinstall_cmds='chmod 555 $lib'
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 shlibpath_overrides_runpath=no
16133 hardcode_into_libs=yes
16136 irix5* | irix6* | nonstopux*)
16138 nonstopux*) version_type=nonstopux ;;
16140 if test "$lt_cv_prog_gnu_ld" = yes; then
16148 soname_spec='${libname}${release}${shared_ext}$major'
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16151 irix5* | nonstopux*)
16152 libsuff= shlibsuff=
16155 case $LD in # libtool.m4 will add one of these switches to LD
16156 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16157 libsuff= shlibsuff= libmagic=32-bit;;
16158 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16159 libsuff=32 shlibsuff=N32 libmagic=N32;;
16160 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16161 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16162 *) libsuff= shlibsuff= libmagic=never-match;;
16166 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16167 shlibpath_overrides_runpath=no
16168 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16169 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16170 hardcode_into_libs=yes
16173 # No shared lib support for Linux oldld, aout, or coff.
16174 linux*oldld* | linux*aout* | linux*coff*)
16178 # This must be Linux ELF.
16179 linux* | k*bsd*-gnu)
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=no
16188 # This implies no fast_install, which is unacceptable.
16189 # Some rework will be needed to allow for fast_install
16190 # before this can be enabled.
16191 hardcode_into_libs=yes
16193 # Append ld.so.conf contents to the search path
16194 if test -f /etc/ld.so.conf; then
16195 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' ' '`
16196 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16199 # We used to test for /lib/ld.so.1 and disable shared libraries on
16200 # powerpc, because MkLinux only supported shared libraries with the
16201 # GNU dynamic linker. Since this was broken with cross compilers,
16202 # most powerpc-linux boxes support dynamic linking these days and
16203 # people can always --disable-shared, the test was removed, and we
16204 # assume the GNU/Linux dynamic linker is in use.
16205 dynamic_linker='GNU/Linux ld.so'
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 shlibpath_var=LD_LIBRARY_PATH
16215 shlibpath_overrides_runpath=no
16216 hardcode_into_libs=yes
16217 dynamic_linker='NetBSD ld.elf_so'
16224 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16227 dynamic_linker='NetBSD (a.out) ld.so'
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 dynamic_linker='NetBSD ld.elf_so'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 shlibpath_overrides_runpath=yes
16235 hardcode_into_libs=yes
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241 shlibpath_var=LD_LIBRARY_PATH
16242 shlibpath_overrides_runpath=yes
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16257 sys_lib_dlsearch_path_spec="/usr/lib"
16259 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16261 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16262 *) need_version=no ;;
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16269 openbsd2.[89] | openbsd2.[89].*)
16270 shlibpath_overrides_runpath=no
16273 shlibpath_overrides_runpath=yes
16277 shlibpath_overrides_runpath=yes
16282 libname_spec='$name'
16285 library_names_spec='$libname${shared_ext} $libname.a'
16286 dynamic_linker='OS/2 ld.exe'
16287 shlibpath_var=LIBPATH
16290 osf3* | osf4* | osf5*)
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16298 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 shlibpath_overrides_runpath=yes
16313 hardcode_into_libs=yes
16314 # ldd complains unless libraries are executable
16315 postinstall_cmds='chmod +x $lib'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes
16324 if test "$with_gnu_ld" = yes; then
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 case $host_vendor in
16337 shlibpath_overrides_runpath=no
16339 export_dynamic_flag_spec='${wl}-Blargedynsym'
16340 runpath_var=LD_RUN_PATH
16348 shlibpath_overrides_runpath=no
16349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16355 if test -d /usr/nec ;then
16357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16358 soname_spec='$libname${shared_ext}.$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16364 version_type=freebsd-elf
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 shlibpath_var=LD_LIBRARY_PATH
16370 hardcode_into_libs=yes
16371 if test "$with_gnu_ld" = yes; then
16372 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16373 shlibpath_overrides_runpath=no
16375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16376 shlibpath_overrides_runpath=yes
16379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16383 sys_lib_dlsearch_path_spec='/usr/lib'
16388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389 soname_spec='${libname}${release}${shared_ext}$major'
16390 shlibpath_var=LD_LIBRARY_PATH
16397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16398 echo "${ECHO_T}$dynamic_linker" >&6; }
16399 test "$dynamic_linker" = no && can_build_shared=no
16401 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16407 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16408 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16417 if test "$GCC" = yes; then
16418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16421 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16422 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16423 hardcode_action_F77=
16424 if test -n "$hardcode_libdir_flag_spec_F77" || \
16425 test -n "$runpath_var_F77" || \
16426 test "X$hardcode_automatic_F77" = "Xyes" ; then
16428 # We can hardcode non-existant directories.
16429 if test "$hardcode_direct_F77" != no &&
16430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16431 # have to relink, otherwise we might link with an installed library
16432 # when we should be linking with a yet-to-be-installed one
16433 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16434 test "$hardcode_minus_L_F77" != no; then
16435 # Linking always hardcodes the temporary library directory.
16436 hardcode_action_F77=relink
16438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16439 hardcode_action_F77=immediate
16442 # We cannot hardcode anything, or else we can only hardcode existing
16444 hardcode_action_F77=unsupported
16446 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16447 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16449 if test "$hardcode_action_F77" = relink; then
16450 # Fast installation is not supported
16451 enable_fast_install=no
16452 elif test "$shlibpath_overrides_runpath" = yes ||
16453 test "$enable_shared" = no; then
16454 # Fast installation is not necessary
16455 enable_fast_install=needless
16459 # The else clause should only fire when bootstrapping the
16460 # libtool distribution, otherwise you forgot to ship ltmain.sh
16461 # with your package, and you will get complaints that there are
16462 # no rules to generate ltmain.sh.
16463 if test -f "$ltmain"; then
16464 # See if we are running on zsh, and set the options which allow our commands through
16465 # without removal of \ escapes.
16466 if test -n "${ZSH_VERSION+set}" ; then
16467 setopt NO_GLOB_SUBST
16469 # Now quote all the things that may contain metacharacters while being
16470 # careful not to overquote the AC_SUBSTed values. We take copies of the
16471 # variables and quote the copies for generation of the libtool script.
16472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16476 deplibs_check_method reload_flag reload_cmds need_locks \
16477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16478 lt_cv_sys_global_symbol_to_c_name_address \
16479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16480 old_postinstall_cmds old_postuninstall_cmds \
16484 lt_prog_compiler_wl_F77 \
16485 lt_prog_compiler_pic_F77 \
16486 lt_prog_compiler_static_F77 \
16487 lt_prog_compiler_no_builtin_flag_F77 \
16488 export_dynamic_flag_spec_F77 \
16489 thread_safe_flag_spec_F77 \
16490 whole_archive_flag_spec_F77 \
16491 enable_shared_with_static_runtimes_F77 \
16492 old_archive_cmds_F77 \
16493 old_archive_from_new_cmds_F77 \
16494 predep_objects_F77 \
16495 postdep_objects_F77 \
16498 compiler_lib_search_path_F77 \
16499 compiler_lib_search_dirs_F77 \
16501 archive_expsym_cmds_F77 \
16502 postinstall_cmds_F77 \
16503 postuninstall_cmds_F77 \
16504 old_archive_from_expsyms_cmds_F77 \
16505 allow_undefined_flag_F77 \
16506 no_undefined_flag_F77 \
16507 export_symbols_cmds_F77 \
16508 hardcode_libdir_flag_spec_F77 \
16509 hardcode_libdir_flag_spec_ld_F77 \
16510 hardcode_libdir_separator_F77 \
16511 hardcode_automatic_F77 \
16513 module_expsym_cmds_F77 \
16514 lt_cv_prog_compiler_c_o_F77 \
16515 fix_srcfile_path_F77 \
16516 exclude_expsyms_F77 \
16517 include_expsyms_F77; do
16520 old_archive_cmds_F77 | \
16521 old_archive_from_new_cmds_F77 | \
16522 archive_cmds_F77 | \
16523 archive_expsym_cmds_F77 | \
16524 module_cmds_F77 | \
16525 module_expsym_cmds_F77 | \
16526 old_archive_from_expsyms_cmds_F77 | \
16527 export_symbols_cmds_F77 | \
16528 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16529 postinstall_cmds | postuninstall_cmds | \
16530 old_postinstall_cmds | old_postuninstall_cmds | \
16531 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16532 # Double-quote double-evaled strings.
16533 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16536 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16542 *'\$0 --fallback-echo"')
16543 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16549 cat <<__EOF__ >> "$cfgfile"
16550 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16554 # Shell to use when invoking shell scripts.
16557 # Whether or not to build shared libraries.
16558 build_libtool_libs=$enable_shared
16560 # Whether or not to build static libraries.
16561 build_old_libs=$enable_static
16563 # Whether or not to add -lc for building shared libraries.
16564 build_libtool_need_lc=$archive_cmds_need_lc_F77
16566 # Whether or not to disallow shared libs when runtime libs are static
16567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16569 # Whether or not to optimize for fast installation.
16570 fast_install=$enable_fast_install
16573 host_alias=$host_alias
16577 # The build system.
16578 build_alias=$build_alias
16582 # An echo program that does not interpret backslashes.
16587 AR_FLAGS=$lt_AR_FLAGS
16592 # LTCC compiler flags.
16593 LTCFLAGS=$lt_LTCFLAGS
16595 # A language-specific compiler.
16596 CC=$lt_compiler_F77
16598 # Is the compiler the GNU C compiler?
16604 # The linker used to build libraries.
16607 # Whether we need hard or soft links.
16610 # A BSD-compatible nm program.
16613 # A symbol stripping program
16616 # Used to examine libraries when file_magic_cmd begins "file"
16617 MAGIC_CMD=$MAGIC_CMD
16619 # Used on cygwin: DLL creation program.
16622 # Used on cygwin: object dumper.
16625 # Used on cygwin: assembler.
16628 # The name of the directory that contains temporary libtool files.
16631 # How to create reloadable object files.
16632 reload_flag=$lt_reload_flag
16633 reload_cmds=$lt_reload_cmds
16635 # How to pass a linker flag through the compiler.
16636 wl=$lt_lt_prog_compiler_wl_F77
16638 # Object file suffix (normally "o").
16639 objext="$ac_objext"
16641 # Old archive suffix (normally "a").
16644 # Shared library suffix (normally ".so").
16645 shrext_cmds='$shrext_cmds'
16647 # Executable file suffix (normally "").
16650 # Additional compiler flags for building library objects.
16651 pic_flag=$lt_lt_prog_compiler_pic_F77
16654 # What is the maximum length of a command?
16655 max_cmd_len=$lt_cv_sys_max_cmd_len
16657 # Does compiler simultaneously support -c and -o options?
16658 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16660 # Must we lock files when doing compilation?
16661 need_locks=$lt_need_locks
16663 # Do we need the lib prefix for modules?
16664 need_lib_prefix=$need_lib_prefix
16666 # Do we need a version for libraries?
16667 need_version=$need_version
16669 # Whether dlopen is supported.
16670 dlopen_support=$enable_dlopen
16672 # Whether dlopen of programs is supported.
16673 dlopen_self=$enable_dlopen_self
16675 # Whether dlopen of statically linked programs is supported.
16676 dlopen_self_static=$enable_dlopen_self_static
16678 # Compiler flag to prevent dynamic linking.
16679 link_static_flag=$lt_lt_prog_compiler_static_F77
16681 # Compiler flag to turn off builtin functions.
16682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16684 # Compiler flag to allow reflexive dlopens.
16685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16687 # Compiler flag to generate shared objects directly from archives.
16688 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16690 # Compiler flag to generate thread-safe objects.
16691 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16693 # Library versioning type.
16694 version_type=$version_type
16696 # Format of library name prefix.
16697 libname_spec=$lt_libname_spec
16699 # List of archive names. First name is the real one, the rest are links.
16700 # The last name is the one that the linker finds with -lNAME.
16701 library_names_spec=$lt_library_names_spec
16703 # The coded name of the library, if different from the real name.
16704 soname_spec=$lt_soname_spec
16706 # Commands used to build and install an old-style archive.
16708 old_archive_cmds=$lt_old_archive_cmds_F77
16709 old_postinstall_cmds=$lt_old_postinstall_cmds
16710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16712 # Create an old-style archive from a shared archive.
16713 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16715 # Create a temporary old-style archive to link instead of a shared archive.
16716 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16718 # Commands used to build and install a shared archive.
16719 archive_cmds=$lt_archive_cmds_F77
16720 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16721 postinstall_cmds=$lt_postinstall_cmds
16722 postuninstall_cmds=$lt_postuninstall_cmds
16724 # Commands used to build a loadable module (assumed same as above if empty)
16725 module_cmds=$lt_module_cmds_F77
16726 module_expsym_cmds=$lt_module_expsym_cmds_F77
16728 # Commands to strip libraries.
16729 old_striplib=$lt_old_striplib
16730 striplib=$lt_striplib
16732 # Dependencies to place before the objects being linked to create a
16734 predep_objects=$lt_predep_objects_F77
16736 # Dependencies to place after the objects being linked to create a
16738 postdep_objects=$lt_postdep_objects_F77
16740 # Dependencies to place before the objects being linked to create a
16742 predeps=$lt_predeps_F77
16744 # Dependencies to place after the objects being linked to create a
16746 postdeps=$lt_postdeps_F77
16748 # The directories searched by this compiler when creating a shared
16750 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16752 # The library search path used internally by the compiler when linking
16753 # a shared library.
16754 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16756 # Method to check whether dependent libraries are shared objects.
16757 deplibs_check_method=$lt_deplibs_check_method
16759 # Command to use when deplibs_check_method == file_magic.
16760 file_magic_cmd=$lt_file_magic_cmd
16762 # Flag that allows shared libraries with undefined symbols to be built.
16763 allow_undefined_flag=$lt_allow_undefined_flag_F77
16765 # Flag that forces no undefined symbols.
16766 no_undefined_flag=$lt_no_undefined_flag_F77
16768 # Commands used to finish a libtool library installation in a directory.
16769 finish_cmds=$lt_finish_cmds
16771 # Same as above, but a single script fragment to be evaled but not shown.
16772 finish_eval=$lt_finish_eval
16774 # Take the output of nm and produce a listing of raw symbols and C names.
16775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16777 # Transform the output of nm in a proper C declaration
16778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16780 # Transform the output of nm in a C name address pair
16781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16783 # This is the shared library runtime path variable.
16784 runpath_var=$runpath_var
16786 # This is the shared library path variable.
16787 shlibpath_var=$shlibpath_var
16789 # Is shlibpath searched before the hard-coded library search path?
16790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16792 # How to hardcode a shared library path into an executable.
16793 hardcode_action=$hardcode_action_F77
16795 # Whether we should hardcode library paths into libraries.
16796 hardcode_into_libs=$hardcode_into_libs
16798 # Flag to hardcode \$libdir into a binary during linking.
16799 # This must work even if \$libdir does not exist.
16800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16802 # If ld is used when linking, flag to hardcode \$libdir into
16803 # a binary during linking. This must work even if \$libdir does
16805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16807 # Whether we need a single -rpath flag with a separated argument.
16808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16811 # resulting binary.
16812 hardcode_direct=$hardcode_direct_F77
16814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16815 # resulting binary.
16816 hardcode_minus_L=$hardcode_minus_L_F77
16818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16819 # the resulting binary.
16820 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16822 # Set to yes if building a shared library automatically hardcodes DIR into the library
16823 # and all subsequent libraries and executables linked against it.
16824 hardcode_automatic=$hardcode_automatic_F77
16826 # Variables whose values should be saved in libtool wrapper scripts and
16827 # restored at relink time.
16828 variables_saved_for_relink="$variables_saved_for_relink"
16830 # Whether libtool must link a program against all its dependency libraries.
16831 link_all_deplibs=$link_all_deplibs_F77
16833 # Compile-time system search path for libraries
16834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16836 # Run-time system search path for libraries
16837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16839 # Fix the shell variable \$srcfile for the compiler.
16840 fix_srcfile_path=$lt_fix_srcfile_path
16842 # Set to yes if exported symbols are required.
16843 always_export_symbols=$always_export_symbols_F77
16845 # The commands to list exported symbols.
16846 export_symbols_cmds=$lt_export_symbols_cmds_F77
16848 # The commands to extract the exported symbol list from a shared archive.
16849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16851 # Symbols that should not be listed in the preloaded symbols.
16852 exclude_expsyms=$lt_exclude_expsyms_F77
16854 # Symbols that must always be exported.
16855 include_expsyms=$lt_include_expsyms_F77
16857 # ### END LIBTOOL TAG CONFIG: $tagname
16863 # If there is no Makefile yet, we rely on a make rule to execute
16864 # `config.status --recheck' to rerun these tests and create the
16865 # libtool script then.
16866 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16867 if test -f "$ltmain_in"; then
16868 test -f Makefile && make "$ltmain"
16874 ac_cpp='$CPP $CPPFLAGS'
16875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16887 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16890 # Source file extension for Java test sources.
16893 # Object file extension for compiled Java test sources.
16897 # Code to be used in simple compile tests
16898 lt_simple_compile_test_code="class foo {}"
16900 # Code to be used in simple link tests
16901 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16905 # If no C compiler was specified, use CC.
16908 # If no C compiler flags were specified, use CFLAGS.
16909 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16911 # Allow CC to be a program name with arguments.
16915 # save warnings/boilerplate of simple test code
16916 ac_outfile=conftest.$ac_objext
16917 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16918 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16919 _lt_compiler_boilerplate=`cat conftest.err`
16922 ac_outfile=conftest.$ac_objext
16923 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16924 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16925 _lt_linker_boilerplate=`cat conftest.err`
16929 # Allow CC to be a program name with arguments.
16934 for cc_temp in $compiler""; do
16936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16942 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16945 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16946 archive_cmds_need_lc_GCJ=no
16948 old_archive_cmds_GCJ=$old_archive_cmds
16951 lt_prog_compiler_no_builtin_flag_GCJ=
16953 if test "$GCC" = yes; then
16954 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16957 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16958 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16959 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16960 echo $ECHO_N "(cached) $ECHO_C" >&6
16962 lt_cv_prog_compiler_rtti_exceptions=no
16963 ac_outfile=conftest.$ac_objext
16964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16965 lt_compiler_flag="-fno-rtti -fno-exceptions"
16966 # Insert the option either (1) after the last *FLAGS variable, or
16967 # (2) before a word containing "conftest.", or (3) at the end.
16968 # Note that $ac_compile itself does not contain backslashes and begins
16969 # with a dollar sign (not a hyphen), so the echo should work correctly.
16970 # The option is referenced via a variable to avoid confusing sed.
16971 lt_compile=`echo "$ac_compile" | $SED \
16972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16974 -e 's:$: $lt_compiler_flag:'`
16975 (eval echo "\"\$as_me:16975: $lt_compile\"" >&5)
16976 (eval "$lt_compile" 2>conftest.err)
16978 cat conftest.err >&5
16979 echo "$as_me:16979: \$? = $ac_status" >&5
16980 if (exit $ac_status) && test -s "$ac_outfile"; then
16981 # The compiler can only warn and ignore the option if not recognized
16982 # So say no if there are warnings other than the usual output.
16983 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16986 lt_cv_prog_compiler_rtti_exceptions=yes
16992 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16993 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16995 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16996 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17003 lt_prog_compiler_wl_GCJ=
17004 lt_prog_compiler_pic_GCJ=
17005 lt_prog_compiler_static_GCJ=
17007 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17008 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17010 if test "$GCC" = yes; then
17011 lt_prog_compiler_wl_GCJ='-Wl,'
17012 lt_prog_compiler_static_GCJ='-static'
17016 # All AIX code is PIC.
17017 if test "$host_cpu" = ia64; then
17018 # AIX 5 now supports IA64 processor
17019 lt_prog_compiler_static_GCJ='-Bstatic'
17024 # FIXME: we need at least 68020 code to build shared libraries, but
17025 # adding the `-m68020' flag to GCC prevents building anything better,
17027 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17031 # PIC is the default for these OSes.
17034 mingw* | cygwin* | pw32* | os2*)
17035 # This hack is so that the source file can tell whether it is being
17036 # built for inclusion in a dll (and should export symbols for example).
17037 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17038 # (--disable-auto-import) libraries
17042 darwin* | rhapsody*)
17043 # PIC is the default on this platform
17044 # Common symbols not allowed in MH_DYLIB files
17045 lt_prog_compiler_pic_GCJ='-fno-common'
17049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17050 # Instead, we relocate shared libraries at runtime.
17054 # Just because we use GCC doesn't mean we suddenly get shared libraries
17055 # on systems that don't support them.
17056 lt_prog_compiler_can_build_shared_GCJ=no
17061 if test -d /usr/nec; then
17062 lt_prog_compiler_pic_GCJ=-Kconform_pic
17067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17068 # not for PA HP-UX.
17074 lt_prog_compiler_pic_GCJ='-fPIC'
17080 lt_prog_compiler_pic_GCJ='-fPIC'
17084 # PORTME Check for flag to pass linker flags through the system compiler.
17087 lt_prog_compiler_wl_GCJ='-Wl,'
17088 if test "$host_cpu" = ia64; then
17089 # AIX 5 now supports IA64 processor
17090 lt_prog_compiler_static_GCJ='-Bstatic'
17092 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17096 # PIC is the default on this platform
17097 # Common symbols not allowed in MH_DYLIB files
17098 case $cc_basename in
17100 lt_prog_compiler_pic_GCJ='-qnocommon'
17101 lt_prog_compiler_wl_GCJ='-Wl,'
17106 mingw* | cygwin* | pw32* | os2*)
17107 # This hack is so that the source file can tell whether it is being
17108 # built for inclusion in a dll (and should export symbols for example).
17112 hpux9* | hpux10* | hpux11*)
17113 lt_prog_compiler_wl_GCJ='-Wl,'
17114 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17115 # not for PA HP-UX.
17121 lt_prog_compiler_pic_GCJ='+Z'
17124 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17125 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17128 irix5* | irix6* | nonstopux*)
17129 lt_prog_compiler_wl_GCJ='-Wl,'
17130 # PIC (with -KPIC) is the default.
17131 lt_prog_compiler_static_GCJ='-non_shared'
17135 lt_prog_compiler_pic_GCJ='-KPIC'
17136 lt_prog_compiler_static_GCJ='-Bstatic'
17139 linux* | k*bsd*-gnu)
17140 case $cc_basename in
17142 lt_prog_compiler_wl_GCJ='-Wl,'
17143 lt_prog_compiler_pic_GCJ='-KPIC'
17144 lt_prog_compiler_static_GCJ='-static'
17146 pgcc* | pgf77* | pgf90* | pgf95*)
17147 # Portland Group compilers (*not* the Pentium gcc compiler,
17148 # which looks to be a dead project)
17149 lt_prog_compiler_wl_GCJ='-Wl,'
17150 lt_prog_compiler_pic_GCJ='-fpic'
17151 lt_prog_compiler_static_GCJ='-Bstatic'
17154 lt_prog_compiler_wl_GCJ='-Wl,'
17155 # All Alpha code is PIC.
17156 lt_prog_compiler_static_GCJ='-non_shared'
17159 case `$CC -V 2>&1 | sed 5q` in
17162 lt_prog_compiler_pic_GCJ='-KPIC'
17163 lt_prog_compiler_static_GCJ='-Bstatic'
17164 lt_prog_compiler_wl_GCJ='-Wl,'
17167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17168 lt_prog_compiler_pic_GCJ='-KPIC'
17169 lt_prog_compiler_static_GCJ='-Bstatic'
17170 lt_prog_compiler_wl_GCJ=''
17177 osf3* | osf4* | osf5*)
17178 lt_prog_compiler_wl_GCJ='-Wl,'
17179 # All OSF/1 code is PIC.
17180 lt_prog_compiler_static_GCJ='-non_shared'
17184 lt_prog_compiler_static_GCJ='-non_shared'
17188 lt_prog_compiler_pic_GCJ='-KPIC'
17189 lt_prog_compiler_static_GCJ='-Bstatic'
17190 case $cc_basename in
17191 f77* | f90* | f95*)
17192 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17194 lt_prog_compiler_wl_GCJ='-Wl,';;
17199 lt_prog_compiler_wl_GCJ='-Qoption ld '
17200 lt_prog_compiler_pic_GCJ='-PIC'
17201 lt_prog_compiler_static_GCJ='-Bstatic'
17204 sysv4 | sysv4.2uw2* | sysv4.3*)
17205 lt_prog_compiler_wl_GCJ='-Wl,'
17206 lt_prog_compiler_pic_GCJ='-KPIC'
17207 lt_prog_compiler_static_GCJ='-Bstatic'
17211 if test -d /usr/nec ;then
17212 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17213 lt_prog_compiler_static_GCJ='-Bstatic'
17217 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17218 lt_prog_compiler_wl_GCJ='-Wl,'
17219 lt_prog_compiler_pic_GCJ='-KPIC'
17220 lt_prog_compiler_static_GCJ='-Bstatic'
17224 lt_prog_compiler_wl_GCJ='-Wl,'
17225 lt_prog_compiler_can_build_shared_GCJ=no
17229 lt_prog_compiler_pic_GCJ='-pic'
17230 lt_prog_compiler_static_GCJ='-Bstatic'
17234 lt_prog_compiler_can_build_shared_GCJ=no
17239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17240 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17243 # Check to make sure the PIC flag actually works.
17245 if test -n "$lt_prog_compiler_pic_GCJ"; then
17247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17249 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17250 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 lt_cv_prog_compiler_pic_works_GCJ=no
17253 ac_outfile=conftest.$ac_objext
17254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17255 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17256 # Insert the option either (1) after the last *FLAGS variable, or
17257 # (2) before a word containing "conftest.", or (3) at the end.
17258 # Note that $ac_compile itself does not contain backslashes and begins
17259 # with a dollar sign (not a hyphen), so the echo should work correctly.
17260 # The option is referenced via a variable to avoid confusing sed.
17261 lt_compile=`echo "$ac_compile" | $SED \
17262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17264 -e 's:$: $lt_compiler_flag:'`
17265 (eval echo "\"\$as_me:17265: $lt_compile\"" >&5)
17266 (eval "$lt_compile" 2>conftest.err)
17268 cat conftest.err >&5
17269 echo "$as_me:17269: \$? = $ac_status" >&5
17270 if (exit $ac_status) && test -s "$ac_outfile"; then
17271 # The compiler can only warn and ignore the option if not recognized
17272 # So say no if there are warnings other than the usual output.
17273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17276 lt_cv_prog_compiler_pic_works_GCJ=yes
17282 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17283 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17285 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17286 case $lt_prog_compiler_pic_GCJ in
17288 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17291 lt_prog_compiler_pic_GCJ=
17292 lt_prog_compiler_can_build_shared_GCJ=no
17297 # For platforms which do not support PIC, -DPIC is meaningless:
17299 lt_prog_compiler_pic_GCJ=
17302 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17307 # Check to make sure the static flag actually works.
17309 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17312 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17313 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 lt_cv_prog_compiler_static_works_GCJ=no
17316 save_LDFLAGS="$LDFLAGS"
17317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17318 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17320 # The linker can only warn and ignore the option if not recognized
17321 # So say no if there are warnings
17322 if test -s conftest.err; then
17323 # Append any errors to the config.log.
17324 cat conftest.err 1>&5
17325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17327 if diff conftest.exp conftest.er2 >/dev/null; then
17328 lt_cv_prog_compiler_static_works_GCJ=yes
17331 lt_cv_prog_compiler_static_works_GCJ=yes
17335 LDFLAGS="$save_LDFLAGS"
17338 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17339 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17341 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17344 lt_prog_compiler_static_GCJ=
17348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17350 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 lt_cv_prog_compiler_c_o_GCJ=no
17354 $rm -r conftest 2>/dev/null
17358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17360 lt_compiler_flag="-o out/conftest2.$ac_objext"
17361 # Insert the option either (1) after the last *FLAGS variable, or
17362 # (2) before a word containing "conftest.", or (3) at the end.
17363 # Note that $ac_compile itself does not contain backslashes and begins
17364 # with a dollar sign (not a hyphen), so the echo should work correctly.
17365 lt_compile=`echo "$ac_compile" | $SED \
17366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17368 -e 's:$: $lt_compiler_flag:'`
17369 (eval echo "\"\$as_me:17369: $lt_compile\"" >&5)
17370 (eval "$lt_compile" 2>out/conftest.err)
17372 cat out/conftest.err >&5
17373 echo "$as_me:17373: \$? = $ac_status" >&5
17374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17376 # The compiler can only warn and ignore the option if not recognized
17377 # So say no if there are warnings
17378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17381 lt_cv_prog_compiler_c_o_GCJ=yes
17386 # SGI C++ compiler will create directory out/ii_files/ for
17387 # template instantiation
17388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17389 $rm out/* && rmdir out
17395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17399 hard_links="nottested"
17400 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17401 # do not overwrite the value of need_locks provided by the user
17402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17408 ln conftest.a conftest.b 2>&5 || hard_links=no
17409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17410 { echo "$as_me:$LINENO: result: $hard_links" >&5
17411 echo "${ECHO_T}$hard_links" >&6; }
17412 if test "$hard_links" = no; then
17413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17425 allow_undefined_flag_GCJ=
17426 enable_shared_with_static_runtimes_GCJ=no
17428 archive_expsym_cmds_GCJ=
17429 old_archive_From_new_cmds_GCJ=
17430 old_archive_from_expsyms_cmds_GCJ=
17431 export_dynamic_flag_spec_GCJ=
17432 whole_archive_flag_spec_GCJ=
17433 thread_safe_flag_spec_GCJ=
17434 hardcode_libdir_flag_spec_GCJ=
17435 hardcode_libdir_flag_spec_ld_GCJ=
17436 hardcode_libdir_separator_GCJ=
17437 hardcode_direct_GCJ=no
17438 hardcode_minus_L_GCJ=no
17439 hardcode_shlibpath_var_GCJ=unsupported
17440 link_all_deplibs_GCJ=unknown
17441 hardcode_automatic_GCJ=no
17443 module_expsym_cmds_GCJ=
17444 always_export_symbols_GCJ=no
17445 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17446 # include_expsyms should be a list of space-separated symbols to be *always*
17447 # included in the symbol list
17448 include_expsyms_GCJ=
17449 # exclude_expsyms can be an extended regexp of symbols to exclude
17450 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17451 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17452 # as well as any symbol that contains `d'.
17453 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17455 # platforms (ab)use it in PIC code, but their linkers get confused if
17456 # the symbol is explicitly referenced. Since portable code cannot
17457 # rely on this symbol name, it's probably fine to never include it in
17458 # preloaded symbol tables.
17459 # Exclude shared library initialization/finalization symbols.
17460 extract_expsyms_cmds=
17461 # Just being paranoid about ensuring that cc_basename is set.
17462 for cc_temp in $compiler""; do
17464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17470 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17473 cygwin* | mingw* | pw32*)
17474 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17475 # When not using gcc, we currently assume that we are using
17476 # Microsoft Visual C++.
17477 if test "$GCC" != yes; then
17482 # we just hope/assume this is gcc and not c89 (= MSVC++)
17491 if test "$with_gnu_ld" = yes; then
17492 # If archive_cmds runs LD, not CC, wlarc should be empty
17495 # Set some defaults for GNU ld with shared library support. These
17496 # are reset later if shared libraries are not supported. Putting them
17497 # here allows them to be overridden if necessary.
17498 runpath_var=LD_RUN_PATH
17499 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17500 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17501 # ancient GNU ld didn't support --whole-archive et. al.
17502 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17503 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17505 whole_archive_flag_spec_GCJ=
17507 supports_anon_versioning=no
17508 case `$LD -v 2>/dev/null` in
17509 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17510 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17511 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17512 *\ 2.11.*) ;; # other 2.11 versions
17513 *) supports_anon_versioning=yes ;;
17516 # See if GNU ld supports shared libraries.
17519 # On AIX/PPC, the GNU linker is very broken
17520 if test "$host_cpu" != ia64; then
17524 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17525 *** to be unable to reliably create shared libraries on AIX.
17526 *** Therefore, libtool is disabling shared libraries support. If you
17527 *** really care for shared libraries, you may want to modify your PATH
17528 *** so that a non-GNU linker is found, and then restart.
17535 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)'
17536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17537 hardcode_minus_L_GCJ=yes
17539 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17540 # that the semantics of dynamic libraries on AmigaOS, at least up
17541 # to version 4, is to share data among multiple programs linked
17542 # with the same dynamic library. Since this doesn't match the
17543 # behavior of shared libraries on other platforms, we can't use
17549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550 allow_undefined_flag_GCJ=unsupported
17551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17552 # support --undefined. This deserves some investigation. FIXME
17553 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17559 cygwin* | mingw* | pw32*)
17560 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17561 # as there is no search path for DLLs.
17562 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17563 allow_undefined_flag_GCJ=unsupported
17564 always_export_symbols_GCJ=no
17565 enable_shared_with_static_runtimes_GCJ=yes
17566 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17568 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17569 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17570 # If the export-symbols file already is a .def file (1st line
17571 # is EXPORTS), use it as is; otherwise, prepend...
17572 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17573 cp $export_symbols $output_objdir/$soname.def;
17575 echo EXPORTS > $output_objdir/$soname.def;
17576 cat $export_symbols >> $output_objdir/$soname.def;
17578 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17585 hardcode_direct_GCJ=no
17586 hardcode_shlibpath_var_GCJ=no
17587 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17588 export_dynamic_flag_spec_GCJ='${wl}-E'
17589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17590 # Instead, shared libraries are loaded at an image base (0x10000000 by
17591 # default) and relocated if they conflict, which is a slow very memory
17592 # consuming and fragmenting process. To avoid this, we pick a random,
17593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17595 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'
17596 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'
17599 gnu* | linux* | k*bsd*-gnu)
17600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602 case $cc_basename,$host_cpu in
17603 pgcc*) # Portland Group C compiler
17604 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'
17605 tmp_addflag=' $pic_flag'
17607 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
17610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17611 tmp_addflag=' -i_dynamic' ;;
17612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17613 tmp_addflag=' -i_dynamic -nofor_main' ;;
17614 ifc* | ifort*) # Intel Fortran compiler
17615 tmp_addflag=' -nofor_main' ;;
17617 case `$CC -V 2>&1 | sed 5q` in
17618 *Sun\ C*) # Sun C 5.9
17619 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'
17620 tmp_sharedflag='-G' ;;
17621 *Sun\ F*) # Sun Fortran 8.3
17622 tmp_sharedflag='-G' ;;
17624 tmp_sharedflag='-shared' ;;
17626 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17628 if test $supports_anon_versioning = yes; then
17629 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17631 $echo "local: *; };" >> $output_objdir/$libname.ver~
17632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17634 link_all_deplibs_GCJ=no
17640 netbsd* | netbsdelf*-gnu)
17641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17642 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17645 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17646 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17655 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17656 *** create shared libraries on Solaris systems. Therefore, libtool
17657 *** is disabling shared libraries support. We urge you to upgrade GNU
17658 *** binutils to release 2.9.1 or newer. Another option is to modify
17659 *** your PATH or compiler configuration so that the native linker is
17660 *** used, and then restart.
17663 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17664 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17665 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17672 case `$LD -v 2>&1` in
17673 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17677 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17678 *** reliably create shared libraries on SCO systems. Therefore, libtool
17679 *** is disabling shared libraries support. We urge you to upgrade GNU
17680 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17681 *** your PATH or compiler configuration so that the native linker is
17682 *** used, and then restart.
17687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17689 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17690 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17699 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17701 hardcode_direct_GCJ=yes
17702 hardcode_shlibpath_var_GCJ=no
17706 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17707 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17708 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17715 if test "$ld_shlibs_GCJ" = no; then
17717 hardcode_libdir_flag_spec_GCJ=
17718 export_dynamic_flag_spec_GCJ=
17719 whole_archive_flag_spec_GCJ=
17722 # PORTME fill in a description of your system's linker (not GNU ld)
17725 allow_undefined_flag_GCJ=unsupported
17726 always_export_symbols_GCJ=yes
17727 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'
17728 # Note: this linker hardcodes the directories in LIBPATH if there
17729 # are no directories specified by -L.
17730 hardcode_minus_L_GCJ=yes
17731 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17732 # Neither direct hardcoding nor static linking is supported with a
17734 hardcode_direct_GCJ=unsupported
17739 if test "$host_cpu" = ia64; then
17740 # On IA64, the linker does run time linking by default, so we don't
17741 # have to do anything special.
17742 aix_use_runtimelinking=no
17743 exp_sym_flag='-Bexport'
17746 # If we're using GNU nm, then we don't want the "-C" option.
17747 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17748 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17749 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'
17751 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'
17753 aix_use_runtimelinking=no
17755 # Test if we are trying to use run time linking or normal
17756 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17757 # need to do runtime linking.
17758 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17759 for ld_flag in $LDFLAGS; do
17760 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17761 aix_use_runtimelinking=yes
17768 exp_sym_flag='-bexport'
17769 no_entry_flag='-bnoentry'
17772 # When large executables or shared objects are built, AIX ld can
17773 # have problems creating the table of contents. If linking a library
17774 # or program results in "error TOC overflow" add -mminimal-toc to
17775 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17776 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17778 archive_cmds_GCJ=''
17779 hardcode_direct_GCJ=yes
17780 hardcode_libdir_separator_GCJ=':'
17781 link_all_deplibs_GCJ=yes
17783 if test "$GCC" = yes; then
17784 case $host_os in aix4.[012]|aix4.[012].*)
17785 # We only want to do this on AIX 4.2 and lower, the check
17786 # below for broken collect2 doesn't work under 4.3+
17787 collect2name=`${CC} -print-prog-name=collect2`
17788 if test -f "$collect2name" && \
17789 strings "$collect2name" | grep resolve_lib_name >/dev/null
17791 # We have reworked collect2
17794 # We have old collect2
17795 hardcode_direct_GCJ=unsupported
17796 # It fails to find uninstalled libraries when the uninstalled
17797 # path is not listed in the libpath. Setting hardcode_minus_L
17798 # to unsupported forces relinking
17799 hardcode_minus_L_GCJ=yes
17800 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17801 hardcode_libdir_separator_GCJ=
17805 shared_flag='-shared'
17806 if test "$aix_use_runtimelinking" = yes; then
17807 shared_flag="$shared_flag "'${wl}-G'
17811 if test "$host_cpu" = ia64; then
17812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17813 # chokes on -Wl,-G. The following line is correct:
17816 if test "$aix_use_runtimelinking" = yes; then
17817 shared_flag='${wl}-G'
17819 shared_flag='${wl}-bM:SRE'
17824 # It seems that -bexpall does not export symbols beginning with
17825 # underscore (_), so it is better to generate a list of symbols to export.
17826 always_export_symbols_GCJ=yes
17827 if test "$aix_use_runtimelinking" = yes; then
17828 # Warning - without using the other runtime loading flags (-brtl),
17829 # -berok will link without error, but may produce a broken library.
17830 allow_undefined_flag_GCJ='-berok'
17831 # Determine the default libpath from the value encoded in an empty executable.
17832 cat >conftest.$ac_ext <<_ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_link") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext &&
17864 $as_test_x conftest$ac_exeext; then
17866 lt_aix_libpath_sed='
17867 /Import File Strings/,/^$/ {
17873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17874 # Check for a 64-bit object if we didn't find anything.
17875 if test -z "$aix_libpath"; then
17876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17886 conftest$ac_exeext conftest.$ac_ext
17887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17889 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17890 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"
17892 if test "$host_cpu" = ia64; then
17893 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17894 allow_undefined_flag_GCJ="-z nodefs"
17895 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"
17897 # Determine the default libpath from the value encoded in an empty executable.
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_link") 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && {
17927 test -z "$ac_c_werror_flag" ||
17928 test ! -s conftest.err
17929 } && test -s conftest$ac_exeext &&
17930 $as_test_x conftest$ac_exeext; then
17932 lt_aix_libpath_sed='
17933 /Import File Strings/,/^$/ {
17939 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17940 # Check for a 64-bit object if we didn't find anything.
17941 if test -z "$aix_libpath"; then
17942 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17945 echo "$as_me: failed program was:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952 conftest$ac_exeext conftest.$ac_ext
17953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17955 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17956 # Warning - without using the other run time loading flags,
17957 # -berok will link without error, but may produce a broken library.
17958 no_undefined_flag_GCJ=' ${wl}-bernotok'
17959 allow_undefined_flag_GCJ=' ${wl}-berok'
17960 # Exported symbols can be pulled into shared objects from archives
17961 whole_archive_flag_spec_GCJ='$convenience'
17962 archive_cmds_need_lc_GCJ=yes
17963 # This is similar to how AIX traditionally builds its shared libraries.
17964 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'
17970 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)'
17971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17972 hardcode_minus_L_GCJ=yes
17973 # see comment about different semantics on the GNU ld section
17978 export_dynamic_flag_spec_GCJ=-rdynamic
17981 cygwin* | mingw* | pw32*)
17982 # When not using gcc, we currently assume that we are using
17983 # Microsoft Visual C++.
17984 # hardcode_libdir_flag_spec is actually meaningless, as there is
17985 # no search path for DLLs.
17986 hardcode_libdir_flag_spec_GCJ=' '
17987 allow_undefined_flag_GCJ=unsupported
17988 # Tell ltmain to make .lib files, not .a files.
17990 # Tell ltmain to make .dll files, not .so files.
17992 # FIXME: Setting linknames here is a bad hack.
17993 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17994 # The linker will automatically build a .lib file if we build a DLL.
17995 old_archive_From_new_cmds_GCJ='true'
17996 # FIXME: Should let the user specify the lib program.
17997 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17998 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17999 enable_shared_with_static_runtimes_GCJ=yes
18002 darwin* | rhapsody*)
18004 rhapsody* | darwin1.[012])
18005 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18008 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18009 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18011 case ${MACOSX_DEPLOYMENT_TARGET} in
18013 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18016 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18022 archive_cmds_need_lc_GCJ=no
18023 hardcode_direct_GCJ=no
18024 hardcode_automatic_GCJ=yes
18025 hardcode_shlibpath_var_GCJ=unsupported
18026 whole_archive_flag_spec_GCJ=''
18027 link_all_deplibs_GCJ=yes
18028 if test "$GCC" = yes ; then
18029 output_verbose_link_cmd='echo'
18030 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}"
18031 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18032 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}"
18033 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}"
18035 case $cc_basename in
18037 output_verbose_link_cmd='echo'
18038 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18039 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18040 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18041 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}'
18042 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}'
18052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18054 hardcode_shlibpath_var_GCJ=no
18061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18062 # support. Future versions do this automatically, but an explicit c++rt0.o
18063 # does not break anything, and helps significantly (at the cost of a little
18066 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18067 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18068 hardcode_direct_GCJ=yes
18069 hardcode_shlibpath_var_GCJ=no
18072 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18074 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18075 hardcode_direct_GCJ=yes
18076 hardcode_minus_L_GCJ=yes
18077 hardcode_shlibpath_var_GCJ=no
18080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18081 freebsd* | dragonfly*)
18082 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18084 hardcode_direct_GCJ=yes
18085 hardcode_shlibpath_var_GCJ=no
18089 if test "$GCC" = yes; then
18090 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'
18092 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'
18094 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18095 hardcode_libdir_separator_GCJ=:
18096 hardcode_direct_GCJ=yes
18098 # hardcode_minus_L: Not really in the search PATH,
18099 # but as the default location of the library.
18100 hardcode_minus_L_GCJ=yes
18101 export_dynamic_flag_spec_GCJ='${wl}-E'
18105 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18106 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18108 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18110 if test "$with_gnu_ld" = no; then
18111 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18112 hardcode_libdir_separator_GCJ=:
18114 hardcode_direct_GCJ=yes
18115 export_dynamic_flag_spec_GCJ='${wl}-E'
18117 # hardcode_minus_L: Not really in the search PATH,
18118 # but as the default location of the library.
18119 hardcode_minus_L_GCJ=yes
18124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18127 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18142 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18145 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18149 if test "$with_gnu_ld" = no; then
18150 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18151 hardcode_libdir_separator_GCJ=:
18155 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18156 hardcode_direct_GCJ=no
18157 hardcode_shlibpath_var_GCJ=no
18160 hardcode_direct_GCJ=yes
18161 export_dynamic_flag_spec_GCJ='${wl}-E'
18163 # hardcode_minus_L: Not really in the search PATH,
18164 # but as the default location of the library.
18165 hardcode_minus_L_GCJ=yes
18171 irix5* | irix6* | nonstopux*)
18172 if test "$GCC" = yes; then
18173 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'
18175 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'
18176 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18179 hardcode_libdir_separator_GCJ=:
18180 link_all_deplibs_GCJ=yes
18183 netbsd* | netbsdelf*-gnu)
18184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18185 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18187 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18189 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18190 hardcode_direct_GCJ=yes
18191 hardcode_shlibpath_var_GCJ=no
18195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18196 hardcode_direct_GCJ=yes
18197 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18198 hardcode_libdir_separator_GCJ=:
18199 hardcode_shlibpath_var_GCJ=no
18203 if test -f /usr/libexec/ld.so; then
18204 hardcode_direct_GCJ=yes
18205 hardcode_shlibpath_var_GCJ=no
18206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18207 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18208 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18210 export_dynamic_flag_spec_GCJ='${wl}-E'
18213 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18214 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18215 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18218 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18219 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18229 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18230 hardcode_minus_L_GCJ=yes
18231 allow_undefined_flag_GCJ=unsupported
18232 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'
18233 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18237 if test "$GCC" = yes; then
18238 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18239 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'
18241 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18242 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'
18244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18245 hardcode_libdir_separator_GCJ=:
18248 osf4* | osf5*) # as osf3* with the addition of -msym flag
18249 if test "$GCC" = yes; then
18250 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18251 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'
18252 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18254 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18255 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'
18256 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~
18257 $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'
18259 # Both c and cxx compiler support -rpath directly
18260 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18262 hardcode_libdir_separator_GCJ=:
18266 no_undefined_flag_GCJ=' -z text'
18267 if test "$GCC" = yes; then
18269 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18271 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18274 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18275 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18276 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18279 hardcode_shlibpath_var_GCJ=no
18281 solaris2.[0-5] | solaris2.[0-5].*) ;;
18283 # The compiler driver will combine and reorder linker options,
18284 # but understands `-z linker_flag'. GCC discards it without `$wl',
18285 # but is careful enough not to reorder.
18286 # Supported since Solaris 2.6 (maybe 2.5.1?)
18287 if test "$GCC" = yes; then
18288 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18290 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18294 link_all_deplibs_GCJ=yes
18298 if test "x$host_vendor" = xsequent; then
18299 # Use $CC to link under sequent, because it throws in some extra .o
18300 # files that make .init and .fini sections work.
18301 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18303 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18305 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18306 hardcode_direct_GCJ=yes
18307 hardcode_minus_L_GCJ=yes
18308 hardcode_shlibpath_var_GCJ=no
18312 case $host_vendor in
18314 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18315 hardcode_direct_GCJ=yes # is this really true???
18318 ## LD is ld it makes a PLAMLIB
18319 ## CC just makes a GrossModule.
18320 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18321 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18322 hardcode_direct_GCJ=no
18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18329 runpath_var='LD_RUN_PATH'
18330 hardcode_shlibpath_var_GCJ=no
18334 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18335 hardcode_shlibpath_var_GCJ=no
18336 export_dynamic_flag_spec_GCJ='-Bexport'
18340 if test -d /usr/nec; then
18341 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342 hardcode_shlibpath_var_GCJ=no
18343 runpath_var=LD_RUN_PATH
18344 hardcode_runpath_var=yes
18349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18350 no_undefined_flag_GCJ='${wl}-z,text'
18351 archive_cmds_need_lc_GCJ=no
18352 hardcode_shlibpath_var_GCJ=no
18353 runpath_var='LD_RUN_PATH'
18355 if test "$GCC" = yes; then
18356 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18357 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18360 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 sysv5* | sco3.2v5* | sco5v6*)
18365 # Note: We can NOT use -z defs as we might desire, because we do not
18366 # link with -lc, and that would cause any symbols used from libc to
18367 # always be unresolved, which means just about no library would
18368 # ever link correctly. If we're not using GNU ld we use -z text
18369 # though, which does catch some bad symbols but isn't as heavy-handed
18371 no_undefined_flag_GCJ='${wl}-z,text'
18372 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18373 archive_cmds_need_lc_GCJ=no
18374 hardcode_shlibpath_var_GCJ=no
18375 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18376 hardcode_libdir_separator_GCJ=':'
18377 link_all_deplibs_GCJ=yes
18378 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18379 runpath_var='LD_RUN_PATH'
18381 if test "$GCC" = yes; then
18382 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18383 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18385 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18386 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18393 hardcode_shlibpath_var_GCJ=no
18402 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18403 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18404 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18407 # Do we need to explicitly link libc?
18409 case "x$archive_cmds_need_lc_GCJ" in
18411 # Assume -lc should be added
18412 archive_cmds_need_lc_GCJ=yes
18414 if test "$enable_shared" = yes && test "$GCC" = yes; then
18415 case $archive_cmds_GCJ in
18417 # FIXME: we may have to deal with multi-command sequences.
18420 # Test whether the compiler implicitly links with -lc since on some
18421 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18422 # to ld, don't add -lc before -lgcc.
18423 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18424 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18429 (eval $ac_compile) 2>&5
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } 2>conftest.err; then
18435 libobjs=conftest.$ac_objext
18437 wl=$lt_prog_compiler_wl_GCJ
18438 pic_flag=$lt_prog_compiler_pic_GCJ
18444 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18445 allow_undefined_flag_GCJ=
18446 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18447 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }
18452 archive_cmds_need_lc_GCJ=no
18454 archive_cmds_need_lc_GCJ=yes
18456 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18458 cat conftest.err 1>&5
18461 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18462 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18469 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18470 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18471 library_names_spec=
18472 libname_spec='lib$name'
18476 postuninstall_cmds=
18480 shlibpath_overrides_runpath=unknown
18482 dynamic_linker="$host_os ld.so"
18483 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18485 need_lib_prefix=unknown
18486 hardcode_into_libs=no
18488 # when you set need_version to no, make sure it does not cause -set_version
18489 # flags to be left without arguments
18490 need_version=unknown
18495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18496 shlibpath_var=LIBPATH
18498 # AIX 3 has no versioning support, so we append a major version to the name.
18499 soname_spec='${libname}${release}${shared_ext}$major'
18506 hardcode_into_libs=yes
18507 if test "$host_cpu" = ia64; then
18508 # AIX 5 supports IA64
18509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18510 shlibpath_var=LD_LIBRARY_PATH
18512 # With GCC up to 2.95.x, collect2 would create an import file
18513 # for dependence libraries. The import file would start with
18514 # the line `#! .'. This would cause the generated library to
18515 # depend on `.', always an invalid library. This was fixed in
18516 # development snapshots of GCC prior to 3.0.
18518 aix4 | aix4.[01] | aix4.[01].*)
18519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18521 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18524 can_build_shared=no
18528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18529 # soname into executable. Probably we can add versioning support to
18530 # collect2, so additional links can be useful in future.
18531 if test "$aix_use_runtimelinking" = yes; then
18532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18533 # instead of lib<name>.a to let people know that these are not
18534 # typical AIX shared libraries.
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537 # We preserve .a as extension for shared libraries through AIX4.2
18538 # and later when we are not doing run time linking.
18539 library_names_spec='${libname}${release}.a $libname.a'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18542 shlibpath_var=LIBPATH
18547 library_names_spec='$libname.ixlibrary $libname.a'
18548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18549 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'
18553 library_names_spec='${libname}${shared_ext}'
18554 dynamic_linker="$host_os ld.so"
18555 shlibpath_var=LIBRARY_PATH
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562 soname_spec='${libname}${release}${shared_ext}$major'
18563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18564 shlibpath_var=LD_LIBRARY_PATH
18565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18567 # the default ld.so.conf also contains /usr/contrib/lib and
18568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18569 # libtool to hard-code these into programs
18572 cygwin* | mingw* | pw32*)
18573 version_type=windows
18578 case $GCC,$host_os in
18579 yes,cygwin* | yes,mingw* | yes,pw32*)
18580 library_names_spec='$libname.dll.a'
18581 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18582 postinstall_cmds='base_file=`basename \${file}`~
18583 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18584 dldir=$destdir/`dirname \$dlpath`~
18585 test -d \$dldir || mkdir -p \$dldir~
18586 $install_prog $dir/$dlname \$dldir/$dlname~
18587 chmod a+x \$dldir/$dlname'
18588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18589 dlpath=$dir/\$dldll~
18591 shlibpath_overrides_runpath=yes
18595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18597 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18600 # MinGW DLLs use traditional 'lib' prefix
18601 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18603 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18604 # It is most probably a Windows format PATH printed by
18605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18606 # path with ; separators, and with drive letters. We can handle the
18607 # drive letters (cygwin fileutils understands them), so leave them,
18608 # especially as we might pass files found there to a mingw objdump,
18609 # which wouldn't understand a cygwinified path. Ahh.
18610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18616 # pw32 DLLs use 'pw' prefix rather than 'lib'
18617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18623 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18626 dynamic_linker='Win32 ld.exe'
18627 # FIXME: first we should search . and the directory the executable is in
18631 darwin* | rhapsody*)
18632 dynamic_linker="$host_os dyld"
18633 version_type=darwin
18636 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18637 soname_spec='${libname}${release}${major}$shared_ext'
18638 shlibpath_overrides_runpath=yes
18639 shlibpath_var=DYLD_LIBRARY_PATH
18640 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 shlibpath_var=LD_LIBRARY_PATH
18658 freebsd* | dragonfly*)
18659 # DragonFly does not have aout. When/if they implement a new
18660 # versioning mechanism, adjust this.
18661 if test -x /usr/bin/objformat; then
18662 objformat=`/usr/bin/objformat`
18665 freebsd[123]*) objformat=aout ;;
18666 *) objformat=elf ;;
18669 version_type=freebsd-$objformat
18670 case $version_type in
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18681 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=yes
18686 freebsd3.[01]* | freebsdelf3.[01]*)
18687 shlibpath_overrides_runpath=yes
18688 hardcode_into_libs=yes
18690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18692 shlibpath_overrides_runpath=no
18693 hardcode_into_libs=yes
18695 *) # from 4.6 on, and DragonFly
18696 shlibpath_overrides_runpath=yes
18697 hardcode_into_libs=yes
18706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18707 soname_spec='${libname}${release}${shared_ext}$major'
18708 shlibpath_var=LD_LIBRARY_PATH
18709 hardcode_into_libs=yes
18712 hpux9* | hpux10* | hpux11*)
18713 # Give a soname corresponding to the major version so that dld.sl refuses to
18714 # link against other versions.
18721 hardcode_into_libs=yes
18722 dynamic_linker="$host_os dld.so"
18723 shlibpath_var=LD_LIBRARY_PATH
18724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726 soname_spec='${libname}${release}${shared_ext}$major'
18727 if test "X$HPUX_IA64_MODE" = X32; then
18728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18736 hardcode_into_libs=yes
18737 dynamic_linker="$host_os dld.sl"
18738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18741 soname_spec='${libname}${release}${shared_ext}$major'
18742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18747 dynamic_linker="$host_os dld.sl"
18748 shlibpath_var=SHLIB_PATH
18749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751 soname_spec='${libname}${release}${shared_ext}$major'
18754 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18755 postinstall_cmds='chmod 555 $lib'
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18763 soname_spec='${libname}${release}${shared_ext}$major'
18764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 shlibpath_overrides_runpath=no
18767 hardcode_into_libs=yes
18770 irix5* | irix6* | nonstopux*)
18772 nonstopux*) version_type=nonstopux ;;
18774 if test "$lt_cv_prog_gnu_ld" = yes; then
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18785 irix5* | nonstopux*)
18786 libsuff= shlibsuff=
18789 case $LD in # libtool.m4 will add one of these switches to LD
18790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18791 libsuff= shlibsuff= libmagic=32-bit;;
18792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18793 libsuff=32 shlibsuff=N32 libmagic=N32;;
18794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18796 *) libsuff= shlibsuff= libmagic=never-match;;
18800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18801 shlibpath_overrides_runpath=no
18802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18804 hardcode_into_libs=yes
18807 # No shared lib support for Linux oldld, aout, or coff.
18808 linux*oldld* | linux*aout* | linux*coff*)
18812 # This must be Linux ELF.
18813 linux* | k*bsd*-gnu)
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18818 soname_spec='${libname}${release}${shared_ext}$major'
18819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18820 shlibpath_var=LD_LIBRARY_PATH
18821 shlibpath_overrides_runpath=no
18822 # This implies no fast_install, which is unacceptable.
18823 # Some rework will be needed to allow for fast_install
18824 # before this can be enabled.
18825 hardcode_into_libs=yes
18827 # Append ld.so.conf contents to the search path
18828 if test -f /etc/ld.so.conf; then
18829 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' ' '`
18830 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18833 # We used to test for /lib/ld.so.1 and disable shared libraries on
18834 # powerpc, because MkLinux only supported shared libraries with the
18835 # GNU dynamic linker. Since this was broken with cross compilers,
18836 # most powerpc-linux boxes support dynamic linking these days and
18837 # people can always --disable-shared, the test was removed, and we
18838 # assume the GNU/Linux dynamic linker is in use.
18839 dynamic_linker='GNU/Linux ld.so'
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18849 shlibpath_overrides_runpath=no
18850 hardcode_into_libs=yes
18851 dynamic_linker='NetBSD ld.elf_so'
18858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18861 dynamic_linker='NetBSD (a.out) ld.so'
18863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18864 soname_spec='${libname}${release}${shared_ext}$major'
18865 dynamic_linker='NetBSD ld.elf_so'
18867 shlibpath_var=LD_LIBRARY_PATH
18868 shlibpath_overrides_runpath=yes
18869 hardcode_into_libs=yes
18874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 shlibpath_var=LD_LIBRARY_PATH
18876 shlibpath_overrides_runpath=yes
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 shlibpath_var=LD_LIBRARY_PATH
18886 shlibpath_overrides_runpath=yes
18891 sys_lib_dlsearch_path_spec="/usr/lib"
18893 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18895 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18896 *) need_version=no ;;
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18900 shlibpath_var=LD_LIBRARY_PATH
18901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18903 openbsd2.[89] | openbsd2.[89].*)
18904 shlibpath_overrides_runpath=no
18907 shlibpath_overrides_runpath=yes
18911 shlibpath_overrides_runpath=yes
18916 libname_spec='$name'
18919 library_names_spec='$libname${shared_ext} $libname.a'
18920 dynamic_linker='OS/2 ld.exe'
18921 shlibpath_var=LIBPATH
18924 osf3* | osf4* | osf5*)
18928 soname_spec='${libname}${release}${shared_ext}$major'
18929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18930 shlibpath_var=LD_LIBRARY_PATH
18931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18932 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18944 soname_spec='${libname}${release}${shared_ext}$major'
18945 shlibpath_var=LD_LIBRARY_PATH
18946 shlibpath_overrides_runpath=yes
18947 hardcode_into_libs=yes
18948 # ldd complains unless libraries are executable
18949 postinstall_cmds='chmod +x $lib'
18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18956 shlibpath_var=LD_LIBRARY_PATH
18957 shlibpath_overrides_runpath=yes
18958 if test "$with_gnu_ld" = yes; then
18966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18967 soname_spec='${libname}${release}${shared_ext}$major'
18968 shlibpath_var=LD_LIBRARY_PATH
18969 case $host_vendor in
18971 shlibpath_overrides_runpath=no
18973 export_dynamic_flag_spec='${wl}-Blargedynsym'
18974 runpath_var=LD_RUN_PATH
18982 shlibpath_overrides_runpath=no
18983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18989 if test -d /usr/nec ;then
18991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18992 soname_spec='$libname${shared_ext}.$major'
18993 shlibpath_var=LD_LIBRARY_PATH
18997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18998 version_type=freebsd-elf
19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19002 soname_spec='${libname}${release}${shared_ext}$major'
19003 shlibpath_var=LD_LIBRARY_PATH
19004 hardcode_into_libs=yes
19005 if test "$with_gnu_ld" = yes; then
19006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19007 shlibpath_overrides_runpath=no
19009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19010 shlibpath_overrides_runpath=yes
19013 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19017 sys_lib_dlsearch_path_spec='/usr/lib'
19022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19023 soname_spec='${libname}${release}${shared_ext}$major'
19024 shlibpath_var=LD_LIBRARY_PATH
19031 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19032 echo "${ECHO_T}$dynamic_linker" >&6; }
19033 test "$dynamic_linker" = no && can_build_shared=no
19035 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19041 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19048 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19051 if test "$GCC" = yes; then
19052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19055 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19056 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19057 hardcode_action_GCJ=
19058 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19059 test -n "$runpath_var_GCJ" || \
19060 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19062 # We can hardcode non-existant directories.
19063 if test "$hardcode_direct_GCJ" != no &&
19064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19065 # have to relink, otherwise we might link with an installed library
19066 # when we should be linking with a yet-to-be-installed one
19067 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19068 test "$hardcode_minus_L_GCJ" != no; then
19069 # Linking always hardcodes the temporary library directory.
19070 hardcode_action_GCJ=relink
19072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19073 hardcode_action_GCJ=immediate
19076 # We cannot hardcode anything, or else we can only hardcode existing
19078 hardcode_action_GCJ=unsupported
19080 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19081 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19083 if test "$hardcode_action_GCJ" = relink; then
19084 # Fast installation is not supported
19085 enable_fast_install=no
19086 elif test "$shlibpath_overrides_runpath" = yes ||
19087 test "$enable_shared" = no; then
19088 # Fast installation is not necessary
19089 enable_fast_install=needless
19093 # The else clause should only fire when bootstrapping the
19094 # libtool distribution, otherwise you forgot to ship ltmain.sh
19095 # with your package, and you will get complaints that there are
19096 # no rules to generate ltmain.sh.
19097 if test -f "$ltmain"; then
19098 # See if we are running on zsh, and set the options which allow our commands through
19099 # without removal of \ escapes.
19100 if test -n "${ZSH_VERSION+set}" ; then
19101 setopt NO_GLOB_SUBST
19103 # Now quote all the things that may contain metacharacters while being
19104 # careful not to overquote the AC_SUBSTed values. We take copies of the
19105 # variables and quote the copies for generation of the libtool script.
19106 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19108 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19109 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19110 deplibs_check_method reload_flag reload_cmds need_locks \
19111 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19112 lt_cv_sys_global_symbol_to_c_name_address \
19113 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19114 old_postinstall_cmds old_postuninstall_cmds \
19118 lt_prog_compiler_wl_GCJ \
19119 lt_prog_compiler_pic_GCJ \
19120 lt_prog_compiler_static_GCJ \
19121 lt_prog_compiler_no_builtin_flag_GCJ \
19122 export_dynamic_flag_spec_GCJ \
19123 thread_safe_flag_spec_GCJ \
19124 whole_archive_flag_spec_GCJ \
19125 enable_shared_with_static_runtimes_GCJ \
19126 old_archive_cmds_GCJ \
19127 old_archive_from_new_cmds_GCJ \
19128 predep_objects_GCJ \
19129 postdep_objects_GCJ \
19132 compiler_lib_search_path_GCJ \
19133 compiler_lib_search_dirs_GCJ \
19135 archive_expsym_cmds_GCJ \
19136 postinstall_cmds_GCJ \
19137 postuninstall_cmds_GCJ \
19138 old_archive_from_expsyms_cmds_GCJ \
19139 allow_undefined_flag_GCJ \
19140 no_undefined_flag_GCJ \
19141 export_symbols_cmds_GCJ \
19142 hardcode_libdir_flag_spec_GCJ \
19143 hardcode_libdir_flag_spec_ld_GCJ \
19144 hardcode_libdir_separator_GCJ \
19145 hardcode_automatic_GCJ \
19147 module_expsym_cmds_GCJ \
19148 lt_cv_prog_compiler_c_o_GCJ \
19149 fix_srcfile_path_GCJ \
19150 exclude_expsyms_GCJ \
19151 include_expsyms_GCJ; do
19154 old_archive_cmds_GCJ | \
19155 old_archive_from_new_cmds_GCJ | \
19156 archive_cmds_GCJ | \
19157 archive_expsym_cmds_GCJ | \
19158 module_cmds_GCJ | \
19159 module_expsym_cmds_GCJ | \
19160 old_archive_from_expsyms_cmds_GCJ | \
19161 export_symbols_cmds_GCJ | \
19162 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19163 postinstall_cmds | postuninstall_cmds | \
19164 old_postinstall_cmds | old_postuninstall_cmds | \
19165 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19166 # Double-quote double-evaled strings.
19167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19170 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19176 *'\$0 --fallback-echo"')
19177 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19183 cat <<__EOF__ >> "$cfgfile"
19184 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19188 # Shell to use when invoking shell scripts.
19191 # Whether or not to build shared libraries.
19192 build_libtool_libs=$enable_shared
19194 # Whether or not to build static libraries.
19195 build_old_libs=$enable_static
19197 # Whether or not to add -lc for building shared libraries.
19198 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19200 # Whether or not to disallow shared libs when runtime libs are static
19201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19203 # Whether or not to optimize for fast installation.
19204 fast_install=$enable_fast_install
19207 host_alias=$host_alias
19211 # The build system.
19212 build_alias=$build_alias
19216 # An echo program that does not interpret backslashes.
19221 AR_FLAGS=$lt_AR_FLAGS
19226 # LTCC compiler flags.
19227 LTCFLAGS=$lt_LTCFLAGS
19229 # A language-specific compiler.
19230 CC=$lt_compiler_GCJ
19232 # Is the compiler the GNU C compiler?
19238 # The linker used to build libraries.
19241 # Whether we need hard or soft links.
19244 # A BSD-compatible nm program.
19247 # A symbol stripping program
19250 # Used to examine libraries when file_magic_cmd begins "file"
19251 MAGIC_CMD=$MAGIC_CMD
19253 # Used on cygwin: DLL creation program.
19256 # Used on cygwin: object dumper.
19259 # Used on cygwin: assembler.
19262 # The name of the directory that contains temporary libtool files.
19265 # How to create reloadable object files.
19266 reload_flag=$lt_reload_flag
19267 reload_cmds=$lt_reload_cmds
19269 # How to pass a linker flag through the compiler.
19270 wl=$lt_lt_prog_compiler_wl_GCJ
19272 # Object file suffix (normally "o").
19273 objext="$ac_objext"
19275 # Old archive suffix (normally "a").
19278 # Shared library suffix (normally ".so").
19279 shrext_cmds='$shrext_cmds'
19281 # Executable file suffix (normally "").
19284 # Additional compiler flags for building library objects.
19285 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19288 # What is the maximum length of a command?
19289 max_cmd_len=$lt_cv_sys_max_cmd_len
19291 # Does compiler simultaneously support -c and -o options?
19292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19294 # Must we lock files when doing compilation?
19295 need_locks=$lt_need_locks
19297 # Do we need the lib prefix for modules?
19298 need_lib_prefix=$need_lib_prefix
19300 # Do we need a version for libraries?
19301 need_version=$need_version
19303 # Whether dlopen is supported.
19304 dlopen_support=$enable_dlopen
19306 # Whether dlopen of programs is supported.
19307 dlopen_self=$enable_dlopen_self
19309 # Whether dlopen of statically linked programs is supported.
19310 dlopen_self_static=$enable_dlopen_self_static
19312 # Compiler flag to prevent dynamic linking.
19313 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19315 # Compiler flag to turn off builtin functions.
19316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19318 # Compiler flag to allow reflexive dlopens.
19319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19321 # Compiler flag to generate shared objects directly from archives.
19322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19324 # Compiler flag to generate thread-safe objects.
19325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19327 # Library versioning type.
19328 version_type=$version_type
19330 # Format of library name prefix.
19331 libname_spec=$lt_libname_spec
19333 # List of archive names. First name is the real one, the rest are links.
19334 # The last name is the one that the linker finds with -lNAME.
19335 library_names_spec=$lt_library_names_spec
19337 # The coded name of the library, if different from the real name.
19338 soname_spec=$lt_soname_spec
19340 # Commands used to build and install an old-style archive.
19342 old_archive_cmds=$lt_old_archive_cmds_GCJ
19343 old_postinstall_cmds=$lt_old_postinstall_cmds
19344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19346 # Create an old-style archive from a shared archive.
19347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19349 # Create a temporary old-style archive to link instead of a shared archive.
19350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19352 # Commands used to build and install a shared archive.
19353 archive_cmds=$lt_archive_cmds_GCJ
19354 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19355 postinstall_cmds=$lt_postinstall_cmds
19356 postuninstall_cmds=$lt_postuninstall_cmds
19358 # Commands used to build a loadable module (assumed same as above if empty)
19359 module_cmds=$lt_module_cmds_GCJ
19360 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19362 # Commands to strip libraries.
19363 old_striplib=$lt_old_striplib
19364 striplib=$lt_striplib
19366 # Dependencies to place before the objects being linked to create a
19368 predep_objects=$lt_predep_objects_GCJ
19370 # Dependencies to place after the objects being linked to create a
19372 postdep_objects=$lt_postdep_objects_GCJ
19374 # Dependencies to place before the objects being linked to create a
19376 predeps=$lt_predeps_GCJ
19378 # Dependencies to place after the objects being linked to create a
19380 postdeps=$lt_postdeps_GCJ
19382 # The directories searched by this compiler when creating a shared
19384 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19386 # The library search path used internally by the compiler when linking
19387 # a shared library.
19388 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19390 # Method to check whether dependent libraries are shared objects.
19391 deplibs_check_method=$lt_deplibs_check_method
19393 # Command to use when deplibs_check_method == file_magic.
19394 file_magic_cmd=$lt_file_magic_cmd
19396 # Flag that allows shared libraries with undefined symbols to be built.
19397 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19399 # Flag that forces no undefined symbols.
19400 no_undefined_flag=$lt_no_undefined_flag_GCJ
19402 # Commands used to finish a libtool library installation in a directory.
19403 finish_cmds=$lt_finish_cmds
19405 # Same as above, but a single script fragment to be evaled but not shown.
19406 finish_eval=$lt_finish_eval
19408 # Take the output of nm and produce a listing of raw symbols and C names.
19409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19411 # Transform the output of nm in a proper C declaration
19412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19414 # Transform the output of nm in a C name address pair
19415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19417 # This is the shared library runtime path variable.
19418 runpath_var=$runpath_var
19420 # This is the shared library path variable.
19421 shlibpath_var=$shlibpath_var
19423 # Is shlibpath searched before the hard-coded library search path?
19424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19426 # How to hardcode a shared library path into an executable.
19427 hardcode_action=$hardcode_action_GCJ
19429 # Whether we should hardcode library paths into libraries.
19430 hardcode_into_libs=$hardcode_into_libs
19432 # Flag to hardcode \$libdir into a binary during linking.
19433 # This must work even if \$libdir does not exist.
19434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19436 # If ld is used when linking, flag to hardcode \$libdir into
19437 # a binary during linking. This must work even if \$libdir does
19439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19441 # Whether we need a single -rpath flag with a separated argument.
19442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19445 # resulting binary.
19446 hardcode_direct=$hardcode_direct_GCJ
19448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19449 # resulting binary.
19450 hardcode_minus_L=$hardcode_minus_L_GCJ
19452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19453 # the resulting binary.
19454 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19456 # Set to yes if building a shared library automatically hardcodes DIR into the library
19457 # and all subsequent libraries and executables linked against it.
19458 hardcode_automatic=$hardcode_automatic_GCJ
19460 # Variables whose values should be saved in libtool wrapper scripts and
19461 # restored at relink time.
19462 variables_saved_for_relink="$variables_saved_for_relink"
19464 # Whether libtool must link a program against all its dependency libraries.
19465 link_all_deplibs=$link_all_deplibs_GCJ
19467 # Compile-time system search path for libraries
19468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19470 # Run-time system search path for libraries
19471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19473 # Fix the shell variable \$srcfile for the compiler.
19474 fix_srcfile_path=$lt_fix_srcfile_path
19476 # Set to yes if exported symbols are required.
19477 always_export_symbols=$always_export_symbols_GCJ
19479 # The commands to list exported symbols.
19480 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19482 # The commands to extract the exported symbol list from a shared archive.
19483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19485 # Symbols that should not be listed in the preloaded symbols.
19486 exclude_expsyms=$lt_exclude_expsyms_GCJ
19488 # Symbols that must always be exported.
19489 include_expsyms=$lt_include_expsyms_GCJ
19491 # ### END LIBTOOL TAG CONFIG: $tagname
19497 # If there is no Makefile yet, we rely on a make rule to execute
19498 # `config.status --recheck' to rerun these tests and create the
19499 # libtool script then.
19500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19501 if test -f "$ltmain_in"; then
19502 test -f Makefile && make "$ltmain"
19508 ac_cpp='$CPP $CPPFLAGS'
19509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19523 # Source file extension for RC test sources.
19526 # Object file extension for compiled RC test sources.
19530 # Code to be used in simple compile tests
19531 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19533 # Code to be used in simple link tests
19534 lt_simple_link_test_code="$lt_simple_compile_test_code"
19536 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19538 # If no C compiler was specified, use CC.
19541 # If no C compiler flags were specified, use CFLAGS.
19542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19544 # Allow CC to be a program name with arguments.
19548 # save warnings/boilerplate of simple test code
19549 ac_outfile=conftest.$ac_objext
19550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19552 _lt_compiler_boilerplate=`cat conftest.err`
19555 ac_outfile=conftest.$ac_objext
19556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19558 _lt_linker_boilerplate=`cat conftest.err`
19562 # Allow CC to be a program name with arguments.
19567 for cc_temp in $compiler""; do
19569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19575 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19577 lt_cv_prog_compiler_c_o_RC=yes
19579 # The else clause should only fire when bootstrapping the
19580 # libtool distribution, otherwise you forgot to ship ltmain.sh
19581 # with your package, and you will get complaints that there are
19582 # no rules to generate ltmain.sh.
19583 if test -f "$ltmain"; then
19584 # See if we are running on zsh, and set the options which allow our commands through
19585 # without removal of \ escapes.
19586 if test -n "${ZSH_VERSION+set}" ; then
19587 setopt NO_GLOB_SUBST
19589 # Now quote all the things that may contain metacharacters while being
19590 # careful not to overquote the AC_SUBSTed values. We take copies of the
19591 # variables and quote the copies for generation of the libtool script.
19592 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19594 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19595 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19596 deplibs_check_method reload_flag reload_cmds need_locks \
19597 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19598 lt_cv_sys_global_symbol_to_c_name_address \
19599 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19600 old_postinstall_cmds old_postuninstall_cmds \
19604 lt_prog_compiler_wl_RC \
19605 lt_prog_compiler_pic_RC \
19606 lt_prog_compiler_static_RC \
19607 lt_prog_compiler_no_builtin_flag_RC \
19608 export_dynamic_flag_spec_RC \
19609 thread_safe_flag_spec_RC \
19610 whole_archive_flag_spec_RC \
19611 enable_shared_with_static_runtimes_RC \
19612 old_archive_cmds_RC \
19613 old_archive_from_new_cmds_RC \
19614 predep_objects_RC \
19615 postdep_objects_RC \
19618 compiler_lib_search_path_RC \
19619 compiler_lib_search_dirs_RC \
19621 archive_expsym_cmds_RC \
19622 postinstall_cmds_RC \
19623 postuninstall_cmds_RC \
19624 old_archive_from_expsyms_cmds_RC \
19625 allow_undefined_flag_RC \
19626 no_undefined_flag_RC \
19627 export_symbols_cmds_RC \
19628 hardcode_libdir_flag_spec_RC \
19629 hardcode_libdir_flag_spec_ld_RC \
19630 hardcode_libdir_separator_RC \
19631 hardcode_automatic_RC \
19633 module_expsym_cmds_RC \
19634 lt_cv_prog_compiler_c_o_RC \
19635 fix_srcfile_path_RC \
19636 exclude_expsyms_RC \
19637 include_expsyms_RC; do
19640 old_archive_cmds_RC | \
19641 old_archive_from_new_cmds_RC | \
19642 archive_cmds_RC | \
19643 archive_expsym_cmds_RC | \
19645 module_expsym_cmds_RC | \
19646 old_archive_from_expsyms_cmds_RC | \
19647 export_symbols_cmds_RC | \
19648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19649 postinstall_cmds | postuninstall_cmds | \
19650 old_postinstall_cmds | old_postuninstall_cmds | \
19651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19652 # Double-quote double-evaled strings.
19653 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19662 *'\$0 --fallback-echo"')
19663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19669 cat <<__EOF__ >> "$cfgfile"
19670 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19672 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19674 # Shell to use when invoking shell scripts.
19677 # Whether or not to build shared libraries.
19678 build_libtool_libs=$enable_shared
19680 # Whether or not to build static libraries.
19681 build_old_libs=$enable_static
19683 # Whether or not to add -lc for building shared libraries.
19684 build_libtool_need_lc=$archive_cmds_need_lc_RC
19686 # Whether or not to disallow shared libs when runtime libs are static
19687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19689 # Whether or not to optimize for fast installation.
19690 fast_install=$enable_fast_install
19693 host_alias=$host_alias
19697 # The build system.
19698 build_alias=$build_alias
19702 # An echo program that does not interpret backslashes.
19707 AR_FLAGS=$lt_AR_FLAGS
19712 # LTCC compiler flags.
19713 LTCFLAGS=$lt_LTCFLAGS
19715 # A language-specific compiler.
19718 # Is the compiler the GNU C compiler?
19724 # The linker used to build libraries.
19727 # Whether we need hard or soft links.
19730 # A BSD-compatible nm program.
19733 # A symbol stripping program
19736 # Used to examine libraries when file_magic_cmd begins "file"
19737 MAGIC_CMD=$MAGIC_CMD
19739 # Used on cygwin: DLL creation program.
19742 # Used on cygwin: object dumper.
19745 # Used on cygwin: assembler.
19748 # The name of the directory that contains temporary libtool files.
19751 # How to create reloadable object files.
19752 reload_flag=$lt_reload_flag
19753 reload_cmds=$lt_reload_cmds
19755 # How to pass a linker flag through the compiler.
19756 wl=$lt_lt_prog_compiler_wl_RC
19758 # Object file suffix (normally "o").
19759 objext="$ac_objext"
19761 # Old archive suffix (normally "a").
19764 # Shared library suffix (normally ".so").
19765 shrext_cmds='$shrext_cmds'
19767 # Executable file suffix (normally "").
19770 # Additional compiler flags for building library objects.
19771 pic_flag=$lt_lt_prog_compiler_pic_RC
19774 # What is the maximum length of a command?
19775 max_cmd_len=$lt_cv_sys_max_cmd_len
19777 # Does compiler simultaneously support -c and -o options?
19778 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19780 # Must we lock files when doing compilation?
19781 need_locks=$lt_need_locks
19783 # Do we need the lib prefix for modules?
19784 need_lib_prefix=$need_lib_prefix
19786 # Do we need a version for libraries?
19787 need_version=$need_version
19789 # Whether dlopen is supported.
19790 dlopen_support=$enable_dlopen
19792 # Whether dlopen of programs is supported.
19793 dlopen_self=$enable_dlopen_self
19795 # Whether dlopen of statically linked programs is supported.
19796 dlopen_self_static=$enable_dlopen_self_static
19798 # Compiler flag to prevent dynamic linking.
19799 link_static_flag=$lt_lt_prog_compiler_static_RC
19801 # Compiler flag to turn off builtin functions.
19802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19804 # Compiler flag to allow reflexive dlopens.
19805 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19807 # Compiler flag to generate shared objects directly from archives.
19808 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19810 # Compiler flag to generate thread-safe objects.
19811 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19813 # Library versioning type.
19814 version_type=$version_type
19816 # Format of library name prefix.
19817 libname_spec=$lt_libname_spec
19819 # List of archive names. First name is the real one, the rest are links.
19820 # The last name is the one that the linker finds with -lNAME.
19821 library_names_spec=$lt_library_names_spec
19823 # The coded name of the library, if different from the real name.
19824 soname_spec=$lt_soname_spec
19826 # Commands used to build and install an old-style archive.
19828 old_archive_cmds=$lt_old_archive_cmds_RC
19829 old_postinstall_cmds=$lt_old_postinstall_cmds
19830 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19832 # Create an old-style archive from a shared archive.
19833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19835 # Create a temporary old-style archive to link instead of a shared archive.
19836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19838 # Commands used to build and install a shared archive.
19839 archive_cmds=$lt_archive_cmds_RC
19840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19841 postinstall_cmds=$lt_postinstall_cmds
19842 postuninstall_cmds=$lt_postuninstall_cmds
19844 # Commands used to build a loadable module (assumed same as above if empty)
19845 module_cmds=$lt_module_cmds_RC
19846 module_expsym_cmds=$lt_module_expsym_cmds_RC
19848 # Commands to strip libraries.
19849 old_striplib=$lt_old_striplib
19850 striplib=$lt_striplib
19852 # Dependencies to place before the objects being linked to create a
19854 predep_objects=$lt_predep_objects_RC
19856 # Dependencies to place after the objects being linked to create a
19858 postdep_objects=$lt_postdep_objects_RC
19860 # Dependencies to place before the objects being linked to create a
19862 predeps=$lt_predeps_RC
19864 # Dependencies to place after the objects being linked to create a
19866 postdeps=$lt_postdeps_RC
19868 # The directories searched by this compiler when creating a shared
19870 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19872 # The library search path used internally by the compiler when linking
19873 # a shared library.
19874 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19876 # Method to check whether dependent libraries are shared objects.
19877 deplibs_check_method=$lt_deplibs_check_method
19879 # Command to use when deplibs_check_method == file_magic.
19880 file_magic_cmd=$lt_file_magic_cmd
19882 # Flag that allows shared libraries with undefined symbols to be built.
19883 allow_undefined_flag=$lt_allow_undefined_flag_RC
19885 # Flag that forces no undefined symbols.
19886 no_undefined_flag=$lt_no_undefined_flag_RC
19888 # Commands used to finish a libtool library installation in a directory.
19889 finish_cmds=$lt_finish_cmds
19891 # Same as above, but a single script fragment to be evaled but not shown.
19892 finish_eval=$lt_finish_eval
19894 # Take the output of nm and produce a listing of raw symbols and C names.
19895 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19897 # Transform the output of nm in a proper C declaration
19898 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19900 # Transform the output of nm in a C name address pair
19901 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19903 # This is the shared library runtime path variable.
19904 runpath_var=$runpath_var
19906 # This is the shared library path variable.
19907 shlibpath_var=$shlibpath_var
19909 # Is shlibpath searched before the hard-coded library search path?
19910 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19912 # How to hardcode a shared library path into an executable.
19913 hardcode_action=$hardcode_action_RC
19915 # Whether we should hardcode library paths into libraries.
19916 hardcode_into_libs=$hardcode_into_libs
19918 # Flag to hardcode \$libdir into a binary during linking.
19919 # This must work even if \$libdir does not exist.
19920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19922 # If ld is used when linking, flag to hardcode \$libdir into
19923 # a binary during linking. This must work even if \$libdir does
19925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19927 # Whether we need a single -rpath flag with a separated argument.
19928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19930 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19931 # resulting binary.
19932 hardcode_direct=$hardcode_direct_RC
19934 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19935 # resulting binary.
19936 hardcode_minus_L=$hardcode_minus_L_RC
19938 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19939 # the resulting binary.
19940 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19942 # Set to yes if building a shared library automatically hardcodes DIR into the library
19943 # and all subsequent libraries and executables linked against it.
19944 hardcode_automatic=$hardcode_automatic_RC
19946 # Variables whose values should be saved in libtool wrapper scripts and
19947 # restored at relink time.
19948 variables_saved_for_relink="$variables_saved_for_relink"
19950 # Whether libtool must link a program against all its dependency libraries.
19951 link_all_deplibs=$link_all_deplibs_RC
19953 # Compile-time system search path for libraries
19954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19956 # Run-time system search path for libraries
19957 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19959 # Fix the shell variable \$srcfile for the compiler.
19960 fix_srcfile_path=$lt_fix_srcfile_path
19962 # Set to yes if exported symbols are required.
19963 always_export_symbols=$always_export_symbols_RC
19965 # The commands to list exported symbols.
19966 export_symbols_cmds=$lt_export_symbols_cmds_RC
19968 # The commands to extract the exported symbol list from a shared archive.
19969 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19971 # Symbols that should not be listed in the preloaded symbols.
19972 exclude_expsyms=$lt_exclude_expsyms_RC
19974 # Symbols that must always be exported.
19975 include_expsyms=$lt_include_expsyms_RC
19977 # ### END LIBTOOL TAG CONFIG: $tagname
19983 # If there is no Makefile yet, we rely on a make rule to execute
19984 # `config.status --recheck' to rerun these tests and create the
19985 # libtool script then.
19986 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19987 if test -f "$ltmain_in"; then
19988 test -f Makefile && make "$ltmain"
19994 ac_cpp='$CPP $CPPFLAGS'
19995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20004 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20005 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20006 { (exit 1); exit 1; }; }
20010 # Append the new tag name to the list of available tags.
20011 if test -n "$tagname" ; then
20012 available_tags="$available_tags $tagname"
20018 # Now substitute the updated list of available tags.
20019 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20020 mv "${ofile}T" "$ofile"
20024 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20025 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20026 { (exit 1); exit 1; }; }
20032 # This can be used to rebuild libtool when needed
20033 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20035 # Always use our own libtool.
20036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20038 # Prevent multiple expansion
20051 # Check whether --with-system-libtool was given.
20052 if test "${with_system_libtool+set}" = set; then
20053 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
20054 set dummy libtool; ac_word=$2
20055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20057 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20066 as_dummy="$PATH:/usr/local/bin"
20067 for as_dir in $as_dummy
20070 test -z "$as_dir" && as_dir=.
20071 for ac_exec_ext in '' $ac_executable_extensions; do
20072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20073 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20084 LIBTOOL=$ac_cv_path_LIBTOOL
20085 if test -n "$LIBTOOL"; then
20086 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20087 echo "${ECHO_T}$LIBTOOL" >&6; }
20089 { echo "$as_me:$LINENO: result: no" >&5
20090 echo "${ECHO_T}no" >&6; }
20096 LIBTOOL="`pwd`/libtool"
20116 # Check whether --enable-strict-dependencies was given.
20117 if test "${enable_strict_dependencies+set}" = set; then
20118 enableval=$enable_strict_dependencies;
20122 docdir='${datadir}/doc/freeradius'
20123 { echo "$as_me:$LINENO: checking docdir" >&5
20124 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20126 # Check whether --with-docdir was given.
20127 if test "${with_docdir+set}" = set; then
20128 withval=$with_docdir; case "$withval" in
20134 [\\/$]* | ?:[\\/]* )
20138 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20139 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20140 { (exit 1); exit 1; }; }
20147 { echo "$as_me:$LINENO: result: $docdir" >&5
20148 echo "${ECHO_T}$docdir" >&6; }
20149 if test "x$docdir" = xno; then
20150 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20151 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20154 logdir='${localstatedir}/log/radius'
20155 { echo "$as_me:$LINENO: checking logdir" >&5
20156 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20158 # Check whether --with-logdir was given.
20159 if test "${with_logdir+set}" = set; then
20160 withval=$with_logdir; case "$withval" in
20162 { { echo "$as_me:$LINENO: error: Need logdir" >&5
20163 echo "$as_me: error: Need logdir" >&2;}
20164 { (exit 1); exit 1; }; }
20168 [\\/$]* | ?:[\\/]* )
20172 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20173 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20174 { (exit 1); exit 1; }; }
20181 { echo "$as_me:$LINENO: result: $logdir" >&5
20182 echo "${ECHO_T}$logdir" >&6; }
20184 radacctdir='${logdir}/radacct'
20185 { echo "$as_me:$LINENO: checking radacctdir" >&5
20186 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20188 # Check whether --with-radacctdir was given.
20189 if test "${with_radacctdir+set}" = set; then
20190 withval=$with_radacctdir; case "$withval" in
20192 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20193 echo "$as_me: error: Need radacctdir" >&2;}
20194 { (exit 1); exit 1; }; }
20198 [\\/$]* | ?:[\\/]* )
20199 radacctdir="$withval"
20202 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20203 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20204 { (exit 1); exit 1; }; }
20211 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20212 echo "${ECHO_T}$radacctdir" >&6; }
20214 raddbdir='${sysconfdir}/raddb'
20215 { echo "$as_me:$LINENO: checking raddbdir" >&5
20216 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20218 # Check whether --with-raddbdir was given.
20219 if test "${with_raddbdir+set}" = set; then
20220 withval=$with_raddbdir; case "$withval" in
20222 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20223 echo "$as_me: error: Need raddbdir" >&2;}
20224 { (exit 1); exit 1; }; }
20228 [\\/$]* | ?:[\\/]* )
20229 raddbdir="$withval"
20232 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20233 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20234 { (exit 1); exit 1; }; }
20241 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20242 echo "${ECHO_T}$raddbdir" >&6; }
20246 # Check whether --with-ascend-binary was given.
20247 if test "${with_ascend_binary+set}" = set; then
20248 withval=$with_ascend_binary; case "$withval" in
20257 if test "X$ASCEND_BINARY" = "Xyes"; then
20259 cat >>confdefs.h <<\_ACEOF
20260 #define ASCEND_BINARY
20267 # Check whether --with-threads was given.
20268 if test "${with_threads+set}" = set; then
20269 withval=$with_threads; case "$withval" in
20281 # Check whether --with-vmps was given.
20282 if test "${with_vmps+set}" = set; then
20283 withval=$with_vmps; case "$withval" in
20292 if test "x$WITH_VMPS" = "xyes"; then
20294 cat >>confdefs.h <<\_ACEOF
20295 #define WITH_VMPS 1
20301 # Check whether --with-dhcp was given.
20302 if test "${with_dhcp+set}" = set; then
20303 withval=$with_dhcp; case "$withval" in
20306 cat >>confdefs.h <<\_ACEOF
20307 #define WITH_DHCP 1
20321 # Check whether --with-static_modules was given.
20322 if test "${with_static_modules+set}" = set; then
20323 withval=$with_static_modules;
20324 for i in $withval; do
20325 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20333 # Check whether --with-modules was given.
20334 if test "${with_modules+set}" = set; then
20335 withval=$with_modules;
20336 for i in $withval; do
20337 MODULES="$MODULES $i"
20343 # Check whether --enable-developer was given.
20344 if test "${enable_developer+set}" = set; then
20345 enableval=$enable_developer; case "$enableval" in
20356 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20360 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20366 # Check whether --with-experimental-modules was given.
20367 if test "${with_experimental_modules+set}" = set; then
20368 withval=$with_experimental_modules; case "$withval" in
20380 # Check whether --with-openssl was given.
20381 if test "${with_openssl+set}" = set; then
20382 withval=$with_openssl; case "$withval" in
20394 OPENSSL_INCLUDE_DIR=
20396 # Check whether --with-openssl-includes was given.
20397 if test "${with_openssl_includes+set}" = set; then
20398 withval=$with_openssl_includes; case "$withval" in
20399 *) OPENSSL_INCLUDE_DIR="$withval"
20408 # Check whether --with-openssl-libraries was given.
20409 if test "${with_openssl_libraries+set}" = set; then
20410 withval=$with_openssl_libraries; case "$withval" in
20411 *) OPENSSL_LIB_DIR="$withval"
20420 # Check whether --with-rlm-FOO-lib-dir was given.
20421 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20422 withval=$with_rlm_FOO_lib_dir; case "$withval" in
20431 # Check whether --with-rlm-FOO-include-dir was given.
20432 if test "${with_rlm_FOO_include_dir+set}" = set; then
20433 withval=$with_rlm_FOO_include_dir; case "$withval" in
20444 # Check whether --with-udpfromto was given.
20445 if test "${with_udpfromto+set}" = set; then
20446 withval=$with_udpfromto; case "$withval" in
20457 if test "x$WITH_UDPFROMTO" = "xyes"; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define WITH_UDPFROMTO
20466 CHECKRAD=checkrad.pl
20467 # Extract the first word of "perl", so it can be a program name with args.
20468 set dummy perl; ac_word=$2
20469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20471 if test "${ac_cv_path_PERL+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20483 test -z "$as_dir" && as_dir=.
20484 for ac_exec_ext in '' $ac_executable_extensions; do
20485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20486 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20494 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20498 PERL=$ac_cv_path_PERL
20499 if test -n "$PERL"; then
20500 { echo "$as_me:$LINENO: result: $PERL" >&5
20501 echo "${ECHO_T}$PERL" >&6; }
20503 { echo "$as_me:$LINENO: result: no" >&5
20504 echo "${ECHO_T}no" >&6; }
20508 if test "x$ac_cv_path_PERL" = "x"; then
20509 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20510 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20512 # Extract the first word of "snmpget", so it can be a program name with args.
20513 set dummy snmpget; ac_word=$2
20514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20516 if test "${ac_cv_path_SNMPGET+set}" = set; then
20517 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20525 for as_dir in $PATH
20528 test -z "$as_dir" && as_dir=.
20529 for ac_exec_ext in '' $ac_executable_extensions; do
20530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20531 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20542 SNMPGET=$ac_cv_path_SNMPGET
20543 if test -n "$SNMPGET"; then
20544 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20545 echo "${ECHO_T}$SNMPGET" >&6; }
20547 { echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6; }
20552 if test "x$ac_cv_path_SNMPGET" = "x"; then
20553 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20554 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20557 # Extract the first word of "snmpwalk", so it can be a program name with args.
20558 set dummy snmpwalk; ac_word=$2
20559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20561 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20566 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 for as_dir in $PATH
20573 test -z "$as_dir" && as_dir=.
20574 for ac_exec_ext in '' $ac_executable_extensions; do
20575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20576 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20587 SNMPWALK=$ac_cv_path_SNMPWALK
20588 if test -n "$SNMPWALK"; then
20589 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20590 echo "${ECHO_T}$SNMPWALK" >&6; }
20592 { echo "$as_me:$LINENO: result: no" >&5
20593 echo "${ECHO_T}no" >&6; }
20597 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20598 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20599 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20602 # Extract the first word of "rusers", so it can be a program name with args.
20603 set dummy rusers; ac_word=$2
20604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20606 if test "${ac_cv_path_RUSERS+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20615 for as_dir in $PATH
20618 test -z "$as_dir" && as_dir=.
20619 for ac_exec_ext in '' $ac_executable_extensions; do
20620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20621 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20629 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20633 RUSERS=$ac_cv_path_RUSERS
20634 if test -n "$RUSERS"; then
20635 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20636 echo "${ECHO_T}$RUSERS" >&6; }
20638 { echo "$as_me:$LINENO: result: no" >&5
20639 echo "${ECHO_T}no" >&6; }
20644 missing_dir=`cd $ac_aux_dir && pwd`
20645 # expand $ac_aux_dir to an absolute path
20646 am_aux_dir=`cd $ac_aux_dir && pwd`
20648 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20649 # Use eval to expand $SHELL
20650 if eval "$MISSING --run true"; then
20651 am_missing_run="$MISSING --run "
20654 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20655 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20659 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20662 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20668 # Extract the first word of "locate", so it can be a program name with args.
20669 set dummy locate; ac_word=$2
20670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20672 if test "${ac_cv_path_LOCATE+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20681 for as_dir in $PATH
20684 test -z "$as_dir" && as_dir=.
20685 for ac_exec_ext in '' $ac_executable_extensions; do
20686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20687 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20698 LOCATE=$ac_cv_path_LOCATE
20699 if test -n "$LOCATE"; then
20700 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20701 echo "${ECHO_T}$LOCATE" >&6; }
20703 { echo "$as_me:$LINENO: result: no" >&5
20704 echo "${ECHO_T}no" >&6; }
20708 # Extract the first word of "dirname", so it can be a program name with args.
20709 set dummy dirname; ac_word=$2
20710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20712 if test "${ac_cv_path_DIRNAME+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20721 for as_dir in $PATH
20724 test -z "$as_dir" && as_dir=.
20725 for ac_exec_ext in '' $ac_executable_extensions; do
20726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20727 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20738 DIRNAME=$ac_cv_path_DIRNAME
20739 if test -n "$DIRNAME"; then
20740 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20741 echo "${ECHO_T}$DIRNAME" >&6; }
20743 { echo "$as_me:$LINENO: result: no" >&5
20744 echo "${ECHO_T}no" >&6; }
20748 # Extract the first word of "grep", so it can be a program name with args.
20749 set dummy grep; ac_word=$2
20750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20752 if test "${ac_cv_path_GREP+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20757 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20767 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20778 GREP=$ac_cv_path_GREP
20779 if test -n "$GREP"; then
20780 { echo "$as_me:$LINENO: result: $GREP" >&5
20781 echo "${ECHO_T}$GREP" >&6; }
20783 { echo "$as_me:$LINENO: result: no" >&5
20784 echo "${ECHO_T}no" >&6; }
20791 if test "x$WITH_THREADS" = "xyes"; then
20792 if test $ac_cv_prog_suncc = "yes"; then
20793 CFLAGS="$CFLAGS -mt"
20797 for ac_header in pthread.h
20799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20804 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 ac_res=`eval echo '${'$as_ac_Header'}'`
20807 { echo "$as_me:$LINENO: result: $ac_res" >&5
20808 echo "${ECHO_T}$ac_res" >&6; }
20810 # Is the header compilable?
20811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20813 cat >conftest.$ac_ext <<_ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20819 $ac_includes_default
20820 #include <$ac_header>
20822 rm -f conftest.$ac_objext
20823 if { (ac_try="$ac_compile"
20824 case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_compile") 2>conftest.er1
20831 grep -v '^ *+' conftest.er1 >conftest.err
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } && {
20836 test -z "$ac_c_werror_flag" ||
20837 test ! -s conftest.err
20838 } && test -s conftest.$ac_objext; then
20839 ac_header_compiler=yes
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20844 ac_header_compiler=no
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20849 echo "${ECHO_T}$ac_header_compiler" >&6; }
20851 # Is the header present?
20852 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 #include <$ac_header>
20862 if { (ac_try="$ac_cpp conftest.$ac_ext"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } >/dev/null && {
20875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20878 ac_header_preproc=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_preproc=no
20886 rm -f conftest.err conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20888 echo "${ECHO_T}$ac_header_preproc" >&6; }
20890 # So? What about this header?
20891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20897 ac_header_preproc=yes
20900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20918 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 eval "$as_ac_Header=\$ac_header_preproc"
20922 ac_res=`eval echo '${'$as_ac_Header'}'`
20923 { echo "$as_me:$LINENO: result: $ac_res" >&5
20924 echo "${ECHO_T}$ac_res" >&6; }
20927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20928 cat >>confdefs.h <<_ACEOF
20929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20939 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20940 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20941 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20942 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lpthread $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 /* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20959 char pthread_create ();
20963 return pthread_create ();
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (ac_try="$ac_link"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_link") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest$ac_exeext &&
20985 $as_test_x conftest$ac_exeext; then
20986 ac_cv_lib_pthread_pthread_create=yes
20988 echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20991 ac_cv_lib_pthread_pthread_create=no
20994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20995 conftest$ac_exeext conftest.$ac_ext
20996 LIBS=$ac_check_lib_save_LIBS
20998 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20999 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21000 if test $ac_cv_lib_pthread_pthread_create = yes; then
21001 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21002 LIBS="$LIBS -lpthread"
21004 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21005 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21009 ac_check_lib_save_LIBS=$LIBS
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21018 /* Override any GCC internal prototype to avoid an error.
21019 Use char because int might match the return type of a GCC
21020 builtin and then its argument prototype would still apply. */
21024 char pthread_create ();
21028 return pthread_create ();
21033 rm -f conftest.$ac_objext conftest$ac_exeext
21034 if { (ac_try="$ac_link"
21035 case "(($ac_try" in
21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21037 *) ac_try_echo=$ac_try;;
21039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21040 (eval "$ac_link") 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } && {
21047 test -z "$ac_c_werror_flag" ||
21048 test ! -s conftest.err
21049 } && test -s conftest$ac_exeext &&
21050 $as_test_x conftest$ac_exeext; then
21051 ac_cv_lib_c_r_pthread_create=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_cv_lib_c_r_pthread_create=no
21059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21060 conftest$ac_exeext conftest.$ac_ext
21061 LIBS=$ac_check_lib_save_LIBS
21063 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21065 if test $ac_cv_lib_c_r_pthread_create = yes; then
21066 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21077 if test "x$WITH_THREADS" != "xyes"; then
21079 ac_cv_header_pthread_h="no"
21083 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21084 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21085 if test "${ac_cv_search_sem_init+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 ac_func_search_save_LIBS=$LIBS
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21096 /* Override any GCC internal prototype to avoid an error.
21097 Use char because int might match the return type of a GCC
21098 builtin and then its argument prototype would still apply. */
21106 return sem_init ();
21111 for ac_lib in '' pthread sem posix4 rt semaphore; do
21112 if test -z "$ac_lib"; then
21113 ac_res="none required"
21116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (ac_try="$ac_link"
21120 case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_link") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1 >conftest.err
21129 cat conftest.err >&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest$ac_exeext &&
21135 $as_test_x conftest$ac_exeext; then
21136 ac_cv_search_sem_init=$ac_res
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21146 if test "${ac_cv_search_sem_init+set}" = set; then
21150 if test "${ac_cv_search_sem_init+set}" = set; then
21153 ac_cv_search_sem_init=no
21155 rm conftest.$ac_ext
21156 LIBS=$ac_func_search_save_LIBS
21158 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21159 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21160 ac_res=$ac_cv_search_sem_init
21161 if test "$ac_res" != no; then
21162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21165 { { 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
21166 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;}
21167 { (exit 1); exit 1; }; }
21174 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21175 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21176 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 ac_check_lib_save_LIBS=$LIBS
21180 LIBS="-lsocket $LIBS"
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21188 /* Override any GCC internal prototype to avoid an error.
21189 Use char because int might match the return type of a GCC
21190 builtin and then its argument prototype would still apply. */
21194 char getsockname ();
21198 return getsockname ();
21203 rm -f conftest.$ac_objext conftest$ac_exeext
21204 if { (ac_try="$ac_link"
21205 case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_link") 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest$ac_exeext &&
21220 $as_test_x conftest$ac_exeext; then
21221 ac_cv_lib_socket_getsockname=yes
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ac_cv_lib_socket_getsockname=no
21229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21230 conftest$ac_exeext conftest.$ac_ext
21231 LIBS=$ac_check_lib_save_LIBS
21233 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21234 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21235 if test $ac_cv_lib_socket_getsockname = yes; then
21236 cat >>confdefs.h <<_ACEOF
21237 #define HAVE_LIBSOCKET 1
21240 LIBS="-lsocket $LIBS"
21246 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21247 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21248 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 ac_check_lib_save_LIBS=$LIBS
21252 LIBS="-lresolv $LIBS"
21253 cat >conftest.$ac_ext <<_ACEOF
21256 cat confdefs.h >>conftest.$ac_ext
21257 cat >>conftest.$ac_ext <<_ACEOF
21258 /* end confdefs.h. */
21260 /* Override any GCC internal prototype to avoid an error.
21261 Use char because int might match the return type of a GCC
21262 builtin and then its argument prototype would still apply. */
21270 return inet_aton ();
21275 rm -f conftest.$ac_objext conftest$ac_exeext
21276 if { (ac_try="$ac_link"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_link") 2>conftest.er1
21284 grep -v '^ *+' conftest.er1 >conftest.err
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } && {
21289 test -z "$ac_c_werror_flag" ||
21290 test ! -s conftest.err
21291 } && test -s conftest$ac_exeext &&
21292 $as_test_x conftest$ac_exeext; then
21293 ac_cv_lib_resolv_inet_aton=yes
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_cv_lib_resolv_inet_aton=no
21301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21302 conftest$ac_exeext conftest.$ac_ext
21303 LIBS=$ac_check_lib_save_LIBS
21305 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21306 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21307 if test $ac_cv_lib_resolv_inet_aton = yes; then
21308 cat >>confdefs.h <<_ACEOF
21309 #define HAVE_LIBRESOLV 1
21312 LIBS="-lresolv $LIBS"
21318 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21319 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21320 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21323 ac_check_lib_save_LIBS=$LIBS
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21332 /* Override any GCC internal prototype to avoid an error.
21333 Use char because int might match the return type of a GCC
21334 builtin and then its argument prototype would still apply. */
21342 return inet_ntoa ();
21347 rm -f conftest.$ac_objext conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_link") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } && {
21361 test -z "$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 } && test -s conftest$ac_exeext &&
21364 $as_test_x conftest$ac_exeext; then
21365 ac_cv_lib_nsl_inet_ntoa=yes
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_cv_lib_nsl_inet_ntoa=no
21373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21374 conftest$ac_exeext conftest.$ac_ext
21375 LIBS=$ac_check_lib_save_LIBS
21377 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21378 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21379 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21380 cat >>confdefs.h <<_ACEOF
21381 #define HAVE_LIBNSL 1
21390 if test "x$WITH_OPENSSL" = xyes; then
21392 old_LDFLAGS="$LDFLAGS"
21393 if test "x$OPENSSL_LIB_DIR" != "x"; then
21394 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
21396 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21397 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21398 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21399 echo $ECHO_N "(cached) $ECHO_C" >&6
21401 ac_check_lib_save_LIBS=$LIBS
21402 LIBS="-lcrypto $LIBS"
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_link") 2>conftest.er1
21434 grep -v '^ *+' conftest.er1 >conftest.err
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest$ac_exeext &&
21442 $as_test_x conftest$ac_exeext; then
21443 ac_cv_lib_crypto_DH_new=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_lib_crypto_DH_new=no
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21456 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21457 if test $ac_cv_lib_crypto_DH_new = yes; then
21459 LIBS="-lcrypto $LIBS"
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_LIBCRYPTO 1
21465 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21466 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21467 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21468 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 ac_check_lib_save_LIBS=$LIBS
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21479 /* Override any GCC internal prototype to avoid an error.
21480 Use char because int might match the return type of a GCC
21481 builtin and then its argument prototype would still apply. */
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_link") 2>conftest.er1
21503 grep -v '^ *+' conftest.er1 >conftest.err
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } && {
21508 test -z "$ac_c_werror_flag" ||
21509 test ! -s conftest.err
21510 } && test -s conftest$ac_exeext &&
21511 $as_test_x conftest$ac_exeext; then
21512 ac_cv_lib_ssl_SSL_new=yes
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21517 ac_cv_lib_ssl_SSL_new=no
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21524 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21525 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21526 if test $ac_cv_lib_ssl_SSL_new = yes; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_LIBSSL 1
21533 if test "x$OPENSSL_LIB_DIR" != "x"; then
21534 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21536 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21544 LDFLAGS="$old_LDFLAGS"
21548 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21549 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 ac_check_lib_save_LIBS=$LIBS
21554 LIBS="-lws2_32 $LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21562 /* Override any GCC internal prototype to avoid an error.
21563 Use char because int might match the return type of a GCC
21564 builtin and then its argument prototype would still apply. */
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21581 *) ac_try_echo=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1 >conftest.err
21588 cat conftest.err >&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest$ac_exeext &&
21594 $as_test_x conftest$ac_exeext; then
21595 ac_cv_lib_ws2_32_htonl=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600 ac_cv_lib_ws2_32_htonl=no
21603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21604 conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21607 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21608 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21609 if test $ac_cv_lib_ws2_32_htonl = yes; then
21610 cat >>confdefs.h <<_ACEOF
21611 #define HAVE_LIBWS2_32 1
21614 LIBS="-lws2_32 $LIBS"
21620 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21621 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21622 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21623 echo $ECHO_N "(cached) $ECHO_C" >&6
21625 ac_check_lib_save_LIBS=$LIBS
21626 LIBS="-lpcap $LIBS"
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21634 /* Override any GCC internal prototype to avoid an error.
21635 Use char because int might match the return type of a GCC
21636 builtin and then its argument prototype would still apply. */
21640 char pcap_open_live ();
21644 return pcap_open_live ();
21649 rm -f conftest.$ac_objext conftest$ac_exeext
21650 if { (ac_try="$ac_link"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_link") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest$ac_exeext &&
21666 $as_test_x conftest$ac_exeext; then
21667 ac_cv_lib_pcap_pcap_open_live=yes
21669 echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 ac_cv_lib_pcap_pcap_open_live=no
21675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21676 conftest$ac_exeext conftest.$ac_ext
21677 LIBS=$ac_check_lib_save_LIBS
21679 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21680 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21681 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21684 cat >>confdefs.h <<\_ACEOF
21685 #define HAVE_LIBPCAP 1
21690 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21691 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21696 { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21697 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21698 if test "${ac_cv_lib_readline+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21703 for readline_lib in readline edit editline; do
21704 for termcap_lib in "" termcap curses ncurses; do
21705 if test -z "$termcap_lib"; then
21706 TRY_LIB="-l$readline_lib"
21708 TRY_LIB="-l$readline_lib -l$termcap_lib"
21710 LIBS="$ORIG_LIBS $TRY_LIB"
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21718 /* Override any GCC internal prototype to avoid an error.
21719 Use char because int might match the return type of a GCC
21720 builtin and then its argument prototype would still apply. */
21728 return readline ();
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest$ac_exeext &&
21750 $as_test_x conftest$ac_exeext; then
21751 ac_cv_lib_readline="$TRY_LIB"
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760 conftest$ac_exeext conftest.$ac_ext
21761 if test -n "$ac_cv_lib_readline"; then
21762 LIBREADLINE="$TRY_LIB"
21767 if test -n "$ac_cv_lib_readline"; then
21771 if test -z "$ac_cv_lib_readline"; then
21772 ac_cv_lib_readline="no"
21777 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21778 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21780 if test "$ac_cv_lib_readline" != "no"; then
21782 cat >>confdefs.h <<\_ACEOF
21783 #define HAVE_LIBREADLINE 1
21788 for ac_header in readline.h readline/readline.h
21790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 ac_res=`eval echo '${'$as_ac_Header'}'`
21798 { echo "$as_me:$LINENO: result: $ac_res" >&5
21799 echo "${ECHO_T}$ac_res" >&6; }
21801 # Is the header compilable?
21802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21804 cat >conftest.$ac_ext <<_ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h. */
21810 $ac_includes_default
21811 #include <$ac_header>
21813 rm -f conftest.$ac_objext
21814 if { (ac_try="$ac_compile"
21815 case "(($ac_try" in
21816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817 *) ac_try_echo=$ac_try;;
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820 (eval "$ac_compile") 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && {
21827 test -z "$ac_c_werror_flag" ||
21828 test ! -s conftest.err
21829 } && test -s conftest.$ac_objext; then
21830 ac_header_compiler=yes
21832 echo "$as_me: failed program was:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_header_compiler=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21840 echo "${ECHO_T}$ac_header_compiler" >&6; }
21842 # Is the header present?
21843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 #include <$ac_header>
21853 if { (ac_try="$ac_cpp conftest.$ac_ext"
21854 case "(($ac_try" in
21855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856 *) ac_try_echo=$ac_try;;
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21861 grep -v '^ *+' conftest.er1 >conftest.err
21863 cat conftest.err >&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); } >/dev/null && {
21866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21867 test ! -s conftest.err
21869 ac_header_preproc=yes
21871 echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21874 ac_header_preproc=no
21877 rm -f conftest.err conftest.$ac_ext
21878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21879 echo "${ECHO_T}$ac_header_preproc" >&6; }
21881 # So? What about this header?
21882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21888 ac_header_preproc=yes
21891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21909 echo $ECHO_N "(cached) $ECHO_C" >&6
21911 eval "$as_ac_Header=\$ac_header_preproc"
21913 ac_res=`eval echo '${'$as_ac_Header'}'`
21914 { echo "$as_me:$LINENO: result: $ac_res" >&5
21915 echo "${ECHO_T}$ac_res" >&6; }
21918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21919 cat >>confdefs.h <<_ACEOF
21920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21927 { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21928 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21929 if test "${ac_cv_lib_readline_history+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 ac_cv_lib_readline_history="no"
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21941 /* Override any GCC internal prototype to avoid an error.
21942 Use char because int might match the return type of a GCC
21943 builtin and then its argument prototype would still apply. */
21947 char add_history ();
21951 return add_history ();
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (ac_try="$ac_link"
21958 case "(($ac_try" in
21959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960 *) ac_try_echo=$ac_try;;
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963 (eval "$ac_link") 2>conftest.er1
21965 grep -v '^ *+' conftest.er1 >conftest.err
21967 cat conftest.err >&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } && {
21970 test -z "$ac_c_werror_flag" ||
21971 test ! -s conftest.err
21972 } && test -s conftest$ac_exeext &&
21973 $as_test_x conftest$ac_exeext; then
21974 ac_cv_lib_readline_history="yes"
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21983 conftest$ac_exeext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21987 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21988 if test "$ac_cv_lib_readline_history" = "yes"; then
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_READLINE_HISTORY 1
21996 for ac_header in history.h readline/history.h
21998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 ac_res=`eval echo '${'$as_ac_Header'}'`
22006 { echo "$as_me:$LINENO: result: $ac_res" >&5
22007 echo "${ECHO_T}$ac_res" >&6; }
22009 # Is the header compilable?
22010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 $ac_includes_default
22019 #include <$ac_header>
22021 rm -f conftest.$ac_objext
22022 if { (ac_try="$ac_compile"
22023 case "(($ac_try" in
22024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025 *) ac_try_echo=$ac_try;;
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028 (eval "$ac_compile") 2>conftest.er1
22030 grep -v '^ *+' conftest.er1 >conftest.err
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } && {
22035 test -z "$ac_c_werror_flag" ||
22036 test ! -s conftest.err
22037 } && test -s conftest.$ac_objext; then
22038 ac_header_compiler=yes
22040 echo "$as_me: failed program was:" >&5
22041 sed 's/^/| /' conftest.$ac_ext >&5
22043 ac_header_compiler=no
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22048 echo "${ECHO_T}$ac_header_compiler" >&6; }
22050 # Is the header present?
22051 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 #include <$ac_header>
22061 if { (ac_try="$ac_cpp conftest.$ac_ext"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } >/dev/null && {
22074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22077 ac_header_preproc=yes
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22082 ac_header_preproc=no
22085 rm -f conftest.err conftest.$ac_ext
22086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22087 echo "${ECHO_T}$ac_header_preproc" >&6; }
22089 # So? What about this header?
22090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22096 ac_header_preproc=yes
22099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 eval "$as_ac_Header=\$ac_header_preproc"
22121 ac_res=`eval echo '${'$as_ac_Header'}'`
22122 { echo "$as_me:$LINENO: result: $ac_res" >&5
22123 echo "${ECHO_T}$ac_res" >&6; }
22126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22127 cat >>confdefs.h <<_ACEOF
22128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22142 CFLAGS="$CFLAGS -D_ALL_SOURCE"
22145 CFLAGS="$CFLAGS -DDARWIN"
22146 LIBS="-framework DirectoryService $LIBS"
22155 ac_header_dirent=no
22156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22157 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22158 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 cat >conftest.$ac_ext <<_ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <sys/types.h>
22181 rm -f conftest.$ac_objext
22182 if { (ac_try="$ac_compile"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_compile") 2>conftest.er1
22190 grep -v '^ *+' conftest.er1 >conftest.err
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && {
22195 test -z "$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22197 } && test -s conftest.$ac_objext; then
22198 eval "$as_ac_Header=yes"
22200 echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 eval "$as_ac_Header=no"
22206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208 ac_res=`eval echo '${'$as_ac_Header'}'`
22209 { echo "$as_me:$LINENO: result: $ac_res" >&5
22210 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22216 ac_header_dirent=$ac_hdr; break
22220 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22221 if test $ac_header_dirent = dirent.h; then
22222 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22223 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22224 if test "${ac_cv_search_opendir+set}" = set; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 ac_func_search_save_LIBS=$LIBS
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22250 for ac_lib in '' dir; do
22251 if test -z "$ac_lib"; then
22252 ac_res="none required"
22255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22257 rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_link") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest$ac_exeext &&
22274 $as_test_x conftest$ac_exeext; then
22275 ac_cv_search_opendir=$ac_res
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22285 if test "${ac_cv_search_opendir+set}" = set; then
22289 if test "${ac_cv_search_opendir+set}" = set; then
22292 ac_cv_search_opendir=no
22294 rm conftest.$ac_ext
22295 LIBS=$ac_func_search_save_LIBS
22297 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22298 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22299 ac_res=$ac_cv_search_opendir
22300 if test "$ac_res" != no; then
22301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22306 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22307 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22308 if test "${ac_cv_search_opendir+set}" = set; then
22309 echo $ECHO_N "(cached) $ECHO_C" >&6
22311 ac_func_search_save_LIBS=$LIBS
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22319 /* Override any GCC internal prototype to avoid an error.
22320 Use char because int might match the return type of a GCC
22321 builtin and then its argument prototype would still apply. */
22334 for ac_lib in '' x; do
22335 if test -z "$ac_lib"; then
22336 ac_res="none required"
22339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_link") 2>conftest.er1
22350 grep -v '^ *+' conftest.er1 >conftest.err
22352 cat conftest.err >&5
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest$ac_exeext &&
22358 $as_test_x conftest$ac_exeext; then
22359 ac_cv_search_opendir=$ac_res
22361 echo "$as_me: failed program was:" >&5
22362 sed 's/^/| /' conftest.$ac_ext >&5
22367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22369 if test "${ac_cv_search_opendir+set}" = set; then
22373 if test "${ac_cv_search_opendir+set}" = set; then
22376 ac_cv_search_opendir=no
22378 rm conftest.$ac_ext
22379 LIBS=$ac_func_search_save_LIBS
22381 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22382 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22383 ac_res=$ac_cv_search_opendir
22384 if test "$ac_res" != no; then
22385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22391 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22392 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22393 if test "${ac_cv_header_stdc+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 #include <stdlib.h>
22403 #include <stdarg.h>
22404 #include <string.h>
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_compile") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest.$ac_objext; then
22432 ac_cv_header_stdc=yes
22434 echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22437 ac_cv_header_stdc=no
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 if test $ac_cv_header_stdc = yes; then
22443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22444 cat >conftest.$ac_ext <<_ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22450 #include <string.h>
22453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22454 $EGREP "memchr" >/dev/null 2>&1; then
22457 ac_cv_header_stdc=no
22463 if test $ac_cv_header_stdc = yes; then
22464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22465 cat >conftest.$ac_ext <<_ACEOF
22468 cat confdefs.h >>conftest.$ac_ext
22469 cat >>conftest.$ac_ext <<_ACEOF
22470 /* end confdefs.h. */
22471 #include <stdlib.h>
22474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22475 $EGREP "free" >/dev/null 2>&1; then
22478 ac_cv_header_stdc=no
22484 if test $ac_cv_header_stdc = yes; then
22485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22486 if test "$cross_compiling" = yes; then
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22496 #include <stdlib.h>
22497 #if ((' ' & 0x0FF) == 0x020)
22498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22501 # define ISLOWER(c) \
22502 (('a' <= (c) && (c) <= 'i') \
22503 || ('j' <= (c) && (c) <= 'r') \
22504 || ('s' <= (c) && (c) <= 'z'))
22505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22513 for (i = 0; i < 256; i++)
22514 if (XOR (islower (i), ISLOWER (i))
22515 || toupper (i) != TOUPPER (i))
22520 rm -f conftest$ac_exeext
22521 if { (ac_try="$ac_link"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_link") 2>&5
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22542 echo "$as_me: program exited with status $ac_status" >&5
22543 echo "$as_me: failed program was:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 ( exit $ac_status )
22547 ac_cv_header_stdc=no
22549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22555 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22556 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22557 if test $ac_cv_header_stdc = yes; then
22559 cat >>confdefs.h <<\_ACEOF
22560 #define STDC_HEADERS 1
22565 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22566 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22567 if test "${ac_cv_header_time+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22570 cat >conftest.$ac_ext <<_ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 #include <sys/types.h>
22577 #include <sys/time.h>
22583 if ((struct tm *) 0)
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_compile") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1 >conftest.err
22600 cat conftest.err >&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } && {
22603 test -z "$ac_c_werror_flag" ||
22604 test ! -s conftest.err
22605 } && test -s conftest.$ac_objext; then
22606 ac_cv_header_time=yes
22608 echo "$as_me: failed program was:" >&5
22609 sed 's/^/| /' conftest.$ac_ext >&5
22611 ac_cv_header_time=no
22614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22617 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22618 if test $ac_cv_header_time = yes; then
22620 cat >>confdefs.h <<\_ACEOF
22621 #define TIME_WITH_SYS_TIME 1
22626 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22627 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22628 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22631 cat >conftest.$ac_ext <<_ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22637 #include <sys/types.h>
22638 #include <sys/wait.h>
22639 #ifndef WEXITSTATUS
22640 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22643 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22651 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_compile") 2>conftest.er1
22665 grep -v '^ *+' conftest.er1 >conftest.err
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest.$ac_objext; then
22673 ac_cv_header_sys_wait_h=yes
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22678 ac_cv_header_sys_wait_h=no
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22684 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22685 if test $ac_cv_header_sys_wait_h = yes; then
22687 cat >>confdefs.h <<\_ACEOF
22688 #define HAVE_SYS_WAIT_H 1
22767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22772 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 ac_res=`eval echo '${'$as_ac_Header'}'`
22775 { echo "$as_me:$LINENO: result: $ac_res" >&5
22776 echo "${ECHO_T}$ac_res" >&6; }
22778 # Is the header compilable?
22779 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 $ac_includes_default
22788 #include <$ac_header>
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797 (eval "$ac_compile") 2>conftest.er1
22799 grep -v '^ *+' conftest.er1 >conftest.err
22801 cat conftest.err >&5
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } && {
22804 test -z "$ac_c_werror_flag" ||
22805 test ! -s conftest.err
22806 } && test -s conftest.$ac_objext; then
22807 ac_header_compiler=yes
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 ac_header_compiler=no
22815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22817 echo "${ECHO_T}$ac_header_compiler" >&6; }
22819 # Is the header present?
22820 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <$ac_header>
22830 if { (ac_try="$ac_cpp conftest.$ac_ext"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22838 grep -v '^ *+' conftest.er1 >conftest.err
22840 cat conftest.err >&5
22841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842 (exit $ac_status); } >/dev/null && {
22843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22844 test ! -s conftest.err
22846 ac_header_preproc=yes
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22851 ac_header_preproc=no
22854 rm -f conftest.err conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22856 echo "${ECHO_T}$ac_header_preproc" >&6; }
22858 # So? What about this header?
22859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22865 ac_header_preproc=yes
22868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 eval "$as_ac_Header=\$ac_header_preproc"
22890 ac_res=`eval echo '${'$as_ac_Header'}'`
22891 { echo "$as_me:$LINENO: result: $ac_res" >&5
22892 echo "${ECHO_T}$ac_res" >&6; }
22895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22896 cat >>confdefs.h <<_ACEOF
22897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22906 for ac_header in net/if.h
22908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22920 #ifdef HAVE_SYS_SOCKET_H
22921 # include <sys/socket.h>
22925 #include <$ac_header>
22927 rm -f conftest.$ac_objext
22928 if { (ac_try="$ac_compile"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_compile") 2>conftest.er1
22936 grep -v '^ *+' conftest.er1 >conftest.err
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest.$ac_objext; then
22944 eval "$as_ac_Header=yes"
22946 echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 eval "$as_ac_Header=no"
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22954 ac_res=`eval echo '${'$as_ac_Header'}'`
22955 { echo "$as_me:$LINENO: result: $ac_res" >&5
22956 echo "${ECHO_T}$ac_res" >&6; }
22957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22958 cat >>confdefs.h <<_ACEOF
22959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22968 if test "${ac_cv_header_regex_h+set}" = set; then
22969 { echo "$as_me:$LINENO: checking for regex.h" >&5
22970 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22971 if test "${ac_cv_header_regex_h+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22975 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22977 # Is the header compilable?
22978 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22979 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22980 cat >conftest.$ac_ext <<_ACEOF
22983 cat confdefs.h >>conftest.$ac_ext
22984 cat >>conftest.$ac_ext <<_ACEOF
22985 /* end confdefs.h. */
22986 $ac_includes_default
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.$ac_objext; then
23006 ac_header_compiler=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_compiler=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23016 echo "${ECHO_T}$ac_header_compiler" >&6; }
23018 # Is the header present?
23019 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23020 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23029 if { (ac_try="$ac_cpp conftest.$ac_ext"
23030 case "(($ac_try" in
23031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23032 *) ac_try_echo=$ac_try;;
23034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23037 grep -v '^ *+' conftest.er1 >conftest.err
23039 cat conftest.err >&5
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } >/dev/null && {
23042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23043 test ! -s conftest.err
23045 ac_header_preproc=yes
23047 echo "$as_me: failed program was:" >&5
23048 sed 's/^/| /' conftest.$ac_ext >&5
23050 ac_header_preproc=no
23053 rm -f conftest.err conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23055 echo "${ECHO_T}$ac_header_preproc" >&6; }
23057 # So? What about this header?
23058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23060 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23061 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23063 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23064 ac_header_preproc=yes
23067 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23068 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23069 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23070 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23071 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23072 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23073 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23074 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23075 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23076 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23077 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23078 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23082 { echo "$as_me:$LINENO: checking for regex.h" >&5
23083 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23084 if test "${ac_cv_header_regex_h+set}" = set; then
23085 echo $ECHO_N "(cached) $ECHO_C" >&6
23087 ac_cv_header_regex_h=$ac_header_preproc
23089 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23090 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23093 if test $ac_cv_header_regex_h = yes; then
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_REGEX_H
23102 if test "x$ac_cv_header_regex_h" = "xyes"; then
23105 cat >conftest.$ac_ext <<_ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23112 #ifdef REG_EXTENDED
23117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23118 $EGREP "yes" >/dev/null 2>&1; then
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_REG_EXTENDED
23131 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23134 cat >>confdefs.h <<\_ACEOF
23140 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23143 cat >>confdefs.h <<\_ACEOF
23149 OPENSSL_INCLUDE="-DNO_OPENSSL"
23150 if test "x$WITH_OPENSSL" = xyes; then
23151 if test "x$OPENSSL_LIBS" = "x"; then
23152 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23153 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23155 old_CPPFLAGS=$CPPFLAGS
23156 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23157 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23159 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23177 echo $ECHO_N "(cached) $ECHO_C" >&6
23179 ac_res=`eval echo '${'$as_ac_Header'}'`
23180 { echo "$as_me:$LINENO: result: $ac_res" >&5
23181 echo "${ECHO_T}$ac_res" >&6; }
23183 # Is the header compilable?
23184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 $ac_includes_default
23193 #include <$ac_header>
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23204 grep -v '^ *+' conftest.er1 >conftest.err
23206 cat conftest.err >&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_header_compiler=yes
23214 echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_header_compiler=no
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 echo "${ECHO_T}$ac_header_compiler" >&6; }
23224 # Is the header present?
23225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 #include <$ac_header>
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23243 grep -v '^ *+' conftest.er1 >conftest.err
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } >/dev/null && {
23248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23249 test ! -s conftest.err
23251 ac_header_preproc=yes
23253 echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23256 ac_header_preproc=no
23259 rm -f conftest.err conftest.$ac_ext
23260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23261 echo "${ECHO_T}$ac_header_preproc" >&6; }
23263 # So? What about this header?
23264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23270 ac_header_preproc=yes
23273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23291 echo $ECHO_N "(cached) $ECHO_C" >&6
23293 eval "$as_ac_Header=\$ac_header_preproc"
23295 ac_res=`eval echo '${'$as_ac_Header'}'`
23296 { echo "$as_me:$LINENO: result: $ac_res" >&5
23297 echo "${ECHO_T}$ac_res" >&6; }
23300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23301 cat >>confdefs.h <<_ACEOF
23302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23312 if test "x$OPENSSL_LIBS" != "x"; then
23313 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23314 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 #include <openssl/crypto.h>
23322 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23328 $EGREP "yes" >/dev/null 2>&1; then
23333 if test "x$goodssl" != "xyes"; then
23334 { echo "$as_me:$LINENO: result: no" >&5
23335 echo "${ECHO_T}no" >&6; }
23338 { echo "$as_me:$LINENO: result: yes" >&5
23339 echo "${ECHO_T}yes" >&6; }
23340 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23341 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23343 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23347 CPPFLAGS=$old_CPPFLAGS
23352 export OPENSSL_LIBS
23354 if test "x$PCAP_LIBS" = x; then
23355 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23356 echo "$as_me: skipping test for pcap.h." >&6;}
23358 if test "${ac_cv_header_pcap_h+set}" = set; then
23359 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23360 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23361 if test "${ac_cv_header_pcap_h+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23365 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23367 # Is the header compilable?
23368 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23369 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23370 cat >conftest.$ac_ext <<_ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23376 $ac_includes_default
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_compile") 2>conftest.er1
23388 grep -v '^ *+' conftest.er1 >conftest.err
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_c_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest.$ac_objext; then
23396 ac_header_compiler=yes
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23401 ac_header_compiler=no
23404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23406 echo "${ECHO_T}$ac_header_compiler" >&6; }
23408 # Is the header present?
23409 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23410 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23419 if { (ac_try="$ac_cpp conftest.$ac_ext"
23420 case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23427 grep -v '^ *+' conftest.er1 >conftest.err
23429 cat conftest.err >&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } >/dev/null && {
23432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23433 test ! -s conftest.err
23435 ac_header_preproc=yes
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ac_header_preproc=no
23443 rm -f conftest.err conftest.$ac_ext
23444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23445 echo "${ECHO_T}$ac_header_preproc" >&6; }
23447 # So? What about this header?
23448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23450 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23451 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23452 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23453 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23454 ac_header_preproc=yes
23457 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23458 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23459 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
23460 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
23461 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23462 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23463 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
23464 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
23465 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23466 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23467 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23468 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23472 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23473 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23474 if test "${ac_cv_header_pcap_h+set}" = set; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 ac_cv_header_pcap_h=$ac_header_preproc
23479 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23480 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23483 if test $ac_cv_header_pcap_h = yes; then
23485 cat >>confdefs.h <<\_ACEOF
23486 #define HAVE_PCAP_H 1
23491 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23492 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23498 { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5
23499 echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; }
23500 if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23503 ac_check_lib_save_LIBS=$LIBS
23504 LIBS="-lpcap $LIBS"
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23512 /* Override any GCC internal prototype to avoid an error.
23513 Use char because int might match the return type of a GCC
23514 builtin and then its argument prototype would still apply. */
23518 char pcap_fopen_offline ();
23522 return pcap_fopen_offline ();
23527 rm -f conftest.$ac_objext conftest$ac_exeext
23528 if { (ac_try="$ac_link"
23529 case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534 (eval "$ac_link") 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && {
23541 test -z "$ac_c_werror_flag" ||
23542 test ! -s conftest.err
23543 } && test -s conftest$ac_exeext &&
23544 $as_test_x conftest$ac_exeext; then
23545 ac_cv_lib_pcap_pcap_fopen_offline=yes
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ac_cv_lib_pcap_pcap_fopen_offline=no
23553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554 conftest$ac_exeext conftest.$ac_ext
23555 LIBS=$ac_check_lib_save_LIBS
23557 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
23558 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
23559 if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_PCAP_FOPEN_OFFLINE 1
23568 { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5
23569 echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; }
23570 if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 ac_check_lib_save_LIBS=$LIBS
23574 LIBS="-lpcap $LIBS"
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23582 /* Override any GCC internal prototype to avoid an error.
23583 Use char because int might match the return type of a GCC
23584 builtin and then its argument prototype would still apply. */
23588 char pcap_dump_fopen ();
23592 return pcap_dump_fopen ();
23597 rm -f conftest.$ac_objext conftest$ac_exeext
23598 if { (ac_try="$ac_link"
23599 case "(($ac_try" in
23600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601 *) ac_try_echo=$ac_try;;
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604 (eval "$ac_link") 2>conftest.er1
23606 grep -v '^ *+' conftest.er1 >conftest.err
23608 cat conftest.err >&5
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest$ac_exeext &&
23614 $as_test_x conftest$ac_exeext; then
23615 ac_cv_lib_pcap_pcap_dump_fopen=yes
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23620 ac_cv_lib_pcap_pcap_dump_fopen=no
23623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23624 conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23627 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
23628 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
23629 if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_PCAP_DUMP_FOPEN 1
23642 { echo "$as_me:$LINENO: checking for off_t" >&5
23643 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23644 if test "${ac_cv_type_off_t+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 $ac_includes_default
23654 typedef off_t ac__type_new_;
23658 if ((ac__type_new_ *) 0)
23660 if (sizeof (ac__type_new_))
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 ac_cv_type_off_t=yes
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 ac_cv_type_off_t=no
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23694 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23695 if test $ac_cv_type_off_t = yes; then
23699 cat >>confdefs.h <<_ACEOF
23700 #define off_t long int
23705 { echo "$as_me:$LINENO: checking for pid_t" >&5
23706 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23707 if test "${ac_cv_type_pid_t+set}" = set; then
23708 echo $ECHO_N "(cached) $ECHO_C" >&6
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23716 $ac_includes_default
23717 typedef pid_t ac__type_new_;
23721 if ((ac__type_new_ *) 0)
23723 if (sizeof (ac__type_new_))
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23738 grep -v '^ *+' conftest.er1 >conftest.err
23740 cat conftest.err >&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } && {
23743 test -z "$ac_c_werror_flag" ||
23744 test ! -s conftest.err
23745 } && test -s conftest.$ac_objext; then
23746 ac_cv_type_pid_t=yes
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_type_pid_t=no
23754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23756 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23757 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23758 if test $ac_cv_type_pid_t = yes; then
23762 cat >>confdefs.h <<_ACEOF
23768 { echo "$as_me:$LINENO: checking for size_t" >&5
23769 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23770 if test "${ac_cv_type_size_t+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23779 $ac_includes_default
23780 typedef size_t ac__type_new_;
23784 if ((ac__type_new_ *) 0)
23786 if (sizeof (ac__type_new_))
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_compile") 2>conftest.er1
23801 grep -v '^ *+' conftest.er1 >conftest.err
23803 cat conftest.err >&5
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } && {
23806 test -z "$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 } && test -s conftest.$ac_objext; then
23809 ac_cv_type_size_t=yes
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_cv_type_size_t=no
23817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23820 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23821 if test $ac_cv_type_size_t = yes; then
23825 cat >>confdefs.h <<_ACEOF
23826 #define size_t unsigned int
23831 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23832 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23833 if test "${ac_cv_type_uid_t+set}" = set; then
23834 echo $ECHO_N "(cached) $ECHO_C" >&6
23836 cat >conftest.$ac_ext <<_ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842 #include <sys/types.h>
23845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23846 $EGREP "uid_t" >/dev/null 2>&1; then
23847 ac_cv_type_uid_t=yes
23849 ac_cv_type_uid_t=no
23854 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23855 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23856 if test $ac_cv_type_uid_t = no; then
23858 cat >>confdefs.h <<\_ACEOF
23863 cat >>confdefs.h <<\_ACEOF
23871 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23872 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23873 if test "${ac_cv_type_socklen_t+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 ac_cv_type_socklen_t=no
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 #ifdef HAVE_SYS_TYPES_H
23884 #include <sys/types.h>
23886 #ifdef HAVE_SYS_SOCKET_H
23887 #include <sys/socket.h>
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905 (eval "$ac_compile") 2>conftest.er1
23907 grep -v '^ *+' conftest.er1 >conftest.err
23909 cat conftest.err >&5
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } && {
23912 test -z "$ac_c_werror_flag" ||
23913 test ! -s conftest.err
23914 } && test -s conftest.$ac_objext; then
23915 ac_cv_type_socklen_t=yes
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23928 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23930 if test "$ac_cv_type_socklen_t" != "yes"; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define socklen_t int
23940 { echo "$as_me:$LINENO: checking for uint8_t" >&5
23941 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23942 if test "${ac_cv_type_uint8_t+set}" = set; then
23943 echo $ECHO_N "(cached) $ECHO_C" >&6
23945 ac_cv_type_uint8_t=no
23946 cat >conftest.$ac_ext <<_ACEOF
23949 cat confdefs.h >>conftest.$ac_ext
23950 cat >>conftest.$ac_ext <<_ACEOF
23951 /* end confdefs.h. */
23952 #ifdef HAVE_INTTYPES_H
23953 #include <inttypes.h>
23955 #ifdef HAVE_STDINT_H
23956 #include <stdint.h>
23967 rm -f conftest.$ac_objext
23968 if { (ac_try="$ac_compile"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23974 (eval "$ac_compile") 2>conftest.er1
23976 grep -v '^ *+' conftest.er1 >conftest.err
23978 cat conftest.err >&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); } && {
23981 test -z "$ac_c_werror_flag" ||
23982 test ! -s conftest.err
23983 } && test -s conftest.$ac_objext; then
23984 ac_cv_type_uint8_t=yes
23986 echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23996 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23997 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23999 if test "$ac_cv_type_uint8_t" != "yes"; then
24001 cat >>confdefs.h <<\_ACEOF
24002 #define uint8_t unsigned char
24009 { echo "$as_me:$LINENO: checking for uint16_t" >&5
24010 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
24011 if test "${ac_cv_type_uint16_t+set}" = set; then
24012 echo $ECHO_N "(cached) $ECHO_C" >&6
24014 ac_cv_type_uint16_t=no
24015 cat >conftest.$ac_ext <<_ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24021 #ifdef HAVE_INTTYPES_H
24022 #include <inttypes.h>
24024 #ifdef HAVE_STDINT_H
24025 #include <stdint.h>
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24045 grep -v '^ *+' conftest.er1 >conftest.err
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 ac_cv_type_uint16_t=yes
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24066 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24068 if test "$ac_cv_type_uint16_t" != "yes"; then
24070 cat >>confdefs.h <<\_ACEOF
24071 #define uint16_t unsigned short
24078 { echo "$as_me:$LINENO: checking for uint32_t" >&5
24079 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24080 if test "${ac_cv_type_uint32_t+set}" = set; then
24081 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 ac_cv_type_uint32_t=no
24084 cat >conftest.$ac_ext <<_ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24090 #ifdef HAVE_INTTYPES_H
24091 #include <inttypes.h>
24093 #ifdef HAVE_STDINT_H
24094 #include <stdint.h>
24105 rm -f conftest.$ac_objext
24106 if { (ac_try="$ac_compile"
24107 case "(($ac_try" in
24108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109 *) ac_try_echo=$ac_try;;
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_compile") 2>conftest.er1
24114 grep -v '^ *+' conftest.er1 >conftest.err
24116 cat conftest.err >&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest.$ac_objext; then
24122 ac_cv_type_uint32_t=yes
24124 echo "$as_me: failed program was:" >&5
24125 sed 's/^/| /' conftest.$ac_ext >&5
24130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24135 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24137 if test "$ac_cv_type_uint32_t" != "yes"; then
24139 cat >>confdefs.h <<\_ACEOF
24140 #define uint32_t unsigned int
24146 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24147 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24148 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24158 #ifdef HAVE_NETINET_IN_H
24159 #include <netinet/in.h>
24163 typedef struct in6_addr ac__type_new_;
24167 if ((ac__type_new_ *) 0)
24169 if (sizeof (ac__type_new_))
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_compile") 2>conftest.er1
24184 grep -v '^ *+' conftest.er1 >conftest.err
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest.$ac_objext; then
24192 ac_cv_type_struct_in6_addr=yes
24194 echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24197 ac_cv_type_struct_in6_addr=no
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24202 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24203 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24204 if test $ac_cv_type_struct_in6_addr = yes; then
24206 cat >>confdefs.h <<\_ACEOF
24207 #define HAVE_STRUCT_IN6_ADDR 1
24213 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24214 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24215 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24216 echo $ECHO_N "(cached) $ECHO_C" >&6
24218 cat >conftest.$ac_ext <<_ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h. */
24225 #ifdef HAVE_NETINET_IN_H
24226 #include <netinet/in.h>
24228 #ifdef HAVE_SYS_SOCKET_H
24229 #include <sys/socket.h>
24233 typedef struct sockaddr_storage ac__type_new_;
24237 if ((ac__type_new_ *) 0)
24239 if (sizeof (ac__type_new_))
24245 rm -f conftest.$ac_objext
24246 if { (ac_try="$ac_compile"
24247 case "(($ac_try" in
24248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249 *) ac_try_echo=$ac_try;;
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252 (eval "$ac_compile") 2>conftest.er1
24254 grep -v '^ *+' conftest.er1 >conftest.err
24256 cat conftest.err >&5
24257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258 (exit $ac_status); } && {
24259 test -z "$ac_c_werror_flag" ||
24260 test ! -s conftest.err
24261 } && test -s conftest.$ac_objext; then
24262 ac_cv_type_struct_sockaddr_storage=yes
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_cv_type_struct_sockaddr_storage=no
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24272 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24273 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24274 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24283 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24284 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24285 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24295 #ifdef HAVE_NETINET_IN_H
24296 #include <netinet/in.h>
24300 typedef struct sockaddr_in6 ac__type_new_;
24304 if ((ac__type_new_ *) 0)
24306 if (sizeof (ac__type_new_))
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24321 grep -v '^ *+' conftest.er1 >conftest.err
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24329 ac_cv_type_struct_sockaddr_in6=yes
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 ac_cv_type_struct_sockaddr_in6=no
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24340 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24341 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24343 cat >>confdefs.h <<\_ACEOF
24344 #define HAVE_STRUCT_SOCKADDR_IN6 1
24350 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24351 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24352 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24355 cat >conftest.$ac_ext <<_ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24362 #ifdef HAVE_SYS_TYPES_H
24363 #include <sys/types.h>
24365 #ifdef HAVE_SYS_SOCKET_H
24366 #include <sys/socket.h>
24368 #ifdef HAVE_NETDB_H
24373 typedef struct addrinfo ac__type_new_;
24377 if ((ac__type_new_ *) 0)
24379 if (sizeof (ac__type_new_))
24385 rm -f conftest.$ac_objext
24386 if { (ac_try="$ac_compile"
24387 case "(($ac_try" in
24388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389 *) ac_try_echo=$ac_try;;
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392 (eval "$ac_compile") 2>conftest.er1
24394 grep -v '^ *+' conftest.er1 >conftest.err
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } && {
24399 test -z "$ac_c_werror_flag" ||
24400 test ! -s conftest.err
24401 } && test -s conftest.$ac_objext; then
24402 ac_cv_type_struct_addrinfo=yes
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24407 ac_cv_type_struct_addrinfo=no
24410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24412 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24413 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24414 if test $ac_cv_type_struct_addrinfo = yes; then
24416 cat >>confdefs.h <<\_ACEOF
24417 #define HAVE_STRUCT_ADDRINFO 1
24490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24496 cat >conftest.$ac_ext <<_ACEOF
24499 cat confdefs.h >>conftest.$ac_ext
24500 cat >>conftest.$ac_ext <<_ACEOF
24501 /* end confdefs.h. */
24502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24504 #define $ac_func innocuous_$ac_func
24506 /* System header to define __stub macros and hopefully few prototypes,
24507 which can conflict with char $ac_func (); below.
24508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24509 <limits.h> exists even on freestanding compilers. */
24512 # include <limits.h>
24514 # include <assert.h>
24519 /* Override any GCC internal prototype to avoid an error.
24520 Use char because int might match the return type of a GCC
24521 builtin and then its argument prototype would still apply. */
24526 /* The GNU C library defines this for functions which it implements
24527 to always fail with ENOSYS. Some functions are actually named
24528 something starting with __ and the normal name is an alias. */
24529 #if defined __stub_$ac_func || defined __stub___$ac_func
24536 return $ac_func ();
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (ac_try="$ac_link"
24543 case "(($ac_try" in
24544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545 *) ac_try_echo=$ac_try;;
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548 (eval "$ac_link") 2>conftest.er1
24550 grep -v '^ *+' conftest.er1 >conftest.err
24552 cat conftest.err >&5
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); } && {
24555 test -z "$ac_c_werror_flag" ||
24556 test ! -s conftest.err
24557 } && test -s conftest$ac_exeext &&
24558 $as_test_x conftest$ac_exeext; then
24559 eval "$as_ac_var=yes"
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 eval "$as_ac_var=no"
24567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24568 conftest$ac_exeext conftest.$ac_ext
24570 ac_res=`eval echo '${'$as_ac_var'}'`
24571 { echo "$as_me:$LINENO: result: $ac_res" >&5
24572 echo "${ECHO_T}$ac_res" >&6; }
24573 if test `eval echo '${'$as_ac_var'}'` = yes; then
24574 cat >>confdefs.h <<_ACEOF
24575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24591 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24592 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24593 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24594 echo $ECHO_N "(cached) $ECHO_C" >&6
24596 cat >conftest.$ac_ext <<_ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h. */
24604 #include <string.h>
24605 #ifdef HAVE_UNISTD_H
24606 #include <unistd.h>
24608 #ifdef HAVE_CRYPT_H
24611 #ifdef HAVE_ERRNO_H
24614 #ifdef HAVE_RESOURCE_H
24615 #include <resource.h>
24617 #ifdef HAVE_GETOPT_H
24618 #include <getopt.h>
24620 #ifdef HAVE_MALLOC_H
24621 #include <malloc.h>
24626 #ifdef HAVE_UTMPX_H
24629 #ifdef HAVE_SYS_SELECT_H
24630 #include <sys/select.h>
24632 #ifdef HAVE_DLFCN_H
24635 #ifdef HAVE_REGEX_H
24638 #ifdef HAVE_SYSLOG_H
24639 #include <syslog.h>
24641 #ifdef HAVE_INTTYPES_H
24642 #include <inttypes.h>
24644 #ifdef HAVE_STDINT_H
24645 #include <stdint.h>
24647 #ifdef HAVE_ARPA_INET_H
24648 #include <arpa/inet.h>
24654 char *(*pfn) = (char *(*)) $ac_func
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_compile") 2>conftest.er1
24668 grep -v '^ *+' conftest.er1 >conftest.err
24670 cat conftest.err >&5
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } && {
24673 test -z "$ac_c_werror_flag" ||
24674 test ! -s conftest.err
24675 } && test -s conftest.$ac_objext; then
24676 eval "radius_cv_decl_needed_$ac_func=no"
24678 echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24681 eval "radius_cv_decl_needed_$ac_func=yes"
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24688 { echo "$as_me:$LINENO: result: yes" >&5
24689 echo "${ECHO_T}yes" >&6; }
24690 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24691 cat >>confdefs.h <<_ACEOF
24692 #define $radius_tr_decl 1
24696 { echo "$as_me:$LINENO: result: no" >&5
24697 echo "${ECHO_T}no" >&6; }
24703 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24704 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24705 if test "${ac_cv_type_signal+set}" = set; then
24706 echo $ECHO_N "(cached) $ECHO_C" >&6
24708 cat >conftest.$ac_ext <<_ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h. */
24714 #include <sys/types.h>
24715 #include <signal.h>
24720 return *(signal (0, 0)) (0) == 1;
24725 rm -f conftest.$ac_objext
24726 if { (ac_try="$ac_compile"
24727 case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_compile") 2>conftest.er1
24734 grep -v '^ *+' conftest.er1 >conftest.err
24736 cat conftest.err >&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); } && {
24739 test -z "$ac_c_werror_flag" ||
24740 test ! -s conftest.err
24741 } && test -s conftest.$ac_objext; then
24742 ac_cv_type_signal=int
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_cv_type_signal=void
24750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24752 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24753 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24755 cat >>confdefs.h <<_ACEOF
24756 #define RETSIGTYPE $ac_cv_type_signal
24761 if test "x$ac_cv_header_utmpx_h" = "xyes"
24764 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24765 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24768 cat >conftest.$ac_ext <<_ACEOF
24771 cat confdefs.h >>conftest.$ac_ext
24772 cat >>conftest.$ac_ext <<_ACEOF
24773 /* end confdefs.h. */
24777 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24783 int foo = offsetof(struct utmpx, ut_xtime)
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792 *) ac_try_echo=$ac_try;;
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795 (eval "$ac_compile") 2>conftest.er1
24797 grep -v '^ *+' conftest.er1 >conftest.err
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } && {
24802 test -z "$ac_c_werror_flag" ||
24803 test ! -s conftest.err
24804 } && test -s conftest.$ac_objext; then
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24816 if test "x$has_element" != "x"; then
24817 { echo "$as_me:$LINENO: result: yes" >&5
24818 echo "${ECHO_T}yes" >&6; }
24819 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24821 { echo "$as_me:$LINENO: result: no" >&5
24822 echo "${ECHO_T}no" >&6; }
24823 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24826 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24829 cat >>confdefs.h <<\_ACEOF
24830 #define ut_xtime ut_tv.tv_sec
24837 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24838 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24841 cat >conftest.$ac_ext <<_ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24848 #include <netinet/in.h>
24850 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24856 int foo = offsetof(struct in_pktinfo, ipi_addr)
24861 rm -f conftest.$ac_objext
24862 if { (ac_try="$ac_compile"
24863 case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868 (eval "$ac_compile") 2>conftest.er1
24870 grep -v '^ *+' conftest.er1 >conftest.err
24872 cat conftest.err >&5
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); } && {
24875 test -z "$ac_c_werror_flag" ||
24876 test ! -s conftest.err
24877 } && test -s conftest.$ac_objext; then
24880 echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24889 if test "x$has_element" != "x"; then
24890 { echo "$as_me:$LINENO: result: yes" >&5
24891 echo "${ECHO_T}yes" >&6; }
24892 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24894 { echo "$as_me:$LINENO: result: no" >&5
24895 echo "${ECHO_T}no" >&6; }
24896 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24899 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24902 cat >>confdefs.h <<\_ACEOF
24903 #define HAVE_IP_PKTINFO
24909 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24910 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24920 #include <netinet/in.h>
24922 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24928 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24933 rm -f conftest.$ac_objext
24934 if { (ac_try="$ac_compile"
24935 case "(($ac_try" in
24936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937 *) ac_try_echo=$ac_try;;
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940 (eval "$ac_compile") 2>conftest.er1
24942 grep -v '^ *+' conftest.er1 >conftest.err
24944 cat conftest.err >&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } && {
24947 test -z "$ac_c_werror_flag" ||
24948 test ! -s conftest.err
24949 } && test -s conftest.$ac_objext; then
24952 echo "$as_me: failed program was:" >&5
24953 sed 's/^/| /' conftest.$ac_ext >&5
24958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24960 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24961 if test "x$has_element" != "x"; then
24962 { echo "$as_me:$LINENO: result: yes" >&5
24963 echo "${ECHO_T}yes" >&6; }
24964 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24966 { echo "$as_me:$LINENO: result: no" >&5
24967 echo "${ECHO_T}no" >&6; }
24968 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24971 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24974 cat >>confdefs.h <<\_ACEOF
24975 #define HAVE_IN6_PKTINFO
24981 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24982 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24983 if test "${ac_cv_c_const+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 cat >conftest.$ac_ext <<_ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24996 /* FIXME: Include the comments suggested by Paul. */
24997 #ifndef __cplusplus
24998 /* Ultrix mips cc rejects this. */
24999 typedef int charset[2];
25001 /* SunOS 4.1.1 cc rejects this. */
25002 char const *const *pcpcc;
25004 /* NEC SVR4.0.2 mips cc rejects this. */
25005 struct point {int x, y;};
25006 static struct point const zero = {0,0};
25007 /* AIX XL C 1.02.0.0 rejects this.
25008 It does not let you subtract one const X* pointer from another in
25009 an arm of an if-expression whose if-part is not a constant
25011 const char *g = "string";
25012 pcpcc = &g + (g ? g-g : 0);
25013 /* HPUX 7.0 cc rejects these. */
25015 ppc = (char**) pcpcc;
25016 pcpcc = (char const *const *) ppc;
25017 { /* SCO 3.2v4 cc rejects this. */
25019 char const *s = 0 ? (char *) 0 : (char const *) 0;
25024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25025 int x[] = {25, 17};
25026 const int *foo = &x[0];
25029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25030 typedef const int *iptr;
25034 { /* AIX XL C 1.02.0.0 rejects this saying
25035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25036 struct s { int j; const int *ap[3]; };
25037 struct s *b; b->j = 5;
25039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25040 const int foo = 10;
25041 if (!foo) return 0;
25043 return !cs[0] && !zero.x;
25050 rm -f conftest.$ac_objext
25051 if { (ac_try="$ac_compile"
25052 case "(($ac_try" in
25053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054 *) ac_try_echo=$ac_try;;
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057 (eval "$ac_compile") 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest.$ac_objext; then
25069 echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25078 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25079 if test $ac_cv_c_const = no; then
25081 cat >>confdefs.h <<\_ACEOF
25088 { echo "$as_me:$LINENO: checking type of OS" >&5
25089 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25091 { echo "$as_me:$LINENO: result: $OS" >&5
25092 echo "${ECHO_T}$OS" >&6; }
25093 if test "$OS" = "OS/2"; then
25100 if test "x$GCC" = "xyes"; then
25101 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25104 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25105 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25106 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25107 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25108 CFLAGS="$CFLAGS $devflags"
25110 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
25111 echo "${ECHO_T}yes. Using $devflags" >&6; }
25114 CFLAGS="$CFLAGS -DNDEBUG"
25116 { echo "$as_me:$LINENO: result: no." >&5
25117 echo "${ECHO_T}no." >&6; }
25121 { echo "$as_me:$LINENO: checking for TLS" >&5
25122 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
25123 if test "$cross_compiling" = yes; then
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
25134 rm -f conftest$ac_exeext
25135 if { (ac_try="$ac_link"
25136 case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141 (eval "$ac_link") 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25145 { (case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_try") 2>&5
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); }; }; then
25156 echo "$as_me: program exited with status $ac_status" >&5
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ( exit $ac_status )
25163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25167 { echo "$as_me:$LINENO: result: $have_tls" >&5
25168 echo "${ECHO_T}$have_tls" >&6; }
25169 if test "$have_tls" = "yes"; then
25171 cat >>confdefs.h <<\_ACEOF
25172 #define HAVE_THREAD_TLS 1
25180 LIBS="$LIBS $LIBLTDL"
25181 { echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5
25182 echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; }
25183 if test "${ac_cv_func_lt_dladvise_init+set}" = set; then
25184 echo $ECHO_N "(cached) $ECHO_C" >&6
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 /* Define lt_dladvise_init to an innocuous variant, in case <limits.h> declares lt_dladvise_init.
25193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25194 #define lt_dladvise_init innocuous_lt_dladvise_init
25196 /* System header to define __stub macros and hopefully few prototypes,
25197 which can conflict with char lt_dladvise_init (); below.
25198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25199 <limits.h> exists even on freestanding compilers. */
25202 # include <limits.h>
25204 # include <assert.h>
25207 #undef lt_dladvise_init
25209 /* Override any GCC internal prototype to avoid an error.
25210 Use char because int might match the return type of a GCC
25211 builtin and then its argument prototype would still apply. */
25215 char lt_dladvise_init ();
25216 /* The GNU C library defines this for functions which it implements
25217 to always fail with ENOSYS. Some functions are actually named
25218 something starting with __ and the normal name is an alias. */
25219 #if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init
25226 return lt_dladvise_init ();
25231 rm -f conftest.$ac_objext conftest$ac_exeext
25232 if { (ac_try="$ac_link"
25233 case "(($ac_try" in
25234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_link") 2>conftest.er1
25240 grep -v '^ *+' conftest.er1 >conftest.err
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } && {
25245 test -z "$ac_c_werror_flag" ||
25246 test ! -s conftest.err
25247 } && test -s conftest$ac_exeext &&
25248 $as_test_x conftest$ac_exeext; then
25249 ac_cv_func_lt_dladvise_init=yes
25251 echo "$as_me: failed program was:" >&5
25252 sed 's/^/| /' conftest.$ac_ext >&5
25254 ac_cv_func_lt_dladvise_init=no
25257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25258 conftest$ac_exeext conftest.$ac_ext
25260 { echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5
25261 echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; }
25262 if test $ac_cv_func_lt_dladvise_init = yes; then
25264 cat >>confdefs.h <<\_ACEOF
25265 #define HAVE_HAVE_LT_DLADVISE_INIT
25272 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25273 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25274 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25277 ac_check_lib_save_LIBS=$LIBS
25278 LIBS="-lcrypt $LIBS"
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25286 /* Override any GCC internal prototype to avoid an error.
25287 Use char because int might match the return type of a GCC
25288 builtin and then its argument prototype would still apply. */
25301 rm -f conftest.$ac_objext conftest$ac_exeext
25302 if { (ac_try="$ac_link"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_link") 2>conftest.er1
25310 grep -v '^ *+' conftest.er1 >conftest.err
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && {
25315 test -z "$ac_c_werror_flag" ||
25316 test ! -s conftest.err
25317 } && test -s conftest$ac_exeext &&
25318 $as_test_x conftest$ac_exeext; then
25319 ac_cv_lib_crypt_crypt=yes
25321 echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 ac_cv_lib_crypt_crypt=no
25327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25328 conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25331 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25332 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25333 if test $ac_cv_lib_crypt_crypt = yes; then
25338 if test "$CRYPTLIB" != ""; then
25340 cat >>confdefs.h <<\_ACEOF
25345 { echo "$as_me:$LINENO: checking for crypt" >&5
25346 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25347 if test "${ac_cv_func_crypt+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25350 cat >conftest.$ac_ext <<_ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25358 #define crypt innocuous_crypt
25360 /* System header to define __stub macros and hopefully few prototypes,
25361 which can conflict with char crypt (); below.
25362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25363 <limits.h> exists even on freestanding compilers. */
25366 # include <limits.h>
25368 # include <assert.h>
25373 /* Override any GCC internal prototype to avoid an error.
25374 Use char because int might match the return type of a GCC
25375 builtin and then its argument prototype would still apply. */
25380 /* The GNU C library defines this for functions which it implements
25381 to always fail with ENOSYS. Some functions are actually named
25382 something starting with __ and the normal name is an alias. */
25383 #if defined __stub_crypt || defined __stub___crypt
25395 rm -f conftest.$ac_objext conftest$ac_exeext
25396 if { (ac_try="$ac_link"
25397 case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_link") 2>conftest.er1
25404 grep -v '^ *+' conftest.er1 >conftest.err
25406 cat conftest.err >&5
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); } && {
25409 test -z "$ac_c_werror_flag" ||
25410 test ! -s conftest.err
25411 } && test -s conftest$ac_exeext &&
25412 $as_test_x conftest$ac_exeext; then
25413 ac_cv_func_crypt=yes
25415 echo "$as_me: failed program was:" >&5
25416 sed 's/^/| /' conftest.$ac_ext >&5
25418 ac_cv_func_crypt=no
25421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25422 conftest$ac_exeext conftest.$ac_ext
25424 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25425 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25426 if test $ac_cv_func_crypt = yes; then
25428 cat >>confdefs.h <<\_ACEOF
25436 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25437 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25438 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 ac_check_lib_save_LIBS=$LIBS
25442 LIBS="-lcipher $LIBS"
25443 cat >conftest.$ac_ext <<_ACEOF
25446 cat confdefs.h >>conftest.$ac_ext
25447 cat >>conftest.$ac_ext <<_ACEOF
25448 /* end confdefs.h. */
25450 /* Override any GCC internal prototype to avoid an error.
25451 Use char because int might match the return type of a GCC
25452 builtin and then its argument prototype would still apply. */
25465 rm -f conftest.$ac_objext conftest$ac_exeext
25466 if { (ac_try="$ac_link"
25467 case "(($ac_try" in
25468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469 *) ac_try_echo=$ac_try;;
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472 (eval "$ac_link") 2>conftest.er1
25474 grep -v '^ *+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); } && {
25479 test -z "$ac_c_werror_flag" ||
25480 test ! -s conftest.err
25481 } && test -s conftest$ac_exeext &&
25482 $as_test_x conftest$ac_exeext; then
25483 ac_cv_lib_cipher_setkey=yes
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25488 ac_cv_lib_cipher_setkey=no
25491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25492 conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25495 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25496 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25497 if test $ac_cv_lib_cipher_setkey = yes; then
25498 CRYPTLIB="${CRYPTLIB} -lcipher"
25505 cat >>confdefs.h <<\_ACEOF
25510 cat >>confdefs.h <<\_ACEOF
25511 #define SYSVSTYLE 2
25515 cat >>confdefs.h <<\_ACEOF
25519 gethostbyaddrrstyle=""
25520 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25521 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25524 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25525 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25526 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25529 cat >conftest.$ac_ext <<_ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h. */
25536 #ifdef HAVE_NETDB_H
25544 #ifndef gethostbyaddr_r
25545 (void) gethostbyaddr_r;
25552 rm -f conftest.$ac_objext
25553 if { (ac_try="$ac_compile"
25554 case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_compile") 2>conftest.er1
25561 grep -v '^ *+' conftest.er1 >conftest.err
25563 cat conftest.err >&5
25564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565 (exit $ac_status); } && {
25566 test -z "$ac_c_werror_flag" ||
25567 test ! -s conftest.err
25568 } && test -s conftest.$ac_objext; then
25569 ac_cv_have_decl_gethostbyaddr_r=yes
25571 echo "$as_me: failed program was:" >&5
25572 sed 's/^/| /' conftest.$ac_ext >&5
25574 ac_cv_have_decl_gethostbyaddr_r=no
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25580 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25581 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25583 cat >>confdefs.h <<_ACEOF
25584 #define HAVE_DECL_GETHOSTBYADDR_R 1
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_DECL_GETHOSTBYADDR_R 0
25595 cat >>confdefs.h <<\_ACEOF
25596 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25599 gethostbyaddrrstyle=BSD
25600 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25601 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25608 if test "x$gethostbyaddrrstyle" = "x"; then
25609 cat >conftest.$ac_ext <<_ACEOF
25612 cat confdefs.h >>conftest.$ac_ext
25613 cat >>conftest.$ac_ext <<_ACEOF
25614 /* end confdefs.h. */
25622 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25627 rm -f conftest.$ac_objext conftest$ac_exeext
25628 if { (ac_try="$ac_link"
25629 case "(($ac_try" in
25630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631 *) ac_try_echo=$ac_try;;
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634 (eval "$ac_link") 2>conftest.er1
25636 grep -v '^ *+' conftest.er1 >conftest.err
25638 cat conftest.err >&5
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } && {
25641 test -z "$ac_c_werror_flag" ||
25642 test ! -s conftest.err
25643 } && test -s conftest$ac_exeext &&
25644 $as_test_x conftest$ac_exeext; then
25647 cat >>confdefs.h <<\_ACEOF
25648 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25651 gethostbyaddrrstyle=GNU
25654 echo "$as_me: failed program was:" >&5
25655 sed 's/^/| /' conftest.$ac_ext >&5
25660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25661 conftest$ac_exeext conftest.$ac_ext
25663 if test "x$gethostbyaddrrstyle" = "x"; then
25664 cat >conftest.$ac_ext <<_ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25677 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25682 rm -f conftest.$ac_objext conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689 (eval "$ac_link") 2>conftest.er1
25691 grep -v '^ *+' conftest.er1 >conftest.err
25693 cat conftest.err >&5
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); } && {
25696 test -z "$ac_c_werror_flag" ||
25697 test ! -s conftest.err
25698 } && test -s conftest$ac_exeext &&
25699 $as_test_x conftest$ac_exeext; then
25702 cat >>confdefs.h <<\_ACEOF
25703 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25706 gethostbyaddrrstyle=SYSV
25709 echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25716 conftest$ac_exeext conftest.$ac_ext
25718 if test "x$gethostbyaddrrstyle" = "x"; then
25719 cat >conftest.$ac_ext <<_ACEOF
25722 cat confdefs.h >>conftest.$ac_ext
25723 cat >>conftest.$ac_ext <<_ACEOF
25724 /* end confdefs.h. */
25732 gethostbyaddr(NULL, 0, 0)
25737 rm -f conftest.$ac_objext conftest$ac_exeext
25738 if { (ac_try="$ac_link"
25739 case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25744 (eval "$ac_link") 2>conftest.er1
25746 grep -v '^ *+' conftest.er1 >conftest.err
25748 cat conftest.err >&5
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); } && {
25751 test -z "$ac_c_werror_flag" ||
25752 test ! -s conftest.err
25753 } && test -s conftest$ac_exeext &&
25754 $as_test_x conftest$ac_exeext; then
25757 cat >>confdefs.h <<\_ACEOF
25758 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25761 gethostbyaddrrstyle=BSD
25764 echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25771 conftest$ac_exeext conftest.$ac_ext
25774 if test "x$gethostbyaddrrstyle" = "x"; then
25775 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25776 echo "${ECHO_T}none! It must not exist, here." >&6; }
25778 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25779 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25782 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25783 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25784 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25787 gethostbynamerstyle=""
25788 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25789 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25790 cat >conftest.$ac_ext <<_ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h. */
25803 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25808 rm -f conftest.$ac_objext conftest$ac_exeext
25809 if { (ac_try="$ac_link"
25810 case "(($ac_try" in
25811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812 *) ac_try_echo=$ac_try;;
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815 (eval "$ac_link") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1 >conftest.err
25819 cat conftest.err >&5
25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest$ac_exeext &&
25825 $as_test_x conftest$ac_exeext; then
25828 cat >>confdefs.h <<\_ACEOF
25829 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25832 gethostbynamerstyle=GNU
25835 echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842 conftest$ac_exeext conftest.$ac_ext
25843 if test "x$gethostbynamerstyle" = "x"; then
25844 cat >conftest.$ac_ext <<_ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25857 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (ac_try="$ac_link"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_link") 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } && {
25876 test -z "$ac_c_werror_flag" ||
25877 test ! -s conftest.err
25878 } && test -s conftest$ac_exeext &&
25879 $as_test_x conftest$ac_exeext; then
25882 cat >>confdefs.h <<\_ACEOF
25883 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25886 gethostbynamerstyle=SYSV
25889 echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25896 conftest$ac_exeext conftest.$ac_ext
25898 if test "x$gethostbynamerstyle" = "x"; then
25899 cat >conftest.$ac_ext <<_ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25912 gethostbyname(NULL)
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
25937 cat >>confdefs.h <<\_ACEOF
25938 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25941 gethostbynamerstyle=BSD
25944 echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25951 conftest$ac_exeext conftest.$ac_ext
25954 if test "x$gethostbynamerstyle" = "x"; then
25955 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25956 echo "${ECHO_T}none! It must not exist, here." >&6; }
25958 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25959 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25962 if test "x$gethostbynamerstyle" = "xBSD"; then
25963 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25964 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25968 cat >>confdefs.h <<\_ACEOF
25969 #define POSIXSTYLE 1
25973 cat >>confdefs.h <<\_ACEOF
25974 #define SOLARISSTYLE 2
25978 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25979 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25980 cat >conftest.$ac_ext <<_ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h. */
25992 ctime_r(NULL, NULL, 0)
25997 rm -f conftest.$ac_objext conftest$ac_exeext
25998 if { (ac_try="$ac_link"
25999 case "(($ac_try" in
26000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001 *) ac_try_echo=$ac_try;;
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004 (eval "$ac_link") 2>conftest.er1
26006 grep -v '^ *+' conftest.er1 >conftest.err
26008 cat conftest.err >&5
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } && {
26011 test -z "$ac_c_werror_flag" ||
26012 test ! -s conftest.err
26013 } && test -s conftest$ac_exeext &&
26014 $as_test_x conftest$ac_exeext; then
26017 cat >>confdefs.h <<\_ACEOF
26018 #define CTIMERSTYLE SOLARISSTYLE
26021 ctimerstyle="SOLARIS"
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26031 conftest$ac_exeext conftest.$ac_ext
26032 if test "x$ctimerstyle" = "x"; then
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26045 ctime_r(NULL, NULL)
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
26059 grep -v '^ *+' conftest.er1 >conftest.err
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest$ac_exeext &&
26067 $as_test_x conftest$ac_exeext; then
26070 cat >>confdefs.h <<\_ACEOF
26071 #define CTIMERSTYLE POSIXSTYLE
26074 ctimerstyle="POSIX"
26077 echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26084 conftest$ac_exeext conftest.$ac_ext
26087 if test "x$ctimerstyle" = "x"; then
26088 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
26089 echo "${ECHO_T}none! It must not exist, here." >&6; }
26091 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26092 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26100 export top_builddir
26101 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26102 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26108 mysubdirs="$LIBLTDLPATH"
26109 if test "x$EXPERIMENTAL" = "xyes"; then
26110 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26111 mysubdirs=`echo $mysubdirs $bar`
26113 for bar in `cat "${srcdir}"/src/modules/stable`; do
26114 if test -f "${srcdir}"/src/modules/$bar/configure; then
26115 mysubdirs="$mysubdirs src/modules/$bar"
26120 if test "x$EXPERIMENTAL" = "xyes"; then
26121 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26122 MODULES="$MODULES $foo"
26125 for foo in `cat "${srcdir}"/src/modules/stable`; do
26126 MODULES="$MODULES $foo"
26130 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26135 ac_config_commands="$ac_config_commands stamp-h"
26137 ac_config_commands="$ac_config_commands build-radpaths-h"
26139 ac_config_commands="$ac_config_commands main-chmod"
26141 ac_config_commands="$ac_config_commands scripts-chmod"
26147 USE_SHARED_LIBS=$enable_shared
26149 USE_STATIC_LIBS=$enable_static
26157 unset ac_cv_env_LIBS_set
26158 unset ac_cv_env_LIBS_value
26160 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"
26162 cat >confcache <<\_ACEOF
26163 # This file is a shell script that caches the results of configure
26164 # tests run on this system so they can be shared between configure
26165 # scripts and configure runs, see configure's option --config-cache.
26166 # It is not useful on other systems. If it contains results you don't
26167 # want to keep, you may remove or edit it.
26169 # config.status only pays attention to the cache file if you give it
26170 # the --recheck option to rerun configure.
26172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26174 # following values.
26178 # The following way of writing the cache mishandles newlines in values,
26179 # but we know of no workaround that is simple, portable, and efficient.
26180 # So, we kill variables containing newlines.
26181 # Ultrix sh set writes to stderr and can't be redirected directly,
26182 # and sets the high bit in the cache file unless we assign to the vars.
26184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26185 eval ac_val=\$$ac_var
26189 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26190 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26193 _ | IFS | as_nl) ;; #(
26194 *) $as_unset $ac_var ;;
26200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26201 *${as_nl}ac_space=\ *)
26202 # `set' does not quote correctly, so add quotes (double-quote
26203 # substitution turns \\\\ into \\, and sed turns \\ into \).
26206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26209 # `set' quotes correctly as required by POSIX, so do not add quotes.
26210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26224 if test -w "$cache_file"; then
26225 test "x$cache_file" != "x/dev/null" &&
26226 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26227 echo "$as_me: updating cache $cache_file" >&6;}
26228 cat confcache >$cache_file
26230 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26231 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26237 # Let make expand exec_prefix.
26238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26240 DEFS=-DHAVE_CONFIG_H
26244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26245 # 1. Remove the extension, and $U if already installed.
26246 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26247 ac_i=`echo "$ac_i" | sed "$ac_script"`
26248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26249 # will be set to the directory where LIBOBJS objects are built.
26250 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26251 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26253 LIBOBJS=$ac_libobjs
26255 LTLIBOBJS=$ac_ltlibobjs
26259 : ${CONFIG_STATUS=./config.status}
26260 ac_clean_files_save=$ac_clean_files
26261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26262 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26263 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26264 cat >$CONFIG_STATUS <<_ACEOF
26266 # Generated by $as_me.
26267 # Run this file to recreate the current configuration.
26268 # Compiler output produced by configure, useful for debugging
26269 # configure, is in config.log if it exists.
26272 ac_cs_recheck=false
26274 SHELL=\${CONFIG_SHELL-$SHELL}
26277 cat >>$CONFIG_STATUS <<\_ACEOF
26278 ## --------------------- ##
26279 ## M4sh Initialization. ##
26280 ## --------------------- ##
26282 # Be more Bourne compatible
26283 DUALCASE=1; export DUALCASE # for MKS sh
26284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26287 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26288 # is contrary to our usage. Disable this feature.
26289 alias -g '${1+"$@"}'='"$@"'
26290 setopt NO_GLOB_SUBST
26292 case `(set -o) 2>/dev/null` in
26293 *posix*) set -o posix ;;
26302 # Avoid depending upon Character Ranges.
26303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26306 as_cr_digits='0123456789'
26307 as_cr_alnum=$as_cr_Letters$as_cr_digits
26309 # The user is always right.
26310 if test "${PATH_SEPARATOR+set}" != set; then
26311 echo "#! /bin/sh" >conf$$.sh
26312 echo "exit 0" >>conf$$.sh
26314 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26322 # Support unset when possible.
26323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26331 # We need space, tab and new line, in precisely that order. Quoting is
26332 # there to prevent editors from complaining about space-tab.
26333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26334 # splitting by setting IFS to empty value.)
26339 # Find who we are. Look in the path if we contain no directory separator.
26341 *[\\/]* ) as_myself=$0 ;;
26342 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26343 for as_dir in $PATH
26346 test -z "$as_dir" && as_dir=.
26347 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26353 # We did not find ourselves, most probably we were run as `sh COMMAND'
26354 # in which case we are not to be found in the path.
26355 if test "x$as_myself" = x; then
26358 if test ! -f "$as_myself"; then
26359 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26360 { (exit 1); exit 1; }
26363 # Work around bugs in pre-3.0 UWIN ksh.
26364 for as_var in ENV MAIL MAILPATH
26365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26373 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26374 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26375 LC_TELEPHONE LC_TIME
26377 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26378 eval $as_var=C; export $as_var
26380 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26384 # Required to use basename.
26385 if expr a : '\(a\)' >/dev/null 2>&1 &&
26386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26393 as_basename=basename
26399 # Name of the executable.
26400 as_me=`$as_basename -- "$0" ||
26401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26402 X"$0" : 'X\(//\)$' \| \
26403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26405 sed '/^.*\/\([^/][^/]*\)\/*$/{
26424 as_lineno_1=$LINENO
26425 as_lineno_2=$LINENO
26426 test "x$as_lineno_1" != "x$as_lineno_2" &&
26427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26430 # uniformly replaced by the line number. The first 'sed' inserts a
26431 # line-number line after each line using $LINENO; the second 'sed'
26432 # does the real work. The second script uses 'N' to pair each
26433 # line-number line with the line containing $LINENO, and appends
26434 # trailing '-' during substitution so that $LINENO is not a special
26435 # case at line end.
26436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26437 # scripts with optimization help from Paolo Bonzini. Blame Lee
26438 # E. McMahon (1931-1989) for sed's syntax. :-)
26450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26453 ' >$as_me.lineno &&
26454 chmod +x "$as_me.lineno" ||
26455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26456 { (exit 1); exit 1; }; }
26458 # Don't try to exec as it changes $[0], causing all sort of problems
26459 # (the dirname of $[0] is not the place where we might find the
26460 # original and so on. Autoconf is especially sensitive to this).
26461 . "./$as_me.lineno"
26462 # Exit status is that of the last command.
26467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26473 ECHO_C= ECHO_N= ECHO_T=
26474 case `echo -n x` in
26476 case `echo 'x\c'` in
26477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26484 if expr a : '\(a\)' >/dev/null 2>&1 &&
26485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26491 rm -f conf$$ conf$$.exe conf$$.file
26492 if test -d conf$$.dir; then
26493 rm -f conf$$.dir/conf$$.file
26499 if ln -s conf$$.file conf$$ 2>/dev/null; then
26501 # ... but there are two gotchas:
26502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26504 # In both cases, we have to default to `cp -p'.
26505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26507 elif ln conf$$.file conf$$ 2>/dev/null; then
26512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26513 rmdir conf$$.dir 2>/dev/null
26515 if mkdir -p . 2>/dev/null; then
26518 test -d ./-p && rmdir ./-p
26522 if test -x / >/dev/null 2>&1; then
26523 as_test_x='test -x'
26525 if ls -dL / >/dev/null 2>&1; then
26532 if test -d "$1"; then
26538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26539 ???[sx]*):;;*)false;;esac;fi
26543 as_executable_p=$as_test_x
26545 # Sed expression to map a string onto a valid CPP name.
26546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26548 # Sed expression to map a string onto a valid variable name.
26549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26554 # Save the log message, to keep $[0] and so on meaningful, and to
26555 # report actual input values of CONFIG_FILES etc. instead of their
26556 # values after options handling.
26558 This file was extended by $as_me, which was
26559 generated by GNU Autoconf 2.61. Invocation command line was
26561 CONFIG_FILES = $CONFIG_FILES
26562 CONFIG_HEADERS = $CONFIG_HEADERS
26563 CONFIG_LINKS = $CONFIG_LINKS
26564 CONFIG_COMMANDS = $CONFIG_COMMANDS
26567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26572 cat >>$CONFIG_STATUS <<_ACEOF
26573 # Files that config.status was made for.
26574 config_files="$ac_config_files"
26575 config_headers="$ac_config_headers"
26576 config_commands="$ac_config_commands"
26580 cat >>$CONFIG_STATUS <<\_ACEOF
26582 \`$as_me' instantiates files from templates according to the
26583 current configuration.
26585 Usage: $0 [OPTIONS] [FILE]...
26587 -h, --help print this help, then exit
26588 -V, --version print version number and configuration settings, then exit
26589 -q, --quiet do not print progress messages
26590 -d, --debug don't remove temporary files
26591 --recheck update $as_me by reconfiguring in the same conditions
26592 --file=FILE[:TEMPLATE]
26593 instantiate the configuration file FILE
26594 --header=FILE[:TEMPLATE]
26595 instantiate the configuration header FILE
26597 Configuration files:
26600 Configuration headers:
26603 Configuration commands:
26606 Report bugs to <bug-autoconf@gnu.org>."
26609 cat >>$CONFIG_STATUS <<_ACEOF
26612 configured by $0, generated by GNU Autoconf 2.61,
26613 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26615 Copyright (C) 2006 Free Software Foundation, Inc.
26616 This config.status script is free software; the Free Software Foundation
26617 gives unlimited permission to copy, distribute and modify it."
26623 cat >>$CONFIG_STATUS <<\_ACEOF
26624 # If no file are specified by the user, then we need to provide default
26625 # value. By we need to know if files were specified by the user.
26631 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26632 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26643 # Handling of the options.
26644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26646 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26647 echo "$ac_cs_version"; exit ;;
26648 --debug | --debu | --deb | --de | --d | -d )
26650 --file | --fil | --fi | --f )
26652 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26653 ac_need_defaults=false;;
26654 --header | --heade | --head | --hea )
26656 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26657 ac_need_defaults=false;;
26659 # Conflict between --help and --header
26660 { echo "$as_me: error: ambiguous option: $1
26661 Try \`$0 --help' for more information." >&2
26662 { (exit 1); exit 1; }; };;
26663 --help | --hel | -h )
26664 echo "$ac_cs_usage"; exit ;;
26665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26666 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26669 # This is an error.
26670 -*) { echo "$as_me: error: unrecognized option: $1
26671 Try \`$0 --help' for more information." >&2
26672 { (exit 1); exit 1; }; } ;;
26674 *) ac_config_targets="$ac_config_targets $1"
26675 ac_need_defaults=false ;;
26681 ac_configure_extra_args=
26683 if $ac_cs_silent; then
26685 ac_configure_extra_args="$ac_configure_extra_args --silent"
26689 cat >>$CONFIG_STATUS <<_ACEOF
26690 if \$ac_cs_recheck; then
26691 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26692 CONFIG_SHELL=$SHELL
26693 export CONFIG_SHELL
26694 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26698 cat >>$CONFIG_STATUS <<\_ACEOF
26702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26703 ## Running $as_me. ##
26709 cat >>$CONFIG_STATUS <<_ACEOF
26712 cat >>$CONFIG_STATUS <<\_ACEOF
26714 # Handling of arguments.
26715 for ac_config_target in $ac_config_targets
26717 case $ac_config_target in
26718 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26719 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26720 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26721 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26722 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26723 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26724 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26725 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26726 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26727 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26728 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26729 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26730 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26731 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26732 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26733 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26734 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26735 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
26736 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26740 { (exit 1); exit 1; }; };;
26745 # If the user did not use the arguments to specify the items to instantiate,
26746 # then the envvar interface is used. Set only those that are not.
26747 # We use the long form for the default assignment because of an extremely
26748 # bizarre bug on SunOS 4.1.3.
26749 if $ac_need_defaults; then
26750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26755 # Have a temporary directory for convenience. Make it in the build tree
26756 # simply because there is no reason against having it here, and in addition,
26757 # creating and moving files from /tmp can sometimes cause problems.
26758 # Hook for its removal unless debugging.
26759 # Note that there is a small window in which the directory will not be cleaned:
26760 # after its creation but before its name has been assigned to `$tmp'.
26764 trap 'exit_status=$?
26765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26767 trap '{ (exit 1); exit 1; }' 1 2 13 15
26769 # Create a (secure) tmp directory for tmp files.
26772 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26773 test -n "$tmp" && test -d "$tmp"
26776 tmp=./conf$$-$RANDOM
26777 (umask 077 && mkdir "$tmp")
26780 echo "$me: cannot create a temporary directory in ." >&2
26781 { (exit 1); exit 1; }
26785 # Set up the sed scripts for CONFIG_FILES section.
26788 # No need to generate the scripts if there are no CONFIG_FILES.
26789 # This happens for instance when ./config.status config.h
26790 if test -n "$CONFIG_FILES"; then
26797 for ac_last_try in false false false false false :; do
26798 cat >conf$$subs.sed <<_ACEOF
26799 SHELL!$SHELL$ac_delim
26800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26806 exec_prefix!$exec_prefix$ac_delim
26807 prefix!$prefix$ac_delim
26808 program_transform_name!$program_transform_name$ac_delim
26809 bindir!$bindir$ac_delim
26810 sbindir!$sbindir$ac_delim
26811 libexecdir!$libexecdir$ac_delim
26812 datarootdir!$datarootdir$ac_delim
26813 datadir!$datadir$ac_delim
26814 sysconfdir!$sysconfdir$ac_delim
26815 sharedstatedir!$sharedstatedir$ac_delim
26816 localstatedir!$localstatedir$ac_delim
26817 includedir!$includedir$ac_delim
26818 oldincludedir!$oldincludedir$ac_delim
26819 docdir!$docdir$ac_delim
26820 infodir!$infodir$ac_delim
26821 htmldir!$htmldir$ac_delim
26822 dvidir!$dvidir$ac_delim
26823 pdfdir!$pdfdir$ac_delim
26824 psdir!$psdir$ac_delim
26825 libdir!$libdir$ac_delim
26826 localedir!$localedir$ac_delim
26827 mandir!$mandir$ac_delim
26828 DEFS!$DEFS$ac_delim
26829 ECHO_C!$ECHO_C$ac_delim
26830 ECHO_N!$ECHO_N$ac_delim
26831 ECHO_T!$ECHO_T$ac_delim
26832 LIBS!$LIBS$ac_delim
26833 build_alias!$build_alias$ac_delim
26834 host_alias!$host_alias$ac_delim
26835 target_alias!$target_alias$ac_delim
26837 CFLAGS!$CFLAGS$ac_delim
26838 LDFLAGS!$LDFLAGS$ac_delim
26839 CPPFLAGS!$CPPFLAGS$ac_delim
26840 ac_ct_CC!$ac_ct_CC$ac_delim
26841 EXEEXT!$EXEEXT$ac_delim
26842 OBJEXT!$OBJEXT$ac_delim
26844 CXXFLAGS!$CXXFLAGS$ac_delim
26845 ac_ct_CXX!$ac_ct_CXX$ac_delim
26847 GREP!$GREP$ac_delim
26848 EGREP!$EGREP$ac_delim
26849 RANLIB!$RANLIB$ac_delim
26850 GMAKE!$GMAKE$ac_delim
26851 MAKE!$MAKE$ac_delim
26852 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26853 LIBTOOL!$LIBTOOL$ac_delim
26854 build!$build$ac_delim
26855 build_cpu!$build_cpu$ac_delim
26856 build_vendor!$build_vendor$ac_delim
26857 build_os!$build_os$ac_delim
26858 host!$host$ac_delim
26859 host_cpu!$host_cpu$ac_delim
26860 host_vendor!$host_vendor$ac_delim
26861 host_os!$host_os$ac_delim
26863 LN_S!$LN_S$ac_delim
26864 ECHO!$ECHO$ac_delim
26866 STRIP!$STRIP$ac_delim
26867 DSYMUTIL!$DSYMUTIL$ac_delim
26868 NMEDIT!$NMEDIT$ac_delim
26869 CXXCPP!$CXXCPP$ac_delim
26871 FFLAGS!$FFLAGS$ac_delim
26872 ac_ct_F77!$ac_ct_F77$ac_delim
26873 logdir!$logdir$ac_delim
26874 radacctdir!$radacctdir$ac_delim
26875 raddbdir!$raddbdir$ac_delim
26876 PERL!$PERL$ac_delim
26877 SNMPGET!$SNMPGET$ac_delim
26878 SNMPWALK!$SNMPWALK$ac_delim
26879 RUSERS!$RUSERS$ac_delim
26880 ACLOCAL!$ACLOCAL$ac_delim
26881 AUTOCONF!$AUTOCONF$ac_delim
26882 AUTOHEADER!$AUTOHEADER$ac_delim
26883 LOCATE!$LOCATE$ac_delim
26884 DIRNAME!$DIRNAME$ac_delim
26885 LIBREADLINE!$LIBREADLINE$ac_delim
26886 REGEX!$REGEX$ac_delim
26887 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26888 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26889 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26890 PCAP_LIBS!$PCAP_LIBS$ac_delim
26891 LIBPREFIX!$LIBPREFIX$ac_delim
26892 CRYPTLIB!$CRYPTLIB$ac_delim
26893 HOSTINFO!$HOSTINFO$ac_delim
26894 LIBLTDL!$LIBLTDL$ac_delim
26895 INCLTDL!$INCLTDL$ac_delim
26898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26900 elif $ac_last_try; then
26901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26903 { (exit 1); exit 1; }; }
26905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26910 if test -n "$ac_eof"; then
26911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26912 ac_eof=`expr $ac_eof + 1`
26915 cat >>$CONFIG_STATUS <<_ACEOF
26916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26921 s/^/s,@/; s/!/@,|#_!!_#|/
26924 s/'"$ac_delim"'$/,g/; t
26926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26927 ' >>$CONFIG_STATUS <conf$$subs.sed
26928 rm -f conf$$subs.sed
26929 cat >>$CONFIG_STATUS <<_ACEOF
26935 for ac_last_try in false false false false false :; do
26936 cat >conf$$subs.sed <<_ACEOF
26937 subdirs!$subdirs$ac_delim
26938 MODULES!$MODULES$ac_delim
26939 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26940 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26941 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26942 STATIC_MODULES!$STATIC_MODULES$ac_delim
26943 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26944 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26945 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26946 LIBOBJS!$LIBOBJS$ac_delim
26947 LTLIBOBJS!$LTLIBOBJS$ac_delim
26950 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26952 elif $ac_last_try; then
26953 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26954 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26955 { (exit 1); exit 1; }; }
26957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26961 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26962 if test -n "$ac_eof"; then
26963 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26964 ac_eof=`expr $ac_eof + 1`
26967 cat >>$CONFIG_STATUS <<_ACEOF
26968 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26972 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26973 s/^/s,@/; s/!/@,|#_!!_#|/
26976 s/'"$ac_delim"'$/,g/; t
26978 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26979 ' >>$CONFIG_STATUS <conf$$subs.sed
26980 rm -f conf$$subs.sed
26981 cat >>$CONFIG_STATUS <<_ACEOF
26988 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26989 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26990 # trailing colons and then remove the whole line if VPATH becomes empty
26991 # (actually we leave an empty line to preserve line numbers).
26992 if test "x$srcdir" = x.; then
26993 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26994 s/:*\$(srcdir):*/:/
26995 s/:*\${srcdir}:*/:/
26997 s/^\([^=]*=[ ]*\):*/\1/
27003 cat >>$CONFIG_STATUS <<\_ACEOF
27004 fi # test -n "$CONFIG_FILES"
27007 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
27010 :[FHLC]) ac_mode=$ac_tag; continue;;
27012 case $ac_mode$ac_tag in
27014 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27015 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27016 { (exit 1); exit 1; }; };;
27017 :[FH]-) ac_tag=-:-;;
27018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27035 -) ac_f="$tmp/stdin";;
27036 *) # Look for the file first in the build tree, then in the source tree
27037 # (if the path is not absolute). The absolute path cannot be DOS-style,
27038 # because $ac_f cannot contain `:'.
27042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27044 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27045 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27046 { (exit 1); exit 1; }; };;
27048 ac_file_inputs="$ac_file_inputs $ac_f"
27051 # Let's still pretend it is `configure' which instantiates (i.e., don't
27052 # use $as_me), people would be surprised to read:
27053 # /* config.h. Generated by config.status. */
27054 configure_input="Generated from "`IFS=:
27055 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27056 if test x"$ac_file" != x-; then
27057 configure_input="$ac_file. $configure_input"
27058 { echo "$as_me:$LINENO: creating $ac_file" >&5
27059 echo "$as_me: creating $ac_file" >&6;}
27063 *:-:* | *:-) cat >"$tmp/stdin";;
27068 ac_dir=`$as_dirname -- "$ac_file" ||
27069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27070 X"$ac_file" : 'X\(//\)[^/]' \| \
27071 X"$ac_file" : 'X\(//\)$' \| \
27072 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27078 /^X\(\/\/\)[^/].*/{
27093 -*) as_dir=./$as_dir;;
27095 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27099 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27100 *) as_qdir=$as_dir;;
27102 as_dirs="'$as_qdir' $as_dirs"
27103 as_dir=`$as_dirname -- "$as_dir" ||
27104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27105 X"$as_dir" : 'X\(//\)[^/]' \| \
27106 X"$as_dir" : 'X\(//\)$' \| \
27107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27113 /^X\(\/\/\)[^/].*/{
27126 test -d "$as_dir" && break
27128 test -z "$as_dirs" || eval "mkdir $as_dirs"
27129 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27130 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27131 { (exit 1); exit 1; }; }; }
27135 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27138 # A ".." for each directory in $ac_dir_suffix.
27139 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27140 case $ac_top_builddir_sub in
27141 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27142 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27145 ac_abs_top_builddir=$ac_pwd
27146 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27147 # for backward compatibility:
27148 ac_top_builddir=$ac_top_build_prefix
27151 .) # We are building in place.
27153 ac_top_srcdir=$ac_top_builddir_sub
27154 ac_abs_top_srcdir=$ac_pwd ;;
27155 [\\/]* | ?:[\\/]* ) # Absolute name.
27156 ac_srcdir=$srcdir$ac_dir_suffix;
27157 ac_top_srcdir=$srcdir
27158 ac_abs_top_srcdir=$srcdir ;;
27159 *) # Relative name.
27160 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27161 ac_top_srcdir=$ac_top_build_prefix$srcdir
27162 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27164 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27175 cat >>$CONFIG_STATUS <<\_ACEOF
27176 # If the template does not know about datarootdir, expand it.
27177 # FIXME: This hack should be removed a few years after 2.60.
27178 ac_datarootdir_hack=; ac_datarootdir_seen=
27180 case `sed -n '/datarootdir/ {
27189 ' $ac_file_inputs` in
27190 *datarootdir*) ac_datarootdir_seen=yes;;
27191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27192 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27193 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27195 cat >>$CONFIG_STATUS <<_ACEOF
27196 ac_datarootdir_hack='
27197 s&@datadir@&$datadir&g
27198 s&@docdir@&$docdir&g
27199 s&@infodir@&$infodir&g
27200 s&@localedir@&$localedir&g
27201 s&@mandir@&$mandir&g
27202 s&\\\${datarootdir}&$datarootdir&g' ;;
27206 # Neutralize VPATH when `$srcdir' = `.'.
27207 # Shell code in configure.ac might set extrasub.
27208 # FIXME: do we really want to maintain this feature?
27209 cat >>$CONFIG_STATUS <<_ACEOF
27213 cat >>$CONFIG_STATUS <<\_ACEOF
27215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27216 s&@configure_input@&$configure_input&;t t
27217 s&@top_builddir@&$ac_top_builddir_sub&;t t
27218 s&@srcdir@&$ac_srcdir&;t t
27219 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27220 s&@top_srcdir@&$ac_top_srcdir&;t t
27221 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27222 s&@builddir@&$ac_builddir&;t t
27223 s&@abs_builddir@&$ac_abs_builddir&;t t
27224 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27225 $ac_datarootdir_hack
27226 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27229 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27231 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27232 which seems to be undefined. Please make sure it is defined." >&5
27233 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27234 which seems to be undefined. Please make sure it is defined." >&2;}
27238 -) cat "$tmp/out"; rm -f "$tmp/out";;
27239 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27248 # Transform confdefs.h into a sed script `conftest.defines', that
27249 # substitutes the proper values into config.h.in to produce config.h.
27250 rm -f conftest.defines conftest.tail
27251 # First, append a space to every undef/define line, to ease matching.
27252 echo 's/$/ /' >conftest.defines
27253 # Then, protect against being on the right side of a sed subst, or in
27254 # an unquoted here document, in config.status. If some macros were
27255 # called several times there might be several #defines for the same
27256 # symbol, which is useless. But do not sort them, since the last
27257 # AC_DEFINE must be honored.
27258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27259 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27260 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27261 # PARAMS is the parameter list in the macro definition--in most cases, it's
27262 # just an empty string.
27263 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27264 ac_dB='\\)[ (].*,\\1define\\2'
27272 s/^[ ]*#[ ]*define[ ][ ]*//
27277 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27278 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27279 ' >>conftest.defines
27281 # Remove the space that was appended to ease matching.
27282 # Then replace #undef with comments. This is necessary, for
27283 # example, in the case of _POSIX_SOURCE, which is predefined and required
27284 # on some systems where configure will not decide to define it.
27285 # (The regexp can be short, since the line contains either #define or #undef.)
27287 s,^[ #]*u.*,/* & */,' >>conftest.defines
27289 # Break up conftest.defines:
27290 ac_max_sed_lines=50
27292 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27293 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27294 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27296 ac_in='$ac_file_inputs'
27297 ac_out='"$tmp/out1"'
27298 ac_nxt='"$tmp/out2"'
27302 # Write a here document:
27303 cat >>$CONFIG_STATUS <<_ACEOF
27304 # First, check the format of the line:
27305 cat >"\$tmp/defines.sed" <<\\CEOF
27306 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27307 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27311 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27313 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27314 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27315 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27316 grep . conftest.tail >/dev/null || break
27317 rm -f conftest.defines
27318 mv conftest.tail conftest.defines
27320 rm -f conftest.defines conftest.tail
27322 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27323 cat >>$CONFIG_STATUS <<\_ACEOF
27324 if test x"$ac_file" != x-; then
27325 echo "/* $configure_input */" >"$tmp/config.h"
27326 cat "$ac_result" >>"$tmp/config.h"
27327 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27328 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27329 echo "$as_me: $ac_file is unchanged" >&6;}
27332 mv "$tmp/config.h" $ac_file
27335 echo "/* $configure_input */"
27341 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27342 echo "$as_me: executing $ac_file commands" >&6;}
27347 case $ac_file$ac_mode in
27348 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27349 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27350 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
27351 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27357 { (exit 0); exit 0; }
27359 chmod +x $CONFIG_STATUS
27360 ac_clean_files=$ac_clean_files_save
27363 # configure is writing to config.log, and then calls config.status.
27364 # config.status does its own redirection, appending to config.log.
27365 # Unfortunately, on DOS this fails, as config.log is still kept open
27366 # by configure, so config.status won't be able to write to it; its
27367 # output is simply discarded. So we exec the FD to /dev/null,
27368 # effectively closing config.log, so it can be properly (re)opened and
27369 # appended to by config.status. When coming back to configure, we
27370 # need to make the FD available again.
27371 if test "$no_create" != yes; then
27373 ac_config_status_args=
27374 test "$silent" = yes &&
27375 ac_config_status_args="$ac_config_status_args --quiet"
27377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27380 # would make configure fail if this is the last instruction.
27381 $ac_cs_success || { (exit 1); exit 1; }
27385 # CONFIG_SUBDIRS section.
27387 if test "$no_recursion" != yes; then
27389 # Remove --cache-file and --srcdir arguments so they do not pile up.
27390 ac_sub_configure_args=
27392 eval "set x $ac_configure_args"
27396 if test -n "$ac_prev"; then
27401 -cache-file | --cache-file | --cache-fil | --cache-fi \
27402 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27403 ac_prev=cache_file ;;
27404 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27405 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27408 --config-cache | -C)
27410 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27412 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27414 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27416 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27420 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27422 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27426 # Always prepend --prefix to ensure using the same prefix
27427 # in subdir configurations.
27428 ac_arg="--prefix=$prefix"
27430 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27432 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27435 if test "$silent" = yes; then
27436 ac_sub_configure_args="--silent $ac_sub_configure_args"
27440 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27442 # Do not complain, so a configure script can configure whichever
27443 # parts of a large source tree are present.
27444 test -d "$srcdir/$ac_dir" || continue
27446 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27447 echo "$as_me:$LINENO: $ac_msg" >&5
27451 -*) as_dir=./$as_dir;;
27453 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27457 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27458 *) as_qdir=$as_dir;;
27460 as_dirs="'$as_qdir' $as_dirs"
27461 as_dir=`$as_dirname -- "$as_dir" ||
27462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27463 X"$as_dir" : 'X\(//\)[^/]' \| \
27464 X"$as_dir" : 'X\(//\)$' \| \
27465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27471 /^X\(\/\/\)[^/].*/{
27484 test -d "$as_dir" && break
27486 test -z "$as_dirs" || eval "mkdir $as_dirs"
27487 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27488 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27489 { (exit 1); exit 1; }; }; }
27493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27496 # A ".." for each directory in $ac_dir_suffix.
27497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27498 case $ac_top_builddir_sub in
27499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27503 ac_abs_top_builddir=$ac_pwd
27504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27505 # for backward compatibility:
27506 ac_top_builddir=$ac_top_build_prefix
27509 .) # We are building in place.
27511 ac_top_srcdir=$ac_top_builddir_sub
27512 ac_abs_top_srcdir=$ac_pwd ;;
27513 [\\/]* | ?:[\\/]* ) # Absolute name.
27514 ac_srcdir=$srcdir$ac_dir_suffix;
27515 ac_top_srcdir=$srcdir
27516 ac_abs_top_srcdir=$srcdir ;;
27517 *) # Relative name.
27518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27519 ac_top_srcdir=$ac_top_build_prefix$srcdir
27520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27527 # Check for guested configure; otherwise get Cygnus style configure.
27528 if test -f "$ac_srcdir/configure.gnu"; then
27529 ac_sub_configure=$ac_srcdir/configure.gnu
27530 elif test -f "$ac_srcdir/configure"; then
27531 ac_sub_configure=$ac_srcdir/configure
27532 elif test -f "$ac_srcdir/configure.in"; then
27533 # This should be Cygnus configure.
27534 ac_sub_configure=$ac_aux_dir/configure
27536 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27541 # The recursion is here.
27542 if test -n "$ac_sub_configure"; then
27543 # Make the cache file name correct relative to the subdirectory.
27544 case $cache_file in
27545 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27546 *) # Relative name.
27547 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27550 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27551 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27552 # The eval makes quoting arguments work.
27553 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27554 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27555 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27556 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27557 { (exit 1); exit 1; }; }