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
870 RADIUSD_MAJOR_VERSION
871 RADIUSD_MINOR_VERSION
876 ac_precious_vars='build_alias
891 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
893 # Initialize some variables set by options.
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
905 program_transform_name=s,x,x,
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998 { (exit 1); exit 1; }; }
999 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000 eval enable_$ac_feature=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019 eval enable_$ac_feature=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { echo "$as_me: error: invalid package name: $ac_package" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216 eval with_$ac_package=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --disable-largefile omit support for large files
1464 --enable-shared[=PKGS] build shared libraries [default=yes]
1465 --enable-static[=PKGS] build static libraries [default=yes]
1466 --enable-fast-install[=PKGS]
1467 optimize for fast installation [default=yes]
1468 --disable-libtool-lock avoid locking (might break parallel builds)
1469 --enable-strict-dependencies Fail configure on lack of module dependancy.
1470 --enable-developer Enables features of interest to developers.
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-system-libtool try to use libtool installed in your system default=use our own
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1479 --with-tags[=TAGS] include additional configurations [automatic]
1480 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1481 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1482 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1483 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1484 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1485 --with-threads Use threads, if available. (default=yes)
1486 --with-vmps Compile in VMPS support. (default=yes)
1487 --with-dhcp Compile in DHCP support. (default=no)
1488 --with-static-modules=QUOTED-MODULE-LIST
1489 --with-modules=QUOTED-MODULE-LIST
1490 --with-experimental-modules Use experimental and unstable modules. (default=no)
1491 --with-openssl Use OpenSSL. (default=yes)
1492 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1493 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1494 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1495 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1496 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1509 CXXCPP C++ preprocessor
1510 F77 Fortran 77 compiler command
1511 FFLAGS Fortran 77 compiler flags
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1543 .) # We are building in place.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1577 generated by GNU Autoconf 2.61
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1590 It was created by $as_me, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1651 ac_must_keep_next=false
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1680 -* ) ac_must_keep_next=true ;;
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1707 # The following way of writing the cache mishandles newlines in values,
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1744 for ac_var in $ac_subst_vars
1746 eval ac_val=\$$ac_var
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 echo "$ac_var='\''$ac_val'\''"
1754 if test -n "$ac_subst_files"; then
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1761 for ac_var in $ac_subst_files
1763 eval ac_val=\$$ac_var
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 echo "$ac_var='\''$ac_val'\''"
1772 if test -s confdefs.h; then
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1798 # Predefined preprocessor variables.
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1863 # Check that the precious variables saved in the cache have kept the same
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1938 RADIUSD_VERSION=`cat VERSION`
1939 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1940 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978 if test -n "$CC"; then
1979 { echo "$as_me:$LINENO: result: $CC" >&5
1980 echo "${ECHO_T}$CC" >&6; }
1982 { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1988 if test -z "$ac_cv_prog_CC"; then
1990 # Extract the first word of "gcc", so it can be a program name with args.
1991 set dummy gcc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$ac_ct_CC"; then
1998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 test -z "$as_dir" && as_dir=.
2005 for ac_exec_ext in '' $ac_executable_extensions; do
2006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007 ac_cv_prog_ac_ct_CC="gcc"
2008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6; }
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2026 if test "x$ac_ct_CC" = x; then
2029 case $cross_compiling:$ac_tool_warned in
2031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2032 whose name does not start with the host triplet. If you think this
2033 configuration is useful to you, please write to autoconf@gnu.org." >&5
2034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2035 whose name does not start with the host triplet. If you think this
2036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2037 ac_tool_warned=yes ;;
2045 if test -z "$CC"; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}cc; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2064 ac_cv_prog_CC="${ac_tool_prefix}cc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 if test -n "$CC"; then
2076 { echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6; }
2079 { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2086 if test -z "$CC"; then
2087 # Extract the first word of "cc", so it can be a program name with args.
2088 set dummy cc; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$CC"; then
2095 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 test -z "$as_dir" && as_dir=.
2103 for ac_exec_ext in '' $ac_executable_extensions; do
2104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2105 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2106 ac_prog_rejected=yes
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117 if test $ac_prog_rejected = yes; then
2118 # We found a bogon in the path, so make sure we never use it.
2119 set dummy $ac_cv_prog_CC
2121 if test $# != 0; then
2122 # We chose a different compiler from the bogus one.
2123 # However, it has the same basename, so the bogon will be chosen
2124 # first if we set CC to just the basename; use the full file name.
2126 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132 if test -n "$CC"; then
2133 { echo "$as_me:$LINENO: result: $CC" >&5
2134 echo "${ECHO_T}$CC" >&6; }
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2142 if test -z "$CC"; then
2143 if test -n "$ac_tool_prefix"; then
2144 for ac_prog in cl.exe
2146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 if test -n "$CC"; then
2175 { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2178 { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2183 test -n "$CC" && break
2186 if test -z "$CC"; then
2188 for ac_prog in cl.exe
2190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 if test -n "$ac_ct_CC"; then
2198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_ac_ct_CC="$ac_prog"
2208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2227 test -n "$ac_ct_CC" && break
2230 if test "x$ac_ct_CC" = x; then
2233 case $cross_compiling:$ac_tool_warned in
2235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2236 whose name does not start with the host triplet. If you think this
2237 configuration is useful to you, please write to autoconf@gnu.org." >&5
2238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2239 whose name does not start with the host triplet. If you think this
2240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2241 ac_tool_warned=yes ;;
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO: checking for C compiler version" >&5
2258 ac_compiler=`set X $ac_compile; echo $2`
2259 { (ac_try="$ac_compiler --version >&5"
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_compiler --version >&5") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }
2269 { (ac_try="$ac_compiler -v >&5"
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_compiler -v >&5") 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2279 { (ac_try="$ac_compiler -V >&5"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_compiler -V >&5") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }
2290 cat >conftest.$ac_ext <<_ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 ac_clean_files_save=$ac_clean_files
2306 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2307 # Try to create an executable without -o first, disregard a.out.
2308 # It will help us diagnose broken compilers, and finding out an intuition
2310 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2311 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2312 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2314 # List of possible output files, starting from the most likely.
2315 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2316 # only as a last resort. b.out is created by i960 compilers.
2317 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2319 # The IRIX 6 linker writes into existing files which may not be
2320 # executable, retaining their permissions. Remove them first so a
2321 # subsequent execution test works.
2323 for ac_file in $ac_files
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332 if { (ac_try="$ac_link_default"
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2338 (eval "$ac_link_default") 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2344 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2345 # so that the user can short-circuit this test for compilers unknown to
2347 for ac_file in $ac_files ''
2349 test -f "$ac_file" || continue
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2354 # We found the default executable, but exeext='' is most
2358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2362 # We set ac_cv_exeext here because the later test for it is not
2363 # safe: cross compilers may not add the suffix if given an `-o'
2364 # argument, so we may need to know it at that point already.
2365 # Even if this section looks crufty: it has the advantage of
2372 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378 { echo "$as_me:$LINENO: result: $ac_file" >&5
2379 echo "${ECHO_T}$ac_file" >&6; }
2380 if test -z "$ac_file"; then
2381 echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2384 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: C compiler cannot create executables
2387 See \`config.log' for more details." >&2;}
2388 { (exit 77); exit 77; }; }
2391 ac_exeext=$ac_cv_exeext
2393 # Check that the compiler produces executables we can run. If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2396 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2398 # If not cross compiling, check that we can run a simple program.
2399 if test "$cross_compiling" != yes; then
2400 if { ac_try='./$ac_file'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 if test "$cross_compiling" = maybe; then
2415 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2416 If you meant to cross compile, use \`--host'.
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2425 { echo "$as_me:$LINENO: result: yes" >&5
2426 echo "${ECHO_T}yes" >&6; }
2428 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2429 ac_clean_files=$ac_clean_files_save
2430 # Check that the compiler produces executables we can run. If not, either
2431 # the compiler is broken, or we cross compile.
2432 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2433 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2434 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2435 echo "${ECHO_T}$cross_compiling" >&6; }
2437 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2438 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2439 if { (ac_try="$ac_link"
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445 (eval "$ac_link") 2>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; then
2449 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2451 # work properly (i.e., refer to `conftest.exe'), while it won't with
2453 for ac_file in conftest.exe conftest conftest.*; do
2454 test -f "$ac_file" || continue
2456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2457 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&2;}
2467 { (exit 1); exit 1; }; }
2470 rm -f conftest$ac_cv_exeext
2471 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2472 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2474 rm -f conftest.$ac_ext
2475 EXEEXT=$ac_cv_exeext
2477 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2478 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2479 if test "${ac_cv_objext+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2497 rm -f conftest.o conftest.obj
2498 if { (ac_try="$ac_compile"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; then
2508 for ac_file in conftest.o conftest.obj conftest.*; do
2509 test -f "$ac_file" || continue;
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2529 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6; }
2531 OBJEXT=$ac_cv_objext
2533 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2556 rm -f conftest.$ac_objext
2557 if { (ac_try="$ac_compile"
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_compile") 2>conftest.er1
2565 grep -v '^ *+' conftest.er1 >conftest.err
2567 cat conftest.err >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } && {
2570 test -z "$ac_c_werror_flag" ||
2571 test ! -s conftest.err
2572 } && test -s conftest.$ac_objext; then
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2585 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2587 GCC=`test $ac_compiler_gnu = yes && echo yes`
2588 ac_test_CFLAGS=${CFLAGS+set}
2589 ac_save_CFLAGS=$CFLAGS
2590 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 ac_save_c_werror_flag=$ac_c_werror_flag
2596 ac_c_werror_flag=yes
2599 cat >conftest.$ac_ext <<_ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (ac_try="$ac_compile"
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compile") 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } && {
2666 test -z "$ac_c_werror_flag" ||
2667 test ! -s conftest.err
2668 } && test -s conftest.$ac_objext; then
2671 echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 ac_c_werror_flag=$ac_save_c_werror_flag
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 ac_c_werror_flag=$ac_save_c_werror_flag
2725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2726 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2727 if test "$ac_test_CFLAGS" = set; then
2728 CFLAGS=$ac_save_CFLAGS
2729 elif test $ac_cv_prog_cc_g = yes; then
2730 if test "$GCC" = yes; then
2736 if test "$GCC" = yes; then
2742 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2743 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_cc_c89+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 ac_cv_prog_cc_c89=no
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2757 #include <sys/types.h>
2758 #include <sys/stat.h>
2759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2760 struct buf { int x; };
2761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2762 static char *e (p, i)
2768 static char *f (char * (*g) (char **, int), char **p, ...)
2773 s = g (p, va_arg (v,int));
2778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2779 function prototypes and stuff, but not '\xHH' hex character constants.
2780 These don't provoke an error unfortunately, instead are silently treated
2781 as 'x'. The following induces an error, until -std is added to get
2782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2783 array size at least. It's necessary to write '\x00'==0 to get something
2784 that's true only with -std. */
2785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2788 inside strings and character constants. */
2790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2792 int test (int i, double x);
2793 struct s1 {int (*f) (int a);};
2794 struct s2 {int (*f) (double a);};
2795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2809 CC="$ac_save_CC $ac_arg"
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2819 grep -v '^ *+' conftest.er1 >conftest.err
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2827 ac_cv_prog_cc_c89=$ac_arg
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2838 rm -f conftest.$ac_ext
2843 case "x$ac_cv_prog_cc_c89" in
2845 { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2848 { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869 if test -n "$CCC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$CXX"; then
2883 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CXX"; then
2904 { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2912 test -n "$CXX" && break
2915 if test -z "$CXX"; then
2917 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$ac_ct_CXX"; then
2927 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CXX="$ac_prog"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2956 test -n "$ac_ct_CXX" && break
2959 if test "x$ac_ct_CXX" = x; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compiler --version >&5") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_compiler -v >&5") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compiler -V >&5") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_cxx_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3064 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3066 GXX=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CXXFLAGS=${CXXFLAGS+set}
3068 ac_save_CXXFLAGS=$CXXFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cxx_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3075 ac_cxx_werror_flag=yes
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_cxx_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3110 ac_cv_prog_cxx_g=yes
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } && {
3145 test -z "$ac_cxx_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_cxx_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3187 ac_cv_prog_cxx_g=yes
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3206 if test "$ac_test_CXXFLAGS" = set; then
3207 CXXFLAGS=$ac_save_CXXFLAGS
3208 elif test $ac_cv_prog_cxx_g = yes; then
3209 if test "$GXX" = yes; then
3215 if test "$GXX" = yes; then
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3240 if test -z "$CPP"; then
3241 if test "${ac_cv_prog_CPP+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Double quotes because CPP needs to be expanded
3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3248 for ac_c_preproc_warn_flag in '' yes
3250 # Use a header file that comes with gcc, so configuring glibc
3251 # with a fresh cross-compiler works.
3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253 # <limits.h> exists even on freestanding compilers.
3254 # On the NeXT, cc -E runs the code through the compiler's parser,
3255 # not just through cpp. "Syntax error" is here to catch this case.
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 # include <limits.h>
3265 # include <assert.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 # Broken: fails on valid input.
3294 rm -f conftest.err conftest.$ac_ext
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null && {
3319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3322 # Broken: success on invalid input.
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3328 # Passes both tests.
3333 rm -f conftest.err conftest.$ac_ext
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3350 { echo "$as_me:$LINENO: result: $CPP" >&5
3351 echo "${ECHO_T}$CPP" >&6; }
3353 for ac_c_preproc_warn_flag in '' yes
3355 # Use a header file that comes with gcc, so configuring glibc
3356 # with a fresh cross-compiler works.
3357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358 # <limits.h> exists even on freestanding compilers.
3359 # On the NeXT, cc -E runs the code through the compiler's parser,
3360 # not just through cpp. "Syntax error" is here to catch this case.
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3368 # include <limits.h>
3370 # include <assert.h>
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 # Broken: fails on valid input.
3399 rm -f conftest.err conftest.$ac_ext
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3419 grep -v '^ *+' conftest.er1 >conftest.err
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null && {
3424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3425 test ! -s conftest.err
3427 # Broken: success on invalid input.
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Passes both tests.
3438 rm -f conftest.err conftest.$ac_ext
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3446 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3461 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3462 if test "${ac_cv_path_GREP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # Extract the first word of "grep ggrep" to use in msg output
3466 if test -z "$GREP"; then
3467 set dummy grep ggrep; ac_prog_name=$2
3468 if test "${ac_cv_path_GREP+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 ac_path_GREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3477 test -z "$as_dir" && as_dir=.
3478 for ac_prog in grep ggrep; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3482 # Check for GNU ac_path_GREP and select it if it is found.
3483 # Check for GNU $ac_path_GREP
3484 case `"$ac_path_GREP" --version 2>&1` in
3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3489 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3492 cat "conftest.in" "conftest.in" >"conftest.tmp"
3493 mv "conftest.tmp" "conftest.in"
3494 cp "conftest.in" "conftest.nl"
3495 echo 'GREP' >> "conftest.nl"
3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498 ac_count=`expr $ac_count + 1`
3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500 # Best one so far, save it but keep looking for a better one
3501 ac_cv_path_GREP="$ac_path_GREP"
3502 ac_path_GREP_max=$ac_count
3504 # 10*(2^10) chars as input seems more than enough
3505 test $ac_count -gt 10 && break
3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3511 $ac_path_GREP_found && break 3
3521 GREP="$ac_cv_path_GREP"
3522 if test -z "$GREP"; then
3523 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3524 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3525 { (exit 1); exit 1; }; }
3529 ac_cv_path_GREP=$GREP
3534 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3535 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3536 GREP="$ac_cv_path_GREP"
3539 { echo "$as_me:$LINENO: checking for egrep" >&5
3540 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3541 if test "${ac_cv_path_EGREP+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3545 then ac_cv_path_EGREP="$GREP -E"
3547 # Extract the first word of "egrep" to use in msg output
3548 if test -z "$EGREP"; then
3549 set dummy egrep; ac_prog_name=$2
3550 if test "${ac_cv_path_EGREP+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_path_EGREP_found=false
3554 # Loop through the user's path and test for each of PROGNAME-LIST
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559 test -z "$as_dir" && as_dir=.
3560 for ac_prog in egrep; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3563 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3564 # Check for GNU ac_path_EGREP and select it if it is found.
3565 # Check for GNU $ac_path_EGREP
3566 case `"$ac_path_EGREP" --version 2>&1` in
3568 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3571 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3574 cat "conftest.in" "conftest.in" >"conftest.tmp"
3575 mv "conftest.tmp" "conftest.in"
3576 cp "conftest.in" "conftest.nl"
3577 echo 'EGREP' >> "conftest.nl"
3578 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3580 ac_count=`expr $ac_count + 1`
3581 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3582 # Best one so far, save it but keep looking for a better one
3583 ac_cv_path_EGREP="$ac_path_EGREP"
3584 ac_path_EGREP_max=$ac_count
3586 # 10*(2^10) chars as input seems more than enough
3587 test $ac_count -gt 10 && break
3589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3593 $ac_path_EGREP_found && break 3
3603 EGREP="$ac_cv_path_EGREP"
3604 if test -z "$EGREP"; then
3605 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3606 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3607 { (exit 1); exit 1; }; }
3611 ac_cv_path_EGREP=$EGREP
3617 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3618 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3619 EGREP="$ac_cv_path_EGREP"
3623 { echo "$as_me:$LINENO: checking for AIX" >&5
3624 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637 $EGREP "yes" >/dev/null 2>&1; then
3638 { echo "$as_me:$LINENO: result: yes" >&5
3639 echo "${ECHO_T}yes" >&6; }
3640 cat >>confdefs.h <<\_ACEOF
3641 #define _ALL_SOURCE 1
3645 { echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6; }
3652 if test $ac_cv_c_compiler_gnu = yes; then
3653 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3654 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3655 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_pattern="Autoconf.*'x'"
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3670 ac_cv_prog_gcc_traditional=yes
3672 ac_cv_prog_gcc_traditional=no
3677 if test $ac_cv_prog_gcc_traditional = no; then
3678 cat >conftest.$ac_ext <<_ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h. */
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3689 ac_cv_prog_gcc_traditional=yes
3695 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3696 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3697 if test $ac_cv_prog_gcc_traditional = yes; then
3698 CC="$CC -traditional"
3702 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3703 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3704 if test "${ac_cv_prog_suncc+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 cat > conftest.c <<EOF
3712 if { ac_try='${CC-cc} -E conftest.c'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3718 ac_cv_prog_suncc=yes
3723 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3724 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3725 if test -n "$ac_tool_prefix"; then
3726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_RANLIB+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 if test -n "$RANLIB"; then
3734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 RANLIB=$ac_cv_prog_RANLIB
3754 if test -n "$RANLIB"; then
3755 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3756 echo "${ECHO_T}$RANLIB" >&6; }
3758 { echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6; }
3764 if test -z "$ac_cv_prog_RANLIB"; then
3765 ac_ct_RANLIB=$RANLIB
3766 # Extract the first word of "ranlib", so it can be a program name with args.
3767 set dummy ranlib; ac_word=$2
3768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$ac_ct_RANLIB"; then
3774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_prog_ac_ct_RANLIB="ranlib"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3794 if test -n "$ac_ct_RANLIB"; then
3795 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3798 { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3802 if test "x$ac_ct_RANLIB" = x; then
3805 case $cross_compiling:$ac_tool_warned in
3807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3808 whose name does not start with the host triplet. If you think this
3809 configuration is useful to you, please write to autoconf@gnu.org." >&5
3810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3811 whose name does not start with the host triplet. If you think this
3812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3813 ac_tool_warned=yes ;;
3815 RANLIB=$ac_ct_RANLIB
3818 RANLIB="$ac_cv_prog_RANLIB"
3822 # Check whether --enable-largefile was given.
3823 if test "${enable_largefile+set}" = set; then
3824 enableval=$enable_largefile;
3827 if test "$enable_largefile" != no; then
3829 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3830 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3831 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 ac_cv_sys_largefile_CC=no
3835 if test "$GCC" != yes; then
3838 # IRIX 6.2 and later do not support large files by default,
3839 # so use the C compiler's -n32 option if that helps.
3840 cat >conftest.$ac_ext <<_ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <sys/types.h>
3847 /* Check that off_t can represent 2**63 - 1 correctly.
3848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3849 since some C++ compilers masquerading as C compilers
3850 incorrectly reject 9223372036854775807. */
3851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3853 && LARGE_OFF_T % 2147483647 == 1)
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870 (eval "$ac_compile") 2>conftest.er1
3872 grep -v '^ *+' conftest.er1 >conftest.err
3874 cat conftest.err >&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && {
3877 test -z "$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 } && test -s conftest.$ac_objext; then
3882 echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3888 rm -f core conftest.err conftest.$ac_objext
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3907 ac_cv_sys_largefile_CC=' -n32'; break
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext
3919 rm -f conftest.$ac_ext
3922 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3923 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3924 if test "$ac_cv_sys_largefile_CC" != no; then
3925 CC=$CC$ac_cv_sys_largefile_CC
3928 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3929 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3930 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.$ac_ext <<_ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <sys/types.h>
3941 /* Check that off_t can represent 2**63 - 1 correctly.
3942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3943 since some C++ compilers masquerading as C compilers
3944 incorrectly reject 9223372036854775807. */
3945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3947 && LARGE_OFF_T % 2147483647 == 1)
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_compile") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest.$ac_objext; then
3974 ac_cv_sys_file_offset_bits=no; break
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 #define _FILE_OFFSET_BITS 64
3990 #include <sys/types.h>
3991 /* Check that off_t can represent 2**63 - 1 correctly.
3992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3993 since some C++ compilers masquerading as C compilers
3994 incorrectly reject 9223372036854775807. */
3995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3997 && LARGE_OFF_T % 2147483647 == 1)
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compile") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } && {
4021 test -z "$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 } && test -s conftest.$ac_objext; then
4024 ac_cv_sys_file_offset_bits=64; break
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_cv_sys_file_offset_bits=unknown
4037 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4038 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4039 case $ac_cv_sys_file_offset_bits in #(
4042 cat >>confdefs.h <<_ACEOF
4043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4048 if test $ac_cv_sys_file_offset_bits = unknown; then
4049 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4050 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4051 if test "${ac_cv_sys_large_files+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 #include <sys/types.h>
4062 /* Check that off_t can represent 2**63 - 1 correctly.
4063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4064 since some C++ compilers masquerading as C compilers
4065 incorrectly reject 9223372036854775807. */
4066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4068 && LARGE_OFF_T % 2147483647 == 1)
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 ac_cv_sys_large_files=no; break
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #define _LARGE_FILES 1
4111 #include <sys/types.h>
4112 /* Check that off_t can represent 2**63 - 1 correctly.
4113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4114 since some C++ compilers masquerading as C compilers
4115 incorrectly reject 9223372036854775807. */
4116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4118 && LARGE_OFF_T % 2147483647 == 1)
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1 >conftest.err
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } && {
4142 test -z "$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 } && test -s conftest.$ac_objext; then
4145 ac_cv_sys_large_files=1; break
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_sys_large_files=unknown
4158 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4159 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4160 case $ac_cv_sys_large_files in #(
4163 cat >>confdefs.h <<_ACEOF
4164 #define _LARGE_FILES $ac_cv_sys_large_files
4173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4175 if test "${ac_cv_header_stdc+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_compile") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest.$ac_objext; then
4214 ac_cv_header_stdc=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_header_stdc=no
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 if test $ac_cv_header_stdc = yes; then
4225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "memchr" >/dev/null 2>&1; then
4239 ac_cv_header_stdc=no
4245 if test $ac_cv_header_stdc = yes; then
4246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then
4260 ac_cv_header_stdc=no
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then
4271 cat >conftest.$ac_ext <<_ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4302 rm -f conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_link") 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4324 echo "$as_me: program exited with status $ac_status" >&5
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_header_stdc=no
4331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358 inttypes.h stdint.h unistd.h
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4374 #include <$ac_header>
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 eval "$as_ac_Header=yes"
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 eval "$as_ac_Header=no"
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 ac_res=`eval echo '${'$as_ac_Header'}'`
4404 { echo "$as_me:$LINENO: result: $ac_res" >&5
4405 echo "${ECHO_T}$ac_res" >&6; }
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4417 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4418 if test "${ac_cv_c_bigendian+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 # See if sys/param.h defines the BYTE_ORDER macro.
4422 cat >conftest.$ac_ext <<_ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <sys/param.h>
4434 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4435 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_compile") 2>conftest.er1
4452 grep -v '^ *+' conftest.er1 >conftest.err
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && {
4457 test -z "$ac_c_werror_flag" ||
4458 test ! -s conftest.err
4459 } && test -s conftest.$ac_objext; then
4460 # It does; now see whether it defined to BIG_ENDIAN or not.
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <sys/types.h>
4468 #include <sys/param.h>
4473 #if BYTE_ORDER != BIG_ENDIAN
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_compile") 2>conftest.er1
4490 grep -v '^ *+' conftest.er1 >conftest.err
4492 cat conftest.err >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && {
4495 test -z "$ac_c_werror_flag" ||
4496 test ! -s conftest.err
4497 } && test -s conftest.$ac_objext; then
4498 ac_cv_c_bigendian=yes
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ac_cv_c_bigendian=no
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 # It does not; compile a test program.
4512 if test "$cross_compiling" = yes; then
4513 # try to guess the endianness by grepping values into an object file
4514 ac_cv_c_bigendian=unknown
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4522 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4523 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4524 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4525 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4526 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4530 _ascii (); _ebcdic ();
4535 rm -f conftest.$ac_objext
4536 if { (ac_try="$ac_compile"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_compile") 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } && {
4549 test -z "$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4551 } && test -s conftest.$ac_objext; then
4552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4553 ac_cv_c_bigendian=yes
4555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556 if test "$ac_cv_c_bigendian" = unknown; then
4557 ac_cv_c_bigendian=no
4559 # finding both strings is unlikely to happen, but who knows?
4560 ac_cv_c_bigendian=unknown
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4583 /* Are we little or big endian? From Harbison&Steele. */
4587 char c[sizeof (long int)];
4590 return u.c[sizeof (long int) - 1] == 1;
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_c_bigendian=no
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_c_bigendian=yes
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635 case $ac_cv_c_bigendian in
4638 cat >>confdefs.h <<\_ACEOF
4639 #define WORDS_BIGENDIAN 1
4645 { { echo "$as_me:$LINENO: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647 echo "$as_me: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649 { (exit 1); exit 1; }; } ;;
4653 # Extract the first word of "gmake", so it can be a program name with args.
4654 set dummy gmake; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_GMAKE+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test -n "$GMAKE"; then
4661 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_GMAKE="yes"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4681 GMAKE=$ac_cv_prog_GMAKE
4682 if test -n "$GMAKE"; then
4683 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4684 echo "${ECHO_T}$GMAKE" >&6; }
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 if test $GMAKE = no; then
4692 # Extract the first word of "make", so it can be a program name with args.
4693 set dummy make; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_path_MAKE+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4723 MAKE=$ac_cv_path_MAKE
4724 if test -n "$MAKE"; then
4725 { echo "$as_me:$LINENO: result: $MAKE" >&5
4726 echo "${ECHO_T}$MAKE" >&6; }
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4734 # Extract the first word of "gmake", so it can be a program name with args.
4735 set dummy gmake; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_MAKE+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4765 MAKE=$ac_cv_path_MAKE
4766 if test -n "$MAKE"; then
4767 { echo "$as_me:$LINENO: result: $MAKE" >&5
4768 echo "${ECHO_T}$MAKE" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4776 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4777 if test -z "$makever"; then
4778 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4779 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4780 echo "$as_me: error: GNU Make is not installed. Please download and install it
4781 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4782 { (exit 1); exit 1; }; }
4785 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4786 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4787 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 ac_check_lib_save_LIBS=$LIBS
4792 cat >conftest.$ac_ext <<_ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4799 /* Override any GCC internal prototype to avoid an error.
4800 Use char because int might match the return type of a GCC
4801 builtin and then its argument prototype would still apply. */
4809 return lt_dlinit ();
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (ac_try="$ac_link"
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_link") 2>conftest.er1
4823 grep -v '^ *+' conftest.er1 >conftest.err
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } && {
4828 test -z "$ac_c_werror_flag" ||
4829 test ! -s conftest.err
4830 } && test -s conftest$ac_exeext &&
4831 $as_test_x conftest$ac_exeext; then
4832 ac_cv_lib_ltdl_lt_dlinit=yes
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_cv_lib_ltdl_lt_dlinit=no
4840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4841 conftest$ac_exeext conftest.$ac_ext
4842 LIBS=$ac_check_lib_save_LIBS
4844 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4845 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4846 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4847 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4849 if test x"$enable_ltdl_install" = xno; then
4850 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4851 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4853 enable_ltdl_install=yes
4858 if test x"$enable_ltdl_install" = x"yes"; then
4859 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4860 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4861 LTDLINCL='-I${top_srcdir}/''libltdl'
4863 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4867 # For backwards non-gettext consistent compatibility...
4871 if test x"$enable_ltdl_install" = x"yes"; then
4872 LTDL_SUBDIRS=libltdl
4876 # Check whether --enable-shared was given.
4877 if test "${enable_shared+set}" = set; then
4878 enableval=$enable_shared; p=${PACKAGE-default}
4880 yes) enable_shared=yes ;;
4881 no) enable_shared=no ;;
4884 # Look at the argument we got. We use all the common list separators.
4885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4886 for pkg in $enableval; do
4888 if test "X$pkg" = "X$p"; then
4900 # Check whether --enable-static was given.
4901 if test "${enable_static+set}" = set; then
4902 enableval=$enable_static; p=${PACKAGE-default}
4904 yes) enable_static=yes ;;
4905 no) enable_static=no ;;
4908 # Look at the argument we got. We use all the common list separators.
4909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4910 for pkg in $enableval; do
4912 if test "X$pkg" = "X$p"; then
4924 # Check whether --enable-fast-install was given.
4925 if test "${enable_fast_install+set}" = set; then
4926 enableval=$enable_fast_install; p=${PACKAGE-default}
4928 yes) enable_fast_install=yes ;;
4929 no) enable_fast_install=no ;;
4931 enable_fast_install=no
4932 # Look at the argument we got. We use all the common list separators.
4933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4934 for pkg in $enableval; do
4936 if test "X$pkg" = "X$p"; then
4937 enable_fast_install=yes
4944 enable_fast_install=yes
4949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4950 if test -f "$ac_dir/install-sh"; then
4952 ac_install_sh="$ac_aux_dir/install-sh -c"
4954 elif test -f "$ac_dir/install.sh"; then
4956 ac_install_sh="$ac_aux_dir/install.sh -c"
4958 elif test -f "$ac_dir/shtool"; then
4960 ac_install_sh="$ac_aux_dir/shtool install -c"
4964 if test -z "$ac_aux_dir"; then
4965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4967 { (exit 1); exit 1; }; }
4970 # These three variables are undocumented and unsupported,
4971 # and are intended to be withdrawn in a future Autoconf release.
4972 # They can cause serious problems if a builder's source tree is in a directory
4973 # whose full name contains unusual characters.
4974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4979 # Make sure we can run config.sub.
4980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4983 { (exit 1); exit 1; }; }
4985 { echo "$as_me:$LINENO: checking build system type" >&5
4986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4987 if test "${ac_cv_build+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 ac_build_alias=$build_alias
4991 test "x$ac_build_alias" = x &&
4992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4993 test "x$ac_build_alias" = x &&
4994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4996 { (exit 1); exit 1; }; }
4997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5000 { (exit 1); exit 1; }; }
5003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5004 echo "${ECHO_T}$ac_cv_build" >&6; }
5005 case $ac_cv_build in
5007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5008 echo "$as_me: error: invalid value of canonical build" >&2;}
5009 { (exit 1); exit 1; }; };;
5012 ac_save_IFS=$IFS; IFS='-'
5018 # Remember, the first character of IFS is used to create $*,
5019 # except with old shells:
5022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5025 { echo "$as_me:$LINENO: checking host system type" >&5
5026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5027 if test "${ac_cv_host+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test "x$host_alias" = x; then
5031 ac_cv_host=$ac_cv_build
5033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5036 { (exit 1); exit 1; }; }
5040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5041 echo "${ECHO_T}$ac_cv_host" >&6; }
5044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5045 echo "$as_me: error: invalid value of canonical host" >&2;}
5046 { (exit 1); exit 1; }; };;
5049 ac_save_IFS=$IFS; IFS='-'
5055 # Remember, the first character of IFS is used to create $*,
5056 # except with old shells:
5059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5062 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5063 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5064 if test "${lt_cv_path_SED+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 # Loop through the user's path and test for sed and gsed.
5068 # Then use that list of sed's as ones to test for truncation.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for lt_ac_prog in sed gsed; do
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5077 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5084 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5085 # along with /bin/sed that truncates output.
5086 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5087 test ! -f $lt_ac_sed && continue
5088 cat /dev/null > conftest.in
5090 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5091 # Check for GNU sed and select it if it is found.
5092 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5093 lt_cv_path_SED=$lt_ac_sed
5097 cat conftest.in conftest.in >conftest.tmp
5098 mv conftest.tmp conftest.in
5099 cp conftest.in conftest.nl
5101 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5102 cmp -s conftest.out conftest.nl || break
5103 # 10000 chars as input seems more than enough
5104 test $lt_ac_count -gt 10 && break
5105 lt_ac_count=`expr $lt_ac_count + 1`
5106 if test $lt_ac_count -gt $lt_ac_max; then
5107 lt_ac_max=$lt_ac_count
5108 lt_cv_path_SED=$lt_ac_sed
5116 { echo "$as_me:$LINENO: result: $SED" >&5
5117 echo "${ECHO_T}$SED" >&6; }
5120 # Check whether --with-gnu-ld was given.
5121 if test "${with_gnu_ld+set}" = set; then
5122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5128 if test "$GCC" = yes; then
5129 # Check if gcc -print-prog-name=ld gives a path.
5130 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5134 # gcc leaves a trailing carriage return which upsets mingw
5135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5140 # Accept absolute paths.
5142 re_direlt='/[^/][^/]*/\.\./'
5143 # Canonicalize the pathname of ld
5144 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5145 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5146 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5148 test -z "$LD" && LD="$ac_prog"
5151 # If it fails, then pretend we aren't using GCC.
5155 # If it is relative, then search for the first ld in PATH.
5159 elif test "$with_gnu_ld" = yes; then
5160 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5163 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5166 if test "${lt_cv_path_LD+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 if test -z "$LD"; then
5170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171 for ac_dir in $PATH; do
5173 test -z "$ac_dir" && ac_dir=.
5174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5175 lt_cv_path_LD="$ac_dir/$ac_prog"
5176 # Check to see if the program is GNU ld. I'd rather use --version,
5177 # but apparently some variants of GNU ld only accept -v.
5178 # Break only if it was the GNU/non-GNU ld that we prefer.
5179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5180 *GNU* | *'with BFD'*)
5181 test "$with_gnu_ld" != no && break
5184 test "$with_gnu_ld" != yes && break
5191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5196 if test -n "$LD"; then
5197 { echo "$as_me:$LINENO: result: $LD" >&5
5198 echo "${ECHO_T}$LD" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5205 { (exit 1); exit 1; }; }
5206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5212 case `$LD -v 2>&1 </dev/null` in
5213 *GNU* | *'with BFD'*)
5214 lt_cv_prog_gnu_ld=yes
5217 lt_cv_prog_gnu_ld=no
5221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5223 with_gnu_ld=$lt_cv_prog_gnu_ld
5226 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5227 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5228 if test "${lt_cv_ld_reload_flag+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 lt_cv_ld_reload_flag='-r'
5233 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5234 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5235 reload_flag=$lt_cv_ld_reload_flag
5236 case $reload_flag in
5238 *) reload_flag=" $reload_flag" ;;
5240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5243 if test "$GCC" = yes; then
5244 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5251 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5252 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5253 if test "${lt_cv_path_NM+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test -n "$NM"; then
5257 # Let the user override the test.
5260 lt_nm_to_check="${ac_tool_prefix}nm"
5261 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5262 lt_nm_to_check="$lt_nm_to_check nm"
5264 for lt_tmp_nm in $lt_nm_to_check; do
5265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5266 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5268 test -z "$ac_dir" && ac_dir=.
5269 tmp_nm="$ac_dir/$lt_tmp_nm"
5270 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5271 # Check to see if the nm accepts a BSD-compat flag.
5272 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5273 # nm: unknown option "B" ignored
5274 # Tru64's nm complains that /dev/null is an invalid object file
5275 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5276 */dev/null* | *'Invalid file or object type'*)
5277 lt_cv_path_NM="$tmp_nm -B"
5281 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5283 lt_cv_path_NM="$tmp_nm -p"
5287 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5288 continue # so that we can try to find one that supports BSD flags
5297 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5300 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5301 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5304 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5305 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5307 if test "$LN_S" = "ln -s"; then
5308 { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5311 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5312 echo "${ECHO_T}no, using $LN_S" >&6; }
5315 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5316 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5317 if test "${lt_cv_deplibs_check_method+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 lt_cv_file_magic_cmd='$MAGIC_CMD'
5321 lt_cv_file_magic_test_file=
5322 lt_cv_deplibs_check_method='unknown'
5323 # Need to set the preceding variable on all platforms that support
5324 # interlibrary dependencies.
5325 # 'none' -- dependencies not supported.
5326 # `unknown' -- same as none, but documents that we really don't know.
5327 # 'pass_all' -- all dependencies passed with no checks.
5328 # 'test_compile' -- check by making test program.
5329 # 'file_magic [[regex]]' -- check by looking for files in library path
5330 # which responds to the $file_magic_cmd with a given extended regex.
5331 # If you have `file' or equivalent on your system and you're not sure
5332 # whether `pass_all' will *always* work, you probably want this one.
5336 lt_cv_deplibs_check_method=pass_all
5340 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5345 lt_cv_file_magic_cmd='/usr/bin/file -L'
5346 lt_cv_file_magic_test_file=/shlib/libc.so
5350 # func_win32_libid is a shell function defined in ltmain.sh
5351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5352 lt_cv_file_magic_cmd='func_win32_libid'
5356 # Base MSYS/MinGW do not provide the 'file' command needed by
5357 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5358 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5359 lt_cv_file_magic_cmd='$OBJDUMP -f'
5362 darwin* | rhapsody*)
5363 lt_cv_deplibs_check_method=pass_all
5366 freebsd* | kfreebsd*-gnu | dragonfly*)
5367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5370 # Not sure whether the presence of OpenBSD here was a mistake.
5371 # Let's accept both of them until this is cleared up.
5372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5373 lt_cv_file_magic_cmd=/usr/bin/file
5374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5378 lt_cv_deplibs_check_method=pass_all
5383 lt_cv_deplibs_check_method=pass_all
5386 hpux10.20* | hpux11*)
5387 lt_cv_file_magic_cmd=/usr/bin/file
5390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5394 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]'
5395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5409 irix5* | irix6* | nonstopux*)
5411 *-32|*"-32 ") libmagic=32-bit;;
5412 *-n32|*"-n32 ") libmagic=N32;;
5413 *-64|*"-64 ") libmagic=64-bit;;
5414 *) libmagic=never-match;;
5416 lt_cv_deplibs_check_method=pass_all
5419 # This must be Linux ELF.
5421 lt_cv_deplibs_check_method=pass_all
5425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5434 lt_cv_file_magic_cmd=/usr/bin/file
5435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439 lt_cv_deplibs_check_method=unknown
5443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5450 osf3* | osf4* | osf5*)
5451 lt_cv_deplibs_check_method=pass_all
5455 lt_cv_deplibs_check_method=pass_all
5459 case $host_vendor in
5461 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]'
5462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5465 lt_cv_deplibs_check_method=pass_all
5468 lt_cv_file_magic_cmd='/bin/file'
5469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5472 lt_cv_file_magic_cmd='/bin/file'
5473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5474 lt_cv_file_magic_test_file=/lib/libc.so
5477 lt_cv_deplibs_check_method=pass_all
5480 lt_cv_deplibs_check_method=pass_all
5485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5486 lt_cv_deplibs_check_method=pass_all
5491 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5492 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5493 file_magic_cmd=$lt_cv_file_magic_cmd
5494 deplibs_check_method=$lt_cv_deplibs_check_method
5495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5500 # If no C compiler was specified, use CC.
5503 # If no C compiler flags were specified, use CFLAGS.
5504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5506 # Allow CC to be a program name with arguments.
5509 # Check whether --enable-libtool-lock was given.
5510 if test "${enable_libtool_lock+set}" = set; then
5511 enableval=$enable_libtool_lock;
5514 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5516 # Some flags need to be propagated to the compiler or linker for good
5520 # Find out which ABI we are using.
5521 echo 'int i;' > conftest.$ac_ext
5522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523 (eval $ac_compile) 2>&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; then
5527 case `/usr/bin/file conftest.$ac_objext` in
5539 # Find out which ABI we are using.
5540 echo '#line 5540 "configure"' > conftest.$ac_ext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542 (eval $ac_compile) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; then
5546 if test "$lt_cv_prog_gnu_ld" = yes; then
5547 case `/usr/bin/file conftest.$ac_objext` in
5549 LD="${LD-ld} -melf32bsmip"
5552 LD="${LD-ld} -melf32bmipn32"
5555 LD="${LD-ld} -melf64bmip"
5559 case `/usr/bin/file conftest.$ac_objext` in
5575 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5576 # Find out which ABI we are using.
5577 echo 'int i;' > conftest.$ac_ext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; then
5583 case `/usr/bin/file conftest.o` in
5587 LD="${LD-ld} -m elf_i386"
5589 ppc64-*linux*|powerpc64-*linux*)
5590 LD="${LD-ld} -m elf32ppclinux"
5593 LD="${LD-ld} -m elf_s390"
5596 LD="${LD-ld} -m elf32_sparc"
5603 LD="${LD-ld} -m elf_x86_64"
5605 ppc*-*linux*|powerpc*-*linux*)
5606 LD="${LD-ld} -m elf64ppc"
5609 LD="${LD-ld} -m elf64_s390"
5612 LD="${LD-ld} -m elf64_sparc"
5622 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5623 SAVE_CFLAGS="$CFLAGS"
5624 CFLAGS="$CFLAGS -belf"
5625 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5626 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5627 if test "${lt_cv_cc_needs_belf+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (ac_try="$ac_link"
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_link") 2>conftest.er1
5660 grep -v '^ *+' conftest.er1 >conftest.err
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest$ac_exeext &&
5668 $as_test_x conftest$ac_exeext; then
5669 lt_cv_cc_needs_belf=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 lt_cv_cc_needs_belf=no
5677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5678 conftest$ac_exeext conftest.$ac_ext
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5688 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5690 CFLAGS="$SAVE_CFLAGS"
5694 # Find out which ABI we are using.
5695 echo 'int i;' > conftest.$ac_ext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697 (eval $ac_compile) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; then
5701 case `/usr/bin/file conftest.o` in
5703 case $lt_cv_prog_gnu_ld in
5704 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5705 *) LD="${LD-ld} -64" ;;
5716 need_locks="$enable_libtool_lock"
5720 for ac_header in dlfcn.h
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 ac_res=`eval echo '${'$as_ac_Header'}'`
5730 { echo "$as_me:$LINENO: result: $ac_res" >&5
5731 echo "${ECHO_T}$ac_res" >&6; }
5733 # Is the header compilable?
5734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 $ac_includes_default
5743 #include <$ac_header>
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_header_compiler=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 ac_header_compiler=no
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5772 echo "${ECHO_T}$ac_header_compiler" >&6; }
5774 # Is the header present?
5775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 #include <$ac_header>
5785 if { (ac_try="$ac_cpp conftest.$ac_ext"
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5793 grep -v '^ *+' conftest.er1 >conftest.err
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } >/dev/null && {
5798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5801 ac_header_preproc=yes
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5806 ac_header_preproc=no
5809 rm -f conftest.err conftest.$ac_ext
5810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5811 echo "${ECHO_T}$ac_header_preproc" >&6; }
5813 # So? What about this header?
5814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5820 ac_header_preproc=yes
5823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 eval "$as_ac_Header=\$ac_header_preproc"
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5851 cat >>confdefs.h <<_ACEOF
5852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5862 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5863 (test "X$CXX" != "Xg++"))) ; then
5865 ac_cpp='$CXXCPP $CPPFLAGS'
5866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5869 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5870 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5871 if test -z "$CXXCPP"; then
5872 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 # Double quotes because CXXCPP needs to be expanded
5876 for CXXCPP in "$CXX -E" "/lib/cpp"
5879 for ac_cxx_preproc_warn_flag in '' yes
5881 # Use a header file that comes with gcc, so configuring glibc
5882 # with a fresh cross-compiler works.
5883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5884 # <limits.h> exists even on freestanding compilers.
5885 # On the NeXT, cc -E runs the code through the compiler's parser,
5886 # not just through cpp. "Syntax error" is here to catch this case.
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5894 # include <limits.h>
5896 # include <assert.h>
5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5914 test ! -s conftest.err
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 # Broken: fails on valid input.
5925 rm -f conftest.err conftest.$ac_ext
5927 # OK, works on sane cases. Now check whether nonexistent headers
5928 # can be detected and how.
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #include <ac_nonexistent.h>
5937 if { (ac_try="$ac_cpp conftest.$ac_ext"
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5951 test ! -s conftest.err
5953 # Broken: success on invalid input.
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 # Passes both tests.
5964 rm -f conftest.err conftest.$ac_ext
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.err conftest.$ac_ext
5969 if $ac_preproc_ok; then
5974 ac_cv_prog_CXXCPP=$CXXCPP
5977 CXXCPP=$ac_cv_prog_CXXCPP
5979 ac_cv_prog_CXXCPP=$CXXCPP
5981 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5982 echo "${ECHO_T}$CXXCPP" >&6; }
5984 for ac_cxx_preproc_warn_flag in '' yes
5986 # Use a header file that comes with gcc, so configuring glibc
5987 # with a fresh cross-compiler works.
5988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 # <limits.h> exists even on freestanding compilers.
5990 # On the NeXT, cc -E runs the code through the compiler's parser,
5991 # not just through cpp. "Syntax error" is here to catch this case.
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5999 # include <limits.h>
6001 # include <assert.h>
6005 if { (ac_try="$ac_cpp conftest.$ac_ext"
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null && {
6018 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6019 test ! -s conftest.err
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 # Broken: fails on valid input.
6030 rm -f conftest.err conftest.$ac_ext
6032 # OK, works on sane cases. Now check whether nonexistent headers
6033 # can be detected and how.
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <ac_nonexistent.h>
6042 if { (ac_try="$ac_cpp conftest.$ac_ext"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null && {
6055 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6056 test ! -s conftest.err
6058 # Broken: success on invalid input.
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6064 # Passes both tests.
6069 rm -f conftest.err conftest.$ac_ext
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6077 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078 See \`config.log' for more details." >&5
6079 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6080 See \`config.log' for more details." >&2;}
6081 { (exit 1); exit 1; }; }
6085 ac_cpp='$CXXCPP $CPPFLAGS'
6086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6094 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6095 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6097 if test -n "$ac_tool_prefix"; then
6098 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
6100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6104 if test "${ac_cv_prog_F77+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 if test -n "$F77"; then
6108 ac_cv_prog_F77="$F77" # Let the user override the test.
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 if test -n "$F77"; then
6129 { echo "$as_me:$LINENO: result: $F77" >&5
6130 echo "${ECHO_T}$F77" >&6; }
6132 { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6137 test -n "$F77" && break
6140 if test -z "$F77"; then
6142 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
6144 # Extract the first word of "$ac_prog", so it can be a program name with args.
6145 set dummy $ac_prog; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$ac_ct_F77"; then
6152 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_ac_ct_F77="$ac_prog"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6172 if test -n "$ac_ct_F77"; then
6173 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6174 echo "${ECHO_T}$ac_ct_F77" >&6; }
6176 { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6181 test -n "$ac_ct_F77" && break
6184 if test "x$ac_ct_F77" = x; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet. If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&5
6192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet. If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6195 ac_tool_warned=yes ;;
6202 # Provide some information about the compiler.
6203 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6204 ac_compiler=`set X $ac_compile; echo $2`
6205 { (ac_try="$ac_compiler --version >&5"
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compiler --version >&5") 2>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }
6215 { (ac_try="$ac_compiler -v >&5"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compiler -v >&5") 2>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }
6225 { (ac_try="$ac_compiler -V >&5"
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compiler -V >&5") 2>&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }
6237 # If we don't use `.F' as extension, the preprocessor is not run on the
6238 # input file. (Note that this only needs to work for GNU compilers.)
6241 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6242 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6243 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 cat >conftest.$ac_ext <<_ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compile") 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && {
6268 test -z "$ac_f77_werror_flag" ||
6269 test ! -s conftest.err
6270 } && test -s conftest.$ac_objext; then
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6283 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6284 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6286 ac_test_FFLAGS=${FFLAGS+set}
6287 ac_save_FFLAGS=$FFLAGS
6289 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6290 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6291 if test "${ac_cv_prog_f77_g+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 cat >conftest.$ac_ext <<_ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_compile") 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } && {
6314 test -z "$ac_f77_werror_flag" ||
6315 test ! -s conftest.err
6316 } && test -s conftest.$ac_objext; then
6317 ac_cv_prog_f77_g=yes
6319 echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6329 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6330 if test "$ac_test_FFLAGS" = set; then
6331 FFLAGS=$ac_save_FFLAGS
6332 elif test $ac_cv_prog_f77_g = yes; then
6333 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6339 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6346 G77=`test $ac_compiler_gnu = yes && echo yes`
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6355 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6357 # find the maximum length of command line arguments
6358 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6359 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6360 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 # On DJGPP, this test can blow up pretty badly due to problems in libc
6369 # (any single argument exceeding 2000 bytes causes a buffer overrun
6370 # during glob expansion). Even if it were fixed, the result of this
6371 # check would be larger than it should be.
6372 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6376 # Under GNU Hurd, this test is not required because there is
6377 # no limit to the length of command line arguments.
6378 # Libtool will interpret -1 as no limit whatsoever
6379 lt_cv_sys_max_cmd_len=-1;
6383 # On Win9x/ME, this test blows up -- it succeeds, but takes
6384 # about 5 minutes as the teststring grows exponentially.
6385 # Worse, since 9x/ME are not pre-emptively multitasking,
6386 # you end up with a "frozen" computer, even though with patience
6387 # the test eventually succeeds (with a max line length of 256k).
6388 # Instead, let's just punt: use the minimum linelength reported by
6389 # all of the supported platforms: 8192 (on NT/2K/XP).
6390 lt_cv_sys_max_cmd_len=8192;
6394 # On AmigaOS with pdksh, this test takes hours, literally.
6395 # So we just punt and use a minimum line length of 8192.
6396 lt_cv_sys_max_cmd_len=8192;
6399 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6400 # This has been around since 386BSD, at least. Likely further.
6401 if test -x /sbin/sysctl; then
6402 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6403 elif test -x /usr/sbin/sysctl; then
6404 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6406 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6408 # And add a safety zone
6409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6414 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6415 lt_cv_sys_max_cmd_len=196608
6419 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6420 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6421 # nice to cause kernel panics so lets avoid the loop below.
6422 # First set a reasonable default.
6423 lt_cv_sys_max_cmd_len=16384
6425 if test -x /sbin/sysconfig; then
6426 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6427 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6432 lt_cv_sys_max_cmd_len=102400
6434 sysv5* | sco5v6* | sysv4.2uw2*)
6435 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6436 if test -n "$kargmax"; then
6437 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6439 lt_cv_sys_max_cmd_len=32768
6443 # If test is not a shell built-in, we'll probably end up computing a
6444 # maximum length that is only half of the actual maximum length, but
6446 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6447 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6448 = "XX$teststring") >/dev/null 2>&1 &&
6449 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6450 lt_cv_sys_max_cmd_len=$new_result &&
6451 test $i != 17 # 1/2 MB should be enough
6454 teststring=$teststring$teststring
6457 # Add a significant safety factor because C++ compilers can tack on massive
6458 # amounts of additional arguments before passing them to the linker.
6459 # It appears as though 1/2 is a usable value.
6460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6466 if test -n $lt_cv_sys_max_cmd_len ; then
6467 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6470 { echo "$as_me:$LINENO: result: none" >&5
6471 echo "${ECHO_T}none" >&6; }
6477 # Check for command to grab the raw symbol name followed by C symbol from nm.
6478 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 # These are sane defaults that work on at least a few old systems.
6485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6487 # Character class describing NM global symbol codes.
6488 symcode='[BCDEGRST]'
6490 # Regexp to match symbols that can be accessed directly from C.
6491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6493 # Transform an extracted symbol line into a proper C declaration
6494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6496 # Transform an extracted symbol line into symbol name and symbol address
6497 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'"
6499 # Define system-specific variables.
6504 cygwin* | mingw* | pw32*)
6505 symcode='[ABCDGISTW]'
6507 hpux*) # Its linker distinguishes data from code symbols
6508 if test "$host_cpu" = ia64; then
6509 symcode='[ABCDEGRST]'
6511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6512 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'"
6515 if test "$host_cpu" = ia64; then
6516 symcode='[ABCDGIRSTW]'
6517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6518 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'"
6522 symcode='[BCDEGRST]'
6525 symcode='[BCDEGQRST]'
6536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6544 # Handle CRLF in mingw tool chain
6548 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552 # If we're using GNU nm, then use its standard symbol codes.
6553 case `$NM -V 2>&1` in
6554 *GNU* | *'with BFD'*)
6555 symcode='[ABCDGIRSTW]' ;;
6558 # Try without a prefix undercore, then with it.
6559 for ac_symprfx in "" "_"; do
6561 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6562 symxfrm="\\1 $ac_symprfx\\2 \\2"
6564 # Write the raw and C identifiers.
6565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6567 # Check to see that the pipe works correctly.
6571 cat > conftest.$ac_ext <<EOF
6576 void nm_test_func(){}
6580 int main(){nm_test_var='a';nm_test_func();return(0);}
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; then
6588 # Now try to grab the symbols.
6590 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6591 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && test -s "$nlist"; then
6595 # Try sorting and uniquifying the output.
6596 if sort "$nlist" | uniq > "$nlist"T; then
6597 mv -f "$nlist"T "$nlist"
6602 # Make sure that we snagged all the symbols we need.
6603 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6604 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6605 cat <<EOF > conftest.$ac_ext
6611 # Now generate the symbol file.
6612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6614 cat <<EOF >> conftest.$ac_ext
6615 #if defined (__STDC__) && __STDC__
6616 # define lt_ptr_t void *
6618 # define lt_ptr_t char *
6622 /* The mapping between symbol names and symbols. */
6627 lt_preloaded_symbols[] =
6630 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6631 cat <<\EOF >> conftest.$ac_ext
6639 # Now try linking the two files.
6640 mv conftest.$ac_objext conftstm.$ac_objext
6641 lt_save_LIBS="$LIBS"
6642 lt_save_CFLAGS="$CFLAGS"
6643 LIBS="conftstm.$ac_objext"
6644 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646 (eval $ac_link) 2>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6652 LIBS="$lt_save_LIBS"
6653 CFLAGS="$lt_save_CFLAGS"
6655 echo "cannot find nm_test_func in $nlist" >&5
6658 echo "cannot find nm_test_var in $nlist" >&5
6661 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6664 echo "$progname: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6667 rm -f conftest* conftst*
6669 # Do not use the global_symbol_pipe unless it works.
6670 if test "$pipe_works" = yes; then
6673 lt_cv_sys_global_symbol_pipe=
6679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6680 lt_cv_sys_global_symbol_to_cdecl=
6682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6683 { echo "$as_me:$LINENO: result: failed" >&5
6684 echo "${ECHO_T}failed" >&6; }
6686 { echo "$as_me:$LINENO: result: ok" >&5
6687 echo "${ECHO_T}ok" >&6; }
6690 { echo "$as_me:$LINENO: checking for objdir" >&5
6691 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6692 if test "${lt_cv_objdir+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 rm -f .libs 2>/dev/null
6696 mkdir .libs 2>/dev/null
6697 if test -d .libs; then
6700 # MS-DOS does not allow filenames that begin with a dot.
6703 rmdir .libs 2>/dev/null
6705 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6706 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6707 objdir=$lt_cv_objdir
6715 # AIX sometimes has problems with the GCC collect2 program. For some
6716 # reason, if we set the COLLECT_NAMES environment variable, the problems
6717 # vanish in a puff of smoke.
6718 if test "X${COLLECT_NAMES+set}" != Xset; then
6720 export COLLECT_NAMES
6725 # Sed substitution that helps us do robust quoting. It backslashifies
6726 # metacharacters that are still active within double-quoted strings.
6727 Xsed='sed -e 1s/^X//'
6728 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6730 # Same as above, but do not quote variable references.
6731 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6733 # Sed substitution to delay expansion of an escaped shell variable in a
6734 # double_quote_subst'ed string.
6735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6737 # Sed substitution to avoid accidental globbing in evaled expressions
6738 no_glob_subst='s/\*/\\\*/g'
6744 default_ofile=libtool
6745 can_build_shared=yes
6747 # All known linkers require a `.a' archive for static linking (except MSVC,
6748 # which needs '.lib').
6750 ltmain="$ac_aux_dir/ltmain.sh"
6751 ofile="$default_ofile"
6752 with_gnu_ld="$lt_cv_prog_gnu_ld"
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}ar; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_prog_AR+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 if test -n "$AR"; then
6763 ac_cv_prog_AR="$AR" # Let the user override the test.
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_AR="${ac_tool_prefix}ar"
6773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 if test -n "$AR"; then
6784 { echo "$as_me:$LINENO: result: $AR" >&5
6785 echo "${ECHO_T}$AR" >&6; }
6787 { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6793 if test -z "$ac_cv_prog_AR"; then
6795 # Extract the first word of "ar", so it can be a program name with args.
6796 set dummy ar; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 if test -n "$ac_ct_AR"; then
6803 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_ac_ct_AR="ar"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6823 if test -n "$ac_ct_AR"; then
6824 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6825 echo "${ECHO_T}$ac_ct_AR" >&6; }
6827 { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6831 if test "x$ac_ct_AR" = x; then
6834 case $cross_compiling:$ac_tool_warned in
6836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet. If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&5
6839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet. If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842 ac_tool_warned=yes ;;
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_prog_RANLIB+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6927 if test "x$ac_ct_RANLIB" = x; then
6930 case $cross_compiling:$ac_tool_warned in
6932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet. If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&5
6935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938 ac_tool_warned=yes ;;
6940 RANLIB=$ac_ct_RANLIB
6943 RANLIB="$ac_cv_prog_RANLIB"
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}strip; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_prog_STRIP+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 if test -n "$STRIP"; then
6955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 STRIP=$ac_cv_prog_STRIP
6975 if test -n "$STRIP"; then
6976 { echo "$as_me:$LINENO: result: $STRIP" >&5
6977 echo "${ECHO_T}$STRIP" >&6; }
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6985 if test -z "$ac_cv_prog_STRIP"; then
6987 # Extract the first word of "strip", so it can be a program name with args.
6988 set dummy strip; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 if test -n "$ac_ct_STRIP"; then
6995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_ac_ct_STRIP="strip"
7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7015 if test -n "$ac_ct_STRIP"; then
7016 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7017 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7023 if test "x$ac_ct_STRIP" = x; then
7026 case $cross_compiling:$ac_tool_warned in
7028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7029 whose name does not start with the host triplet. If you think this
7030 configuration is useful to you, please write to autoconf@gnu.org." >&5
7031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7032 whose name does not start with the host triplet. If you think this
7033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7034 ac_tool_warned=yes ;;
7039 STRIP="$ac_cv_prog_STRIP"
7044 old_CFLAGS="$CFLAGS"
7046 # Set sane defaults for various variables
7047 test -z "$AR" && AR=ar
7048 test -z "$AR_FLAGS" && AR_FLAGS=cru
7049 test -z "$AS" && AS=as
7050 test -z "$CC" && CC=cc
7051 test -z "$LTCC" && LTCC=$CC
7052 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7053 test -z "$DLLTOOL" && DLLTOOL=dlltool
7054 test -z "$LD" && LD=ld
7055 test -z "$LN_S" && LN_S="ln -s"
7056 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7057 test -z "$NM" && NM=nm
7058 test -z "$SED" && SED=sed
7059 test -z "$OBJDUMP" && OBJDUMP=objdump
7060 test -z "$RANLIB" && RANLIB=:
7061 test -z "$STRIP" && STRIP=:
7062 test -z "$ac_objext" && ac_objext=o
7064 # Determine commands to create old-style static archives.
7065 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7066 old_postinstall_cmds='chmod 644 $oldlib'
7067 old_postuninstall_cmds=
7069 if test -n "$RANLIB"; then
7072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7078 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7081 for cc_temp in $compiler""; do
7083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7092 # Only perform the check for file, if the check method requires it
7093 case $deplibs_check_method in
7095 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7096 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7097 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7106 lt_save_MAGIC_CMD="$MAGIC_CMD"
7107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7108 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7109 for ac_dir in $ac_dummy; do
7111 test -z "$ac_dir" && ac_dir=.
7112 if test -f $ac_dir/${ac_tool_prefix}file; then
7113 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7114 if test -n "$file_magic_test_file"; then
7115 case $deplibs_check_method in
7117 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7119 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7120 $EGREP "$file_magic_regex" > /dev/null; then
7125 *** Warning: the command libtool uses to detect shared libraries,
7126 *** $file_magic_cmd, produces output that libtool cannot recognize.
7127 *** The result is that libtool may fail to recognize shared libraries
7128 *** as such. This will affect the creation of libtool libraries that
7129 *** depend on shared libraries, but programs linked with such libtool
7130 *** libraries will work regardless of this problem. Nevertheless, you
7131 *** may want to report the problem to your system manager and/or to
7132 *** bug-libtool@gnu.org
7142 MAGIC_CMD="$lt_save_MAGIC_CMD"
7147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7148 if test -n "$MAGIC_CMD"; then
7149 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7150 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7156 if test -z "$lt_cv_path_MAGIC_CMD"; then
7157 if test -n "$ac_tool_prefix"; then
7158 { echo "$as_me:$LINENO: checking for file" >&5
7159 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7168 lt_save_MAGIC_CMD="$MAGIC_CMD"
7169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7170 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7171 for ac_dir in $ac_dummy; do
7173 test -z "$ac_dir" && ac_dir=.
7174 if test -f $ac_dir/file; then
7175 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7176 if test -n "$file_magic_test_file"; then
7177 case $deplibs_check_method in
7179 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7182 $EGREP "$file_magic_regex" > /dev/null; then
7187 *** Warning: the command libtool uses to detect shared libraries,
7188 *** $file_magic_cmd, produces output that libtool cannot recognize.
7189 *** The result is that libtool may fail to recognize shared libraries
7190 *** as such. This will affect the creation of libtool libraries that
7191 *** depend on shared libraries, but programs linked with such libtool
7192 *** libraries will work regardless of this problem. Nevertheless, you
7193 *** may want to report the problem to your system manager and/or to
7194 *** bug-libtool@gnu.org
7204 MAGIC_CMD="$lt_save_MAGIC_CMD"
7209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210 if test -n "$MAGIC_CMD"; then
7211 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7212 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7214 { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7230 # Check whether --enable-libtool-lock was given.
7231 if test "${enable_libtool_lock+set}" = set; then
7232 enableval=$enable_libtool_lock;
7235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7238 # Check whether --with-pic was given.
7239 if test "${with_pic+set}" = set; then
7240 withval=$with_pic; pic_mode="$withval"
7245 test -z "$pic_mode" && pic_mode=default
7247 # Use C for the default configuration in the libtool script
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257 # Source file extension for C test sources.
7260 # Object file extension for compiled C test sources.
7264 # Code to be used in simple compile tests
7265 lt_simple_compile_test_code="int some_variable = 0;\n"
7267 # Code to be used in simple link tests
7268 lt_simple_link_test_code='int main(){return(0);}\n'
7271 # If no C compiler was specified, use CC.
7274 # If no C compiler flags were specified, use CFLAGS.
7275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7277 # Allow CC to be a program name with arguments.
7281 # save warnings/boilerplate of simple test code
7282 ac_outfile=conftest.$ac_objext
7283 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285 _lt_compiler_boilerplate=`cat conftest.err`
7288 ac_outfile=conftest.$ac_objext
7289 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7291 _lt_linker_boilerplate=`cat conftest.err`
7296 ## There is no encapsulation within the following macros, do not change
7297 ## the running order or otherwise move them around unless you know exactly
7298 ## what you are doing...
7300 lt_prog_compiler_no_builtin_flag=
7302 if test "$GCC" = yes; then
7303 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7306 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7311 lt_cv_prog_compiler_rtti_exceptions=no
7312 ac_outfile=conftest.$ac_objext
7313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7314 lt_compiler_flag="-fno-rtti -fno-exceptions"
7315 # Insert the option either (1) after the last *FLAGS variable, or
7316 # (2) before a word containing "conftest.", or (3) at the end.
7317 # Note that $ac_compile itself does not contain backslashes and begins
7318 # with a dollar sign (not a hyphen), so the echo should work correctly.
7319 # The option is referenced via a variable to avoid confusing sed.
7320 lt_compile=`echo "$ac_compile" | $SED \
7321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7323 -e 's:$: $lt_compiler_flag:'`
7324 (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
7325 (eval "$lt_compile" 2>conftest.err)
7327 cat conftest.err >&5
7328 echo "$as_me:7328: \$? = $ac_status" >&5
7329 if (exit $ac_status) && test -s "$ac_outfile"; then
7330 # The compiler can only warn and ignore the option if not recognized
7331 # So say no if there are warnings other than the usual output.
7332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7335 lt_cv_prog_compiler_rtti_exceptions=yes
7341 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7342 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7345 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7352 lt_prog_compiler_wl=
7353 lt_prog_compiler_pic=
7354 lt_prog_compiler_static=
7356 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7357 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7359 if test "$GCC" = yes; then
7360 lt_prog_compiler_wl='-Wl,'
7361 lt_prog_compiler_static='-static'
7365 # All AIX code is PIC.
7366 if test "$host_cpu" = ia64; then
7367 # AIX 5 now supports IA64 processor
7368 lt_prog_compiler_static='-Bstatic'
7373 # FIXME: we need at least 68020 code to build shared libraries, but
7374 # adding the `-m68020' flag to GCC prevents building anything better,
7376 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7379 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7380 # PIC is the default for these OSes.
7383 mingw* | pw32* | os2*)
7384 # This hack is so that the source file can tell whether it is being
7385 # built for inclusion in a dll (and should export symbols for example).
7386 lt_prog_compiler_pic='-DDLL_EXPORT'
7389 darwin* | rhapsody*)
7390 # PIC is the default on this platform
7391 # Common symbols not allowed in MH_DYLIB files
7392 lt_prog_compiler_pic='-fno-common'
7396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7397 # Instead, we relocate shared libraries at runtime.
7401 # Just because we use GCC doesn't mean we suddenly get shared libraries
7402 # on systems that don't support them.
7403 lt_prog_compiler_can_build_shared=no
7408 if test -d /usr/nec; then
7409 lt_prog_compiler_pic=-Kconform_pic
7414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7421 lt_prog_compiler_pic='-fPIC'
7427 lt_prog_compiler_pic='-fPIC'
7431 # PORTME Check for flag to pass linker flags through the system compiler.
7434 lt_prog_compiler_wl='-Wl,'
7435 if test "$host_cpu" = ia64; then
7436 # AIX 5 now supports IA64 processor
7437 lt_prog_compiler_static='-Bstatic'
7439 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7443 # PIC is the default on this platform
7444 # Common symbols not allowed in MH_DYLIB files
7445 case $cc_basename in
7447 lt_prog_compiler_pic='-qnocommon'
7448 lt_prog_compiler_wl='-Wl,'
7453 mingw* | pw32* | os2*)
7454 # This hack is so that the source file can tell whether it is being
7455 # built for inclusion in a dll (and should export symbols for example).
7456 lt_prog_compiler_pic='-DDLL_EXPORT'
7459 hpux9* | hpux10* | hpux11*)
7460 lt_prog_compiler_wl='-Wl,'
7461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7468 lt_prog_compiler_pic='+Z'
7471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7472 lt_prog_compiler_static='${wl}-a ${wl}archive'
7475 irix5* | irix6* | nonstopux*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC (with -KPIC) is the default.
7478 lt_prog_compiler_static='-non_shared'
7482 lt_prog_compiler_pic='-KPIC'
7483 lt_prog_compiler_static='-Bstatic'
7487 case $cc_basename in
7489 lt_prog_compiler_wl='-Wl,'
7490 lt_prog_compiler_pic='-KPIC'
7491 lt_prog_compiler_static='-static'
7493 pgcc* | pgf77* | pgf90* | pgf95*)
7494 # Portland Group compilers (*not* the Pentium gcc compiler,
7495 # which looks to be a dead project)
7496 lt_prog_compiler_wl='-Wl,'
7497 lt_prog_compiler_pic='-fpic'
7498 lt_prog_compiler_static='-Bstatic'
7501 lt_prog_compiler_wl='-Wl,'
7502 # All Alpha code is PIC.
7503 lt_prog_compiler_static='-non_shared'
7508 osf3* | osf4* | osf5*)
7509 lt_prog_compiler_wl='-Wl,'
7510 # All OSF/1 code is PIC.
7511 lt_prog_compiler_static='-non_shared'
7515 lt_prog_compiler_pic='-KPIC'
7516 lt_prog_compiler_static='-Bstatic'
7517 case $cc_basename in
7519 lt_prog_compiler_wl='-Qoption ld ';;
7521 lt_prog_compiler_wl='-Wl,';;
7526 lt_prog_compiler_wl='-Qoption ld '
7527 lt_prog_compiler_pic='-PIC'
7528 lt_prog_compiler_static='-Bstatic'
7531 sysv4 | sysv4.2uw2* | sysv4.3*)
7532 lt_prog_compiler_wl='-Wl,'
7533 lt_prog_compiler_pic='-KPIC'
7534 lt_prog_compiler_static='-Bstatic'
7538 if test -d /usr/nec ;then
7539 lt_prog_compiler_pic='-Kconform_pic'
7540 lt_prog_compiler_static='-Bstatic'
7544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7545 lt_prog_compiler_wl='-Wl,'
7546 lt_prog_compiler_pic='-KPIC'
7547 lt_prog_compiler_static='-Bstatic'
7551 lt_prog_compiler_wl='-Wl,'
7552 lt_prog_compiler_can_build_shared=no
7556 lt_prog_compiler_pic='-pic'
7557 lt_prog_compiler_static='-Bstatic'
7561 lt_prog_compiler_can_build_shared=no
7566 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7567 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7570 # Check to make sure the PIC flag actually works.
7572 if test -n "$lt_prog_compiler_pic"; then
7574 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7575 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7576 if test "${lt_prog_compiler_pic_works+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 lt_prog_compiler_pic_works=no
7580 ac_outfile=conftest.$ac_objext
7581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7582 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7583 # Insert the option either (1) after the last *FLAGS variable, or
7584 # (2) before a word containing "conftest.", or (3) at the end.
7585 # Note that $ac_compile itself does not contain backslashes and begins
7586 # with a dollar sign (not a hyphen), so the echo should work correctly.
7587 # The option is referenced via a variable to avoid confusing sed.
7588 lt_compile=`echo "$ac_compile" | $SED \
7589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591 -e 's:$: $lt_compiler_flag:'`
7592 (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593 (eval "$lt_compile" 2>conftest.err)
7595 cat conftest.err >&5
7596 echo "$as_me:7596: \$? = $ac_status" >&5
7597 if (exit $ac_status) && test -s "$ac_outfile"; then
7598 # The compiler can only warn and ignore the option if not recognized
7599 # So say no if there are warnings other than the usual output.
7600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7603 lt_prog_compiler_pic_works=yes
7609 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7612 if test x"$lt_prog_compiler_pic_works" = xyes; then
7613 case $lt_prog_compiler_pic in
7615 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7618 lt_prog_compiler_pic=
7619 lt_prog_compiler_can_build_shared=no
7624 # For platforms which do not support PIC, -DPIC is meaningless:
7626 lt_prog_compiler_pic=
7629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7634 # Check to make sure the static flag actually works.
7636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7637 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7638 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7639 if test "${lt_prog_compiler_static_works+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 lt_prog_compiler_static_works=no
7643 save_LDFLAGS="$LDFLAGS"
7644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7645 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7647 # The linker can only warn and ignore the option if not recognized
7648 # So say no if there are warnings
7649 if test -s conftest.err; then
7650 # Append any errors to the config.log.
7651 cat conftest.err 1>&5
7652 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7654 if diff conftest.exp conftest.er2 >/dev/null; then
7655 lt_prog_compiler_static_works=yes
7658 lt_prog_compiler_static_works=yes
7662 LDFLAGS="$save_LDFLAGS"
7665 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7668 if test x"$lt_prog_compiler_static_works" = xyes; then
7671 lt_prog_compiler_static=
7675 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7676 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7677 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 lt_cv_prog_compiler_c_o=no
7681 $rm -r conftest 2>/dev/null
7685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7687 lt_compiler_flag="-o out/conftest2.$ac_objext"
7688 # Insert the option either (1) after the last *FLAGS variable, or
7689 # (2) before a word containing "conftest.", or (3) at the end.
7690 # Note that $ac_compile itself does not contain backslashes and begins
7691 # with a dollar sign (not a hyphen), so the echo should work correctly.
7692 lt_compile=`echo "$ac_compile" | $SED \
7693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695 -e 's:$: $lt_compiler_flag:'`
7696 (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697 (eval "$lt_compile" 2>out/conftest.err)
7699 cat out/conftest.err >&5
7700 echo "$as_me:7700: \$? = $ac_status" >&5
7701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7703 # The compiler can only warn and ignore the option if not recognized
7704 # So say no if there are warnings
7705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7708 lt_cv_prog_compiler_c_o=yes
7713 # SGI C++ compiler will create directory out/ii_files/ for
7714 # template instantiation
7715 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7716 $rm out/* && rmdir out
7722 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7723 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7726 hard_links="nottested"
7727 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7728 # do not overwrite the value of need_locks provided by the user
7729 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7730 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7735 ln conftest.a conftest.b 2>&5 || hard_links=no
7736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7737 { echo "$as_me:$LINENO: result: $hard_links" >&5
7738 echo "${ECHO_T}$hard_links" >&6; }
7739 if test "$hard_links" = no; then
7740 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7741 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7748 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7749 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7752 allow_undefined_flag=
7753 enable_shared_with_static_runtimes=no
7755 archive_expsym_cmds=
7756 old_archive_From_new_cmds=
7757 old_archive_from_expsyms_cmds=
7758 export_dynamic_flag_spec=
7759 whole_archive_flag_spec=
7760 thread_safe_flag_spec=
7761 hardcode_libdir_flag_spec=
7762 hardcode_libdir_flag_spec_ld=
7763 hardcode_libdir_separator=
7766 hardcode_shlibpath_var=unsupported
7767 link_all_deplibs=unknown
7768 hardcode_automatic=no
7771 always_export_symbols=no
7772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7773 # include_expsyms should be a list of space-separated symbols to be *always*
7774 # included in the symbol list
7776 # exclude_expsyms can be an extended regexp of symbols to exclude
7777 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7778 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7779 # as well as any symbol that contains `d'.
7780 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7781 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7782 # platforms (ab)use it in PIC code, but their linkers get confused if
7783 # the symbol is explicitly referenced. Since portable code cannot
7784 # rely on this symbol name, it's probably fine to never include it in
7785 # preloaded symbol tables.
7786 extract_expsyms_cmds=
7787 # Just being paranoid about ensuring that cc_basename is set.
7788 for cc_temp in $compiler""; do
7790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7796 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7799 cygwin* | mingw* | pw32*)
7800 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7801 # When not using gcc, we currently assume that we are using
7802 # Microsoft Visual C++.
7803 if test "$GCC" != yes; then
7808 # we just hope/assume this is gcc and not c89 (= MSVC++)
7817 if test "$with_gnu_ld" = yes; then
7818 # If archive_cmds runs LD, not CC, wlarc should be empty
7821 # Set some defaults for GNU ld with shared library support. These
7822 # are reset later if shared libraries are not supported. Putting them
7823 # here allows them to be overridden if necessary.
7824 runpath_var=LD_RUN_PATH
7825 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7826 export_dynamic_flag_spec='${wl}--export-dynamic'
7827 # ancient GNU ld didn't support --whole-archive et. al.
7828 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7829 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7831 whole_archive_flag_spec=
7833 supports_anon_versioning=no
7834 case `$LD -v 2>/dev/null` in
7835 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7836 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7837 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7838 *\ 2.11.*) ;; # other 2.11 versions
7839 *) supports_anon_versioning=yes ;;
7842 # See if GNU ld supports shared libraries.
7844 aix3* | aix4* | aix5*)
7845 # On AIX/PPC, the GNU linker is very broken
7846 if test "$host_cpu" != ia64; then
7850 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7851 *** to be unable to reliably create shared libraries on AIX.
7852 *** Therefore, libtool is disabling shared libraries support. If you
7853 *** really care for shared libraries, you may want to modify your PATH
7854 *** so that a non-GNU linker is found, and then restart.
7861 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)'
7862 hardcode_libdir_flag_spec='-L$libdir'
7863 hardcode_minus_L=yes
7865 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7866 # that the semantics of dynamic libraries on AmigaOS, at least up
7867 # to version 4, is to share data among multiple programs linked
7868 # with the same dynamic library. Since this doesn't match the
7869 # behavior of shared libraries on other platforms, we can't use
7875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876 allow_undefined_flag=unsupported
7877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7878 # support --undefined. This deserves some investigation. FIXME
7879 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885 cygwin* | mingw* | pw32*)
7886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7887 # as there is no search path for DLLs.
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 allow_undefined_flag=unsupported
7890 always_export_symbols=no
7891 enable_shared_with_static_runtimes=yes
7892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7896 # If the export-symbols file already is a .def file (1st line
7897 # is EXPORTS), use it as is; otherwise, prepend...
7898 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7899 cp $export_symbols $output_objdir/$soname.def;
7901 echo EXPORTS > $output_objdir/$soname.def;
7902 cat $export_symbols >> $output_objdir/$soname.def;
7904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7912 hardcode_shlibpath_var=no
7913 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7914 export_dynamic_flag_spec='${wl}-E'
7915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7916 # Instead, shared libraries are loaded at an image base (0x10000000 by
7917 # default) and relocated if they conflict, which is a slow very memory
7918 # consuming and fragmenting process. To avoid this, we pick a random,
7919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7920 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7922 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'
7926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7928 case $cc_basename,$host_cpu in
7929 pgcc*) # Portland Group C compiler
7930 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'
7931 tmp_addflag=' $pic_flag'
7933 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7934 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'
7935 tmp_addflag=' $pic_flag -Mnomain' ;;
7936 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7937 tmp_addflag=' -i_dynamic' ;;
7938 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7939 tmp_addflag=' -i_dynamic -nofor_main' ;;
7940 ifc* | ifort*) # Intel Fortran compiler
7941 tmp_addflag=' -nofor_main' ;;
7943 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945 if test $supports_anon_versioning = yes; then
7946 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7948 $echo "local: *; };" >> $output_objdir/$libname.ver~
7949 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7972 *** create shared libraries on Solaris systems. Therefore, libtool
7973 *** is disabling shared libraries support. We urge you to upgrade GNU
7974 *** binutils to release 2.9.1 or newer. Another option is to modify
7975 *** your PATH or compiler configuration so that the native linker is
7976 *** used, and then restart.
7979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7988 case `$LD -v 2>&1` in
7989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7994 *** reliably create shared libraries on SCO systems. Therefore, libtool
7995 *** is disabling shared libraries support. We urge you to upgrade GNU
7996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
8003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8004 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8018 hardcode_shlibpath_var=no
8022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8031 if test "$ld_shlibs" = no; then
8033 hardcode_libdir_flag_spec=
8034 export_dynamic_flag_spec=
8035 whole_archive_flag_spec=
8038 # PORTME fill in a description of your system's linker (not GNU ld)
8041 allow_undefined_flag=unsupported
8042 always_export_symbols=yes
8043 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'
8044 # Note: this linker hardcodes the directories in LIBPATH if there
8045 # are no directories specified by -L.
8046 hardcode_minus_L=yes
8047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8048 # Neither direct hardcoding nor static linking is supported with a
8050 hardcode_direct=unsupported
8055 if test "$host_cpu" = ia64; then
8056 # On IA64, the linker does run time linking by default, so we don't
8057 # have to do anything special.
8058 aix_use_runtimelinking=no
8059 exp_sym_flag='-Bexport'
8062 # If we're using GNU nm, then we don't want the "-C" option.
8063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8065 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'
8067 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'
8069 aix_use_runtimelinking=no
8071 # Test if we are trying to use run time linking or normal
8072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8073 # need to do runtime linking.
8074 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8075 for ld_flag in $LDFLAGS; do
8076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8077 aix_use_runtimelinking=yes
8084 exp_sym_flag='-bexport'
8085 no_entry_flag='-bnoentry'
8088 # When large executables or shared objects are built, AIX ld can
8089 # have problems creating the table of contents. If linking a library
8090 # or program results in "error TOC overflow" add -mminimal-toc to
8091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8096 hardcode_libdir_separator=':'
8097 link_all_deplibs=yes
8099 if test "$GCC" = yes; then
8100 case $host_os in aix4.[012]|aix4.[012].*)
8101 # We only want to do this on AIX 4.2 and lower, the check
8102 # below for broken collect2 doesn't work under 4.3+
8103 collect2name=`${CC} -print-prog-name=collect2`
8104 if test -f "$collect2name" && \
8105 strings "$collect2name" | grep resolve_lib_name >/dev/null
8107 # We have reworked collect2
8110 # We have old collect2
8111 hardcode_direct=unsupported
8112 # It fails to find uninstalled libraries when the uninstalled
8113 # path is not listed in the libpath. Setting hardcode_minus_L
8114 # to unsupported forces relinking
8115 hardcode_minus_L=yes
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_libdir_separator=
8121 shared_flag='-shared'
8122 if test "$aix_use_runtimelinking" = yes; then
8123 shared_flag="$shared_flag "'${wl}-G'
8127 if test "$host_cpu" = ia64; then
8128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8129 # chokes on -Wl,-G. The following line is correct:
8132 if test "$aix_use_runtimelinking" = yes; then
8133 shared_flag='${wl}-G'
8135 shared_flag='${wl}-bM:SRE'
8140 # It seems that -bexpall does not export symbols beginning with
8141 # underscore (_), so it is better to generate a list of symbols to export.
8142 always_export_symbols=yes
8143 if test "$aix_use_runtimelinking" = yes; then
8144 # Warning - without using the other runtime loading flags (-brtl),
8145 # -berok will link without error, but may produce a broken library.
8146 allow_undefined_flag='-berok'
8147 # Determine the default libpath from the value encoded in an empty executable.
8148 cat >conftest.$ac_ext <<_ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_link") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest$ac_exeext &&
8180 $as_test_x conftest$ac_exeext; then
8182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8184 # Check for a 64-bit object if we didn't find anything.
8185 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8198 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8199 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"
8201 if test "$host_cpu" = ia64; then
8202 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8203 allow_undefined_flag="-z nodefs"
8204 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"
8206 # Determine the default libpath from the value encoded in an empty executable.
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_link") 2>conftest.er1
8231 grep -v '^ *+' conftest.er1 >conftest.err
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest$ac_exeext &&
8239 $as_test_x conftest$ac_exeext; then
8241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8243 # Check for a 64-bit object if we didn't find anything.
8244 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8254 conftest$ac_exeext conftest.$ac_ext
8255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8257 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8258 # Warning - without using the other run time loading flags,
8259 # -berok will link without error, but may produce a broken library.
8260 no_undefined_flag=' ${wl}-bernotok'
8261 allow_undefined_flag=' ${wl}-berok'
8262 # Exported symbols can be pulled into shared objects from archives
8263 whole_archive_flag_spec='$convenience'
8264 archive_cmds_need_lc=yes
8265 # This is similar to how AIX traditionally builds its shared libraries.
8266 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'
8272 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)'
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_minus_L=yes
8275 # see comment about different semantics on the GNU ld section
8280 export_dynamic_flag_spec=-rdynamic
8283 cygwin* | mingw* | pw32*)
8284 # When not using gcc, we currently assume that we are using
8285 # Microsoft Visual C++.
8286 # hardcode_libdir_flag_spec is actually meaningless, as there is
8287 # no search path for DLLs.
8288 hardcode_libdir_flag_spec=' '
8289 allow_undefined_flag=unsupported
8290 # Tell ltmain to make .lib files, not .a files.
8292 # Tell ltmain to make .dll files, not .so files.
8294 # FIXME: Setting linknames here is a bad hack.
8295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8296 # The linker will automatically build a .lib file if we build a DLL.
8297 old_archive_From_new_cmds='true'
8298 # FIXME: Should let the user specify the lib program.
8299 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8300 fix_srcfile_path='`cygpath -w "$srcfile"`'
8301 enable_shared_with_static_runtimes=yes
8304 darwin* | rhapsody*)
8306 rhapsody* | darwin1.[012])
8307 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8310 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8311 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8313 case ${MACOSX_DEPLOYMENT_TARGET} in
8315 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8318 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8324 archive_cmds_need_lc=no
8326 hardcode_automatic=yes
8327 hardcode_shlibpath_var=unsupported
8328 whole_archive_flag_spec=''
8329 link_all_deplibs=yes
8330 if test "$GCC" = yes ; then
8331 output_verbose_link_cmd='echo'
8332 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8333 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8335 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8336 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}'
8338 case $cc_basename in
8340 output_verbose_link_cmd='echo'
8341 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8342 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8343 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8344 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8345 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}'
8355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356 hardcode_libdir_flag_spec='-L$libdir'
8357 hardcode_shlibpath_var=no
8364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8365 # support. Future versions do this automatically, but an explicit c++rt0.o
8366 # does not break anything, and helps significantly (at the cost of a little
8369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8370 hardcode_libdir_flag_spec='-R$libdir'
8372 hardcode_shlibpath_var=no
8375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8379 hardcode_minus_L=yes
8380 hardcode_shlibpath_var=no
8383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8384 freebsd* | kfreebsd*-gnu | dragonfly*)
8385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8386 hardcode_libdir_flag_spec='-R$libdir'
8388 hardcode_shlibpath_var=no
8392 if test "$GCC" = yes; then
8393 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'
8395 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'
8397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8398 hardcode_libdir_separator=:
8401 # hardcode_minus_L: Not really in the search PATH,
8402 # but as the default location of the library.
8403 hardcode_minus_L=yes
8404 export_dynamic_flag_spec='${wl}-E'
8408 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8413 if test "$with_gnu_ld" = no; then
8414 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8415 hardcode_libdir_separator=:
8418 export_dynamic_flag_spec='${wl}-E'
8420 # hardcode_minus_L: Not really in the search PATH,
8421 # but as the default location of the library.
8422 hardcode_minus_L=yes
8427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8430 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8436 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8452 if test "$with_gnu_ld" = no; then
8453 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8454 hardcode_libdir_separator=:
8458 hardcode_libdir_flag_spec_ld='+b $libdir'
8460 hardcode_shlibpath_var=no
8464 export_dynamic_flag_spec='${wl}-E'
8466 # hardcode_minus_L: Not really in the search PATH,
8467 # but as the default location of the library.
8468 hardcode_minus_L=yes
8474 irix5* | irix6* | nonstopux*)
8475 if test "$GCC" = yes; then
8476 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'
8478 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'
8479 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482 hardcode_libdir_separator=:
8483 link_all_deplibs=yes
8487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8490 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8492 hardcode_libdir_flag_spec='-R$libdir'
8494 hardcode_shlibpath_var=no
8498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8501 hardcode_libdir_separator=:
8502 hardcode_shlibpath_var=no
8507 hardcode_shlibpath_var=no
8508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8510 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8512 export_dynamic_flag_spec='${wl}-E'
8515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8517 hardcode_libdir_flag_spec='-R$libdir'
8520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 hardcode_minus_L=yes
8530 allow_undefined_flag=unsupported
8531 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'
8532 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8536 if test "$GCC" = yes; then
8537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8538 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'
8540 allow_undefined_flag=' -expect_unresolved \*'
8541 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'
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 hardcode_libdir_separator=:
8547 osf4* | osf5*) # as osf3* with the addition of -msym flag
8548 if test "$GCC" = yes; then
8549 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8550 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'
8551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8553 allow_undefined_flag=' -expect_unresolved \*'
8554 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'
8555 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8556 $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'
8558 # Both c and cxx compiler support -rpath directly
8559 hardcode_libdir_flag_spec='-rpath $libdir'
8561 hardcode_libdir_separator=:
8565 no_undefined_flag=' -z text'
8566 if test "$GCC" = yes; then
8568 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8570 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8573 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8577 hardcode_libdir_flag_spec='-R$libdir'
8578 hardcode_shlibpath_var=no
8580 solaris2.[0-5] | solaris2.[0-5].*) ;;
8582 # The compiler driver will combine linker options so we
8583 # cannot just pass the convience library names through
8584 # without $wl, iff we do not link with $LD.
8585 # Luckily, gcc supports the same syntax we need for Sun Studio.
8586 # Supported since Solaris 2.6 (maybe 2.5.1?)
8589 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8591 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8594 link_all_deplibs=yes
8598 if test "x$host_vendor" = xsequent; then
8599 # Use $CC to link under sequent, because it throws in some extra .o
8600 # files that make .init and .fini sections work.
8601 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8603 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_libdir_flag_spec='-L$libdir'
8607 hardcode_minus_L=yes
8608 hardcode_shlibpath_var=no
8612 case $host_vendor in
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_direct=yes # is this really true???
8618 ## LD is ld it makes a PLAMLIB
8619 ## CC just makes a GrossModule.
8620 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8621 reload_cmds='$CC -r -o $output$reload_objs'
8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8629 runpath_var='LD_RUN_PATH'
8630 hardcode_shlibpath_var=no
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_shlibpath_var=no
8636 export_dynamic_flag_spec='-Bexport'
8640 if test -d /usr/nec; then
8641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8642 hardcode_shlibpath_var=no
8643 runpath_var=LD_RUN_PATH
8644 hardcode_runpath_var=yes
8649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8650 no_undefined_flag='${wl}-z,text'
8651 archive_cmds_need_lc=no
8652 hardcode_shlibpath_var=no
8653 runpath_var='LD_RUN_PATH'
8655 if test "$GCC" = yes; then
8656 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8657 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8659 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8664 sysv5* | sco3.2v5* | sco5v6*)
8665 # Note: We can NOT use -z defs as we might desire, because we do not
8666 # link with -lc, and that would cause any symbols used from libc to
8667 # always be unresolved, which means just about no library would
8668 # ever link correctly. If we're not using GNU ld we use -z text
8669 # though, which does catch some bad symbols but isn't as heavy-handed
8671 no_undefined_flag='${wl}-z,text'
8672 allow_undefined_flag='${wl}-z,nodefs'
8673 archive_cmds_need_lc=no
8674 hardcode_shlibpath_var=no
8675 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8676 hardcode_libdir_separator=':'
8677 link_all_deplibs=yes
8678 export_dynamic_flag_spec='${wl}-Bexport'
8679 runpath_var='LD_RUN_PATH'
8681 if test "$GCC" = yes; then
8682 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8683 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692 hardcode_libdir_flag_spec='-L$libdir'
8693 hardcode_shlibpath_var=no
8702 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8703 echo "${ECHO_T}$ld_shlibs" >&6; }
8704 test "$ld_shlibs" = no && can_build_shared=no
8707 # Do we need to explicitly link libc?
8709 case "x$archive_cmds_need_lc" in
8711 # Assume -lc should be added
8712 archive_cmds_need_lc=yes
8714 if test "$enable_shared" = yes && test "$GCC" = yes; then
8715 case $archive_cmds in
8717 # FIXME: we may have to deal with multi-command sequences.
8720 # Test whether the compiler implicitly links with -lc since on some
8721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8722 # to ld, don't add -lc before -lgcc.
8723 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729 (eval $ac_compile) 2>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } 2>conftest.err; then
8735 libobjs=conftest.$ac_objext
8737 wl=$lt_prog_compiler_wl
8738 pic_flag=$lt_prog_compiler_pic
8744 lt_save_allow_undefined_flag=$allow_undefined_flag
8745 allow_undefined_flag=
8746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8747 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }
8752 archive_cmds_need_lc=no
8754 archive_cmds_need_lc=yes
8756 allow_undefined_flag=$lt_save_allow_undefined_flag
8758 cat conftest.err 1>&5
8761 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8762 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8769 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8772 libname_spec='lib$name'
8780 shlibpath_overrides_runpath=unknown
8782 dynamic_linker="$host_os ld.so"
8783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8784 if test "$GCC" = yes; then
8785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8787 # if the path contains ";" then we assume it to be the separator
8788 # otherwise default to the standard path separator (i.e. ":") - it is
8789 # assumed that no part of a normal pathname contains ";" but that should
8790 # okay in the real world where ";" in dirpaths is itself problematic.
8791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8798 need_lib_prefix=unknown
8799 hardcode_into_libs=no
8801 # when you set need_version to no, make sure it does not cause -set_version
8802 # flags to be left without arguments
8803 need_version=unknown
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8809 shlibpath_var=LIBPATH
8811 # AIX 3 has no versioning support, so we append a major version to the name.
8812 soname_spec='${libname}${release}${shared_ext}$major'
8819 hardcode_into_libs=yes
8820 if test "$host_cpu" = ia64; then
8821 # AIX 5 supports IA64
8822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8823 shlibpath_var=LD_LIBRARY_PATH
8825 # With GCC up to 2.95.x, collect2 would create an import file
8826 # for dependence libraries. The import file would start with
8827 # the line `#! .'. This would cause the generated library to
8828 # depend on `.', always an invalid library. This was fixed in
8829 # development snapshots of GCC prior to 3.0.
8831 aix4 | aix4.[01] | aix4.[01].*)
8832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8842 # soname into executable. Probably we can add versioning support to
8843 # collect2, so additional links can be useful in future.
8844 if test "$aix_use_runtimelinking" = yes; then
8845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8846 # instead of lib<name>.a to let people know that these are not
8847 # typical AIX shared libraries.
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8850 # We preserve .a as extension for shared libraries through AIX4.2
8851 # and later when we are not doing run time linking.
8852 library_names_spec='${libname}${release}.a $libname.a'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8855 shlibpath_var=LIBPATH
8860 library_names_spec='$libname.ixlibrary $libname.a'
8861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8862 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'
8866 library_names_spec='${libname}${shared_ext}'
8867 dynamic_linker="$host_os ld.so"
8868 shlibpath_var=LIBRARY_PATH
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875 soname_spec='${libname}${release}${shared_ext}$major'
8876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8880 # the default ld.so.conf also contains /usr/contrib/lib and
8881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8882 # libtool to hard-code these into programs
8885 cygwin* | mingw* | pw32*)
8886 version_type=windows
8891 case $GCC,$host_os in
8892 yes,cygwin* | yes,mingw* | yes,pw32*)
8893 library_names_spec='$libname.dll.a'
8894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8895 postinstall_cmds='base_file=`basename \${file}`~
8896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8897 dldir=$destdir/`dirname \$dlpath`~
8898 test -d \$dldir || mkdir -p \$dldir~
8899 $install_prog $dir/$dlname \$dldir/$dlname~
8900 chmod a+x \$dldir/$dlname'
8901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8902 dlpath=$dir/\$dldll~
8904 shlibpath_overrides_runpath=yes
8908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8913 # MinGW DLLs use traditional 'lib' prefix
8914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8917 # It is most probably a Windows format PATH printed by
8918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8919 # path with ; separators, and with drive letters. We can handle the
8920 # drive letters (cygwin fileutils understands them), so leave them,
8921 # especially as we might pass files found there to a mingw objdump,
8922 # which wouldn't understand a cygwinified path. Ahh.
8923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8929 # pw32 DLLs use 'pw' prefix rather than 'lib'
8930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8939 dynamic_linker='Win32 ld.exe'
8940 # FIXME: first we should search . and the directory the executable is in
8944 darwin* | rhapsody*)
8945 dynamic_linker="$host_os dyld"
8949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8950 soname_spec='${libname}${release}${major}$shared_ext'
8951 shlibpath_overrides_runpath=yes
8952 shlibpath_var=DYLD_LIBRARY_PATH
8953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8955 if test "$GCC" = yes; then
8956 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8958 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=no
8984 hardcode_into_libs=yes
8985 dynamic_linker='GNU ld.so'
8988 freebsd* | dragonfly*)
8989 # DragonFly does not have aout. When/if they implement a new
8990 # versioning mechanism, adjust this.
8991 if test -x /usr/bin/objformat; then
8992 objformat=`/usr/bin/objformat`
8995 freebsd[123]*) objformat=aout ;;
8999 version_type=freebsd-$objformat
9000 case $version_type in
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9011 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9016 freebsd3.[01]* | freebsdelf3.[01]*)
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9025 freebsd*) # from 4.6 on
9026 shlibpath_overrides_runpath=yes
9027 hardcode_into_libs=yes
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 hardcode_into_libs=yes
9042 hpux9* | hpux10* | hpux11*)
9043 # Give a soname corresponding to the major version so that dld.sl refuses to
9044 # link against other versions.
9051 hardcode_into_libs=yes
9052 dynamic_linker="$host_os dld.so"
9053 shlibpath_var=LD_LIBRARY_PATH
9054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 if test "X$HPUX_IA64_MODE" = X32; then
9058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9066 hardcode_into_libs=yes
9067 dynamic_linker="$host_os dld.sl"
9068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9077 dynamic_linker="$host_os dld.sl"
9078 shlibpath_var=SHLIB_PATH
9079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec='${libname}${release}${shared_ext}$major'
9084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9085 postinstall_cmds='chmod 555 $lib'
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9095 shlibpath_var=LD_LIBRARY_PATH
9096 shlibpath_overrides_runpath=no
9097 hardcode_into_libs=yes
9100 irix5* | irix6* | nonstopux*)
9102 nonstopux*) version_type=nonstopux ;;
9104 if test "$lt_cv_prog_gnu_ld" = yes; then
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9115 irix5* | nonstopux*)
9119 case $LD in # libtool.m4 will add one of these switches to LD
9120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9121 libsuff= shlibsuff= libmagic=32-bit;;
9122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9123 libsuff=32 shlibsuff=N32 libmagic=N32;;
9124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9126 *) libsuff= shlibsuff= libmagic=never-match;;
9130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9131 shlibpath_overrides_runpath=no
9132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9134 hardcode_into_libs=yes
9137 # No shared lib support for Linux oldld, aout, or coff.
9138 linux*oldld* | linux*aout* | linux*coff*)
9142 # This must be Linux ELF.
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 shlibpath_overrides_runpath=no
9152 # This implies no fast_install, which is unacceptable.
9153 # Some rework will be needed to allow for fast_install
9154 # before this can be enabled.
9155 hardcode_into_libs=yes
9157 # Append ld.so.conf contents to the search path
9158 if test -f /etc/ld.so.conf; then
9159 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9163 # We used to test for /lib/ld.so.1 and disable shared libraries on
9164 # powerpc, because MkLinux only supported shared libraries with the
9165 # GNU dynamic linker. Since this was broken with cross compilers,
9166 # most powerpc-linux boxes support dynamic linking these days and
9167 # people can always --disable-shared, the test was removed, and we
9168 # assume the GNU/Linux dynamic linker is in use.
9169 dynamic_linker='GNU/Linux ld.so'
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=no
9180 hardcode_into_libs=yes
9181 dynamic_linker='GNU ld.so'
9188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9191 dynamic_linker='NetBSD (a.out) ld.so'
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 dynamic_linker='NetBSD ld.elf_so'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205 shlibpath_var=LD_LIBRARY_PATH
9206 shlibpath_overrides_runpath=yes
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 shlibpath_overrides_runpath=yes
9221 sys_lib_dlsearch_path_spec="/usr/lib"
9223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9226 *) need_version=no ;;
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9233 openbsd2.[89] | openbsd2.[89].*)
9234 shlibpath_overrides_runpath=no
9237 shlibpath_overrides_runpath=yes
9241 shlibpath_overrides_runpath=yes
9246 libname_spec='$name'
9249 library_names_spec='$libname${shared_ext} $libname.a'
9250 dynamic_linker='OS/2 ld.exe'
9251 shlibpath_var=LIBPATH
9254 osf3* | osf4* | osf5*)
9258 soname_spec='${libname}${release}${shared_ext}$major'
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270 soname_spec='${libname}${release}${shared_ext}$major'
9271 shlibpath_var=LD_LIBRARY_PATH
9272 shlibpath_overrides_runpath=yes
9273 hardcode_into_libs=yes
9274 # ldd complains unless libraries are executable
9275 postinstall_cmds='chmod +x $lib'
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 if test "$with_gnu_ld" = yes; then
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 shlibpath_var=LD_LIBRARY_PATH
9295 case $host_vendor in
9297 shlibpath_overrides_runpath=no
9299 export_dynamic_flag_spec='${wl}-Blargedynsym'
9300 runpath_var=LD_RUN_PATH
9308 shlibpath_overrides_runpath=no
9309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9315 if test -d /usr/nec ;then
9317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9318 soname_spec='$libname${shared_ext}.$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9324 version_type=freebsd-elf
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
9329 shlibpath_var=LD_LIBRARY_PATH
9330 hardcode_into_libs=yes
9331 if test "$with_gnu_ld" = yes; then
9332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9333 shlibpath_overrides_runpath=no
9335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9336 shlibpath_overrides_runpath=yes
9339 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9343 sys_lib_dlsearch_path_spec='/usr/lib'
9348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349 soname_spec='${libname}${release}${shared_ext}$major'
9350 shlibpath_var=LD_LIBRARY_PATH
9357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9358 echo "${ECHO_T}$dynamic_linker" >&6; }
9359 test "$dynamic_linker" = no && can_build_shared=no
9361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9362 if test "$GCC" = yes; then
9363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9369 if test -n "$hardcode_libdir_flag_spec" || \
9370 test -n "$runpath_var" || \
9371 test "X$hardcode_automatic" = "Xyes" ; then
9373 # We can hardcode non-existant directories.
9374 if test "$hardcode_direct" != no &&
9375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9376 # have to relink, otherwise we might link with an installed library
9377 # when we should be linking with a yet-to-be-installed one
9378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9379 test "$hardcode_minus_L" != no; then
9380 # Linking always hardcodes the temporary library directory.
9381 hardcode_action=relink
9383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9384 hardcode_action=immediate
9387 # We cannot hardcode anything, or else we can only hardcode existing
9389 hardcode_action=unsupported
9391 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9392 echo "${ECHO_T}$hardcode_action" >&6; }
9394 if test "$hardcode_action" = relink; then
9395 # Fast installation is not supported
9396 enable_fast_install=no
9397 elif test "$shlibpath_overrides_runpath" = yes ||
9398 test "$enable_shared" = no; then
9399 # Fast installation is not necessary
9400 enable_fast_install=needless
9405 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9410 { echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6; }
9413 # FIXME - insert some real tests, host_os isn't really good enough
9416 if test -n "$STRIP" ; then
9417 striplib="$STRIP -x"
9418 { echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6; }
9421 { echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6; }
9426 { echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6; }
9432 if test "x$enable_dlopen" != xyes; then
9433 enable_dlopen=unknown
9434 enable_dlopen_self=unknown
9435 enable_dlopen_self_static=unknown
9442 lt_cv_dlopen="load_add_on"
9444 lt_cv_dlopen_self=yes
9448 lt_cv_dlopen="LoadLibrary"
9453 lt_cv_dlopen="dlopen"
9458 # if libdl is installed we need to link against it
9459 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 ac_check_lib_save_LIBS=$LIBS
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9473 /* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9497 grep -v '^ *+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_lib_dl_dlopen=yes
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_cv_lib_dl_dlopen=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS
9518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9520 if test $ac_cv_lib_dl_dlopen = yes; then
9521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9526 lt_cv_dlopen_self=yes
9533 { echo "$as_me:$LINENO: checking for shl_load" >&5
9534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_shl_load+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define shl_load innocuous_shl_load
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char shl_load (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9554 # include <limits.h>
9556 # include <assert.h>
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined __stub_shl_load || defined __stub___shl_load
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest$ac_exeext &&
9600 $as_test_x conftest$ac_exeext; then
9601 ac_cv_func_shl_load=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_func_shl_load=no
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9614 if test $ac_cv_func_shl_load = yes; then
9615 lt_cv_dlopen="shl_load"
9617 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_check_lib_save_LIBS=$LIBS
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext &&
9663 $as_test_x conftest$ac_exeext; then
9664 ac_cv_lib_dld_shl_load=yes
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_dld_shl_load=no
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9678 if test $ac_cv_lib_dld_shl_load = yes; then
9679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9681 { echo "$as_me:$LINENO: checking for dlopen" >&5
9682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9683 if test "${ac_cv_func_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9694 #define dlopen innocuous_dlopen
9696 /* System header to define __stub macros and hopefully few prototypes,
9697 which can conflict with char dlopen (); below.
9698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699 <limits.h> exists even on freestanding compilers. */
9702 # include <limits.h>
9704 # include <assert.h>
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9716 /* The GNU C library defines this for functions which it implements
9717 to always fail with ENOSYS. Some functions are actually named
9718 something starting with __ and the normal name is an alias. */
9719 #if defined __stub_dlopen || defined __stub___dlopen
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (ac_try="$ac_link"
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_link") 2>conftest.er1
9740 grep -v '^ *+' conftest.er1 >conftest.err
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext &&
9748 $as_test_x conftest$ac_exeext; then
9749 ac_cv_func_dlopen=yes
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 ac_cv_func_dlopen=no
9757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9758 conftest$ac_exeext conftest.$ac_ext
9760 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9762 if test $ac_cv_func_dlopen = yes; then
9763 lt_cv_dlopen="dlopen"
9765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 ac_cv_lib_dl_dlopen=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 ac_cv_lib_dl_dlopen=no
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9829 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 ac_check_lib_save_LIBS=$LIBS
9836 cat >conftest.$ac_ext <<_ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (ac_try="$ac_link"
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_link") 2>conftest.er1
9867 grep -v '^ *+' conftest.er1 >conftest.err
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest$ac_exeext &&
9875 $as_test_x conftest$ac_exeext; then
9876 ac_cv_lib_svld_dlopen=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_cv_lib_svld_dlopen=no
9884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9885 conftest$ac_exeext conftest.$ac_ext
9886 LIBS=$ac_check_lib_save_LIBS
9888 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9890 if test $ac_cv_lib_svld_dlopen = yes; then
9891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9893 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 ac_check_lib_save_LIBS=$LIBS
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_link") 2>conftest.er1
9931 grep -v '^ *+' conftest.er1 >conftest.err
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest$ac_exeext &&
9939 $as_test_x conftest$ac_exeext; then
9940 ac_cv_lib_dld_dld_link=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_dld_dld_link=no
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9976 if test "x$lt_cv_dlopen" != xno; then
9982 case $lt_cv_dlopen in
9984 save_CPPFLAGS="$CPPFLAGS"
9985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9987 save_LDFLAGS="$LDFLAGS"
9988 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9991 LIBS="$lt_cv_dlopen_libs $LIBS"
9993 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9995 if test "${lt_cv_dlopen_self+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 if test "$cross_compiling" = yes; then :
9999 lt_cv_dlopen_self=cross
10001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10002 lt_status=$lt_dlunknown
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10014 # define LT_DLGLOBAL RTLD_GLOBAL
10017 # define LT_DLGLOBAL DL_GLOBAL
10019 # define LT_DLGLOBAL 0
10023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10024 find out it does not work in some platform. */
10025 #ifndef LT_DLLAZY_OR_NOW
10027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10030 # define LT_DLLAZY_OR_NOW DL_LAZY
10033 # define LT_DLLAZY_OR_NOW RTLD_NOW
10036 # define LT_DLLAZY_OR_NOW DL_NOW
10038 # define LT_DLLAZY_OR_NOW 0
10046 extern "C" void exit (int);
10049 void fnord() { int i=42;}
10052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10053 int status = $lt_dlunknown;
10057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10059 /* dlclose (self); */
10067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068 (eval $ac_link) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10072 (./conftest; exit; ) >&5 2>/dev/null
10074 case x$lt_status in
10075 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10076 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10077 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10080 # compilation failed
10081 lt_cv_dlopen_self=no
10088 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10089 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10091 if test "x$lt_cv_dlopen_self" = xyes; then
10092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10093 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10094 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10095 if test "${lt_cv_dlopen_self_static+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 if test "$cross_compiling" = yes; then :
10099 lt_cv_dlopen_self_static=cross
10101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10102 lt_status=$lt_dlunknown
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10114 # define LT_DLGLOBAL RTLD_GLOBAL
10117 # define LT_DLGLOBAL DL_GLOBAL
10119 # define LT_DLGLOBAL 0
10123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10124 find out it does not work in some platform. */
10125 #ifndef LT_DLLAZY_OR_NOW
10127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10130 # define LT_DLLAZY_OR_NOW DL_LAZY
10133 # define LT_DLLAZY_OR_NOW RTLD_NOW
10136 # define LT_DLLAZY_OR_NOW DL_NOW
10138 # define LT_DLLAZY_OR_NOW 0
10146 extern "C" void exit (int);
10149 void fnord() { int i=42;}
10152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10153 int status = $lt_dlunknown;
10157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10158 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10159 /* dlclose (self); */
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10172 (./conftest; exit; ) >&5 2>/dev/null
10174 case x$lt_status in
10175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10177 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10180 # compilation failed
10181 lt_cv_dlopen_self_static=no
10188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10192 CPPFLAGS="$save_CPPFLAGS"
10193 LDFLAGS="$save_LDFLAGS"
10198 case $lt_cv_dlopen_self in
10199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10200 *) enable_dlopen_self=unknown ;;
10203 case $lt_cv_dlopen_self_static in
10204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10205 *) enable_dlopen_self_static=unknown ;;
10210 # Report which library types will actually be built
10211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10214 echo "${ECHO_T}$can_build_shared" >&6; }
10216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10218 test "$can_build_shared" = "no" && enable_shared=no
10220 # On AIX, shared libraries and static libraries use the same namespace, and
10221 # are all built from PIC.
10224 test "$enable_shared" = yes && enable_static=no
10225 if test -n "$RANLIB"; then
10226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10227 postinstall_cmds='$RANLIB $lib'
10232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10233 test "$enable_shared" = yes && enable_static=no
10237 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10238 echo "${ECHO_T}$enable_shared" >&6; }
10240 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10242 # Make sure either enable_shared or enable_static is yes.
10243 test "$enable_shared" = yes || enable_static=yes
10244 { echo "$as_me:$LINENO: result: $enable_static" >&5
10245 echo "${ECHO_T}$enable_static" >&6; }
10247 # The else clause should only fire when bootstrapping the
10248 # libtool distribution, otherwise you forgot to ship ltmain.sh
10249 # with your package, and you will get complaints that there are
10250 # no rules to generate ltmain.sh.
10251 if test -f "$ltmain"; then
10252 # See if we are running on zsh, and set the options which allow our commands through
10253 # without removal of \ escapes.
10254 if test -n "${ZSH_VERSION+set}" ; then
10255 setopt NO_GLOB_SUBST
10257 # Now quote all the things that may contain metacharacters while being
10258 # careful not to overquote the AC_SUBSTed values. We take copies of the
10259 # variables and quote the copies for generation of the libtool script.
10260 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10262 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10263 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10264 deplibs_check_method reload_flag reload_cmds need_locks \
10265 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10266 lt_cv_sys_global_symbol_to_c_name_address \
10267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10268 old_postinstall_cmds old_postuninstall_cmds \
10272 lt_prog_compiler_wl \
10273 lt_prog_compiler_pic \
10274 lt_prog_compiler_static \
10275 lt_prog_compiler_no_builtin_flag \
10276 export_dynamic_flag_spec \
10277 thread_safe_flag_spec \
10278 whole_archive_flag_spec \
10279 enable_shared_with_static_runtimes \
10281 old_archive_from_new_cmds \
10286 compiler_lib_search_path \
10288 archive_expsym_cmds \
10290 postuninstall_cmds \
10291 old_archive_from_expsyms_cmds \
10292 allow_undefined_flag \
10293 no_undefined_flag \
10294 export_symbols_cmds \
10295 hardcode_libdir_flag_spec \
10296 hardcode_libdir_flag_spec_ld \
10297 hardcode_libdir_separator \
10298 hardcode_automatic \
10300 module_expsym_cmds \
10301 lt_cv_prog_compiler_c_o \
10303 include_expsyms; do
10306 old_archive_cmds | \
10307 old_archive_from_new_cmds | \
10309 archive_expsym_cmds | \
10311 module_expsym_cmds | \
10312 old_archive_from_expsyms_cmds | \
10313 export_symbols_cmds | \
10314 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10315 postinstall_cmds | postuninstall_cmds | \
10316 old_postinstall_cmds | old_postuninstall_cmds | \
10317 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10318 # Double-quote double-evaled strings.
10319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10328 *'\$0 --fallback-echo"')
10329 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10333 cfgfile="${ofile}T"
10334 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10336 { echo "$as_me:$LINENO: creating $ofile" >&5
10337 echo "$as_me: creating $ofile" >&6;}
10339 cat <<__EOF__ >> "$cfgfile"
10342 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10343 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10347 # Free Software Foundation, Inc.
10349 # This file is part of GNU Libtool:
10350 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10352 # This program is free software; you can redistribute it and/or modify
10353 # it under the terms of the GNU General Public License as published by
10354 # the Free Software Foundation; either version 2 of the License, or
10355 # (at your option) any later version.
10357 # This program is distributed in the hope that it will be useful, but
10358 # WITHOUT ANY WARRANTY; without even the implied warranty of
10359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10360 # General Public License for more details.
10362 # You should have received a copy of the GNU General Public License
10363 # along with this program; if not, write to the Free Software
10364 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10366 # As a special exception to the GNU General Public License, if you
10367 # distribute this file as part of a program that contains a
10368 # configuration script generated by Autoconf, you may include it under
10369 # the same distribution terms that you use for the rest of that program.
10371 # A sed program that does not truncate output.
10374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10375 Xsed="$SED -e 1s/^X//"
10377 # The HP-UX ksh and POSIX shell print the target directory to stdout
10378 # if CDPATH is set.
10379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10381 # The names of the tagged configurations supported by this script.
10384 # ### BEGIN LIBTOOL CONFIG
10386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10388 # Shell to use when invoking shell scripts.
10391 # Whether or not to build shared libraries.
10392 build_libtool_libs=$enable_shared
10394 # Whether or not to build static libraries.
10395 build_old_libs=$enable_static
10397 # Whether or not to add -lc for building shared libraries.
10398 build_libtool_need_lc=$archive_cmds_need_lc
10400 # Whether or not to disallow shared libs when runtime libs are static
10401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10403 # Whether or not to optimize for fast installation.
10404 fast_install=$enable_fast_install
10407 host_alias=$host_alias
10411 # The build system.
10412 build_alias=$build_alias
10416 # An echo program that does not interpret backslashes.
10421 AR_FLAGS=$lt_AR_FLAGS
10426 # LTCC compiler flags.
10427 LTCFLAGS=$lt_LTCFLAGS
10429 # A language-specific compiler.
10432 # Is the compiler the GNU C compiler?
10438 # The linker used to build libraries.
10441 # Whether we need hard or soft links.
10444 # A BSD-compatible nm program.
10447 # A symbol stripping program
10450 # Used to examine libraries when file_magic_cmd begins "file"
10451 MAGIC_CMD=$MAGIC_CMD
10453 # Used on cygwin: DLL creation program.
10456 # Used on cygwin: object dumper.
10459 # Used on cygwin: assembler.
10462 # The name of the directory that contains temporary libtool files.
10465 # How to create reloadable object files.
10466 reload_flag=$lt_reload_flag
10467 reload_cmds=$lt_reload_cmds
10469 # How to pass a linker flag through the compiler.
10470 wl=$lt_lt_prog_compiler_wl
10472 # Object file suffix (normally "o").
10473 objext="$ac_objext"
10475 # Old archive suffix (normally "a").
10478 # Shared library suffix (normally ".so").
10479 shrext_cmds='$shrext_cmds'
10481 # Executable file suffix (normally "").
10484 # Additional compiler flags for building library objects.
10485 pic_flag=$lt_lt_prog_compiler_pic
10488 # What is the maximum length of a command?
10489 max_cmd_len=$lt_cv_sys_max_cmd_len
10491 # Does compiler simultaneously support -c and -o options?
10492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10494 # Must we lock files when doing compilation?
10495 need_locks=$lt_need_locks
10497 # Do we need the lib prefix for modules?
10498 need_lib_prefix=$need_lib_prefix
10500 # Do we need a version for libraries?
10501 need_version=$need_version
10503 # Whether dlopen is supported.
10504 dlopen_support=$enable_dlopen
10506 # Whether dlopen of programs is supported.
10507 dlopen_self=$enable_dlopen_self
10509 # Whether dlopen of statically linked programs is supported.
10510 dlopen_self_static=$enable_dlopen_self_static
10512 # Compiler flag to prevent dynamic linking.
10513 link_static_flag=$lt_lt_prog_compiler_static
10515 # Compiler flag to turn off builtin functions.
10516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10518 # Compiler flag to allow reflexive dlopens.
10519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10521 # Compiler flag to generate shared objects directly from archives.
10522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10524 # Compiler flag to generate thread-safe objects.
10525 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10527 # Library versioning type.
10528 version_type=$version_type
10530 # Format of library name prefix.
10531 libname_spec=$lt_libname_spec
10533 # List of archive names. First name is the real one, the rest are links.
10534 # The last name is the one that the linker finds with -lNAME.
10535 library_names_spec=$lt_library_names_spec
10537 # The coded name of the library, if different from the real name.
10538 soname_spec=$lt_soname_spec
10540 # Commands used to build and install an old-style archive.
10542 old_archive_cmds=$lt_old_archive_cmds
10543 old_postinstall_cmds=$lt_old_postinstall_cmds
10544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10546 # Create an old-style archive from a shared archive.
10547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10549 # Create a temporary old-style archive to link instead of a shared archive.
10550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10552 # Commands used to build and install a shared archive.
10553 archive_cmds=$lt_archive_cmds
10554 archive_expsym_cmds=$lt_archive_expsym_cmds
10555 postinstall_cmds=$lt_postinstall_cmds
10556 postuninstall_cmds=$lt_postuninstall_cmds
10558 # Commands used to build a loadable module (assumed same as above if empty)
10559 module_cmds=$lt_module_cmds
10560 module_expsym_cmds=$lt_module_expsym_cmds
10562 # Commands to strip libraries.
10563 old_striplib=$lt_old_striplib
10564 striplib=$lt_striplib
10566 # Dependencies to place before the objects being linked to create a
10568 predep_objects=$lt_predep_objects
10570 # Dependencies to place after the objects being linked to create a
10572 postdep_objects=$lt_postdep_objects
10574 # Dependencies to place before the objects being linked to create a
10576 predeps=$lt_predeps
10578 # Dependencies to place after the objects being linked to create a
10580 postdeps=$lt_postdeps
10582 # The library search path used internally by the compiler when linking
10583 # a shared library.
10584 compiler_lib_search_path=$lt_compiler_lib_search_path
10586 # Method to check whether dependent libraries are shared objects.
10587 deplibs_check_method=$lt_deplibs_check_method
10589 # Command to use when deplibs_check_method == file_magic.
10590 file_magic_cmd=$lt_file_magic_cmd
10592 # Flag that allows shared libraries with undefined symbols to be built.
10593 allow_undefined_flag=$lt_allow_undefined_flag
10595 # Flag that forces no undefined symbols.
10596 no_undefined_flag=$lt_no_undefined_flag
10598 # Commands used to finish a libtool library installation in a directory.
10599 finish_cmds=$lt_finish_cmds
10601 # Same as above, but a single script fragment to be evaled but not shown.
10602 finish_eval=$lt_finish_eval
10604 # Take the output of nm and produce a listing of raw symbols and C names.
10605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10607 # Transform the output of nm in a proper C declaration
10608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10610 # Transform the output of nm in a C name address pair
10611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10613 # This is the shared library runtime path variable.
10614 runpath_var=$runpath_var
10616 # This is the shared library path variable.
10617 shlibpath_var=$shlibpath_var
10619 # Is shlibpath searched before the hard-coded library search path?
10620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10622 # How to hardcode a shared library path into an executable.
10623 hardcode_action=$hardcode_action
10625 # Whether we should hardcode library paths into libraries.
10626 hardcode_into_libs=$hardcode_into_libs
10628 # Flag to hardcode \$libdir into a binary during linking.
10629 # This must work even if \$libdir does not exist.
10630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10632 # If ld is used when linking, flag to hardcode \$libdir into
10633 # a binary during linking. This must work even if \$libdir does
10635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10637 # Whether we need a single -rpath flag with a separated argument.
10638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10641 # resulting binary.
10642 hardcode_direct=$hardcode_direct
10644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_minus_L=$hardcode_minus_L
10648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10649 # the resulting binary.
10650 hardcode_shlibpath_var=$hardcode_shlibpath_var
10652 # Set to yes if building a shared library automatically hardcodes DIR into the library
10653 # and all subsequent libraries and executables linked against it.
10654 hardcode_automatic=$hardcode_automatic
10656 # Variables whose values should be saved in libtool wrapper scripts and
10657 # restored at relink time.
10658 variables_saved_for_relink="$variables_saved_for_relink"
10660 # Whether libtool must link a program against all its dependency libraries.
10661 link_all_deplibs=$link_all_deplibs
10663 # Compile-time system search path for libraries
10664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10666 # Run-time system search path for libraries
10667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10669 # Fix the shell variable \$srcfile for the compiler.
10670 fix_srcfile_path="$fix_srcfile_path"
10672 # Set to yes if exported symbols are required.
10673 always_export_symbols=$always_export_symbols
10675 # The commands to list exported symbols.
10676 export_symbols_cmds=$lt_export_symbols_cmds
10678 # The commands to extract the exported symbol list from a shared archive.
10679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10681 # Symbols that should not be listed in the preloaded symbols.
10682 exclude_expsyms=$lt_exclude_expsyms
10684 # Symbols that must always be exported.
10685 include_expsyms=$lt_include_expsyms
10687 # ### END LIBTOOL CONFIG
10694 cat <<\EOF >> "$cfgfile"
10696 # AIX sometimes has problems with the GCC collect2 program. For some
10697 # reason, if we set the COLLECT_NAMES environment variable, the problems
10698 # vanish in a puff of smoke.
10699 if test "X${COLLECT_NAMES+set}" != Xset; then
10701 export COLLECT_NAMES
10707 # We use sed instead of cat because bash on DJGPP gets confused if
10708 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10709 # text mode, it properly converts lines to CR/LF. This bash problem
10710 # is reportedly fixed, but why not run on old versions too?
10711 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10713 mv -f "$cfgfile" "$ofile" || \
10714 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10718 # If there is no Makefile yet, we rely on a make rule to execute
10719 # `config.status --recheck' to rerun these tests and create the
10720 # libtool script then.
10721 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10722 if test -f "$ltmain_in"; then
10723 test -f Makefile && make "$ltmain"
10729 ac_cpp='$CPP $CPPFLAGS'
10730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10737 # Check whether --with-tags was given.
10738 if test "${with_tags+set}" = set; then
10739 withval=$with_tags; tagnames="$withval"
10743 if test -f "$ltmain" && test -n "$tagnames"; then
10744 if test ! -f "${ofile}"; then
10745 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10746 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10749 if test -z "$LTCC"; then
10750 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10751 if test -z "$LTCC"; then
10752 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10753 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10756 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10759 if test -z "$LTCFLAGS"; then
10760 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10763 # Extract list of available tagged configurations in $ofile.
10764 # Note that this assumes the entire list is on one line.
10765 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10768 for tagname in $tagnames; do
10770 # Check whether tagname contains only valid characters
10771 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10773 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10774 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10775 { (exit 1); exit 1; }; }
10779 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10781 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10782 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10783 { (exit 1); exit 1; }; }
10786 # Update the list of available tags.
10787 if test -n "$tagname"; then
10788 echo appending configuration tag \"$tagname\" to $ofile
10792 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10793 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10794 (test "X$CXX" != "Xg++"))) ; then
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10804 archive_cmds_need_lc_CXX=no
10805 allow_undefined_flag_CXX=
10806 always_export_symbols_CXX=no
10807 archive_expsym_cmds_CXX=
10808 export_dynamic_flag_spec_CXX=
10809 hardcode_direct_CXX=no
10810 hardcode_libdir_flag_spec_CXX=
10811 hardcode_libdir_flag_spec_ld_CXX=
10812 hardcode_libdir_separator_CXX=
10813 hardcode_minus_L_CXX=no
10814 hardcode_shlibpath_var_CXX=unsupported
10815 hardcode_automatic_CXX=no
10817 module_expsym_cmds_CXX=
10818 link_all_deplibs_CXX=unknown
10819 old_archive_cmds_CXX=$old_archive_cmds
10820 no_undefined_flag_CXX=
10821 whole_archive_flag_spec_CXX=
10822 enable_shared_with_static_runtimes_CXX=no
10824 # Dependencies to place before and after the object being linked:
10825 predep_objects_CXX=
10826 postdep_objects_CXX=
10829 compiler_lib_search_path_CXX=
10831 # Source file extension for C++ test sources.
10834 # Object file extension for compiled C++ test sources.
10838 # Code to be used in simple compile tests
10839 lt_simple_compile_test_code="int some_variable = 0;\n"
10841 # Code to be used in simple link tests
10842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10846 # If no C compiler was specified, use CC.
10849 # If no C compiler flags were specified, use CFLAGS.
10850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10852 # Allow CC to be a program name with arguments.
10856 # save warnings/boilerplate of simple test code
10857 ac_outfile=conftest.$ac_objext
10858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10860 _lt_compiler_boilerplate=`cat conftest.err`
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10866 _lt_linker_boilerplate=`cat conftest.err`
10870 # Allow CC to be a program name with arguments.
10875 lt_save_with_gnu_ld=$with_gnu_ld
10876 lt_save_path_LD=$lt_cv_path_LD
10877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10878 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10880 $as_unset lt_cv_prog_gnu_ld
10882 if test -n "${lt_cv_path_LDCXX+set}"; then
10883 lt_cv_path_LD=$lt_cv_path_LDCXX
10885 $as_unset lt_cv_path_LD
10887 test -z "${LDCXX+set}" || LD=$LDCXX
10891 for cc_temp in $compiler""; do
10893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10902 # We don't want -fno-exception wen compiling C++ code, so set the
10903 # no_builtin_flag separately
10904 if test "$GXX" = yes; then
10905 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10907 lt_prog_compiler_no_builtin_flag_CXX=
10910 if test "$GXX" = yes; then
10911 # Set up default GNU C++ configuration
10914 # Check whether --with-gnu-ld was given.
10915 if test "${with_gnu_ld+set}" = set; then
10916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10922 if test "$GCC" = yes; then
10923 # Check if gcc -print-prog-name=ld gives a path.
10924 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10925 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10928 # gcc leaves a trailing carriage return which upsets mingw
10929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10934 # Accept absolute paths.
10936 re_direlt='/[^/][^/]*/\.\./'
10937 # Canonicalize the pathname of ld
10938 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10940 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10942 test -z "$LD" && LD="$ac_prog"
10945 # If it fails, then pretend we aren't using GCC.
10949 # If it is relative, then search for the first ld in PATH.
10950 with_gnu_ld=unknown
10953 elif test "$with_gnu_ld" = yes; then
10954 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10955 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10957 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10958 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10960 if test "${lt_cv_path_LD+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 if test -z "$LD"; then
10964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10965 for ac_dir in $PATH; do
10967 test -z "$ac_dir" && ac_dir=.
10968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10969 lt_cv_path_LD="$ac_dir/$ac_prog"
10970 # Check to see if the program is GNU ld. I'd rather use --version,
10971 # but apparently some variants of GNU ld only accept -v.
10972 # Break only if it was the GNU/non-GNU ld that we prefer.
10973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10974 *GNU* | *'with BFD'*)
10975 test "$with_gnu_ld" != no && break
10978 test "$with_gnu_ld" != yes && break
10985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10989 LD="$lt_cv_path_LD"
10990 if test -n "$LD"; then
10991 { echo "$as_me:$LINENO: result: $LD" >&5
10992 echo "${ECHO_T}$LD" >&6; }
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10999 { (exit 1); exit 1; }; }
11000 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11002 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11006 case `$LD -v 2>&1 </dev/null` in
11007 *GNU* | *'with BFD'*)
11008 lt_cv_prog_gnu_ld=yes
11011 lt_cv_prog_gnu_ld=no
11015 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11016 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11017 with_gnu_ld=$lt_cv_prog_gnu_ld
11021 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11022 # archiving commands below assume that GNU ld is being used.
11023 if test "$with_gnu_ld" = yes; then
11024 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025 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'
11027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11030 # If archive_cmds runs LD, not CC, wlarc should be empty
11031 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11032 # investigate it a little bit more. (MM)
11035 # ancient GNU ld didn't support --whole-archive et. al.
11036 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11037 grep 'no-whole-archive' > /dev/null; then
11038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11040 whole_archive_flag_spec_CXX=
11046 # A generic and very simple default shared library creation
11047 # command for GNU C++ for the case where it uses the native
11048 # linker, instead of GNU ld. If possible, this setting should
11049 # overridden to take advantage of the native linker features on
11050 # the platform it is being used on.
11051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11054 # Commands to make compiler produce verbose output that lists
11055 # what "hidden" libraries, object files and flags are used when
11056 # linking a shared library.
11057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11065 # PORTME: fill in a description of your system's C++ link characteristics
11066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11071 # FIXME: insert proper C++ library support
11075 if test "$host_cpu" = ia64; then
11076 # On IA64, the linker does run time linking by default, so we don't
11077 # have to do anything special.
11078 aix_use_runtimelinking=no
11079 exp_sym_flag='-Bexport'
11082 aix_use_runtimelinking=no
11084 # Test if we are trying to use run time linking or normal
11085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11086 # need to do runtime linking.
11087 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11088 for ld_flag in $LDFLAGS; do
11091 aix_use_runtimelinking=yes
11099 exp_sym_flag='-bexport'
11100 no_entry_flag='-bnoentry'
11103 # When large executables or shared objects are built, AIX ld can
11104 # have problems creating the table of contents. If linking a library
11105 # or program results in "error TOC overflow" add -mminimal-toc to
11106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11109 archive_cmds_CXX=''
11110 hardcode_direct_CXX=yes
11111 hardcode_libdir_separator_CXX=':'
11112 link_all_deplibs_CXX=yes
11114 if test "$GXX" = yes; then
11115 case $host_os in aix4.[012]|aix4.[012].*)
11116 # We only want to do this on AIX 4.2 and lower, the check
11117 # below for broken collect2 doesn't work under 4.3+
11118 collect2name=`${CC} -print-prog-name=collect2`
11119 if test -f "$collect2name" && \
11120 strings "$collect2name" | grep resolve_lib_name >/dev/null
11122 # We have reworked collect2
11123 hardcode_direct_CXX=yes
11125 # We have old collect2
11126 hardcode_direct_CXX=unsupported
11127 # It fails to find uninstalled libraries when the uninstalled
11128 # path is not listed in the libpath. Setting hardcode_minus_L
11129 # to unsupported forces relinking
11130 hardcode_minus_L_CXX=yes
11131 hardcode_libdir_flag_spec_CXX='-L$libdir'
11132 hardcode_libdir_separator_CXX=
11136 shared_flag='-shared'
11137 if test "$aix_use_runtimelinking" = yes; then
11138 shared_flag="$shared_flag "'${wl}-G'
11142 if test "$host_cpu" = ia64; then
11143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11144 # chokes on -Wl,-G. The following line is correct:
11147 if test "$aix_use_runtimelinking" = yes; then
11148 shared_flag='${wl}-G'
11150 shared_flag='${wl}-bM:SRE'
11155 # It seems that -bexpall does not export symbols beginning with
11156 # underscore (_), so it is better to generate a list of symbols to export.
11157 always_export_symbols_CXX=yes
11158 if test "$aix_use_runtimelinking" = yes; then
11159 # Warning - without using the other runtime loading flags (-brtl),
11160 # -berok will link without error, but may produce a broken library.
11161 allow_undefined_flag_CXX='-berok'
11162 # Determine the default libpath from the value encoded in an empty executable.
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_cxx_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11199 # Check for a 64-bit object if we didn't find anything.
11200 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210 conftest$ac_exeext conftest.$ac_ext
11211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11215 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"
11217 if test "$host_cpu" = ia64; then
11218 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11219 allow_undefined_flag_CXX="-z nodefs"
11220 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"
11222 # Determine the default libpath from the value encoded in an empty executable.
11223 cat >conftest.$ac_ext <<_ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (ac_try="$ac_link"
11240 case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_link") 2>conftest.er1
11247 grep -v '^ *+' conftest.er1 >conftest.err
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && {
11252 test -z "$ac_cxx_werror_flag" ||
11253 test ! -s conftest.err
11254 } && test -s conftest$ac_exeext &&
11255 $as_test_x conftest$ac_exeext; then
11257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11259 # Check for a 64-bit object if we didn't find anything.
11260 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11263 echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270 conftest$ac_exeext conftest.$ac_ext
11271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11274 # Warning - without using the other run time loading flags,
11275 # -berok will link without error, but may produce a broken library.
11276 no_undefined_flag_CXX=' ${wl}-bernotok'
11277 allow_undefined_flag_CXX=' ${wl}-berok'
11278 # Exported symbols can be pulled into shared objects from archives
11279 whole_archive_flag_spec_CXX='$convenience'
11280 archive_cmds_need_lc_CXX=yes
11281 # This is similar to how AIX traditionally builds its shared libraries.
11282 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'
11288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11289 allow_undefined_flag_CXX=unsupported
11290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11291 # support --undefined. This deserves some investigation. FIXME
11292 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299 case $cc_basename in
11301 # FIXME: insert proper C++ library support
11307 cygwin* | mingw* | pw32*)
11308 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11309 # as there is no search path for DLLs.
11310 hardcode_libdir_flag_spec_CXX='-L$libdir'
11311 allow_undefined_flag_CXX=unsupported
11312 always_export_symbols_CXX=no
11313 enable_shared_with_static_runtimes_CXX=yes
11315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11316 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'
11317 # If the export-symbols file already is a .def file (1st line
11318 # is EXPORTS), use it as is; otherwise, prepend...
11319 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11320 cp $export_symbols $output_objdir/$soname.def;
11322 echo EXPORTS > $output_objdir/$soname.def;
11323 cat $export_symbols >> $output_objdir/$soname.def;
11325 $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'
11330 darwin* | rhapsody*)
11332 rhapsody* | darwin1.[012])
11333 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11336 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11337 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11339 case ${MACOSX_DEPLOYMENT_TARGET} in
11341 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11344 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11350 archive_cmds_need_lc_CXX=no
11351 hardcode_direct_CXX=no
11352 hardcode_automatic_CXX=yes
11353 hardcode_shlibpath_var_CXX=unsupported
11354 whole_archive_flag_spec_CXX=''
11355 link_all_deplibs_CXX=yes
11357 if test "$GXX" = yes ; then
11358 lt_int_apple_cc_single_mod=no
11359 output_verbose_link_cmd='echo'
11360 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11361 lt_int_apple_cc_single_mod=yes
11363 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11364 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11366 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'
11368 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11369 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11370 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11371 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11373 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11375 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}'
11377 case $cc_basename in
11379 output_verbose_link_cmd='echo'
11380 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11381 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11383 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11384 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}'
11394 case $cc_basename in
11396 # FIXME: insert proper C++ library support
11400 # Green Hills C++ Compiler
11401 # FIXME: insert proper C++ library support
11405 # FIXME: insert proper C++ library support
11411 # C++ shared libraries reported to be fairly broken before switch to ELF
11415 archive_cmds_need_lc_CXX=no
11417 freebsd* | kfreebsd*-gnu | dragonfly*)
11418 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11425 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11426 hardcode_libdir_separator_CXX=:
11427 export_dynamic_flag_spec_CXX='${wl}-E'
11428 hardcode_direct_CXX=yes
11429 hardcode_minus_L_CXX=yes # Not in the search PATH,
11430 # but as the default
11431 # location of the library.
11433 case $cc_basename in
11435 # FIXME: insert proper C++ library support
11439 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'
11440 # Commands to make compiler produce verbose output that lists
11441 # what "hidden" libraries, object files and flags are used when
11442 # linking a shared library.
11444 # There doesn't appear to be a way to prevent this compiler from
11445 # explicitly linking system object files so we need to strip them
11446 # from the output so that they don't get included in the library
11448 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'
11451 if test "$GXX" = yes; then
11452 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'
11454 # FIXME: insert proper C++ library support
11461 if test $with_gnu_ld = no; then
11462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11463 hardcode_libdir_separator_CXX=:
11467 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11470 export_dynamic_flag_spec_CXX='${wl}-E'
11476 hardcode_direct_CXX=no
11477 hardcode_shlibpath_var_CXX=no
11480 hardcode_direct_CXX=yes
11481 hardcode_minus_L_CXX=yes # Not in the search PATH,
11482 # but as the default
11483 # location of the library.
11487 case $cc_basename in
11489 # FIXME: insert proper C++ library support
11495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504 # Commands to make compiler produce verbose output that lists
11505 # what "hidden" libraries, object files and flags are used when
11506 # linking a shared library.
11508 # There doesn't appear to be a way to prevent this compiler from
11509 # explicitly linking system object files so we need to strip them
11510 # from the output so that they don't get included in the library
11512 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'
11515 if test "$GXX" = yes; then
11516 if test $with_gnu_ld = no; then
11519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11522 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525 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'
11530 # FIXME: insert proper C++ library support
11537 hardcode_direct_CXX=no
11538 hardcode_shlibpath_var_CXX=no
11539 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11540 export_dynamic_flag_spec_CXX='${wl}-E'
11541 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11542 # Instead, shared libraries are loaded at an image base (0x10000000 by
11543 # default) and relocated if they conflict, which is a slow very memory
11544 # consuming and fragmenting process. To avoid this, we pick a random,
11545 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11546 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11547 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'
11548 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'
11551 case $cc_basename in
11554 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'
11556 # Archives containing C++ object files must be created using
11557 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11558 # necessary to make sure instantiated templates are included
11560 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11563 if test "$GXX" = yes; then
11564 if test "$with_gnu_ld" = no; then
11565 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'
11567 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'
11570 link_all_deplibs_CXX=yes
11573 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11574 hardcode_libdir_separator_CXX=:
11577 case $cc_basename in
11579 # Kuck and Associates, Inc. (KAI) C++ Compiler
11581 # KCC will only create a shared library if the output file
11582 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11583 # to its proper name (with version) after linking.
11584 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'
11585 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'
11586 # Commands to make compiler produce verbose output that lists
11587 # what "hidden" libraries, object files and flags are used when
11588 # linking a shared library.
11590 # There doesn't appear to be a way to prevent this compiler from
11591 # explicitly linking system object files so we need to strip them
11592 # from the output so that they don't get included in the library
11594 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'
11596 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11597 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11599 # Archives containing C++ object files must be created using
11600 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11601 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11606 # version 8.0 and above of icpc choke on multiply defined symbols
11607 # if we add $predep_objects and $postdep_objects, however 7.1 and
11608 # earlier do not add the objects themselves.
11609 case `$CC -V 2>&1` in
11611 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11612 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'
11614 *) # Version 8.0 or newer
11617 ia64*) tmp_idyn=' -i_dynamic';;
11619 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620 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'
11623 archive_cmds_need_lc_CXX=no
11624 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11625 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11626 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11629 # Portland Group C++ compiler
11630 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11631 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'
11633 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11635 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'
11639 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11640 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'
11642 runpath_var=LD_RUN_PATH
11643 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11644 hardcode_libdir_separator_CXX=:
11646 # Commands to make compiler produce verbose output that lists
11647 # what "hidden" libraries, object files and flags are used when
11648 # linking a shared library.
11650 # There doesn't appear to be a way to prevent this compiler from
11651 # explicitly linking system object files so we need to strip them
11652 # from the output so that they don't get included in the library
11654 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'
11659 # FIXME: insert proper C++ library support
11663 # FIXME: insert proper C++ library support
11667 case $cc_basename in
11669 # FIXME: insert proper C++ library support
11673 # FIXME: insert proper C++ library support
11679 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11680 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11682 hardcode_libdir_flag_spec_CXX='-R$libdir'
11683 hardcode_direct_CXX=yes
11684 hardcode_shlibpath_var_CXX=no
11686 # Workaround some broken pre-1.5 toolchains
11687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11690 # C++ shared libraries are fairly broken
11694 hardcode_direct_CXX=yes
11695 hardcode_shlibpath_var_CXX=no
11696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11697 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11699 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11700 export_dynamic_flag_spec_CXX='${wl}-E'
11701 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11703 output_verbose_link_cmd='echo'
11706 case $cc_basename in
11708 # Kuck and Associates, Inc. (KAI) C++ Compiler
11710 # KCC will only create a shared library if the output file
11711 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11712 # to its proper name (with version) after linking.
11713 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'
11715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11716 hardcode_libdir_separator_CXX=:
11718 # Archives containing C++ object files must be created using
11719 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11720 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11724 # Rational C++ 2.4.1
11725 # FIXME: insert proper C++ library support
11729 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11730 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'
11732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11733 hardcode_libdir_separator_CXX=:
11735 # Commands to make compiler produce verbose output that lists
11736 # what "hidden" libraries, object files and flags are used when
11737 # linking a shared library.
11739 # There doesn't appear to be a way to prevent this compiler from
11740 # explicitly linking system object files so we need to strip them
11741 # from the output so that they don't get included in the library
11743 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'
11746 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11747 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11748 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'
11750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11751 hardcode_libdir_separator_CXX=:
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11759 # FIXME: insert proper C++ library support
11766 case $cc_basename in
11768 # Kuck and Associates, Inc. (KAI) C++ Compiler
11770 # KCC will only create a shared library if the output file
11771 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11772 # to its proper name (with version) after linking.
11773 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'
11775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11776 hardcode_libdir_separator_CXX=:
11778 # Archives containing C++ object files must be created using
11779 # the KAI C++ compiler.
11780 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11783 # Rational C++ 2.4.1
11784 # FIXME: insert proper C++ library support
11788 allow_undefined_flag_CXX=' -expect_unresolved \*'
11789 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'
11790 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11791 echo "-hidden">> $lib.exp~
11792 $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~
11795 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11796 hardcode_libdir_separator_CXX=:
11798 # Commands to make compiler produce verbose output that lists
11799 # what "hidden" libraries, object files and flags are used when
11800 # linking a shared library.
11802 # There doesn't appear to be a way to prevent this compiler from
11803 # explicitly linking system object files so we need to strip them
11804 # from the output so that they don't get included in the library
11806 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'
11809 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11811 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'
11813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11814 hardcode_libdir_separator_CXX=:
11816 # Commands to make compiler produce verbose output that lists
11817 # what "hidden" libraries, object files and flags are used when
11818 # linking a shared library.
11819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11822 # FIXME: insert proper C++ library support
11829 # FIXME: insert proper C++ library support
11833 case $cc_basename in
11836 # FIXME: insert proper C++ library support
11841 # FIXME: insert proper C++ library support
11845 # FIXME: insert proper C++ library support
11851 case $cc_basename in
11853 # Sun C++ 4.2, 5.x and Centerline C++
11854 archive_cmds_need_lc_CXX=yes
11855 no_undefined_flag_CXX=' -zdefs'
11856 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11858 $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'
11860 hardcode_libdir_flag_spec_CXX='-R$libdir'
11861 hardcode_shlibpath_var_CXX=no
11863 solaris2.[0-5] | solaris2.[0-5].*) ;;
11865 # The C++ compiler is used as linker so we must use $wl
11866 # flag to pass the commands to the underlying system
11867 # linker. We must also pass each convience library through
11868 # to the system linker between allextract/defaultextract.
11869 # The C++ compiler will combine linker options so we
11870 # cannot just pass the convience library names through
11872 # Supported since Solaris 2.6 (maybe 2.5.1?)
11873 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11876 link_all_deplibs_CXX=yes
11878 output_verbose_link_cmd='echo'
11880 # Archives containing C++ object files must be created using
11881 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11882 # necessary to make sure instantiated templates are included
11884 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11887 # Green Hills C++ Compiler
11888 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11890 # The C++ compiler must be used to create the archive.
11891 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11894 # GNU C++ compiler with Solaris linker
11895 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11896 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11897 if $CC --version | grep -v '^2\.7' > /dev/null; then
11898 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11899 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11900 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11902 # Commands to make compiler produce verbose output that lists
11903 # what "hidden" libraries, object files and flags are used when
11904 # linking a shared library.
11905 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11907 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11909 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11910 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11911 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11913 # Commands to make compiler produce verbose output that lists
11914 # what "hidden" libraries, object files and flags are used when
11915 # linking a shared library.
11916 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11919 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11925 no_undefined_flag_CXX='${wl}-z,text'
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_shlibpath_var_CXX=no
11928 runpath_var='LD_RUN_PATH'
11930 case $cc_basename in
11932 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 sysv5* | sco3.2v5* | sco5v6*)
11942 # Note: We can NOT use -z defs as we might desire, because we do not
11943 # link with -lc, and that would cause any symbols used from libc to
11944 # always be unresolved, which means just about no library would
11945 # ever link correctly. If we're not using GNU ld we use -z text
11946 # though, which does catch some bad symbols but isn't as heavy-handed
11948 # For security reasons, it is highly recommended that you always
11949 # use absolute paths for naming shared libraries, and exclude the
11950 # DT_RUNPATH tag from executables and libraries. But doing so
11951 # requires that you compile everything twice, which is a pain.
11952 # So that behaviour is only enabled if SCOABSPATH is set to a
11953 # non-empty value in the environment. Most likely only useful for
11954 # creating official distributions of packages.
11955 # This is a hack until libtool officially supports absolute path
11956 # names for shared libraries.
11957 no_undefined_flag_CXX='${wl}-z,text'
11958 allow_undefined_flag_CXX='${wl}-z,nodefs'
11959 archive_cmds_need_lc_CXX=no
11960 hardcode_shlibpath_var_CXX=no
11961 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11962 hardcode_libdir_separator_CXX=':'
11963 link_all_deplibs_CXX=yes
11964 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11965 runpath_var='LD_RUN_PATH'
11967 case $cc_basename in
11969 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11970 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11973 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11979 case $cc_basename in
11981 # NonStop-UX NCC 3.20
11982 # FIXME: insert proper C++ library support
11986 # FIXME: insert proper C++ library support
11992 # FIXME: insert proper C++ library support
11996 # FIXME: insert proper C++ library support
12000 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12001 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12002 test "$ld_shlibs_CXX" = no && can_build_shared=no
12008 ## There is no encapsulation within the following macros, do not change
12009 ## the running order or otherwise move them around unless you know exactly
12010 ## what you are doing...
12012 cat > conftest.$ac_ext <<EOF
12016 Foo (void) { a = 0; }
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023 (eval $ac_compile) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; then
12027 # Parse the compiler output and extract the necessary
12028 # objects, libraries and library flags.
12030 # Sentinel used to keep track of whether or not we are before
12031 # the conftest object file.
12032 pre_test_object_deps_done=no
12034 # The `*' in the case matches for architectures that use `case' in
12035 # $output_verbose_cmd can trigger glob expansion during the loop
12036 # eval without this substitution.
12037 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12039 for p in `eval $output_verbose_link_cmd`; do
12043 # Some compilers place space between "-{L,R}" and the path.
12044 # Remove the space.
12045 if test $p = "-L" \
12046 || test $p = "-R"; then
12053 if test "$pre_test_object_deps_done" = no; then
12056 # Internal compiler library paths should come after those
12057 # provided the user. The postdeps already come after the
12058 # user supplied libs so there is no need to process them.
12059 if test -z "$compiler_lib_search_path_CXX"; then
12060 compiler_lib_search_path_CXX="${prev}${p}"
12062 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12065 # The "-l" case would never come before the object being
12066 # linked, so don't bother handling this case.
12069 if test -z "$postdeps_CXX"; then
12070 postdeps_CXX="${prev}${p}"
12072 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12078 # This assumes that the test object file only shows up
12079 # once in the compiler output.
12080 if test "$p" = "conftest.$objext"; then
12081 pre_test_object_deps_done=yes
12085 if test "$pre_test_object_deps_done" = no; then
12086 if test -z "$predep_objects_CXX"; then
12087 predep_objects_CXX="$p"
12089 predep_objects_CXX="$predep_objects_CXX $p"
12092 if test -z "$postdep_objects_CXX"; then
12093 postdep_objects_CXX="$p"
12095 postdep_objects_CXX="$postdep_objects_CXX $p"
12100 *) ;; # Ignore the rest.
12108 echo "libtool.m4: error: problem compiling CXX test program"
12111 $rm -f confest.$objext
12113 # PORTME: override above test on systems where it is broken
12116 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12117 # hack all around it, let's just trust "g++" to DTRT.
12118 predep_objects_CXX=
12119 postdep_objects_CXX=
12124 case $cc_basename in
12126 # Adding this requires a known-good setup of shared libraries for
12127 # Sun compiler versions before 5.6, else PIC objects from an old
12128 # archive will be linked into the output, leading to subtle bugs.
12129 postdeps_CXX='-lCstd -lCrun'
12136 case " $postdeps_CXX " in
12137 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12140 lt_prog_compiler_wl_CXX=
12141 lt_prog_compiler_pic_CXX=
12142 lt_prog_compiler_static_CXX=
12144 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12145 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12147 # C++ specific cases for pic, static, wl, etc.
12148 if test "$GXX" = yes; then
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_static_CXX='-static'
12154 # All AIX code is PIC.
12155 if test "$host_cpu" = ia64; then
12156 # AIX 5 now supports IA64 processor
12157 lt_prog_compiler_static_CXX='-Bstatic'
12161 # FIXME: we need at least 68020 code to build shared libraries, but
12162 # adding the `-m68020' flag to GCC prevents building anything better,
12164 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12166 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12167 # PIC is the default for these OSes.
12169 mingw* | os2* | pw32*)
12170 # This hack is so that the source file can tell whether it is being
12171 # built for inclusion in a dll (and should export symbols for example).
12172 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12174 darwin* | rhapsody*)
12175 # PIC is the default on this platform
12176 # Common symbols not allowed in MH_DYLIB files
12177 lt_prog_compiler_pic_CXX='-fno-common'
12180 # DJGPP does not support shared libraries at all
12181 lt_prog_compiler_pic_CXX=
12184 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12185 # Instead, we relocate shared libraries at runtime.
12188 if test -d /usr/nec; then
12189 lt_prog_compiler_pic_CXX=-Kconform_pic
12193 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12194 # not for PA HP-UX.
12199 lt_prog_compiler_pic_CXX='-fPIC'
12204 lt_prog_compiler_pic_CXX='-fPIC'
12210 # All AIX code is PIC.
12211 if test "$host_cpu" = ia64; then
12212 # AIX 5 now supports IA64 processor
12213 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12219 case $cc_basename in
12221 # Green Hills C++ Compiler
12222 # _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"
12227 # PIC is the default on this platform
12228 # Common symbols not allowed in MH_DYLIB files
12229 case $cc_basename in
12231 lt_prog_compiler_pic_CXX='-qnocommon'
12232 lt_prog_compiler_wl_CXX='-Wl,'
12237 case $cc_basename in
12239 lt_prog_compiler_pic_CXX='-KPIC'
12242 # Green Hills C++ Compiler
12243 lt_prog_compiler_pic_CXX='-pic'
12249 freebsd* | kfreebsd*-gnu | dragonfly*)
12250 # FreeBSD uses GNU C++
12252 hpux9* | hpux10* | hpux11*)
12253 case $cc_basename in
12255 lt_prog_compiler_wl_CXX='-Wl,'
12256 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12257 if test "$host_cpu" != ia64; then
12258 lt_prog_compiler_pic_CXX='+Z'
12262 lt_prog_compiler_wl_CXX='-Wl,'
12263 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12269 lt_prog_compiler_pic_CXX='+Z'
12278 # This is c89, which is MS Visual C++ (no shared libs)
12279 # Anyone wants to do a port?
12281 irix5* | irix6* | nonstopux*)
12282 case $cc_basename in
12284 lt_prog_compiler_wl_CXX='-Wl,'
12285 lt_prog_compiler_static_CXX='-non_shared'
12286 # CC pic flag -KPIC is the default.
12293 case $cc_basename in
12296 lt_prog_compiler_wl_CXX='--backend -Wl,'
12297 lt_prog_compiler_pic_CXX='-fPIC'
12301 lt_prog_compiler_wl_CXX='-Wl,'
12302 lt_prog_compiler_pic_CXX='-KPIC'
12303 lt_prog_compiler_static_CXX='-static'
12306 # Portland Group C++ compiler.
12307 lt_prog_compiler_wl_CXX='-Wl,'
12308 lt_prog_compiler_pic_CXX='-fpic'
12309 lt_prog_compiler_static_CXX='-Bstatic'
12313 # Make sure the PIC flag is empty. It appears that all Alpha
12314 # Linux and Compaq Tru64 Unix objects are PIC.
12315 lt_prog_compiler_pic_CXX=
12316 lt_prog_compiler_static_CXX='-non_shared'
12327 case $cc_basename in
12329 lt_prog_compiler_pic_CXX='-W c,exportall'
12337 osf3* | osf4* | osf5*)
12338 case $cc_basename in
12340 lt_prog_compiler_wl_CXX='--backend -Wl,'
12343 # Rational C++ 2.4.1
12344 lt_prog_compiler_pic_CXX='-pic'
12347 # Digital/Compaq C++
12348 lt_prog_compiler_wl_CXX='-Wl,'
12349 # Make sure the PIC flag is empty. It appears that all Alpha
12350 # Linux and Compaq Tru64 Unix objects are PIC.
12351 lt_prog_compiler_pic_CXX=
12352 lt_prog_compiler_static_CXX='-non_shared'
12361 case $cc_basename in
12363 # Sun C++ 4.2, 5.x and Centerline C++
12364 lt_prog_compiler_pic_CXX='-KPIC'
12365 lt_prog_compiler_static_CXX='-Bstatic'
12366 lt_prog_compiler_wl_CXX='-Qoption ld '
12369 # Green Hills C++ Compiler
12370 lt_prog_compiler_pic_CXX='-PIC'
12377 case $cc_basename in
12380 lt_prog_compiler_pic_CXX='-pic'
12381 lt_prog_compiler_static_CXX='-Bstatic'
12385 lt_prog_compiler_pic_CXX='-pic'
12392 case $cc_basename in
12394 # NonStop-UX NCC 3.20
12395 lt_prog_compiler_pic_CXX='-KPIC'
12401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12402 case $cc_basename in
12404 lt_prog_compiler_wl_CXX='-Wl,'
12405 lt_prog_compiler_pic_CXX='-KPIC'
12406 lt_prog_compiler_static_CXX='-Bstatic'
12413 lt_prog_compiler_can_build_shared_CXX=no
12418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12419 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12422 # Check to make sure the PIC flag actually works.
12424 if test -n "$lt_prog_compiler_pic_CXX"; then
12426 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12427 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12428 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 lt_prog_compiler_pic_works_CXX=no
12432 ac_outfile=conftest.$ac_objext
12433 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12434 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12435 # Insert the option either (1) after the last *FLAGS variable, or
12436 # (2) before a word containing "conftest.", or (3) at the end.
12437 # Note that $ac_compile itself does not contain backslashes and begins
12438 # with a dollar sign (not a hyphen), so the echo should work correctly.
12439 # The option is referenced via a variable to avoid confusing sed.
12440 lt_compile=`echo "$ac_compile" | $SED \
12441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12443 -e 's:$: $lt_compiler_flag:'`
12444 (eval echo "\"\$as_me:12444: $lt_compile\"" >&5)
12445 (eval "$lt_compile" 2>conftest.err)
12447 cat conftest.err >&5
12448 echo "$as_me:12448: \$? = $ac_status" >&5
12449 if (exit $ac_status) && test -s "$ac_outfile"; then
12450 # The compiler can only warn and ignore the option if not recognized
12451 # So say no if there are warnings other than the usual output.
12452 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12453 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12454 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12455 lt_prog_compiler_pic_works_CXX=yes
12461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12465 case $lt_prog_compiler_pic_CXX in
12467 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12470 lt_prog_compiler_pic_CXX=
12471 lt_prog_compiler_can_build_shared_CXX=no
12476 # For platforms which do not support PIC, -DPIC is meaningless:
12478 lt_prog_compiler_pic_CXX=
12481 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12486 # Check to make sure the static flag actually works.
12488 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12489 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12490 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12491 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12494 lt_prog_compiler_static_works_CXX=no
12495 save_LDFLAGS="$LDFLAGS"
12496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12497 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12499 # The linker can only warn and ignore the option if not recognized
12500 # So say no if there are warnings
12501 if test -s conftest.err; then
12502 # Append any errors to the config.log.
12503 cat conftest.err 1>&5
12504 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506 if diff conftest.exp conftest.er2 >/dev/null; then
12507 lt_prog_compiler_static_works_CXX=yes
12510 lt_prog_compiler_static_works_CXX=yes
12514 LDFLAGS="$save_LDFLAGS"
12517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12518 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12520 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12523 lt_prog_compiler_static_CXX=
12527 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12529 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 lt_cv_prog_compiler_c_o_CXX=no
12533 $rm -r conftest 2>/dev/null
12537 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12539 lt_compiler_flag="-o out/conftest2.$ac_objext"
12540 # Insert the option either (1) after the last *FLAGS variable, or
12541 # (2) before a word containing "conftest.", or (3) at the end.
12542 # Note that $ac_compile itself does not contain backslashes and begins
12543 # with a dollar sign (not a hyphen), so the echo should work correctly.
12544 lt_compile=`echo "$ac_compile" | $SED \
12545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12547 -e 's:$: $lt_compiler_flag:'`
12548 (eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12549 (eval "$lt_compile" 2>out/conftest.err)
12551 cat out/conftest.err >&5
12552 echo "$as_me:12552: \$? = $ac_status" >&5
12553 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12555 # The compiler can only warn and ignore the option if not recognized
12556 # So say no if there are warnings
12557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12558 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12559 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12560 lt_cv_prog_compiler_c_o_CXX=yes
12565 # SGI C++ compiler will create directory out/ii_files/ for
12566 # template instantiation
12567 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12568 $rm out/* && rmdir out
12574 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12578 hard_links="nottested"
12579 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12580 # do not overwrite the value of need_locks provided by the user
12581 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12585 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12587 ln conftest.a conftest.b 2>&5 || hard_links=no
12588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12589 { echo "$as_me:$LINENO: result: $hard_links" >&5
12590 echo "${ECHO_T}$hard_links" >&6; }
12591 if test "$hard_links" = no; then
12592 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12600 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12603 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12606 # If we're using GNU nm, then we don't want the "-C" option.
12607 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12608 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12609 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'
12611 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'
12615 export_symbols_cmds_CXX="$ltdll_cmds"
12618 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'
12621 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12625 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12626 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12627 test "$ld_shlibs_CXX" = no && can_build_shared=no
12630 # Do we need to explicitly link libc?
12632 case "x$archive_cmds_need_lc_CXX" in
12634 # Assume -lc should be added
12635 archive_cmds_need_lc_CXX=yes
12637 if test "$enable_shared" = yes && test "$GCC" = yes; then
12638 case $archive_cmds_CXX in
12640 # FIXME: we may have to deal with multi-command sequences.
12643 # Test whether the compiler implicitly links with -lc since on some
12644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12645 # to ld, don't add -lc before -lgcc.
12646 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12649 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652 (eval $ac_compile) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } 2>conftest.err; then
12658 libobjs=conftest.$ac_objext
12660 wl=$lt_prog_compiler_wl_CXX
12661 pic_flag=$lt_prog_compiler_pic_CXX
12667 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12668 allow_undefined_flag_CXX=
12669 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12670 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }
12675 archive_cmds_need_lc_CXX=no
12677 archive_cmds_need_lc_CXX=yes
12679 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12681 cat conftest.err 1>&5
12684 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12685 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12694 library_names_spec=
12695 libname_spec='lib$name'
12699 postuninstall_cmds=
12703 shlibpath_overrides_runpath=unknown
12705 dynamic_linker="$host_os ld.so"
12706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12707 if test "$GCC" = yes; then
12708 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12709 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12710 # if the path contains ";" then we assume it to be the separator
12711 # otherwise default to the standard path separator (i.e. ":") - it is
12712 # assumed that no part of a normal pathname contains ";" but that should
12713 # okay in the real world where ";" in dirpaths is itself problematic.
12714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12719 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12721 need_lib_prefix=unknown
12722 hardcode_into_libs=no
12724 # when you set need_version to no, make sure it does not cause -set_version
12725 # flags to be left without arguments
12726 need_version=unknown
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12732 shlibpath_var=LIBPATH
12734 # AIX 3 has no versioning support, so we append a major version to the name.
12735 soname_spec='${libname}${release}${shared_ext}$major'
12742 hardcode_into_libs=yes
12743 if test "$host_cpu" = ia64; then
12744 # AIX 5 supports IA64
12745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12746 shlibpath_var=LD_LIBRARY_PATH
12748 # With GCC up to 2.95.x, collect2 would create an import file
12749 # for dependence libraries. The import file would start with
12750 # the line `#! .'. This would cause the generated library to
12751 # depend on `.', always an invalid library. This was fixed in
12752 # development snapshots of GCC prior to 3.0.
12754 aix4 | aix4.[01] | aix4.[01].*)
12755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12760 can_build_shared=no
12764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12765 # soname into executable. Probably we can add versioning support to
12766 # collect2, so additional links can be useful in future.
12767 if test "$aix_use_runtimelinking" = yes; then
12768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12769 # instead of lib<name>.a to let people know that these are not
12770 # typical AIX shared libraries.
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 # We preserve .a as extension for shared libraries through AIX4.2
12774 # and later when we are not doing run time linking.
12775 library_names_spec='${libname}${release}.a $libname.a'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12778 shlibpath_var=LIBPATH
12783 library_names_spec='$libname.ixlibrary $libname.a'
12784 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12785 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'
12789 library_names_spec='${libname}${shared_ext}'
12790 dynamic_linker="$host_os ld.so"
12791 shlibpath_var=LIBRARY_PATH
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12803 # the default ld.so.conf also contains /usr/contrib/lib and
12804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12805 # libtool to hard-code these into programs
12808 cygwin* | mingw* | pw32*)
12809 version_type=windows
12814 case $GCC,$host_os in
12815 yes,cygwin* | yes,mingw* | yes,pw32*)
12816 library_names_spec='$libname.dll.a'
12817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12818 postinstall_cmds='base_file=`basename \${file}`~
12819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12820 dldir=$destdir/`dirname \$dlpath`~
12821 test -d \$dldir || mkdir -p \$dldir~
12822 $install_prog $dir/$dlname \$dldir/$dlname~
12823 chmod a+x \$dldir/$dlname'
12824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12825 dlpath=$dir/\$dldll~
12827 shlibpath_overrides_runpath=yes
12831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12833 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12836 # MinGW DLLs use traditional 'lib' prefix
12837 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12838 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12839 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12840 # It is most probably a Windows format PATH printed by
12841 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12842 # path with ; separators, and with drive letters. We can handle the
12843 # drive letters (cygwin fileutils understands them), so leave them,
12844 # especially as we might pass files found there to a mingw objdump,
12845 # which wouldn't understand a cygwinified path. Ahh.
12846 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12852 # pw32 DLLs use 'pw' prefix rather than 'lib'
12853 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12862 dynamic_linker='Win32 ld.exe'
12863 # FIXME: first we should search . and the directory the executable is in
12867 darwin* | rhapsody*)
12868 dynamic_linker="$host_os dyld"
12869 version_type=darwin
12872 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12873 soname_spec='${libname}${release}${major}$shared_ext'
12874 shlibpath_overrides_runpath=yes
12875 shlibpath_var=DYLD_LIBRARY_PATH
12876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12877 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12878 if test "$GCC" = yes; then
12879 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12881 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12883 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 shlibpath_var=LD_LIBRARY_PATH
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12904 soname_spec='${libname}${release}${shared_ext}$major'
12905 shlibpath_var=LD_LIBRARY_PATH
12906 shlibpath_overrides_runpath=no
12907 hardcode_into_libs=yes
12908 dynamic_linker='GNU ld.so'
12911 freebsd* | dragonfly*)
12912 # DragonFly does not have aout. When/if they implement a new
12913 # versioning mechanism, adjust this.
12914 if test -x /usr/bin/objformat; then
12915 objformat=`/usr/bin/objformat`
12918 freebsd[123]*) objformat=aout ;;
12919 *) objformat=elf ;;
12922 version_type=freebsd-$objformat
12923 case $version_type in
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12934 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12939 freebsd3.[01]* | freebsdelf3.[01]*)
12940 shlibpath_overrides_runpath=yes
12941 hardcode_into_libs=yes
12943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12945 shlibpath_overrides_runpath=no
12946 hardcode_into_libs=yes
12948 freebsd*) # from 4.6 on
12949 shlibpath_overrides_runpath=yes
12950 hardcode_into_libs=yes
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12960 soname_spec='${libname}${release}${shared_ext}$major'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 hardcode_into_libs=yes
12965 hpux9* | hpux10* | hpux11*)
12966 # Give a soname corresponding to the major version so that dld.sl refuses to
12967 # link against other versions.
12974 hardcode_into_libs=yes
12975 dynamic_linker="$host_os dld.so"
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979 soname_spec='${libname}${release}${shared_ext}$major'
12980 if test "X$HPUX_IA64_MODE" = X32; then
12981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12989 hardcode_into_libs=yes
12990 dynamic_linker="$host_os dld.sl"
12991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994 soname_spec='${libname}${release}${shared_ext}$major'
12995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13000 dynamic_linker="$host_os dld.sl"
13001 shlibpath_var=SHLIB_PATH
13002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13008 postinstall_cmds='chmod 555 $lib'
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13016 soname_spec='${libname}${release}${shared_ext}$major'
13017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=no
13020 hardcode_into_libs=yes
13023 irix5* | irix6* | nonstopux*)
13025 nonstopux*) version_type=nonstopux ;;
13027 if test "$lt_cv_prog_gnu_ld" = yes; then
13035 soname_spec='${libname}${release}${shared_ext}$major'
13036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13038 irix5* | nonstopux*)
13039 libsuff= shlibsuff=
13042 case $LD in # libtool.m4 will add one of these switches to LD
13043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13044 libsuff= shlibsuff= libmagic=32-bit;;
13045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13046 libsuff=32 shlibsuff=N32 libmagic=N32;;
13047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13049 *) libsuff= shlibsuff= libmagic=never-match;;
13053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13054 shlibpath_overrides_runpath=no
13055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13057 hardcode_into_libs=yes
13060 # No shared lib support for Linux oldld, aout, or coff.
13061 linux*oldld* | linux*aout* | linux*coff*)
13065 # This must be Linux ELF.
13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071 soname_spec='${libname}${release}${shared_ext}$major'
13072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13073 shlibpath_var=LD_LIBRARY_PATH
13074 shlibpath_overrides_runpath=no
13075 # This implies no fast_install, which is unacceptable.
13076 # Some rework will be needed to allow for fast_install
13077 # before this can be enabled.
13078 hardcode_into_libs=yes
13080 # Append ld.so.conf contents to the search path
13081 if test -f /etc/ld.so.conf; then
13082 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13086 # We used to test for /lib/ld.so.1 and disable shared libraries on
13087 # powerpc, because MkLinux only supported shared libraries with the
13088 # GNU dynamic linker. Since this was broken with cross compilers,
13089 # most powerpc-linux boxes support dynamic linking these days and
13090 # people can always --disable-shared, the test was removed, and we
13091 # assume the GNU/Linux dynamic linker is in use.
13092 dynamic_linker='GNU/Linux ld.so'
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13100 soname_spec='${libname}${release}${shared_ext}$major'
13101 shlibpath_var=LD_LIBRARY_PATH
13102 shlibpath_overrides_runpath=no
13103 hardcode_into_libs=yes
13104 dynamic_linker='GNU ld.so'
13111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13114 dynamic_linker='NetBSD (a.out) ld.so'
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 dynamic_linker='NetBSD ld.elf_so'
13120 shlibpath_var=LD_LIBRARY_PATH
13121 shlibpath_overrides_runpath=yes
13122 hardcode_into_libs=yes
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 shlibpath_overrides_runpath=yes
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 shlibpath_overrides_runpath=yes
13144 sys_lib_dlsearch_path_spec="/usr/lib"
13146 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13148 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13149 *) need_version=no ;;
13151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13153 shlibpath_var=LD_LIBRARY_PATH
13154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13156 openbsd2.[89] | openbsd2.[89].*)
13157 shlibpath_overrides_runpath=no
13160 shlibpath_overrides_runpath=yes
13164 shlibpath_overrides_runpath=yes
13169 libname_spec='$name'
13172 library_names_spec='$libname${shared_ext} $libname.a'
13173 dynamic_linker='OS/2 ld.exe'
13174 shlibpath_var=LIBPATH
13177 osf3* | osf4* | osf5*)
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 shlibpath_var=LD_LIBRARY_PATH
13195 shlibpath_overrides_runpath=yes
13196 hardcode_into_libs=yes
13197 # ldd complains unless libraries are executable
13198 postinstall_cmds='chmod +x $lib'
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13205 shlibpath_var=LD_LIBRARY_PATH
13206 shlibpath_overrides_runpath=yes
13207 if test "$with_gnu_ld" = yes; then
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 shlibpath_var=LD_LIBRARY_PATH
13218 case $host_vendor in
13220 shlibpath_overrides_runpath=no
13222 export_dynamic_flag_spec='${wl}-Blargedynsym'
13223 runpath_var=LD_RUN_PATH
13231 shlibpath_overrides_runpath=no
13232 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13238 if test -d /usr/nec ;then
13240 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13241 soname_spec='$libname${shared_ext}.$major'
13242 shlibpath_var=LD_LIBRARY_PATH
13246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13247 version_type=freebsd-elf
13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13251 soname_spec='${libname}${release}${shared_ext}$major'
13252 shlibpath_var=LD_LIBRARY_PATH
13253 hardcode_into_libs=yes
13254 if test "$with_gnu_ld" = yes; then
13255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13256 shlibpath_overrides_runpath=no
13258 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13259 shlibpath_overrides_runpath=yes
13262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13266 sys_lib_dlsearch_path_spec='/usr/lib'
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 shlibpath_var=LD_LIBRARY_PATH
13280 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13281 echo "${ECHO_T}$dynamic_linker" >&6; }
13282 test "$dynamic_linker" = no && can_build_shared=no
13284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13285 if test "$GCC" = yes; then
13286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13289 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13291 hardcode_action_CXX=
13292 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13293 test -n "$runpath_var_CXX" || \
13294 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13296 # We can hardcode non-existant directories.
13297 if test "$hardcode_direct_CXX" != no &&
13298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13299 # have to relink, otherwise we might link with an installed library
13300 # when we should be linking with a yet-to-be-installed one
13301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13302 test "$hardcode_minus_L_CXX" != no; then
13303 # Linking always hardcodes the temporary library directory.
13304 hardcode_action_CXX=relink
13306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13307 hardcode_action_CXX=immediate
13310 # We cannot hardcode anything, or else we can only hardcode existing
13312 hardcode_action_CXX=unsupported
13314 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13315 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13317 if test "$hardcode_action_CXX" = relink; then
13318 # Fast installation is not supported
13319 enable_fast_install=no
13320 elif test "$shlibpath_overrides_runpath" = yes ||
13321 test "$enable_shared" = no; then
13322 # Fast installation is not necessary
13323 enable_fast_install=needless
13327 # The else clause should only fire when bootstrapping the
13328 # libtool distribution, otherwise you forgot to ship ltmain.sh
13329 # with your package, and you will get complaints that there are
13330 # no rules to generate ltmain.sh.
13331 if test -f "$ltmain"; then
13332 # See if we are running on zsh, and set the options which allow our commands through
13333 # without removal of \ escapes.
13334 if test -n "${ZSH_VERSION+set}" ; then
13335 setopt NO_GLOB_SUBST
13337 # Now quote all the things that may contain metacharacters while being
13338 # careful not to overquote the AC_SUBSTed values. We take copies of the
13339 # variables and quote the copies for generation of the libtool script.
13340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13344 deplibs_check_method reload_flag reload_cmds need_locks \
13345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13346 lt_cv_sys_global_symbol_to_c_name_address \
13347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13348 old_postinstall_cmds old_postuninstall_cmds \
13352 lt_prog_compiler_wl_CXX \
13353 lt_prog_compiler_pic_CXX \
13354 lt_prog_compiler_static_CXX \
13355 lt_prog_compiler_no_builtin_flag_CXX \
13356 export_dynamic_flag_spec_CXX \
13357 thread_safe_flag_spec_CXX \
13358 whole_archive_flag_spec_CXX \
13359 enable_shared_with_static_runtimes_CXX \
13360 old_archive_cmds_CXX \
13361 old_archive_from_new_cmds_CXX \
13362 predep_objects_CXX \
13363 postdep_objects_CXX \
13366 compiler_lib_search_path_CXX \
13368 archive_expsym_cmds_CXX \
13369 postinstall_cmds_CXX \
13370 postuninstall_cmds_CXX \
13371 old_archive_from_expsyms_cmds_CXX \
13372 allow_undefined_flag_CXX \
13373 no_undefined_flag_CXX \
13374 export_symbols_cmds_CXX \
13375 hardcode_libdir_flag_spec_CXX \
13376 hardcode_libdir_flag_spec_ld_CXX \
13377 hardcode_libdir_separator_CXX \
13378 hardcode_automatic_CXX \
13380 module_expsym_cmds_CXX \
13381 lt_cv_prog_compiler_c_o_CXX \
13382 exclude_expsyms_CXX \
13383 include_expsyms_CXX; do
13386 old_archive_cmds_CXX | \
13387 old_archive_from_new_cmds_CXX | \
13388 archive_cmds_CXX | \
13389 archive_expsym_cmds_CXX | \
13390 module_cmds_CXX | \
13391 module_expsym_cmds_CXX | \
13392 old_archive_from_expsyms_cmds_CXX | \
13393 export_symbols_cmds_CXX | \
13394 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13395 postinstall_cmds | postuninstall_cmds | \
13396 old_postinstall_cmds | old_postuninstall_cmds | \
13397 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13398 # Double-quote double-evaled strings.
13399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13408 *'\$0 --fallback-echo"')
13409 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13415 cat <<__EOF__ >> "$cfgfile"
13416 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13420 # Shell to use when invoking shell scripts.
13423 # Whether or not to build shared libraries.
13424 build_libtool_libs=$enable_shared
13426 # Whether or not to build static libraries.
13427 build_old_libs=$enable_static
13429 # Whether or not to add -lc for building shared libraries.
13430 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13432 # Whether or not to disallow shared libs when runtime libs are static
13433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13435 # Whether or not to optimize for fast installation.
13436 fast_install=$enable_fast_install
13439 host_alias=$host_alias
13443 # The build system.
13444 build_alias=$build_alias
13448 # An echo program that does not interpret backslashes.
13453 AR_FLAGS=$lt_AR_FLAGS
13458 # LTCC compiler flags.
13459 LTCFLAGS=$lt_LTCFLAGS
13461 # A language-specific compiler.
13462 CC=$lt_compiler_CXX
13464 # Is the compiler the GNU C compiler?
13470 # The linker used to build libraries.
13473 # Whether we need hard or soft links.
13476 # A BSD-compatible nm program.
13479 # A symbol stripping program
13482 # Used to examine libraries when file_magic_cmd begins "file"
13483 MAGIC_CMD=$MAGIC_CMD
13485 # Used on cygwin: DLL creation program.
13488 # Used on cygwin: object dumper.
13491 # Used on cygwin: assembler.
13494 # The name of the directory that contains temporary libtool files.
13497 # How to create reloadable object files.
13498 reload_flag=$lt_reload_flag
13499 reload_cmds=$lt_reload_cmds
13501 # How to pass a linker flag through the compiler.
13502 wl=$lt_lt_prog_compiler_wl_CXX
13504 # Object file suffix (normally "o").
13505 objext="$ac_objext"
13507 # Old archive suffix (normally "a").
13510 # Shared library suffix (normally ".so").
13511 shrext_cmds='$shrext_cmds'
13513 # Executable file suffix (normally "").
13516 # Additional compiler flags for building library objects.
13517 pic_flag=$lt_lt_prog_compiler_pic_CXX
13520 # What is the maximum length of a command?
13521 max_cmd_len=$lt_cv_sys_max_cmd_len
13523 # Does compiler simultaneously support -c and -o options?
13524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13526 # Must we lock files when doing compilation?
13527 need_locks=$lt_need_locks
13529 # Do we need the lib prefix for modules?
13530 need_lib_prefix=$need_lib_prefix
13532 # Do we need a version for libraries?
13533 need_version=$need_version
13535 # Whether dlopen is supported.
13536 dlopen_support=$enable_dlopen
13538 # Whether dlopen of programs is supported.
13539 dlopen_self=$enable_dlopen_self
13541 # Whether dlopen of statically linked programs is supported.
13542 dlopen_self_static=$enable_dlopen_self_static
13544 # Compiler flag to prevent dynamic linking.
13545 link_static_flag=$lt_lt_prog_compiler_static_CXX
13547 # Compiler flag to turn off builtin functions.
13548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13550 # Compiler flag to allow reflexive dlopens.
13551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13553 # Compiler flag to generate shared objects directly from archives.
13554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13556 # Compiler flag to generate thread-safe objects.
13557 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13559 # Library versioning type.
13560 version_type=$version_type
13562 # Format of library name prefix.
13563 libname_spec=$lt_libname_spec
13565 # List of archive names. First name is the real one, the rest are links.
13566 # The last name is the one that the linker finds with -lNAME.
13567 library_names_spec=$lt_library_names_spec
13569 # The coded name of the library, if different from the real name.
13570 soname_spec=$lt_soname_spec
13572 # Commands used to build and install an old-style archive.
13574 old_archive_cmds=$lt_old_archive_cmds_CXX
13575 old_postinstall_cmds=$lt_old_postinstall_cmds
13576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13578 # Create an old-style archive from a shared archive.
13579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13581 # Create a temporary old-style archive to link instead of a shared archive.
13582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13584 # Commands used to build and install a shared archive.
13585 archive_cmds=$lt_archive_cmds_CXX
13586 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13587 postinstall_cmds=$lt_postinstall_cmds
13588 postuninstall_cmds=$lt_postuninstall_cmds
13590 # Commands used to build a loadable module (assumed same as above if empty)
13591 module_cmds=$lt_module_cmds_CXX
13592 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13594 # Commands to strip libraries.
13595 old_striplib=$lt_old_striplib
13596 striplib=$lt_striplib
13598 # Dependencies to place before the objects being linked to create a
13600 predep_objects=$lt_predep_objects_CXX
13602 # Dependencies to place after the objects being linked to create a
13604 postdep_objects=$lt_postdep_objects_CXX
13606 # Dependencies to place before the objects being linked to create a
13608 predeps=$lt_predeps_CXX
13610 # Dependencies to place after the objects being linked to create a
13612 postdeps=$lt_postdeps_CXX
13614 # The library search path used internally by the compiler when linking
13615 # a shared library.
13616 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13618 # Method to check whether dependent libraries are shared objects.
13619 deplibs_check_method=$lt_deplibs_check_method
13621 # Command to use when deplibs_check_method == file_magic.
13622 file_magic_cmd=$lt_file_magic_cmd
13624 # Flag that allows shared libraries with undefined symbols to be built.
13625 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13627 # Flag that forces no undefined symbols.
13628 no_undefined_flag=$lt_no_undefined_flag_CXX
13630 # Commands used to finish a libtool library installation in a directory.
13631 finish_cmds=$lt_finish_cmds
13633 # Same as above, but a single script fragment to be evaled but not shown.
13634 finish_eval=$lt_finish_eval
13636 # Take the output of nm and produce a listing of raw symbols and C names.
13637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13639 # Transform the output of nm in a proper C declaration
13640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13642 # Transform the output of nm in a C name address pair
13643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13645 # This is the shared library runtime path variable.
13646 runpath_var=$runpath_var
13648 # This is the shared library path variable.
13649 shlibpath_var=$shlibpath_var
13651 # Is shlibpath searched before the hard-coded library search path?
13652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13654 # How to hardcode a shared library path into an executable.
13655 hardcode_action=$hardcode_action_CXX
13657 # Whether we should hardcode library paths into libraries.
13658 hardcode_into_libs=$hardcode_into_libs
13660 # Flag to hardcode \$libdir into a binary during linking.
13661 # This must work even if \$libdir does not exist.
13662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13664 # If ld is used when linking, flag to hardcode \$libdir into
13665 # a binary during linking. This must work even if \$libdir does
13667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13669 # Whether we need a single -rpath flag with a separated argument.
13670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13673 # resulting binary.
13674 hardcode_direct=$hardcode_direct_CXX
13676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_minus_L=$hardcode_minus_L_CXX
13680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13681 # the resulting binary.
13682 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13684 # Set to yes if building a shared library automatically hardcodes DIR into the library
13685 # and all subsequent libraries and executables linked against it.
13686 hardcode_automatic=$hardcode_automatic_CXX
13688 # Variables whose values should be saved in libtool wrapper scripts and
13689 # restored at relink time.
13690 variables_saved_for_relink="$variables_saved_for_relink"
13692 # Whether libtool must link a program against all its dependency libraries.
13693 link_all_deplibs=$link_all_deplibs_CXX
13695 # Compile-time system search path for libraries
13696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13698 # Run-time system search path for libraries
13699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13701 # Fix the shell variable \$srcfile for the compiler.
13702 fix_srcfile_path="$fix_srcfile_path_CXX"
13704 # Set to yes if exported symbols are required.
13705 always_export_symbols=$always_export_symbols_CXX
13707 # The commands to list exported symbols.
13708 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13710 # The commands to extract the exported symbol list from a shared archive.
13711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13713 # Symbols that should not be listed in the preloaded symbols.
13714 exclude_expsyms=$lt_exclude_expsyms_CXX
13716 # Symbols that must always be exported.
13717 include_expsyms=$lt_include_expsyms_CXX
13719 # ### END LIBTOOL TAG CONFIG: $tagname
13725 # If there is no Makefile yet, we rely on a make rule to execute
13726 # `config.status --recheck' to rerun these tests and create the
13727 # libtool script then.
13728 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13729 if test -f "$ltmain_in"; then
13730 test -f Makefile && make "$ltmain"
13736 ac_cpp='$CPP $CPPFLAGS'
13737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13745 with_gnu_ldcxx=$with_gnu_ld
13746 with_gnu_ld=$lt_save_with_gnu_ld
13747 lt_cv_path_LDCXX=$lt_cv_path_LD
13748 lt_cv_path_LD=$lt_save_path_LD
13749 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13750 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13758 if test -n "$F77" && test "X$F77" != "Xno"; then
13761 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13762 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13766 archive_cmds_need_lc_F77=no
13767 allow_undefined_flag_F77=
13768 always_export_symbols_F77=no
13769 archive_expsym_cmds_F77=
13770 export_dynamic_flag_spec_F77=
13771 hardcode_direct_F77=no
13772 hardcode_libdir_flag_spec_F77=
13773 hardcode_libdir_flag_spec_ld_F77=
13774 hardcode_libdir_separator_F77=
13775 hardcode_minus_L_F77=no
13776 hardcode_automatic_F77=no
13778 module_expsym_cmds_F77=
13779 link_all_deplibs_F77=unknown
13780 old_archive_cmds_F77=$old_archive_cmds
13781 no_undefined_flag_F77=
13782 whole_archive_flag_spec_F77=
13783 enable_shared_with_static_runtimes_F77=no
13785 # Source file extension for f77 test sources.
13788 # Object file extension for compiled f77 test sources.
13792 # Code to be used in simple compile tests
13793 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13795 # Code to be used in simple link tests
13796 lt_simple_link_test_code=" program t\n end\n"
13798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13800 # If no C compiler was specified, use CC.
13803 # If no C compiler flags were specified, use CFLAGS.
13804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13806 # Allow CC to be a program name with arguments.
13810 # save warnings/boilerplate of simple test code
13811 ac_outfile=conftest.$ac_objext
13812 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13814 _lt_compiler_boilerplate=`cat conftest.err`
13817 ac_outfile=conftest.$ac_objext
13818 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13820 _lt_linker_boilerplate=`cat conftest.err`
13824 # Allow CC to be a program name with arguments.
13829 for cc_temp in $compiler""; do
13831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13840 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13841 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13842 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13843 echo "${ECHO_T}$can_build_shared" >&6; }
13845 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13846 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13847 test "$can_build_shared" = "no" && enable_shared=no
13849 # On AIX, shared libraries and static libraries use the same namespace, and
13850 # are all built from PIC.
13853 test "$enable_shared" = yes && enable_static=no
13854 if test -n "$RANLIB"; then
13855 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13856 postinstall_cmds='$RANLIB $lib'
13860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13861 test "$enable_shared" = yes && enable_static=no
13865 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13866 echo "${ECHO_T}$enable_shared" >&6; }
13868 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13869 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13870 # Make sure either enable_shared or enable_static is yes.
13871 test "$enable_shared" = yes || enable_static=yes
13872 { echo "$as_me:$LINENO: result: $enable_static" >&5
13873 echo "${ECHO_T}$enable_static" >&6; }
13878 lt_prog_compiler_wl_F77=
13879 lt_prog_compiler_pic_F77=
13880 lt_prog_compiler_static_F77=
13882 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13883 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13885 if test "$GCC" = yes; then
13886 lt_prog_compiler_wl_F77='-Wl,'
13887 lt_prog_compiler_static_F77='-static'
13891 # All AIX code is PIC.
13892 if test "$host_cpu" = ia64; then
13893 # AIX 5 now supports IA64 processor
13894 lt_prog_compiler_static_F77='-Bstatic'
13899 # FIXME: we need at least 68020 code to build shared libraries, but
13900 # adding the `-m68020' flag to GCC prevents building anything better,
13902 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13905 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13906 # PIC is the default for these OSes.
13909 mingw* | pw32* | os2*)
13910 # This hack is so that the source file can tell whether it is being
13911 # built for inclusion in a dll (and should export symbols for example).
13912 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13915 darwin* | rhapsody*)
13916 # PIC is the default on this platform
13917 # Common symbols not allowed in MH_DYLIB files
13918 lt_prog_compiler_pic_F77='-fno-common'
13922 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13923 # Instead, we relocate shared libraries at runtime.
13927 # Just because we use GCC doesn't mean we suddenly get shared libraries
13928 # on systems that don't support them.
13929 lt_prog_compiler_can_build_shared_F77=no
13934 if test -d /usr/nec; then
13935 lt_prog_compiler_pic_F77=-Kconform_pic
13940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13941 # not for PA HP-UX.
13947 lt_prog_compiler_pic_F77='-fPIC'
13953 lt_prog_compiler_pic_F77='-fPIC'
13957 # PORTME Check for flag to pass linker flags through the system compiler.
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 if test "$host_cpu" = ia64; then
13962 # AIX 5 now supports IA64 processor
13963 lt_prog_compiler_static_F77='-Bstatic'
13965 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13969 # PIC is the default on this platform
13970 # Common symbols not allowed in MH_DYLIB files
13971 case $cc_basename in
13973 lt_prog_compiler_pic_F77='-qnocommon'
13974 lt_prog_compiler_wl_F77='-Wl,'
13979 mingw* | pw32* | os2*)
13980 # This hack is so that the source file can tell whether it is being
13981 # built for inclusion in a dll (and should export symbols for example).
13982 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13985 hpux9* | hpux10* | hpux11*)
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13988 # not for PA HP-UX.
13994 lt_prog_compiler_pic_F77='+Z'
13997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13998 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14001 irix5* | irix6* | nonstopux*)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 # PIC (with -KPIC) is the default.
14004 lt_prog_compiler_static_F77='-non_shared'
14008 lt_prog_compiler_pic_F77='-KPIC'
14009 lt_prog_compiler_static_F77='-Bstatic'
14013 case $cc_basename in
14015 lt_prog_compiler_wl_F77='-Wl,'
14016 lt_prog_compiler_pic_F77='-KPIC'
14017 lt_prog_compiler_static_F77='-static'
14019 pgcc* | pgf77* | pgf90* | pgf95*)
14020 # Portland Group compilers (*not* the Pentium gcc compiler,
14021 # which looks to be a dead project)
14022 lt_prog_compiler_wl_F77='-Wl,'
14023 lt_prog_compiler_pic_F77='-fpic'
14024 lt_prog_compiler_static_F77='-Bstatic'
14027 lt_prog_compiler_wl_F77='-Wl,'
14028 # All Alpha code is PIC.
14029 lt_prog_compiler_static_F77='-non_shared'
14034 osf3* | osf4* | osf5*)
14035 lt_prog_compiler_wl_F77='-Wl,'
14036 # All OSF/1 code is PIC.
14037 lt_prog_compiler_static_F77='-non_shared'
14041 lt_prog_compiler_pic_F77='-KPIC'
14042 lt_prog_compiler_static_F77='-Bstatic'
14043 case $cc_basename in
14044 f77* | f90* | f95*)
14045 lt_prog_compiler_wl_F77='-Qoption ld ';;
14047 lt_prog_compiler_wl_F77='-Wl,';;
14052 lt_prog_compiler_wl_F77='-Qoption ld '
14053 lt_prog_compiler_pic_F77='-PIC'
14054 lt_prog_compiler_static_F77='-Bstatic'
14057 sysv4 | sysv4.2uw2* | sysv4.3*)
14058 lt_prog_compiler_wl_F77='-Wl,'
14059 lt_prog_compiler_pic_F77='-KPIC'
14060 lt_prog_compiler_static_F77='-Bstatic'
14064 if test -d /usr/nec ;then
14065 lt_prog_compiler_pic_F77='-Kconform_pic'
14066 lt_prog_compiler_static_F77='-Bstatic'
14070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14071 lt_prog_compiler_wl_F77='-Wl,'
14072 lt_prog_compiler_pic_F77='-KPIC'
14073 lt_prog_compiler_static_F77='-Bstatic'
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_can_build_shared_F77=no
14082 lt_prog_compiler_pic_F77='-pic'
14083 lt_prog_compiler_static_F77='-Bstatic'
14087 lt_prog_compiler_can_build_shared_F77=no
14092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14093 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14096 # Check to make sure the PIC flag actually works.
14098 if test -n "$lt_prog_compiler_pic_F77"; then
14100 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14101 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14102 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 lt_prog_compiler_pic_works_F77=no
14106 ac_outfile=conftest.$ac_objext
14107 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14108 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14109 # Insert the option either (1) after the last *FLAGS variable, or
14110 # (2) before a word containing "conftest.", or (3) at the end.
14111 # Note that $ac_compile itself does not contain backslashes and begins
14112 # with a dollar sign (not a hyphen), so the echo should work correctly.
14113 # The option is referenced via a variable to avoid confusing sed.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
14118 (eval echo "\"\$as_me:14118: $lt_compile\"" >&5)
14119 (eval "$lt_compile" 2>conftest.err)
14121 cat conftest.err >&5
14122 echo "$as_me:14122: \$? = $ac_status" >&5
14123 if (exit $ac_status) && test -s "$ac_outfile"; then
14124 # The compiler can only warn and ignore the option if not recognized
14125 # So say no if there are warnings other than the usual output.
14126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14129 lt_prog_compiler_pic_works_F77=yes
14135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14136 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14138 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14139 case $lt_prog_compiler_pic_F77 in
14141 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14144 lt_prog_compiler_pic_F77=
14145 lt_prog_compiler_can_build_shared_F77=no
14150 # For platforms which do not support PIC, -DPIC is meaningless:
14152 lt_prog_compiler_pic_F77=
14155 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14160 # Check to make sure the static flag actually works.
14162 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14163 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14164 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14165 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 lt_prog_compiler_static_works_F77=no
14169 save_LDFLAGS="$LDFLAGS"
14170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14171 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14173 # The linker can only warn and ignore the option if not recognized
14174 # So say no if there are warnings
14175 if test -s conftest.err; then
14176 # Append any errors to the config.log.
14177 cat conftest.err 1>&5
14178 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14180 if diff conftest.exp conftest.er2 >/dev/null; then
14181 lt_prog_compiler_static_works_F77=yes
14184 lt_prog_compiler_static_works_F77=yes
14188 LDFLAGS="$save_LDFLAGS"
14191 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14192 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14194 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14197 lt_prog_compiler_static_F77=
14201 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14203 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 lt_cv_prog_compiler_c_o_F77=no
14207 $rm -r conftest 2>/dev/null
14211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14213 lt_compiler_flag="-o out/conftest2.$ac_objext"
14214 # Insert the option either (1) after the last *FLAGS variable, or
14215 # (2) before a word containing "conftest.", or (3) at the end.
14216 # Note that $ac_compile itself does not contain backslashes and begins
14217 # with a dollar sign (not a hyphen), so the echo should work correctly.
14218 lt_compile=`echo "$ac_compile" | $SED \
14219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221 -e 's:$: $lt_compiler_flag:'`
14222 (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223 (eval "$lt_compile" 2>out/conftest.err)
14225 cat out/conftest.err >&5
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14229 # The compiler can only warn and ignore the option if not recognized
14230 # So say no if there are warnings
14231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14234 lt_cv_prog_compiler_c_o_F77=yes
14239 # SGI C++ compiler will create directory out/ii_files/ for
14240 # template instantiation
14241 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14242 $rm out/* && rmdir out
14248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14249 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14252 hard_links="nottested"
14253 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14254 # do not overwrite the value of need_locks provided by the user
14255 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14256 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14261 ln conftest.a conftest.b 2>&5 || hard_links=no
14262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263 { echo "$as_me:$LINENO: result: $hard_links" >&5
14264 echo "${ECHO_T}$hard_links" >&6; }
14265 if test "$hard_links" = no; then
14266 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14267 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14274 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14275 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14278 allow_undefined_flag_F77=
14279 enable_shared_with_static_runtimes_F77=no
14281 archive_expsym_cmds_F77=
14282 old_archive_From_new_cmds_F77=
14283 old_archive_from_expsyms_cmds_F77=
14284 export_dynamic_flag_spec_F77=
14285 whole_archive_flag_spec_F77=
14286 thread_safe_flag_spec_F77=
14287 hardcode_libdir_flag_spec_F77=
14288 hardcode_libdir_flag_spec_ld_F77=
14289 hardcode_libdir_separator_F77=
14290 hardcode_direct_F77=no
14291 hardcode_minus_L_F77=no
14292 hardcode_shlibpath_var_F77=unsupported
14293 link_all_deplibs_F77=unknown
14294 hardcode_automatic_F77=no
14296 module_expsym_cmds_F77=
14297 always_export_symbols_F77=no
14298 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14299 # include_expsyms should be a list of space-separated symbols to be *always*
14300 # included in the symbol list
14301 include_expsyms_F77=
14302 # exclude_expsyms can be an extended regexp of symbols to exclude
14303 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14305 # as well as any symbol that contains `d'.
14306 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14308 # platforms (ab)use it in PIC code, but their linkers get confused if
14309 # the symbol is explicitly referenced. Since portable code cannot
14310 # rely on this symbol name, it's probably fine to never include it in
14311 # preloaded symbol tables.
14312 extract_expsyms_cmds=
14313 # Just being paranoid about ensuring that cc_basename is set.
14314 for cc_temp in $compiler""; do
14316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14325 cygwin* | mingw* | pw32*)
14326 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14327 # When not using gcc, we currently assume that we are using
14328 # Microsoft Visual C++.
14329 if test "$GCC" != yes; then
14334 # we just hope/assume this is gcc and not c89 (= MSVC++)
14343 if test "$with_gnu_ld" = yes; then
14344 # If archive_cmds runs LD, not CC, wlarc should be empty
14347 # Set some defaults for GNU ld with shared library support. These
14348 # are reset later if shared libraries are not supported. Putting them
14349 # here allows them to be overridden if necessary.
14350 runpath_var=LD_RUN_PATH
14351 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14352 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14353 # ancient GNU ld didn't support --whole-archive et. al.
14354 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14355 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14357 whole_archive_flag_spec_F77=
14359 supports_anon_versioning=no
14360 case `$LD -v 2>/dev/null` in
14361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14364 *\ 2.11.*) ;; # other 2.11 versions
14365 *) supports_anon_versioning=yes ;;
14368 # See if GNU ld supports shared libraries.
14370 aix3* | aix4* | aix5*)
14371 # On AIX/PPC, the GNU linker is very broken
14372 if test "$host_cpu" != ia64; then
14376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14377 *** to be unable to reliably create shared libraries on AIX.
14378 *** Therefore, libtool is disabling shared libraries support. If you
14379 *** really care for shared libraries, you may want to modify your PATH
14380 *** so that a non-GNU linker is found, and then restart.
14387 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)'
14388 hardcode_libdir_flag_spec_F77='-L$libdir'
14389 hardcode_minus_L_F77=yes
14391 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14392 # that the semantics of dynamic libraries on AmigaOS, at least up
14393 # to version 4, is to share data among multiple programs linked
14394 # with the same dynamic library. Since this doesn't match the
14395 # behavior of shared libraries on other platforms, we can't use
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 allow_undefined_flag_F77=unsupported
14403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14404 # support --undefined. This deserves some investigation. FIXME
14405 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411 cygwin* | mingw* | pw32*)
14412 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14413 # as there is no search path for DLLs.
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 allow_undefined_flag_F77=unsupported
14416 always_export_symbols_F77=no
14417 enable_shared_with_static_runtimes_F77=yes
14418 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14422 # If the export-symbols file already is a .def file (1st line
14423 # is EXPORTS), use it as is; otherwise, prepend...
14424 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14425 cp $export_symbols $output_objdir/$soname.def;
14427 echo EXPORTS > $output_objdir/$soname.def;
14428 cat $export_symbols >> $output_objdir/$soname.def;
14430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14437 hardcode_direct_F77=no
14438 hardcode_shlibpath_var_F77=no
14439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14440 export_dynamic_flag_spec_F77='${wl}-E'
14441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14442 # Instead, shared libraries are loaded at an image base (0x10000000 by
14443 # default) and relocated if they conflict, which is a slow very memory
14444 # consuming and fragmenting process. To avoid this, we pick a random,
14445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14447 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'
14448 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'
14452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14454 case $cc_basename,$host_cpu in
14455 pgcc*) # Portland Group C compiler
14456 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'
14457 tmp_addflag=' $pic_flag'
14459 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14460 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'
14461 tmp_addflag=' $pic_flag -Mnomain' ;;
14462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14463 tmp_addflag=' -i_dynamic' ;;
14464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14465 tmp_addflag=' -i_dynamic -nofor_main' ;;
14466 ifc* | ifort*) # Intel Fortran compiler
14467 tmp_addflag=' -nofor_main' ;;
14469 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14471 if test $supports_anon_versioning = yes; then
14472 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14474 $echo "local: *; };" >> $output_objdir/$libname.ver~
14475 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14484 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14493 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14498 *** create shared libraries on Solaris systems. Therefore, libtool
14499 *** is disabling shared libraries support. We urge you to upgrade GNU
14500 *** binutils to release 2.9.1 or newer. Another option is to modify
14501 *** your PATH or compiler configuration so that the native linker is
14502 *** used, and then restart.
14505 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14507 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14514 case `$LD -v 2>&1` in
14515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14520 *** reliably create shared libraries on SCO systems. Therefore, libtool
14521 *** is disabling shared libraries support. We urge you to upgrade GNU
14522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14523 *** your PATH or compiler configuration so that the native linker is
14524 *** used, and then restart.
14529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14530 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14531 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14532 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14541 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14543 hardcode_direct_F77=yes
14544 hardcode_shlibpath_var_F77=no
14548 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14557 if test "$ld_shlibs_F77" = no; then
14559 hardcode_libdir_flag_spec_F77=
14560 export_dynamic_flag_spec_F77=
14561 whole_archive_flag_spec_F77=
14564 # PORTME fill in a description of your system's linker (not GNU ld)
14567 allow_undefined_flag_F77=unsupported
14568 always_export_symbols_F77=yes
14569 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'
14570 # Note: this linker hardcodes the directories in LIBPATH if there
14571 # are no directories specified by -L.
14572 hardcode_minus_L_F77=yes
14573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14574 # Neither direct hardcoding nor static linking is supported with a
14576 hardcode_direct_F77=unsupported
14581 if test "$host_cpu" = ia64; then
14582 # On IA64, the linker does run time linking by default, so we don't
14583 # have to do anything special.
14584 aix_use_runtimelinking=no
14585 exp_sym_flag='-Bexport'
14588 # If we're using GNU nm, then we don't want the "-C" option.
14589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14590 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14591 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'
14593 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'
14595 aix_use_runtimelinking=no
14597 # Test if we are trying to use run time linking or normal
14598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14599 # need to do runtime linking.
14600 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14601 for ld_flag in $LDFLAGS; do
14602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14603 aix_use_runtimelinking=yes
14610 exp_sym_flag='-bexport'
14611 no_entry_flag='-bnoentry'
14614 # When large executables or shared objects are built, AIX ld can
14615 # have problems creating the table of contents. If linking a library
14616 # or program results in "error TOC overflow" add -mminimal-toc to
14617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14620 archive_cmds_F77=''
14621 hardcode_direct_F77=yes
14622 hardcode_libdir_separator_F77=':'
14623 link_all_deplibs_F77=yes
14625 if test "$GCC" = yes; then
14626 case $host_os in aix4.[012]|aix4.[012].*)
14627 # We only want to do this on AIX 4.2 and lower, the check
14628 # below for broken collect2 doesn't work under 4.3+
14629 collect2name=`${CC} -print-prog-name=collect2`
14630 if test -f "$collect2name" && \
14631 strings "$collect2name" | grep resolve_lib_name >/dev/null
14633 # We have reworked collect2
14634 hardcode_direct_F77=yes
14636 # We have old collect2
14637 hardcode_direct_F77=unsupported
14638 # It fails to find uninstalled libraries when the uninstalled
14639 # path is not listed in the libpath. Setting hardcode_minus_L
14640 # to unsupported forces relinking
14641 hardcode_minus_L_F77=yes
14642 hardcode_libdir_flag_spec_F77='-L$libdir'
14643 hardcode_libdir_separator_F77=
14647 shared_flag='-shared'
14648 if test "$aix_use_runtimelinking" = yes; then
14649 shared_flag="$shared_flag "'${wl}-G'
14653 if test "$host_cpu" = ia64; then
14654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14655 # chokes on -Wl,-G. The following line is correct:
14658 if test "$aix_use_runtimelinking" = yes; then
14659 shared_flag='${wl}-G'
14661 shared_flag='${wl}-bM:SRE'
14666 # It seems that -bexpall does not export symbols beginning with
14667 # underscore (_), so it is better to generate a list of symbols to export.
14668 always_export_symbols_F77=yes
14669 if test "$aix_use_runtimelinking" = yes; then
14670 # Warning - without using the other runtime loading flags (-brtl),
14671 # -berok will link without error, but may produce a broken library.
14672 allow_undefined_flag_F77='-berok'
14673 # Determine the default libpath from the value encoded in an empty executable.
14674 cat >conftest.$ac_ext <<_ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_link") 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } && {
14693 test -z "$ac_f77_werror_flag" ||
14694 test ! -s conftest.err
14695 } && test -s conftest$ac_exeext &&
14696 $as_test_x conftest$ac_exeext; then
14698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14700 # Check for a 64-bit object if we didn't find anything.
14701 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14711 conftest$ac_exeext conftest.$ac_ext
14712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14714 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14715 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"
14717 if test "$host_cpu" = ia64; then
14718 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14719 allow_undefined_flag_F77="-z nodefs"
14720 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"
14722 # Determine the default libpath from the value encoded in an empty executable.
14723 cat >conftest.$ac_ext <<_ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732 *) ac_try_echo=$ac_try;;
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735 (eval "$ac_link") 2>conftest.er1
14737 grep -v '^ *+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && {
14742 test -z "$ac_f77_werror_flag" ||
14743 test ! -s conftest.err
14744 } && test -s conftest$ac_exeext &&
14745 $as_test_x conftest$ac_exeext; then
14747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14749 # Check for a 64-bit object if we didn't find anything.
14750 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14760 conftest$ac_exeext conftest.$ac_ext
14761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14763 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14764 # Warning - without using the other run time loading flags,
14765 # -berok will link without error, but may produce a broken library.
14766 no_undefined_flag_F77=' ${wl}-bernotok'
14767 allow_undefined_flag_F77=' ${wl}-berok'
14768 # Exported symbols can be pulled into shared objects from archives
14769 whole_archive_flag_spec_F77='$convenience'
14770 archive_cmds_need_lc_F77=yes
14771 # This is similar to how AIX traditionally builds its shared libraries.
14772 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'
14778 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)'
14779 hardcode_libdir_flag_spec_F77='-L$libdir'
14780 hardcode_minus_L_F77=yes
14781 # see comment about different semantics on the GNU ld section
14786 export_dynamic_flag_spec_F77=-rdynamic
14789 cygwin* | mingw* | pw32*)
14790 # When not using gcc, we currently assume that we are using
14791 # Microsoft Visual C++.
14792 # hardcode_libdir_flag_spec is actually meaningless, as there is
14793 # no search path for DLLs.
14794 hardcode_libdir_flag_spec_F77=' '
14795 allow_undefined_flag_F77=unsupported
14796 # Tell ltmain to make .lib files, not .a files.
14798 # Tell ltmain to make .dll files, not .so files.
14800 # FIXME: Setting linknames here is a bad hack.
14801 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14802 # The linker will automatically build a .lib file if we build a DLL.
14803 old_archive_From_new_cmds_F77='true'
14804 # FIXME: Should let the user specify the lib program.
14805 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14806 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14807 enable_shared_with_static_runtimes_F77=yes
14810 darwin* | rhapsody*)
14812 rhapsody* | darwin1.[012])
14813 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14816 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14817 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14819 case ${MACOSX_DEPLOYMENT_TARGET} in
14821 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14824 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14830 archive_cmds_need_lc_F77=no
14831 hardcode_direct_F77=no
14832 hardcode_automatic_F77=yes
14833 hardcode_shlibpath_var_F77=unsupported
14834 whole_archive_flag_spec_F77=''
14835 link_all_deplibs_F77=yes
14836 if test "$GCC" = yes ; then
14837 output_verbose_link_cmd='echo'
14838 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14839 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14840 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14841 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14842 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}'
14844 case $cc_basename in
14846 output_verbose_link_cmd='echo'
14847 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14848 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14849 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14850 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14851 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}'
14861 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14862 hardcode_libdir_flag_spec_F77='-L$libdir'
14863 hardcode_shlibpath_var_F77=no
14870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14871 # support. Future versions do this automatically, but an explicit c++rt0.o
14872 # does not break anything, and helps significantly (at the cost of a little
14875 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14876 hardcode_libdir_flag_spec_F77='-R$libdir'
14877 hardcode_direct_F77=yes
14878 hardcode_shlibpath_var_F77=no
14881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14883 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 hardcode_direct_F77=yes
14885 hardcode_minus_L_F77=yes
14886 hardcode_shlibpath_var_F77=no
14889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14890 freebsd* | kfreebsd*-gnu | dragonfly*)
14891 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14892 hardcode_libdir_flag_spec_F77='-R$libdir'
14893 hardcode_direct_F77=yes
14894 hardcode_shlibpath_var_F77=no
14898 if test "$GCC" = yes; then
14899 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'
14901 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'
14903 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14904 hardcode_libdir_separator_F77=:
14905 hardcode_direct_F77=yes
14907 # hardcode_minus_L: Not really in the search PATH,
14908 # but as the default location of the library.
14909 hardcode_minus_L_F77=yes
14910 export_dynamic_flag_spec_F77='${wl}-E'
14914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14915 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14919 if test "$with_gnu_ld" = no; then
14920 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14921 hardcode_libdir_separator_F77=:
14923 hardcode_direct_F77=yes
14924 export_dynamic_flag_spec_F77='${wl}-E'
14926 # hardcode_minus_L: Not really in the search PATH,
14927 # but as the default location of the library.
14928 hardcode_minus_L_F77=yes
14933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14936 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14939 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14948 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14958 if test "$with_gnu_ld" = no; then
14959 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14960 hardcode_libdir_separator_F77=:
14964 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14965 hardcode_direct_F77=no
14966 hardcode_shlibpath_var_F77=no
14969 hardcode_direct_F77=yes
14970 export_dynamic_flag_spec_F77='${wl}-E'
14972 # hardcode_minus_L: Not really in the search PATH,
14973 # but as the default location of the library.
14974 hardcode_minus_L_F77=yes
14980 irix5* | irix6* | nonstopux*)
14981 if test "$GCC" = yes; then
14982 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'
14984 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'
14985 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14988 hardcode_libdir_separator_F77=:
14989 link_all_deplibs_F77=yes
14993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14996 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14998 hardcode_libdir_flag_spec_F77='-R$libdir'
14999 hardcode_direct_F77=yes
15000 hardcode_shlibpath_var_F77=no
15004 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005 hardcode_direct_F77=yes
15006 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15007 hardcode_libdir_separator_F77=:
15008 hardcode_shlibpath_var_F77=no
15012 hardcode_direct_F77=yes
15013 hardcode_shlibpath_var_F77=no
15014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15015 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15016 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15017 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15018 export_dynamic_flag_spec_F77='${wl}-E'
15021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15022 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_libdir_flag_spec_F77='-R$libdir'
15026 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15027 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15034 hardcode_libdir_flag_spec_F77='-L$libdir'
15035 hardcode_minus_L_F77=yes
15036 allow_undefined_flag_F77=unsupported
15037 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'
15038 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15042 if test "$GCC" = yes; then
15043 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15044 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'
15046 allow_undefined_flag_F77=' -expect_unresolved \*'
15047 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'
15049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15050 hardcode_libdir_separator_F77=:
15053 osf4* | osf5*) # as osf3* with the addition of -msym flag
15054 if test "$GCC" = yes; then
15055 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15056 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'
15057 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15059 allow_undefined_flag_F77=' -expect_unresolved \*'
15060 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'
15061 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~
15062 $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'
15064 # Both c and cxx compiler support -rpath directly
15065 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15067 hardcode_libdir_separator_F77=:
15071 no_undefined_flag_F77=' -z text'
15072 if test "$GCC" = yes; then
15074 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15076 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15079 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15083 hardcode_libdir_flag_spec_F77='-R$libdir'
15084 hardcode_shlibpath_var_F77=no
15086 solaris2.[0-5] | solaris2.[0-5].*) ;;
15088 # The compiler driver will combine linker options so we
15089 # cannot just pass the convience library names through
15090 # without $wl, iff we do not link with $LD.
15091 # Luckily, gcc supports the same syntax we need for Sun Studio.
15092 # Supported since Solaris 2.6 (maybe 2.5.1?)
15095 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15097 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15100 link_all_deplibs_F77=yes
15104 if test "x$host_vendor" = xsequent; then
15105 # Use $CC to link under sequent, because it throws in some extra .o
15106 # files that make .init and .fini sections work.
15107 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15109 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_libdir_flag_spec_F77='-L$libdir'
15112 hardcode_direct_F77=yes
15113 hardcode_minus_L_F77=yes
15114 hardcode_shlibpath_var_F77=no
15118 case $host_vendor in
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_direct_F77=yes # is this really true???
15124 ## LD is ld it makes a PLAMLIB
15125 ## CC just makes a GrossModule.
15126 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15127 reload_cmds_F77='$CC -r -o $output$reload_objs'
15128 hardcode_direct_F77=no
15131 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15135 runpath_var='LD_RUN_PATH'
15136 hardcode_shlibpath_var_F77=no
15140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141 hardcode_shlibpath_var_F77=no
15142 export_dynamic_flag_spec_F77='-Bexport'
15146 if test -d /usr/nec; then
15147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15148 hardcode_shlibpath_var_F77=no
15149 runpath_var=LD_RUN_PATH
15150 hardcode_runpath_var=yes
15155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15156 no_undefined_flag_F77='${wl}-z,text'
15157 archive_cmds_need_lc_F77=no
15158 hardcode_shlibpath_var_F77=no
15159 runpath_var='LD_RUN_PATH'
15161 if test "$GCC" = yes; then
15162 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15165 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170 sysv5* | sco3.2v5* | sco5v6*)
15171 # Note: We can NOT use -z defs as we might desire, because we do not
15172 # link with -lc, and that would cause any symbols used from libc to
15173 # always be unresolved, which means just about no library would
15174 # ever link correctly. If we're not using GNU ld we use -z text
15175 # though, which does catch some bad symbols but isn't as heavy-handed
15177 no_undefined_flag_F77='${wl}-z,text'
15178 allow_undefined_flag_F77='${wl}-z,nodefs'
15179 archive_cmds_need_lc_F77=no
15180 hardcode_shlibpath_var_F77=no
15181 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15182 hardcode_libdir_separator_F77=':'
15183 link_all_deplibs_F77=yes
15184 export_dynamic_flag_spec_F77='${wl}-Bexport'
15185 runpath_var='LD_RUN_PATH'
15187 if test "$GCC" = yes; then
15188 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198 hardcode_libdir_flag_spec_F77='-L$libdir'
15199 hardcode_shlibpath_var_F77=no
15208 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15209 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15210 test "$ld_shlibs_F77" = no && can_build_shared=no
15213 # Do we need to explicitly link libc?
15215 case "x$archive_cmds_need_lc_F77" in
15217 # Assume -lc should be added
15218 archive_cmds_need_lc_F77=yes
15220 if test "$enable_shared" = yes && test "$GCC" = yes; then
15221 case $archive_cmds_F77 in
15223 # FIXME: we may have to deal with multi-command sequences.
15226 # Test whether the compiler implicitly links with -lc since on some
15227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15228 # to ld, don't add -lc before -lgcc.
15229 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } 2>conftest.err; then
15241 libobjs=conftest.$ac_objext
15243 wl=$lt_prog_compiler_wl_F77
15244 pic_flag=$lt_prog_compiler_pic_F77
15250 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15251 allow_undefined_flag_F77=
15252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15253 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }
15258 archive_cmds_need_lc_F77=no
15260 archive_cmds_need_lc_F77=yes
15262 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15264 cat conftest.err 1>&5
15267 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15268 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15275 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15277 library_names_spec=
15278 libname_spec='lib$name'
15282 postuninstall_cmds=
15286 shlibpath_overrides_runpath=unknown
15288 dynamic_linker="$host_os ld.so"
15289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15290 if test "$GCC" = yes; then
15291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15292 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15293 # if the path contains ";" then we assume it to be the separator
15294 # otherwise default to the standard path separator (i.e. ":") - it is
15295 # assumed that no part of a normal pathname contains ";" but that should
15296 # okay in the real world where ";" in dirpaths is itself problematic.
15297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15304 need_lib_prefix=unknown
15305 hardcode_into_libs=no
15307 # when you set need_version to no, make sure it does not cause -set_version
15308 # flags to be left without arguments
15309 need_version=unknown
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15315 shlibpath_var=LIBPATH
15317 # AIX 3 has no versioning support, so we append a major version to the name.
15318 soname_spec='${libname}${release}${shared_ext}$major'
15325 hardcode_into_libs=yes
15326 if test "$host_cpu" = ia64; then
15327 # AIX 5 supports IA64
15328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15329 shlibpath_var=LD_LIBRARY_PATH
15331 # With GCC up to 2.95.x, collect2 would create an import file
15332 # for dependence libraries. The import file would start with
15333 # the line `#! .'. This would cause the generated library to
15334 # depend on `.', always an invalid library. This was fixed in
15335 # development snapshots of GCC prior to 3.0.
15337 aix4 | aix4.[01] | aix4.[01].*)
15338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15343 can_build_shared=no
15347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15348 # soname into executable. Probably we can add versioning support to
15349 # collect2, so additional links can be useful in future.
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15352 # instead of lib<name>.a to let people know that these are not
15353 # typical AIX shared libraries.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 # We preserve .a as extension for shared libraries through AIX4.2
15357 # and later when we are not doing run time linking.
15358 library_names_spec='${libname}${release}.a $libname.a'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15361 shlibpath_var=LIBPATH
15366 library_names_spec='$libname.ixlibrary $libname.a'
15367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15368 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'
15372 library_names_spec='${libname}${shared_ext}'
15373 dynamic_linker="$host_os ld.so"
15374 shlibpath_var=LIBRARY_PATH
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15386 # the default ld.so.conf also contains /usr/contrib/lib and
15387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15388 # libtool to hard-code these into programs
15391 cygwin* | mingw* | pw32*)
15392 version_type=windows
15397 case $GCC,$host_os in
15398 yes,cygwin* | yes,mingw* | yes,pw32*)
15399 library_names_spec='$libname.dll.a'
15400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15401 postinstall_cmds='base_file=`basename \${file}`~
15402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15403 dldir=$destdir/`dirname \$dlpath`~
15404 test -d \$dldir || mkdir -p \$dldir~
15405 $install_prog $dir/$dlname \$dldir/$dlname~
15406 chmod a+x \$dldir/$dlname'
15407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15408 dlpath=$dir/\$dldll~
15410 shlibpath_overrides_runpath=yes
15414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15419 # MinGW DLLs use traditional 'lib' prefix
15420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15423 # It is most probably a Windows format PATH printed by
15424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15425 # path with ; separators, and with drive letters. We can handle the
15426 # drive letters (cygwin fileutils understands them), so leave them,
15427 # especially as we might pass files found there to a mingw objdump,
15428 # which wouldn't understand a cygwinified path. Ahh.
15429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15435 # pw32 DLLs use 'pw' prefix rather than 'lib'
15436 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15445 dynamic_linker='Win32 ld.exe'
15446 # FIXME: first we should search . and the directory the executable is in
15450 darwin* | rhapsody*)
15451 dynamic_linker="$host_os dyld"
15452 version_type=darwin
15455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15456 soname_spec='${libname}${release}${major}$shared_ext'
15457 shlibpath_overrides_runpath=yes
15458 shlibpath_var=DYLD_LIBRARY_PATH
15459 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15461 if test "$GCC" = yes; then
15462 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 shlibpath_overrides_runpath=no
15490 hardcode_into_libs=yes
15491 dynamic_linker='GNU ld.so'
15494 freebsd* | dragonfly*)
15495 # DragonFly does not have aout. When/if they implement a new
15496 # versioning mechanism, adjust this.
15497 if test -x /usr/bin/objformat; then
15498 objformat=`/usr/bin/objformat`
15501 freebsd[123]*) objformat=aout ;;
15502 *) objformat=elf ;;
15505 version_type=freebsd-$objformat
15506 case $version_type in
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15517 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15522 freebsd3.[01]* | freebsdelf3.[01]*)
15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15528 shlibpath_overrides_runpath=no
15529 hardcode_into_libs=yes
15531 freebsd*) # from 4.6 on
15532 shlibpath_overrides_runpath=yes
15533 hardcode_into_libs=yes
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 hardcode_into_libs=yes
15548 hpux9* | hpux10* | hpux11*)
15549 # Give a soname corresponding to the major version so that dld.sl refuses to
15550 # link against other versions.
15557 hardcode_into_libs=yes
15558 dynamic_linker="$host_os dld.so"
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 if test "X$HPUX_IA64_MODE" = X32; then
15564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15572 hardcode_into_libs=yes
15573 dynamic_linker="$host_os dld.sl"
15574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15583 dynamic_linker="$host_os dld.sl"
15584 shlibpath_var=SHLIB_PATH
15585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15590 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15591 postinstall_cmds='chmod 555 $lib'
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=no
15603 hardcode_into_libs=yes
15606 irix5* | irix6* | nonstopux*)
15608 nonstopux*) version_type=nonstopux ;;
15610 if test "$lt_cv_prog_gnu_ld" = yes; then
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15621 irix5* | nonstopux*)
15622 libsuff= shlibsuff=
15625 case $LD in # libtool.m4 will add one of these switches to LD
15626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15627 libsuff= shlibsuff= libmagic=32-bit;;
15628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15629 libsuff=32 shlibsuff=N32 libmagic=N32;;
15630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15632 *) libsuff= shlibsuff= libmagic=never-match;;
15636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15637 shlibpath_overrides_runpath=no
15638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15640 hardcode_into_libs=yes
15643 # No shared lib support for Linux oldld, aout, or coff.
15644 linux*oldld* | linux*aout* | linux*coff*)
15648 # This must be Linux ELF.
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=no
15658 # This implies no fast_install, which is unacceptable.
15659 # Some rework will be needed to allow for fast_install
15660 # before this can be enabled.
15661 hardcode_into_libs=yes
15663 # Append ld.so.conf contents to the search path
15664 if test -f /etc/ld.so.conf; then
15665 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15669 # We used to test for /lib/ld.so.1 and disable shared libraries on
15670 # powerpc, because MkLinux only supported shared libraries with the
15671 # GNU dynamic linker. Since this was broken with cross compilers,
15672 # most powerpc-linux boxes support dynamic linking these days and
15673 # people can always --disable-shared, the test was removed, and we
15674 # assume the GNU/Linux dynamic linker is in use.
15675 dynamic_linker='GNU/Linux ld.so'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='GNU ld.so'
15694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697 dynamic_linker='NetBSD (a.out) ld.so'
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 dynamic_linker='NetBSD ld.elf_so'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15727 sys_lib_dlsearch_path_spec="/usr/lib"
15729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15732 *) need_version=no ;;
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15739 openbsd2.[89] | openbsd2.[89].*)
15740 shlibpath_overrides_runpath=no
15743 shlibpath_overrides_runpath=yes
15747 shlibpath_overrides_runpath=yes
15752 libname_spec='$name'
15755 library_names_spec='$libname${shared_ext} $libname.a'
15756 dynamic_linker='OS/2 ld.exe'
15757 shlibpath_var=LIBPATH
15760 osf3* | osf4* | osf5*)
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=yes
15779 hardcode_into_libs=yes
15780 # ldd complains unless libraries are executable
15781 postinstall_cmds='chmod +x $lib'
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=yes
15790 if test "$with_gnu_ld" = yes; then
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 case $host_vendor in
15803 shlibpath_overrides_runpath=no
15805 export_dynamic_flag_spec='${wl}-Blargedynsym'
15806 runpath_var=LD_RUN_PATH
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15821 if test -d /usr/nec ;then
15823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15824 soname_spec='$libname${shared_ext}.$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830 version_type=freebsd-elf
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 hardcode_into_libs=yes
15837 if test "$with_gnu_ld" = yes; then
15838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15839 shlibpath_overrides_runpath=no
15841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15842 shlibpath_overrides_runpath=yes
15845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15849 sys_lib_dlsearch_path_spec='/usr/lib'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15864 echo "${ECHO_T}$dynamic_linker" >&6; }
15865 test "$dynamic_linker" = no && can_build_shared=no
15867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15868 if test "$GCC" = yes; then
15869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15874 hardcode_action_F77=
15875 if test -n "$hardcode_libdir_flag_spec_F77" || \
15876 test -n "$runpath_var_F77" || \
15877 test "X$hardcode_automatic_F77" = "Xyes" ; then
15879 # We can hardcode non-existant directories.
15880 if test "$hardcode_direct_F77" != no &&
15881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15882 # have to relink, otherwise we might link with an installed library
15883 # when we should be linking with a yet-to-be-installed one
15884 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15885 test "$hardcode_minus_L_F77" != no; then
15886 # Linking always hardcodes the temporary library directory.
15887 hardcode_action_F77=relink
15889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15890 hardcode_action_F77=immediate
15893 # We cannot hardcode anything, or else we can only hardcode existing
15895 hardcode_action_F77=unsupported
15897 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15898 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15900 if test "$hardcode_action_F77" = relink; then
15901 # Fast installation is not supported
15902 enable_fast_install=no
15903 elif test "$shlibpath_overrides_runpath" = yes ||
15904 test "$enable_shared" = no; then
15905 # Fast installation is not necessary
15906 enable_fast_install=needless
15910 # The else clause should only fire when bootstrapping the
15911 # libtool distribution, otherwise you forgot to ship ltmain.sh
15912 # with your package, and you will get complaints that there are
15913 # no rules to generate ltmain.sh.
15914 if test -f "$ltmain"; then
15915 # See if we are running on zsh, and set the options which allow our commands through
15916 # without removal of \ escapes.
15917 if test -n "${ZSH_VERSION+set}" ; then
15918 setopt NO_GLOB_SUBST
15920 # Now quote all the things that may contain metacharacters while being
15921 # careful not to overquote the AC_SUBSTed values. We take copies of the
15922 # variables and quote the copies for generation of the libtool script.
15923 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15925 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15926 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15927 deplibs_check_method reload_flag reload_cmds need_locks \
15928 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15929 lt_cv_sys_global_symbol_to_c_name_address \
15930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15931 old_postinstall_cmds old_postuninstall_cmds \
15935 lt_prog_compiler_wl_F77 \
15936 lt_prog_compiler_pic_F77 \
15937 lt_prog_compiler_static_F77 \
15938 lt_prog_compiler_no_builtin_flag_F77 \
15939 export_dynamic_flag_spec_F77 \
15940 thread_safe_flag_spec_F77 \
15941 whole_archive_flag_spec_F77 \
15942 enable_shared_with_static_runtimes_F77 \
15943 old_archive_cmds_F77 \
15944 old_archive_from_new_cmds_F77 \
15945 predep_objects_F77 \
15946 postdep_objects_F77 \
15949 compiler_lib_search_path_F77 \
15951 archive_expsym_cmds_F77 \
15952 postinstall_cmds_F77 \
15953 postuninstall_cmds_F77 \
15954 old_archive_from_expsyms_cmds_F77 \
15955 allow_undefined_flag_F77 \
15956 no_undefined_flag_F77 \
15957 export_symbols_cmds_F77 \
15958 hardcode_libdir_flag_spec_F77 \
15959 hardcode_libdir_flag_spec_ld_F77 \
15960 hardcode_libdir_separator_F77 \
15961 hardcode_automatic_F77 \
15963 module_expsym_cmds_F77 \
15964 lt_cv_prog_compiler_c_o_F77 \
15965 exclude_expsyms_F77 \
15966 include_expsyms_F77; do
15969 old_archive_cmds_F77 | \
15970 old_archive_from_new_cmds_F77 | \
15971 archive_cmds_F77 | \
15972 archive_expsym_cmds_F77 | \
15973 module_cmds_F77 | \
15974 module_expsym_cmds_F77 | \
15975 old_archive_from_expsyms_cmds_F77 | \
15976 export_symbols_cmds_F77 | \
15977 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15978 postinstall_cmds | postuninstall_cmds | \
15979 old_postinstall_cmds | old_postuninstall_cmds | \
15980 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15981 # Double-quote double-evaled strings.
15982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15991 *'\$0 --fallback-echo"')
15992 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15998 cat <<__EOF__ >> "$cfgfile"
15999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16003 # Shell to use when invoking shell scripts.
16006 # Whether or not to build shared libraries.
16007 build_libtool_libs=$enable_shared
16009 # Whether or not to build static libraries.
16010 build_old_libs=$enable_static
16012 # Whether or not to add -lc for building shared libraries.
16013 build_libtool_need_lc=$archive_cmds_need_lc_F77
16015 # Whether or not to disallow shared libs when runtime libs are static
16016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16018 # Whether or not to optimize for fast installation.
16019 fast_install=$enable_fast_install
16022 host_alias=$host_alias
16026 # The build system.
16027 build_alias=$build_alias
16031 # An echo program that does not interpret backslashes.
16036 AR_FLAGS=$lt_AR_FLAGS
16041 # LTCC compiler flags.
16042 LTCFLAGS=$lt_LTCFLAGS
16044 # A language-specific compiler.
16045 CC=$lt_compiler_F77
16047 # Is the compiler the GNU C compiler?
16053 # The linker used to build libraries.
16056 # Whether we need hard or soft links.
16059 # A BSD-compatible nm program.
16062 # A symbol stripping program
16065 # Used to examine libraries when file_magic_cmd begins "file"
16066 MAGIC_CMD=$MAGIC_CMD
16068 # Used on cygwin: DLL creation program.
16071 # Used on cygwin: object dumper.
16074 # Used on cygwin: assembler.
16077 # The name of the directory that contains temporary libtool files.
16080 # How to create reloadable object files.
16081 reload_flag=$lt_reload_flag
16082 reload_cmds=$lt_reload_cmds
16084 # How to pass a linker flag through the compiler.
16085 wl=$lt_lt_prog_compiler_wl_F77
16087 # Object file suffix (normally "o").
16088 objext="$ac_objext"
16090 # Old archive suffix (normally "a").
16093 # Shared library suffix (normally ".so").
16094 shrext_cmds='$shrext_cmds'
16096 # Executable file suffix (normally "").
16099 # Additional compiler flags for building library objects.
16100 pic_flag=$lt_lt_prog_compiler_pic_F77
16103 # What is the maximum length of a command?
16104 max_cmd_len=$lt_cv_sys_max_cmd_len
16106 # Does compiler simultaneously support -c and -o options?
16107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16109 # Must we lock files when doing compilation?
16110 need_locks=$lt_need_locks
16112 # Do we need the lib prefix for modules?
16113 need_lib_prefix=$need_lib_prefix
16115 # Do we need a version for libraries?
16116 need_version=$need_version
16118 # Whether dlopen is supported.
16119 dlopen_support=$enable_dlopen
16121 # Whether dlopen of programs is supported.
16122 dlopen_self=$enable_dlopen_self
16124 # Whether dlopen of statically linked programs is supported.
16125 dlopen_self_static=$enable_dlopen_self_static
16127 # Compiler flag to prevent dynamic linking.
16128 link_static_flag=$lt_lt_prog_compiler_static_F77
16130 # Compiler flag to turn off builtin functions.
16131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16133 # Compiler flag to allow reflexive dlopens.
16134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16136 # Compiler flag to generate shared objects directly from archives.
16137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16139 # Compiler flag to generate thread-safe objects.
16140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16142 # Library versioning type.
16143 version_type=$version_type
16145 # Format of library name prefix.
16146 libname_spec=$lt_libname_spec
16148 # List of archive names. First name is the real one, the rest are links.
16149 # The last name is the one that the linker finds with -lNAME.
16150 library_names_spec=$lt_library_names_spec
16152 # The coded name of the library, if different from the real name.
16153 soname_spec=$lt_soname_spec
16155 # Commands used to build and install an old-style archive.
16157 old_archive_cmds=$lt_old_archive_cmds_F77
16158 old_postinstall_cmds=$lt_old_postinstall_cmds
16159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16161 # Create an old-style archive from a shared archive.
16162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16164 # Create a temporary old-style archive to link instead of a shared archive.
16165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16167 # Commands used to build and install a shared archive.
16168 archive_cmds=$lt_archive_cmds_F77
16169 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16170 postinstall_cmds=$lt_postinstall_cmds
16171 postuninstall_cmds=$lt_postuninstall_cmds
16173 # Commands used to build a loadable module (assumed same as above if empty)
16174 module_cmds=$lt_module_cmds_F77
16175 module_expsym_cmds=$lt_module_expsym_cmds_F77
16177 # Commands to strip libraries.
16178 old_striplib=$lt_old_striplib
16179 striplib=$lt_striplib
16181 # Dependencies to place before the objects being linked to create a
16183 predep_objects=$lt_predep_objects_F77
16185 # Dependencies to place after the objects being linked to create a
16187 postdep_objects=$lt_postdep_objects_F77
16189 # Dependencies to place before the objects being linked to create a
16191 predeps=$lt_predeps_F77
16193 # Dependencies to place after the objects being linked to create a
16195 postdeps=$lt_postdeps_F77
16197 # The library search path used internally by the compiler when linking
16198 # a shared library.
16199 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16201 # Method to check whether dependent libraries are shared objects.
16202 deplibs_check_method=$lt_deplibs_check_method
16204 # Command to use when deplibs_check_method == file_magic.
16205 file_magic_cmd=$lt_file_magic_cmd
16207 # Flag that allows shared libraries with undefined symbols to be built.
16208 allow_undefined_flag=$lt_allow_undefined_flag_F77
16210 # Flag that forces no undefined symbols.
16211 no_undefined_flag=$lt_no_undefined_flag_F77
16213 # Commands used to finish a libtool library installation in a directory.
16214 finish_cmds=$lt_finish_cmds
16216 # Same as above, but a single script fragment to be evaled but not shown.
16217 finish_eval=$lt_finish_eval
16219 # Take the output of nm and produce a listing of raw symbols and C names.
16220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16222 # Transform the output of nm in a proper C declaration
16223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16225 # Transform the output of nm in a C name address pair
16226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16228 # This is the shared library runtime path variable.
16229 runpath_var=$runpath_var
16231 # This is the shared library path variable.
16232 shlibpath_var=$shlibpath_var
16234 # Is shlibpath searched before the hard-coded library search path?
16235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16237 # How to hardcode a shared library path into an executable.
16238 hardcode_action=$hardcode_action_F77
16240 # Whether we should hardcode library paths into libraries.
16241 hardcode_into_libs=$hardcode_into_libs
16243 # Flag to hardcode \$libdir into a binary during linking.
16244 # This must work even if \$libdir does not exist.
16245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16247 # If ld is used when linking, flag to hardcode \$libdir into
16248 # a binary during linking. This must work even if \$libdir does
16250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16252 # Whether we need a single -rpath flag with a separated argument.
16253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_direct=$hardcode_direct_F77
16259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_minus_L=$hardcode_minus_L_F77
16263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16264 # the resulting binary.
16265 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16267 # Set to yes if building a shared library automatically hardcodes DIR into the library
16268 # and all subsequent libraries and executables linked against it.
16269 hardcode_automatic=$hardcode_automatic_F77
16271 # Variables whose values should be saved in libtool wrapper scripts and
16272 # restored at relink time.
16273 variables_saved_for_relink="$variables_saved_for_relink"
16275 # Whether libtool must link a program against all its dependency libraries.
16276 link_all_deplibs=$link_all_deplibs_F77
16278 # Compile-time system search path for libraries
16279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16281 # Run-time system search path for libraries
16282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16284 # Fix the shell variable \$srcfile for the compiler.
16285 fix_srcfile_path="$fix_srcfile_path_F77"
16287 # Set to yes if exported symbols are required.
16288 always_export_symbols=$always_export_symbols_F77
16290 # The commands to list exported symbols.
16291 export_symbols_cmds=$lt_export_symbols_cmds_F77
16293 # The commands to extract the exported symbol list from a shared archive.
16294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16296 # Symbols that should not be listed in the preloaded symbols.
16297 exclude_expsyms=$lt_exclude_expsyms_F77
16299 # Symbols that must always be exported.
16300 include_expsyms=$lt_include_expsyms_F77
16302 # ### END LIBTOOL TAG CONFIG: $tagname
16308 # If there is no Makefile yet, we rely on a make rule to execute
16309 # `config.status --recheck' to rerun these tests and create the
16310 # libtool script then.
16311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16312 if test -f "$ltmain_in"; then
16313 test -f Makefile && make "$ltmain"
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16332 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16335 # Source file extension for Java test sources.
16338 # Object file extension for compiled Java test sources.
16342 # Code to be used in simple compile tests
16343 lt_simple_compile_test_code="class foo {}\n"
16345 # Code to be used in simple link tests
16346 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16350 # If no C compiler was specified, use CC.
16353 # If no C compiler flags were specified, use CFLAGS.
16354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16356 # Allow CC to be a program name with arguments.
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16367 ac_outfile=conftest.$ac_objext
16368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16374 # Allow CC to be a program name with arguments.
16379 for cc_temp in $compiler""; do
16381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16391 archive_cmds_need_lc_GCJ=no
16393 old_archive_cmds_GCJ=$old_archive_cmds
16396 ## There is no encapsulation within the following macros, do not change
16397 ## the running order or otherwise move them around unless you know exactly
16398 ## what you are doing...
16400 lt_prog_compiler_no_builtin_flag_GCJ=
16402 if test "$GCC" = yes; then
16403 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16406 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 lt_cv_prog_compiler_rtti_exceptions=no
16412 ac_outfile=conftest.$ac_objext
16413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414 lt_compiler_flag="-fno-rtti -fno-exceptions"
16415 # Insert the option either (1) after the last *FLAGS variable, or
16416 # (2) before a word containing "conftest.", or (3) at the end.
16417 # Note that $ac_compile itself does not contain backslashes and begins
16418 # with a dollar sign (not a hyphen), so the echo should work correctly.
16419 # The option is referenced via a variable to avoid confusing sed.
16420 lt_compile=`echo "$ac_compile" | $SED \
16421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16423 -e 's:$: $lt_compiler_flag:'`
16424 (eval echo "\"\$as_me:16424: $lt_compile\"" >&5)
16425 (eval "$lt_compile" 2>conftest.err)
16427 cat conftest.err >&5
16428 echo "$as_me:16428: \$? = $ac_status" >&5
16429 if (exit $ac_status) && test -s "$ac_outfile"; then
16430 # The compiler can only warn and ignore the option if not recognized
16431 # So say no if there are warnings other than the usual output.
16432 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16434 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16435 lt_cv_prog_compiler_rtti_exceptions=yes
16441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16442 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16445 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16452 lt_prog_compiler_wl_GCJ=
16453 lt_prog_compiler_pic_GCJ=
16454 lt_prog_compiler_static_GCJ=
16456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16459 if test "$GCC" = yes; then
16460 lt_prog_compiler_wl_GCJ='-Wl,'
16461 lt_prog_compiler_static_GCJ='-static'
16465 # All AIX code is PIC.
16466 if test "$host_cpu" = ia64; then
16467 # AIX 5 now supports IA64 processor
16468 lt_prog_compiler_static_GCJ='-Bstatic'
16473 # FIXME: we need at least 68020 code to build shared libraries, but
16474 # adding the `-m68020' flag to GCC prevents building anything better,
16476 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16480 # PIC is the default for these OSes.
16483 mingw* | pw32* | os2*)
16484 # This hack is so that the source file can tell whether it is being
16485 # built for inclusion in a dll (and should export symbols for example).
16486 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16489 darwin* | rhapsody*)
16490 # PIC is the default on this platform
16491 # Common symbols not allowed in MH_DYLIB files
16492 lt_prog_compiler_pic_GCJ='-fno-common'
16496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16497 # Instead, we relocate shared libraries at runtime.
16501 # Just because we use GCC doesn't mean we suddenly get shared libraries
16502 # on systems that don't support them.
16503 lt_prog_compiler_can_build_shared_GCJ=no
16508 if test -d /usr/nec; then
16509 lt_prog_compiler_pic_GCJ=-Kconform_pic
16514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16515 # not for PA HP-UX.
16521 lt_prog_compiler_pic_GCJ='-fPIC'
16527 lt_prog_compiler_pic_GCJ='-fPIC'
16531 # PORTME Check for flag to pass linker flags through the system compiler.
16534 lt_prog_compiler_wl_GCJ='-Wl,'
16535 if test "$host_cpu" = ia64; then
16536 # AIX 5 now supports IA64 processor
16537 lt_prog_compiler_static_GCJ='-Bstatic'
16539 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16543 # PIC is the default on this platform
16544 # Common symbols not allowed in MH_DYLIB files
16545 case $cc_basename in
16547 lt_prog_compiler_pic_GCJ='-qnocommon'
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16553 mingw* | pw32* | os2*)
16554 # This hack is so that the source file can tell whether it is being
16555 # built for inclusion in a dll (and should export symbols for example).
16556 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16559 hpux9* | hpux10* | hpux11*)
16560 lt_prog_compiler_wl_GCJ='-Wl,'
16561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16562 # not for PA HP-UX.
16568 lt_prog_compiler_pic_GCJ='+Z'
16571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16572 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16575 irix5* | irix6* | nonstopux*)
16576 lt_prog_compiler_wl_GCJ='-Wl,'
16577 # PIC (with -KPIC) is the default.
16578 lt_prog_compiler_static_GCJ='-non_shared'
16582 lt_prog_compiler_pic_GCJ='-KPIC'
16583 lt_prog_compiler_static_GCJ='-Bstatic'
16587 case $cc_basename in
16589 lt_prog_compiler_wl_GCJ='-Wl,'
16590 lt_prog_compiler_pic_GCJ='-KPIC'
16591 lt_prog_compiler_static_GCJ='-static'
16593 pgcc* | pgf77* | pgf90* | pgf95*)
16594 # Portland Group compilers (*not* the Pentium gcc compiler,
16595 # which looks to be a dead project)
16596 lt_prog_compiler_wl_GCJ='-Wl,'
16597 lt_prog_compiler_pic_GCJ='-fpic'
16598 lt_prog_compiler_static_GCJ='-Bstatic'
16601 lt_prog_compiler_wl_GCJ='-Wl,'
16602 # All Alpha code is PIC.
16603 lt_prog_compiler_static_GCJ='-non_shared'
16608 osf3* | osf4* | osf5*)
16609 lt_prog_compiler_wl_GCJ='-Wl,'
16610 # All OSF/1 code is PIC.
16611 lt_prog_compiler_static_GCJ='-non_shared'
16615 lt_prog_compiler_pic_GCJ='-KPIC'
16616 lt_prog_compiler_static_GCJ='-Bstatic'
16617 case $cc_basename in
16618 f77* | f90* | f95*)
16619 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16621 lt_prog_compiler_wl_GCJ='-Wl,';;
16626 lt_prog_compiler_wl_GCJ='-Qoption ld '
16627 lt_prog_compiler_pic_GCJ='-PIC'
16628 lt_prog_compiler_static_GCJ='-Bstatic'
16631 sysv4 | sysv4.2uw2* | sysv4.3*)
16632 lt_prog_compiler_wl_GCJ='-Wl,'
16633 lt_prog_compiler_pic_GCJ='-KPIC'
16634 lt_prog_compiler_static_GCJ='-Bstatic'
16638 if test -d /usr/nec ;then
16639 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16640 lt_prog_compiler_static_GCJ='-Bstatic'
16644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16645 lt_prog_compiler_wl_GCJ='-Wl,'
16646 lt_prog_compiler_pic_GCJ='-KPIC'
16647 lt_prog_compiler_static_GCJ='-Bstatic'
16651 lt_prog_compiler_wl_GCJ='-Wl,'
16652 lt_prog_compiler_can_build_shared_GCJ=no
16656 lt_prog_compiler_pic_GCJ='-pic'
16657 lt_prog_compiler_static_GCJ='-Bstatic'
16661 lt_prog_compiler_can_build_shared_GCJ=no
16666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16667 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16670 # Check to make sure the PIC flag actually works.
16672 if test -n "$lt_prog_compiler_pic_GCJ"; then
16674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16676 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 lt_prog_compiler_pic_works_GCJ=no
16680 ac_outfile=conftest.$ac_objext
16681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16683 # Insert the option either (1) after the last *FLAGS variable, or
16684 # (2) before a word containing "conftest.", or (3) at the end.
16685 # Note that $ac_compile itself does not contain backslashes and begins
16686 # with a dollar sign (not a hyphen), so the echo should work correctly.
16687 # The option is referenced via a variable to avoid confusing sed.
16688 lt_compile=`echo "$ac_compile" | $SED \
16689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691 -e 's:$: $lt_compiler_flag:'`
16692 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693 (eval "$lt_compile" 2>conftest.err)
16695 cat conftest.err >&5
16696 echo "$as_me:16696: \$? = $ac_status" >&5
16697 if (exit $ac_status) && test -s "$ac_outfile"; then
16698 # The compiler can only warn and ignore the option if not recognized
16699 # So say no if there are warnings other than the usual output.
16700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16703 lt_prog_compiler_pic_works_GCJ=yes
16709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16710 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16712 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16713 case $lt_prog_compiler_pic_GCJ in
16715 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16718 lt_prog_compiler_pic_GCJ=
16719 lt_prog_compiler_can_build_shared_GCJ=no
16724 # For platforms which do not support PIC, -DPIC is meaningless:
16726 lt_prog_compiler_pic_GCJ=
16729 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16734 # Check to make sure the static flag actually works.
16736 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16739 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16740 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 lt_prog_compiler_static_works_GCJ=no
16743 save_LDFLAGS="$LDFLAGS"
16744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16745 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16747 # The linker can only warn and ignore the option if not recognized
16748 # So say no if there are warnings
16749 if test -s conftest.err; then
16750 # Append any errors to the config.log.
16751 cat conftest.err 1>&5
16752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16754 if diff conftest.exp conftest.er2 >/dev/null; then
16755 lt_prog_compiler_static_works_GCJ=yes
16758 lt_prog_compiler_static_works_GCJ=yes
16762 LDFLAGS="$save_LDFLAGS"
16765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16766 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16768 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16771 lt_prog_compiler_static_GCJ=
16775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16777 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 lt_cv_prog_compiler_c_o_GCJ=no
16781 $rm -r conftest 2>/dev/null
16785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16787 lt_compiler_flag="-o out/conftest2.$ac_objext"
16788 # Insert the option either (1) after the last *FLAGS variable, or
16789 # (2) before a word containing "conftest.", or (3) at the end.
16790 # Note that $ac_compile itself does not contain backslashes and begins
16791 # with a dollar sign (not a hyphen), so the echo should work correctly.
16792 lt_compile=`echo "$ac_compile" | $SED \
16793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16795 -e 's:$: $lt_compiler_flag:'`
16796 (eval echo "\"\$as_me:16796: $lt_compile\"" >&5)
16797 (eval "$lt_compile" 2>out/conftest.err)
16799 cat out/conftest.err >&5
16800 echo "$as_me:16800: \$? = $ac_status" >&5
16801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16803 # The compiler can only warn and ignore the option if not recognized
16804 # So say no if there are warnings
16805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16808 lt_cv_prog_compiler_c_o_GCJ=yes
16813 # SGI C++ compiler will create directory out/ii_files/ for
16814 # template instantiation
16815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16816 $rm out/* && rmdir out
16822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16826 hard_links="nottested"
16827 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16828 # do not overwrite the value of need_locks provided by the user
16829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16835 ln conftest.a conftest.b 2>&5 || hard_links=no
16836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16837 { echo "$as_me:$LINENO: result: $hard_links" >&5
16838 echo "${ECHO_T}$hard_links" >&6; }
16839 if test "$hard_links" = no; then
16840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16852 allow_undefined_flag_GCJ=
16853 enable_shared_with_static_runtimes_GCJ=no
16855 archive_expsym_cmds_GCJ=
16856 old_archive_From_new_cmds_GCJ=
16857 old_archive_from_expsyms_cmds_GCJ=
16858 export_dynamic_flag_spec_GCJ=
16859 whole_archive_flag_spec_GCJ=
16860 thread_safe_flag_spec_GCJ=
16861 hardcode_libdir_flag_spec_GCJ=
16862 hardcode_libdir_flag_spec_ld_GCJ=
16863 hardcode_libdir_separator_GCJ=
16864 hardcode_direct_GCJ=no
16865 hardcode_minus_L_GCJ=no
16866 hardcode_shlibpath_var_GCJ=unsupported
16867 link_all_deplibs_GCJ=unknown
16868 hardcode_automatic_GCJ=no
16870 module_expsym_cmds_GCJ=
16871 always_export_symbols_GCJ=no
16872 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16873 # include_expsyms should be a list of space-separated symbols to be *always*
16874 # included in the symbol list
16875 include_expsyms_GCJ=
16876 # exclude_expsyms can be an extended regexp of symbols to exclude
16877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16879 # as well as any symbol that contains `d'.
16880 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16882 # platforms (ab)use it in PIC code, but their linkers get confused if
16883 # the symbol is explicitly referenced. Since portable code cannot
16884 # rely on this symbol name, it's probably fine to never include it in
16885 # preloaded symbol tables.
16886 extract_expsyms_cmds=
16887 # Just being paranoid about ensuring that cc_basename is set.
16888 for cc_temp in $compiler""; do
16890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16899 cygwin* | mingw* | pw32*)
16900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16901 # When not using gcc, we currently assume that we are using
16902 # Microsoft Visual C++.
16903 if test "$GCC" != yes; then
16908 # we just hope/assume this is gcc and not c89 (= MSVC++)
16917 if test "$with_gnu_ld" = yes; then
16918 # If archive_cmds runs LD, not CC, wlarc should be empty
16921 # Set some defaults for GNU ld with shared library support. These
16922 # are reset later if shared libraries are not supported. Putting them
16923 # here allows them to be overridden if necessary.
16924 runpath_var=LD_RUN_PATH
16925 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16926 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16927 # ancient GNU ld didn't support --whole-archive et. al.
16928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16929 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16931 whole_archive_flag_spec_GCJ=
16933 supports_anon_versioning=no
16934 case `$LD -v 2>/dev/null` in
16935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16938 *\ 2.11.*) ;; # other 2.11 versions
16939 *) supports_anon_versioning=yes ;;
16942 # See if GNU ld supports shared libraries.
16944 aix3* | aix4* | aix5*)
16945 # On AIX/PPC, the GNU linker is very broken
16946 if test "$host_cpu" != ia64; then
16950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16951 *** to be unable to reliably create shared libraries on AIX.
16952 *** Therefore, libtool is disabling shared libraries support. If you
16953 *** really care for shared libraries, you may want to modify your PATH
16954 *** so that a non-GNU linker is found, and then restart.
16961 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)'
16962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16963 hardcode_minus_L_GCJ=yes
16965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16966 # that the semantics of dynamic libraries on AmigaOS, at least up
16967 # to version 4, is to share data among multiple programs linked
16968 # with the same dynamic library. Since this doesn't match the
16969 # behavior of shared libraries on other platforms, we can't use
16975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16976 allow_undefined_flag_GCJ=unsupported
16977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16978 # support --undefined. This deserves some investigation. FIXME
16979 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16985 cygwin* | mingw* | pw32*)
16986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16987 # as there is no search path for DLLs.
16988 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989 allow_undefined_flag_GCJ=unsupported
16990 always_export_symbols_GCJ=no
16991 enable_shared_with_static_runtimes_GCJ=yes
16992 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16994 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16995 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16996 # If the export-symbols file already is a .def file (1st line
16997 # is EXPORTS), use it as is; otherwise, prepend...
16998 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16999 cp $export_symbols $output_objdir/$soname.def;
17001 echo EXPORTS > $output_objdir/$soname.def;
17002 cat $export_symbols >> $output_objdir/$soname.def;
17004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17011 hardcode_direct_GCJ=no
17012 hardcode_shlibpath_var_GCJ=no
17013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17014 export_dynamic_flag_spec_GCJ='${wl}-E'
17015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17016 # Instead, shared libraries are loaded at an image base (0x10000000 by
17017 # default) and relocated if they conflict, which is a slow very memory
17018 # consuming and fragmenting process. To avoid this, we pick a random,
17019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17021 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'
17022 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'
17026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17028 case $cc_basename,$host_cpu in
17029 pgcc*) # Portland Group C compiler
17030 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'
17031 tmp_addflag=' $pic_flag'
17033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17034 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'
17035 tmp_addflag=' $pic_flag -Mnomain' ;;
17036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17037 tmp_addflag=' -i_dynamic' ;;
17038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17039 tmp_addflag=' -i_dynamic -nofor_main' ;;
17040 ifc* | ifort*) # Intel Fortran compiler
17041 tmp_addflag=' -nofor_main' ;;
17043 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17045 if test $supports_anon_versioning = yes; then
17046 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17048 $echo "local: *; };" >> $output_objdir/$libname.ver~
17049 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17058 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17061 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17072 *** create shared libraries on Solaris systems. Therefore, libtool
17073 *** is disabling shared libraries support. We urge you to upgrade GNU
17074 *** binutils to release 2.9.1 or newer. Another option is to modify
17075 *** your PATH or compiler configuration so that the native linker is
17076 *** used, and then restart.
17079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17080 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17088 case `$LD -v 2>&1` in
17089 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17094 *** reliably create shared libraries on SCO systems. Therefore, libtool
17095 *** is disabling shared libraries support. We urge you to upgrade GNU
17096 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17097 *** your PATH or compiler configuration so that the native linker is
17098 *** used, and then restart.
17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17105 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17106 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17115 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17117 hardcode_direct_GCJ=yes
17118 hardcode_shlibpath_var_GCJ=no
17122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17123 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17124 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17131 if test "$ld_shlibs_GCJ" = no; then
17133 hardcode_libdir_flag_spec_GCJ=
17134 export_dynamic_flag_spec_GCJ=
17135 whole_archive_flag_spec_GCJ=
17138 # PORTME fill in a description of your system's linker (not GNU ld)
17141 allow_undefined_flag_GCJ=unsupported
17142 always_export_symbols_GCJ=yes
17143 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'
17144 # Note: this linker hardcodes the directories in LIBPATH if there
17145 # are no directories specified by -L.
17146 hardcode_minus_L_GCJ=yes
17147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17148 # Neither direct hardcoding nor static linking is supported with a
17150 hardcode_direct_GCJ=unsupported
17155 if test "$host_cpu" = ia64; then
17156 # On IA64, the linker does run time linking by default, so we don't
17157 # have to do anything special.
17158 aix_use_runtimelinking=no
17159 exp_sym_flag='-Bexport'
17162 # If we're using GNU nm, then we don't want the "-C" option.
17163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17164 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17165 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'
17167 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'
17169 aix_use_runtimelinking=no
17171 # Test if we are trying to use run time linking or normal
17172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17173 # need to do runtime linking.
17174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17175 for ld_flag in $LDFLAGS; do
17176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17177 aix_use_runtimelinking=yes
17184 exp_sym_flag='-bexport'
17185 no_entry_flag='-bnoentry'
17188 # When large executables or shared objects are built, AIX ld can
17189 # have problems creating the table of contents. If linking a library
17190 # or program results in "error TOC overflow" add -mminimal-toc to
17191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17194 archive_cmds_GCJ=''
17195 hardcode_direct_GCJ=yes
17196 hardcode_libdir_separator_GCJ=':'
17197 link_all_deplibs_GCJ=yes
17199 if test "$GCC" = yes; then
17200 case $host_os in aix4.[012]|aix4.[012].*)
17201 # We only want to do this on AIX 4.2 and lower, the check
17202 # below for broken collect2 doesn't work under 4.3+
17203 collect2name=`${CC} -print-prog-name=collect2`
17204 if test -f "$collect2name" && \
17205 strings "$collect2name" | grep resolve_lib_name >/dev/null
17207 # We have reworked collect2
17208 hardcode_direct_GCJ=yes
17210 # We have old collect2
17211 hardcode_direct_GCJ=unsupported
17212 # It fails to find uninstalled libraries when the uninstalled
17213 # path is not listed in the libpath. Setting hardcode_minus_L
17214 # to unsupported forces relinking
17215 hardcode_minus_L_GCJ=yes
17216 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217 hardcode_libdir_separator_GCJ=
17221 shared_flag='-shared'
17222 if test "$aix_use_runtimelinking" = yes; then
17223 shared_flag="$shared_flag "'${wl}-G'
17227 if test "$host_cpu" = ia64; then
17228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17229 # chokes on -Wl,-G. The following line is correct:
17232 if test "$aix_use_runtimelinking" = yes; then
17233 shared_flag='${wl}-G'
17235 shared_flag='${wl}-bM:SRE'
17240 # It seems that -bexpall does not export symbols beginning with
17241 # underscore (_), so it is better to generate a list of symbols to export.
17242 always_export_symbols_GCJ=yes
17243 if test "$aix_use_runtimelinking" = yes; then
17244 # Warning - without using the other runtime loading flags (-brtl),
17245 # -berok will link without error, but may produce a broken library.
17246 allow_undefined_flag_GCJ='-berok'
17247 # Determine the default libpath from the value encoded in an empty executable.
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17284 # Check for a 64-bit object if we didn't find anything.
17285 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext conftest.$ac_ext
17296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17298 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17299 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"
17301 if test "$host_cpu" = ia64; then
17302 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17303 allow_undefined_flag_GCJ="-z nodefs"
17304 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"
17306 # Determine the default libpath from the value encoded in an empty executable.
17307 cat >conftest.$ac_ext <<_ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext &&
17339 $as_test_x conftest$ac_exeext; then
17341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17343 # Check for a 64-bit object if we didn't find anything.
17344 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17347 echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17357 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17358 # Warning - without using the other run time loading flags,
17359 # -berok will link without error, but may produce a broken library.
17360 no_undefined_flag_GCJ=' ${wl}-bernotok'
17361 allow_undefined_flag_GCJ=' ${wl}-berok'
17362 # Exported symbols can be pulled into shared objects from archives
17363 whole_archive_flag_spec_GCJ='$convenience'
17364 archive_cmds_need_lc_GCJ=yes
17365 # This is similar to how AIX traditionally builds its shared libraries.
17366 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'
17372 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)'
17373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374 hardcode_minus_L_GCJ=yes
17375 # see comment about different semantics on the GNU ld section
17380 export_dynamic_flag_spec_GCJ=-rdynamic
17383 cygwin* | mingw* | pw32*)
17384 # When not using gcc, we currently assume that we are using
17385 # Microsoft Visual C++.
17386 # hardcode_libdir_flag_spec is actually meaningless, as there is
17387 # no search path for DLLs.
17388 hardcode_libdir_flag_spec_GCJ=' '
17389 allow_undefined_flag_GCJ=unsupported
17390 # Tell ltmain to make .lib files, not .a files.
17392 # Tell ltmain to make .dll files, not .so files.
17394 # FIXME: Setting linknames here is a bad hack.
17395 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17396 # The linker will automatically build a .lib file if we build a DLL.
17397 old_archive_From_new_cmds_GCJ='true'
17398 # FIXME: Should let the user specify the lib program.
17399 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17400 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17401 enable_shared_with_static_runtimes_GCJ=yes
17404 darwin* | rhapsody*)
17406 rhapsody* | darwin1.[012])
17407 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17410 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17411 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17413 case ${MACOSX_DEPLOYMENT_TARGET} in
17415 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17418 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17424 archive_cmds_need_lc_GCJ=no
17425 hardcode_direct_GCJ=no
17426 hardcode_automatic_GCJ=yes
17427 hardcode_shlibpath_var_GCJ=unsupported
17428 whole_archive_flag_spec_GCJ=''
17429 link_all_deplibs_GCJ=yes
17430 if test "$GCC" = yes ; then
17431 output_verbose_link_cmd='echo'
17432 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17433 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17436 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}'
17438 case $cc_basename in
17440 output_verbose_link_cmd='echo'
17441 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17442 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17443 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17444 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17445 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}'
17455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457 hardcode_shlibpath_var_GCJ=no
17464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17465 # support. Future versions do this automatically, but an explicit c++rt0.o
17466 # does not break anything, and helps significantly (at the cost of a little
17469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17470 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471 hardcode_direct_GCJ=yes
17472 hardcode_shlibpath_var_GCJ=no
17475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17477 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17478 hardcode_direct_GCJ=yes
17479 hardcode_minus_L_GCJ=yes
17480 hardcode_shlibpath_var_GCJ=no
17483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17484 freebsd* | kfreebsd*-gnu | dragonfly*)
17485 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17486 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487 hardcode_direct_GCJ=yes
17488 hardcode_shlibpath_var_GCJ=no
17492 if test "$GCC" = yes; then
17493 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'
17495 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'
17497 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498 hardcode_libdir_separator_GCJ=:
17499 hardcode_direct_GCJ=yes
17501 # hardcode_minus_L: Not really in the search PATH,
17502 # but as the default location of the library.
17503 hardcode_minus_L_GCJ=yes
17504 export_dynamic_flag_spec_GCJ='${wl}-E'
17508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17509 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17511 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17513 if test "$with_gnu_ld" = no; then
17514 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17515 hardcode_libdir_separator_GCJ=:
17517 hardcode_direct_GCJ=yes
17518 export_dynamic_flag_spec_GCJ='${wl}-E'
17520 # hardcode_minus_L: Not really in the search PATH,
17521 # but as the default location of the library.
17522 hardcode_minus_L_GCJ=yes
17527 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17530 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17545 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552 if test "$with_gnu_ld" = no; then
17553 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17554 hardcode_libdir_separator_GCJ=:
17558 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17559 hardcode_direct_GCJ=no
17560 hardcode_shlibpath_var_GCJ=no
17563 hardcode_direct_GCJ=yes
17564 export_dynamic_flag_spec_GCJ='${wl}-E'
17566 # hardcode_minus_L: Not really in the search PATH,
17567 # but as the default location of the library.
17568 hardcode_minus_L_GCJ=yes
17574 irix5* | irix6* | nonstopux*)
17575 if test "$GCC" = yes; then
17576 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'
17578 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'
17579 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17581 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582 hardcode_libdir_separator_GCJ=:
17583 link_all_deplibs_GCJ=yes
17587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17590 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593 hardcode_direct_GCJ=yes
17594 hardcode_shlibpath_var_GCJ=no
17598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599 hardcode_direct_GCJ=yes
17600 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601 hardcode_libdir_separator_GCJ=:
17602 hardcode_shlibpath_var_GCJ=no
17606 hardcode_direct_GCJ=yes
17607 hardcode_shlibpath_var_GCJ=no
17608 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17609 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612 export_dynamic_flag_spec_GCJ='${wl}-E'
17615 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17620 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629 hardcode_minus_L_GCJ=yes
17630 allow_undefined_flag_GCJ=unsupported
17631 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'
17632 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17636 if test "$GCC" = yes; then
17637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17638 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'
17640 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641 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'
17643 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644 hardcode_libdir_separator_GCJ=:
17647 osf4* | osf5*) # as osf3* with the addition of -msym flag
17648 if test "$GCC" = yes; then
17649 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17650 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'
17651 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17653 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17654 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'
17655 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~
17656 $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'
17658 # Both c and cxx compiler support -rpath directly
17659 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17661 hardcode_libdir_separator_GCJ=:
17665 no_undefined_flag_GCJ=' -z text'
17666 if test "$GCC" = yes; then
17668 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17670 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17673 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17677 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678 hardcode_shlibpath_var_GCJ=no
17680 solaris2.[0-5] | solaris2.[0-5].*) ;;
17682 # The compiler driver will combine linker options so we
17683 # cannot just pass the convience library names through
17684 # without $wl, iff we do not link with $LD.
17685 # Luckily, gcc supports the same syntax we need for Sun Studio.
17686 # Supported since Solaris 2.6 (maybe 2.5.1?)
17689 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17691 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17694 link_all_deplibs_GCJ=yes
17698 if test "x$host_vendor" = xsequent; then
17699 # Use $CC to link under sequent, because it throws in some extra .o
17700 # files that make .init and .fini sections work.
17701 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17703 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706 hardcode_direct_GCJ=yes
17707 hardcode_minus_L_GCJ=yes
17708 hardcode_shlibpath_var_GCJ=no
17712 case $host_vendor in
17714 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715 hardcode_direct_GCJ=yes # is this really true???
17718 ## LD is ld it makes a PLAMLIB
17719 ## CC just makes a GrossModule.
17720 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17721 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17722 hardcode_direct_GCJ=no
17725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17729 runpath_var='LD_RUN_PATH'
17730 hardcode_shlibpath_var_GCJ=no
17734 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735 hardcode_shlibpath_var_GCJ=no
17736 export_dynamic_flag_spec_GCJ='-Bexport'
17740 if test -d /usr/nec; then
17741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742 hardcode_shlibpath_var_GCJ=no
17743 runpath_var=LD_RUN_PATH
17744 hardcode_runpath_var=yes
17749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17750 no_undefined_flag_GCJ='${wl}-z,text'
17751 archive_cmds_need_lc_GCJ=no
17752 hardcode_shlibpath_var_GCJ=no
17753 runpath_var='LD_RUN_PATH'
17755 if test "$GCC" = yes; then
17756 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17764 sysv5* | sco3.2v5* | sco5v6*)
17765 # Note: We can NOT use -z defs as we might desire, because we do not
17766 # link with -lc, and that would cause any symbols used from libc to
17767 # always be unresolved, which means just about no library would
17768 # ever link correctly. If we're not using GNU ld we use -z text
17769 # though, which does catch some bad symbols but isn't as heavy-handed
17771 no_undefined_flag_GCJ='${wl}-z,text'
17772 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17773 archive_cmds_need_lc_GCJ=no
17774 hardcode_shlibpath_var_GCJ=no
17775 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17776 hardcode_libdir_separator_GCJ=':'
17777 link_all_deplibs_GCJ=yes
17778 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17779 runpath_var='LD_RUN_PATH'
17781 if test "$GCC" = yes; then
17782 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793 hardcode_shlibpath_var_GCJ=no
17802 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17803 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17804 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17807 # Do we need to explicitly link libc?
17809 case "x$archive_cmds_need_lc_GCJ" in
17811 # Assume -lc should be added
17812 archive_cmds_need_lc_GCJ=yes
17814 if test "$enable_shared" = yes && test "$GCC" = yes; then
17815 case $archive_cmds_GCJ in
17817 # FIXME: we may have to deal with multi-command sequences.
17820 # Test whether the compiler implicitly links with -lc since on some
17821 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17822 # to ld, don't add -lc before -lgcc.
17823 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829 (eval $ac_compile) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } 2>conftest.err; then
17835 libobjs=conftest.$ac_objext
17837 wl=$lt_prog_compiler_wl_GCJ
17838 pic_flag=$lt_prog_compiler_pic_GCJ
17844 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17845 allow_undefined_flag_GCJ=
17846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17847 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }
17852 archive_cmds_need_lc_GCJ=no
17854 archive_cmds_need_lc_GCJ=yes
17856 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17858 cat conftest.err 1>&5
17861 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17862 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17871 library_names_spec=
17872 libname_spec='lib$name'
17876 postuninstall_cmds=
17880 shlibpath_overrides_runpath=unknown
17882 dynamic_linker="$host_os ld.so"
17883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17884 if test "$GCC" = yes; then
17885 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17886 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17887 # if the path contains ";" then we assume it to be the separator
17888 # otherwise default to the standard path separator (i.e. ":") - it is
17889 # assumed that no part of a normal pathname contains ";" but that should
17890 # okay in the real world where ";" in dirpaths is itself problematic.
17891 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17893 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17898 need_lib_prefix=unknown
17899 hardcode_into_libs=no
17901 # when you set need_version to no, make sure it does not cause -set_version
17902 # flags to be left without arguments
17903 need_version=unknown
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17909 shlibpath_var=LIBPATH
17911 # AIX 3 has no versioning support, so we append a major version to the name.
17912 soname_spec='${libname}${release}${shared_ext}$major'
17919 hardcode_into_libs=yes
17920 if test "$host_cpu" = ia64; then
17921 # AIX 5 supports IA64
17922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17923 shlibpath_var=LD_LIBRARY_PATH
17925 # With GCC up to 2.95.x, collect2 would create an import file
17926 # for dependence libraries. The import file would start with
17927 # the line `#! .'. This would cause the generated library to
17928 # depend on `.', always an invalid library. This was fixed in
17929 # development snapshots of GCC prior to 3.0.
17931 aix4 | aix4.[01] | aix4.[01].*)
17932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17934 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17937 can_build_shared=no
17941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17942 # soname into executable. Probably we can add versioning support to
17943 # collect2, so additional links can be useful in future.
17944 if test "$aix_use_runtimelinking" = yes; then
17945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17946 # instead of lib<name>.a to let people know that these are not
17947 # typical AIX shared libraries.
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950 # We preserve .a as extension for shared libraries through AIX4.2
17951 # and later when we are not doing run time linking.
17952 library_names_spec='${libname}${release}.a $libname.a'
17953 soname_spec='${libname}${release}${shared_ext}$major'
17955 shlibpath_var=LIBPATH
17960 library_names_spec='$libname.ixlibrary $libname.a'
17961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17962 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'
17966 library_names_spec='${libname}${shared_ext}'
17967 dynamic_linker="$host_os ld.so"
17968 shlibpath_var=LIBRARY_PATH
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17980 # the default ld.so.conf also contains /usr/contrib/lib and
17981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17982 # libtool to hard-code these into programs
17985 cygwin* | mingw* | pw32*)
17986 version_type=windows
17991 case $GCC,$host_os in
17992 yes,cygwin* | yes,mingw* | yes,pw32*)
17993 library_names_spec='$libname.dll.a'
17994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17995 postinstall_cmds='base_file=`basename \${file}`~
17996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17997 dldir=$destdir/`dirname \$dlpath`~
17998 test -d \$dldir || mkdir -p \$dldir~
17999 $install_prog $dir/$dlname \$dldir/$dlname~
18000 chmod a+x \$dldir/$dlname'
18001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18002 dlpath=$dir/\$dldll~
18004 shlibpath_overrides_runpath=yes
18008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18013 # MinGW DLLs use traditional 'lib' prefix
18014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18017 # It is most probably a Windows format PATH printed by
18018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18019 # path with ; separators, and with drive letters. We can handle the
18020 # drive letters (cygwin fileutils understands them), so leave them,
18021 # especially as we might pass files found there to a mingw objdump,
18022 # which wouldn't understand a cygwinified path. Ahh.
18023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18029 # pw32 DLLs use 'pw' prefix rather than 'lib'
18030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18039 dynamic_linker='Win32 ld.exe'
18040 # FIXME: first we should search . and the directory the executable is in
18044 darwin* | rhapsody*)
18045 dynamic_linker="$host_os dyld"
18046 version_type=darwin
18049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18050 soname_spec='${libname}${release}${major}$shared_ext'
18051 shlibpath_overrides_runpath=yes
18052 shlibpath_var=DYLD_LIBRARY_PATH
18053 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18055 if test "$GCC" = yes; then
18056 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18068 soname_spec='${libname}${release}${shared_ext}$major'
18069 shlibpath_var=LD_LIBRARY_PATH
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18084 hardcode_into_libs=yes
18085 dynamic_linker='GNU ld.so'
18088 freebsd* | dragonfly*)
18089 # DragonFly does not have aout. When/if they implement a new
18090 # versioning mechanism, adjust this.
18091 if test -x /usr/bin/objformat; then
18092 objformat=`/usr/bin/objformat`
18095 freebsd[123]*) objformat=aout ;;
18096 *) objformat=elf ;;
18099 version_type=freebsd-$objformat
18100 case $version_type in
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18111 shlibpath_var=LD_LIBRARY_PATH
18114 shlibpath_overrides_runpath=yes
18116 freebsd3.[01]* | freebsdelf3.[01]*)
18117 shlibpath_overrides_runpath=yes
18118 hardcode_into_libs=yes
18120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122 shlibpath_overrides_runpath=no
18123 hardcode_into_libs=yes
18125 freebsd*) # from 4.6 on
18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137 soname_spec='${libname}${release}${shared_ext}$major'
18138 shlibpath_var=LD_LIBRARY_PATH
18139 hardcode_into_libs=yes
18142 hpux9* | hpux10* | hpux11*)
18143 # Give a soname corresponding to the major version so that dld.sl refuses to
18144 # link against other versions.
18151 hardcode_into_libs=yes
18152 dynamic_linker="$host_os dld.so"
18153 shlibpath_var=LD_LIBRARY_PATH
18154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 if test "X$HPUX_IA64_MODE" = X32; then
18158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18166 hardcode_into_libs=yes
18167 dynamic_linker="$host_os dld.sl"
18168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18177 dynamic_linker="$host_os dld.sl"
18178 shlibpath_var=SHLIB_PATH
18179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181 soname_spec='${libname}${release}${shared_ext}$major'
18184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185 postinstall_cmds='chmod 555 $lib'
18192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193 soname_spec='${libname}${release}${shared_ext}$major'
18194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=no
18197 hardcode_into_libs=yes
18200 irix5* | irix6* | nonstopux*)
18202 nonstopux*) version_type=nonstopux ;;
18204 if test "$lt_cv_prog_gnu_ld" = yes; then
18212 soname_spec='${libname}${release}${shared_ext}$major'
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18215 irix5* | nonstopux*)
18216 libsuff= shlibsuff=
18219 case $LD in # libtool.m4 will add one of these switches to LD
18220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221 libsuff= shlibsuff= libmagic=32-bit;;
18222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223 libsuff=32 shlibsuff=N32 libmagic=N32;;
18224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226 *) libsuff= shlibsuff= libmagic=never-match;;
18230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231 shlibpath_overrides_runpath=no
18232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234 hardcode_into_libs=yes
18237 # No shared lib support for Linux oldld, aout, or coff.
18238 linux*oldld* | linux*aout* | linux*coff*)
18242 # This must be Linux ELF.
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248 soname_spec='${libname}${release}${shared_ext}$major'
18249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250 shlibpath_var=LD_LIBRARY_PATH
18251 shlibpath_overrides_runpath=no
18252 # This implies no fast_install, which is unacceptable.
18253 # Some rework will be needed to allow for fast_install
18254 # before this can be enabled.
18255 hardcode_into_libs=yes
18257 # Append ld.so.conf contents to the search path
18258 if test -f /etc/ld.so.conf; then
18259 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18263 # We used to test for /lib/ld.so.1 and disable shared libraries on
18264 # powerpc, because MkLinux only supported shared libraries with the
18265 # GNU dynamic linker. Since this was broken with cross compilers,
18266 # most powerpc-linux boxes support dynamic linking these days and
18267 # people can always --disable-shared, the test was removed, and we
18268 # assume the GNU/Linux dynamic linker is in use.
18269 dynamic_linker='GNU/Linux ld.so'
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 shlibpath_overrides_runpath=no
18280 hardcode_into_libs=yes
18281 dynamic_linker='GNU ld.so'
18288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18291 dynamic_linker='NetBSD (a.out) ld.so'
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294 soname_spec='${libname}${release}${shared_ext}$major'
18295 dynamic_linker='NetBSD ld.elf_so'
18297 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18299 hardcode_into_libs=yes
18304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305 shlibpath_var=LD_LIBRARY_PATH
18306 shlibpath_overrides_runpath=yes
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=yes
18321 sys_lib_dlsearch_path_spec="/usr/lib"
18323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18326 *) need_version=no ;;
18328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330 shlibpath_var=LD_LIBRARY_PATH
18331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333 openbsd2.[89] | openbsd2.[89].*)
18334 shlibpath_overrides_runpath=no
18337 shlibpath_overrides_runpath=yes
18341 shlibpath_overrides_runpath=yes
18346 libname_spec='$name'
18349 library_names_spec='$libname${shared_ext} $libname.a'
18350 dynamic_linker='OS/2 ld.exe'
18351 shlibpath_var=LIBPATH
18354 osf3* | osf4* | osf5*)
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath=yes
18373 hardcode_into_libs=yes
18374 # ldd complains unless libraries are executable
18375 postinstall_cmds='chmod +x $lib'
18380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382 shlibpath_var=LD_LIBRARY_PATH
18383 shlibpath_overrides_runpath=yes
18384 if test "$with_gnu_ld" = yes; then
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393 soname_spec='${libname}${release}${shared_ext}$major'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 case $host_vendor in
18397 shlibpath_overrides_runpath=no
18399 export_dynamic_flag_spec='${wl}-Blargedynsym'
18400 runpath_var=LD_RUN_PATH
18408 shlibpath_overrides_runpath=no
18409 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415 if test -d /usr/nec ;then
18417 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418 soname_spec='$libname${shared_ext}.$major'
18419 shlibpath_var=LD_LIBRARY_PATH
18423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424 version_type=freebsd-elf
18427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428 soname_spec='${libname}${release}${shared_ext}$major'
18429 shlibpath_var=LD_LIBRARY_PATH
18430 hardcode_into_libs=yes
18431 if test "$with_gnu_ld" = yes; then
18432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433 shlibpath_overrides_runpath=no
18435 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436 shlibpath_overrides_runpath=yes
18439 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18443 sys_lib_dlsearch_path_spec='/usr/lib'
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 shlibpath_var=LD_LIBRARY_PATH
18457 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18458 echo "${ECHO_T}$dynamic_linker" >&6; }
18459 test "$dynamic_linker" = no && can_build_shared=no
18461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18462 if test "$GCC" = yes; then
18463 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18466 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18467 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18468 hardcode_action_GCJ=
18469 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18470 test -n "$runpath_var_GCJ" || \
18471 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18473 # We can hardcode non-existant directories.
18474 if test "$hardcode_direct_GCJ" != no &&
18475 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18476 # have to relink, otherwise we might link with an installed library
18477 # when we should be linking with a yet-to-be-installed one
18478 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18479 test "$hardcode_minus_L_GCJ" != no; then
18480 # Linking always hardcodes the temporary library directory.
18481 hardcode_action_GCJ=relink
18483 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18484 hardcode_action_GCJ=immediate
18487 # We cannot hardcode anything, or else we can only hardcode existing
18489 hardcode_action_GCJ=unsupported
18491 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18492 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18494 if test "$hardcode_action_GCJ" = relink; then
18495 # Fast installation is not supported
18496 enable_fast_install=no
18497 elif test "$shlibpath_overrides_runpath" = yes ||
18498 test "$enable_shared" = no; then
18499 # Fast installation is not necessary
18500 enable_fast_install=needless
18504 # The else clause should only fire when bootstrapping the
18505 # libtool distribution, otherwise you forgot to ship ltmain.sh
18506 # with your package, and you will get complaints that there are
18507 # no rules to generate ltmain.sh.
18508 if test -f "$ltmain"; then
18509 # See if we are running on zsh, and set the options which allow our commands through
18510 # without removal of \ escapes.
18511 if test -n "${ZSH_VERSION+set}" ; then
18512 setopt NO_GLOB_SUBST
18514 # Now quote all the things that may contain metacharacters while being
18515 # careful not to overquote the AC_SUBSTed values. We take copies of the
18516 # variables and quote the copies for generation of the libtool script.
18517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18521 deplibs_check_method reload_flag reload_cmds need_locks \
18522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18523 lt_cv_sys_global_symbol_to_c_name_address \
18524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18525 old_postinstall_cmds old_postuninstall_cmds \
18529 lt_prog_compiler_wl_GCJ \
18530 lt_prog_compiler_pic_GCJ \
18531 lt_prog_compiler_static_GCJ \
18532 lt_prog_compiler_no_builtin_flag_GCJ \
18533 export_dynamic_flag_spec_GCJ \
18534 thread_safe_flag_spec_GCJ \
18535 whole_archive_flag_spec_GCJ \
18536 enable_shared_with_static_runtimes_GCJ \
18537 old_archive_cmds_GCJ \
18538 old_archive_from_new_cmds_GCJ \
18539 predep_objects_GCJ \
18540 postdep_objects_GCJ \
18543 compiler_lib_search_path_GCJ \
18545 archive_expsym_cmds_GCJ \
18546 postinstall_cmds_GCJ \
18547 postuninstall_cmds_GCJ \
18548 old_archive_from_expsyms_cmds_GCJ \
18549 allow_undefined_flag_GCJ \
18550 no_undefined_flag_GCJ \
18551 export_symbols_cmds_GCJ \
18552 hardcode_libdir_flag_spec_GCJ \
18553 hardcode_libdir_flag_spec_ld_GCJ \
18554 hardcode_libdir_separator_GCJ \
18555 hardcode_automatic_GCJ \
18557 module_expsym_cmds_GCJ \
18558 lt_cv_prog_compiler_c_o_GCJ \
18559 exclude_expsyms_GCJ \
18560 include_expsyms_GCJ; do
18563 old_archive_cmds_GCJ | \
18564 old_archive_from_new_cmds_GCJ | \
18565 archive_cmds_GCJ | \
18566 archive_expsym_cmds_GCJ | \
18567 module_cmds_GCJ | \
18568 module_expsym_cmds_GCJ | \
18569 old_archive_from_expsyms_cmds_GCJ | \
18570 export_symbols_cmds_GCJ | \
18571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18572 postinstall_cmds | postuninstall_cmds | \
18573 old_postinstall_cmds | old_postuninstall_cmds | \
18574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18575 # Double-quote double-evaled strings.
18576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18585 *'\$0 --fallback-echo"')
18586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18592 cat <<__EOF__ >> "$cfgfile"
18593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18597 # Shell to use when invoking shell scripts.
18600 # Whether or not to build shared libraries.
18601 build_libtool_libs=$enable_shared
18603 # Whether or not to build static libraries.
18604 build_old_libs=$enable_static
18606 # Whether or not to add -lc for building shared libraries.
18607 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18609 # Whether or not to disallow shared libs when runtime libs are static
18610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18612 # Whether or not to optimize for fast installation.
18613 fast_install=$enable_fast_install
18616 host_alias=$host_alias
18620 # The build system.
18621 build_alias=$build_alias
18625 # An echo program that does not interpret backslashes.
18630 AR_FLAGS=$lt_AR_FLAGS
18635 # LTCC compiler flags.
18636 LTCFLAGS=$lt_LTCFLAGS
18638 # A language-specific compiler.
18639 CC=$lt_compiler_GCJ
18641 # Is the compiler the GNU C compiler?
18647 # The linker used to build libraries.
18650 # Whether we need hard or soft links.
18653 # A BSD-compatible nm program.
18656 # A symbol stripping program
18659 # Used to examine libraries when file_magic_cmd begins "file"
18660 MAGIC_CMD=$MAGIC_CMD
18662 # Used on cygwin: DLL creation program.
18665 # Used on cygwin: object dumper.
18668 # Used on cygwin: assembler.
18671 # The name of the directory that contains temporary libtool files.
18674 # How to create reloadable object files.
18675 reload_flag=$lt_reload_flag
18676 reload_cmds=$lt_reload_cmds
18678 # How to pass a linker flag through the compiler.
18679 wl=$lt_lt_prog_compiler_wl_GCJ
18681 # Object file suffix (normally "o").
18682 objext="$ac_objext"
18684 # Old archive suffix (normally "a").
18687 # Shared library suffix (normally ".so").
18688 shrext_cmds='$shrext_cmds'
18690 # Executable file suffix (normally "").
18693 # Additional compiler flags for building library objects.
18694 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18697 # What is the maximum length of a command?
18698 max_cmd_len=$lt_cv_sys_max_cmd_len
18700 # Does compiler simultaneously support -c and -o options?
18701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18703 # Must we lock files when doing compilation?
18704 need_locks=$lt_need_locks
18706 # Do we need the lib prefix for modules?
18707 need_lib_prefix=$need_lib_prefix
18709 # Do we need a version for libraries?
18710 need_version=$need_version
18712 # Whether dlopen is supported.
18713 dlopen_support=$enable_dlopen
18715 # Whether dlopen of programs is supported.
18716 dlopen_self=$enable_dlopen_self
18718 # Whether dlopen of statically linked programs is supported.
18719 dlopen_self_static=$enable_dlopen_self_static
18721 # Compiler flag to prevent dynamic linking.
18722 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18724 # Compiler flag to turn off builtin functions.
18725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18727 # Compiler flag to allow reflexive dlopens.
18728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18730 # Compiler flag to generate shared objects directly from archives.
18731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18733 # Compiler flag to generate thread-safe objects.
18734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18736 # Library versioning type.
18737 version_type=$version_type
18739 # Format of library name prefix.
18740 libname_spec=$lt_libname_spec
18742 # List of archive names. First name is the real one, the rest are links.
18743 # The last name is the one that the linker finds with -lNAME.
18744 library_names_spec=$lt_library_names_spec
18746 # The coded name of the library, if different from the real name.
18747 soname_spec=$lt_soname_spec
18749 # Commands used to build and install an old-style archive.
18751 old_archive_cmds=$lt_old_archive_cmds_GCJ
18752 old_postinstall_cmds=$lt_old_postinstall_cmds
18753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18755 # Create an old-style archive from a shared archive.
18756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18758 # Create a temporary old-style archive to link instead of a shared archive.
18759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18761 # Commands used to build and install a shared archive.
18762 archive_cmds=$lt_archive_cmds_GCJ
18763 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18764 postinstall_cmds=$lt_postinstall_cmds
18765 postuninstall_cmds=$lt_postuninstall_cmds
18767 # Commands used to build a loadable module (assumed same as above if empty)
18768 module_cmds=$lt_module_cmds_GCJ
18769 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18771 # Commands to strip libraries.
18772 old_striplib=$lt_old_striplib
18773 striplib=$lt_striplib
18775 # Dependencies to place before the objects being linked to create a
18777 predep_objects=$lt_predep_objects_GCJ
18779 # Dependencies to place after the objects being linked to create a
18781 postdep_objects=$lt_postdep_objects_GCJ
18783 # Dependencies to place before the objects being linked to create a
18785 predeps=$lt_predeps_GCJ
18787 # Dependencies to place after the objects being linked to create a
18789 postdeps=$lt_postdeps_GCJ
18791 # The library search path used internally by the compiler when linking
18792 # a shared library.
18793 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18795 # Method to check whether dependent libraries are shared objects.
18796 deplibs_check_method=$lt_deplibs_check_method
18798 # Command to use when deplibs_check_method == file_magic.
18799 file_magic_cmd=$lt_file_magic_cmd
18801 # Flag that allows shared libraries with undefined symbols to be built.
18802 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18804 # Flag that forces no undefined symbols.
18805 no_undefined_flag=$lt_no_undefined_flag_GCJ
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18810 # Same as above, but a single script fragment to be evaled but not shown.
18811 finish_eval=$lt_finish_eval
18813 # Take the output of nm and produce a listing of raw symbols and C names.
18814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18816 # Transform the output of nm in a proper C declaration
18817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18819 # Transform the output of nm in a C name address pair
18820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18822 # This is the shared library runtime path variable.
18823 runpath_var=$runpath_var
18825 # This is the shared library path variable.
18826 shlibpath_var=$shlibpath_var
18828 # Is shlibpath searched before the hard-coded library search path?
18829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18831 # How to hardcode a shared library path into an executable.
18832 hardcode_action=$hardcode_action_GCJ
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18837 # Flag to hardcode \$libdir into a binary during linking.
18838 # This must work even if \$libdir does not exist.
18839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18841 # If ld is used when linking, flag to hardcode \$libdir into
18842 # a binary during linking. This must work even if \$libdir does
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18846 # Whether we need a single -rpath flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_direct=$hardcode_direct_GCJ
18853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L_GCJ
18857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858 # the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18861 # Set to yes if building a shared library automatically hardcodes DIR into the library
18862 # and all subsequent libraries and executables linked against it.
18863 hardcode_automatic=$hardcode_automatic_GCJ
18865 # Variables whose values should be saved in libtool wrapper scripts and
18866 # restored at relink time.
18867 variables_saved_for_relink="$variables_saved_for_relink"
18869 # Whether libtool must link a program against all its dependency libraries.
18870 link_all_deplibs=$link_all_deplibs_GCJ
18872 # Compile-time system search path for libraries
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18875 # Run-time system search path for libraries
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18878 # Fix the shell variable \$srcfile for the compiler.
18879 fix_srcfile_path="$fix_srcfile_path_GCJ"
18881 # Set to yes if exported symbols are required.
18882 always_export_symbols=$always_export_symbols_GCJ
18884 # The commands to list exported symbols.
18885 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18887 # The commands to extract the exported symbol list from a shared archive.
18888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18890 # Symbols that should not be listed in the preloaded symbols.
18891 exclude_expsyms=$lt_exclude_expsyms_GCJ
18893 # Symbols that must always be exported.
18894 include_expsyms=$lt_include_expsyms_GCJ
18896 # ### END LIBTOOL TAG CONFIG: $tagname
18902 # If there is no Makefile yet, we rely on a make rule to execute
18903 # `config.status --recheck' to rerun these tests and create the
18904 # libtool script then.
18905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906 if test -f "$ltmain_in"; then
18907 test -f Makefile && make "$ltmain"
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18928 # Source file extension for RC test sources.
18931 # Object file extension for compiled RC test sources.
18935 # Code to be used in simple compile tests
18936 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18938 # Code to be used in simple link tests
18939 lt_simple_link_test_code="$lt_simple_compile_test_code"
18941 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18943 # If no C compiler was specified, use CC.
18946 # If no C compiler flags were specified, use CFLAGS.
18947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18949 # Allow CC to be a program name with arguments.
18953 # save warnings/boilerplate of simple test code
18954 ac_outfile=conftest.$ac_objext
18955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18957 _lt_compiler_boilerplate=`cat conftest.err`
18960 ac_outfile=conftest.$ac_objext
18961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963 _lt_linker_boilerplate=`cat conftest.err`
18967 # Allow CC to be a program name with arguments.
18972 for cc_temp in $compiler""; do
18974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18982 lt_cv_prog_compiler_c_o_RC=yes
18984 # The else clause should only fire when bootstrapping the
18985 # libtool distribution, otherwise you forgot to ship ltmain.sh
18986 # with your package, and you will get complaints that there are
18987 # no rules to generate ltmain.sh.
18988 if test -f "$ltmain"; then
18989 # See if we are running on zsh, and set the options which allow our commands through
18990 # without removal of \ escapes.
18991 if test -n "${ZSH_VERSION+set}" ; then
18992 setopt NO_GLOB_SUBST
18994 # Now quote all the things that may contain metacharacters while being
18995 # careful not to overquote the AC_SUBSTed values. We take copies of the
18996 # variables and quote the copies for generation of the libtool script.
18997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19001 deplibs_check_method reload_flag reload_cmds need_locks \
19002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19003 lt_cv_sys_global_symbol_to_c_name_address \
19004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19005 old_postinstall_cmds old_postuninstall_cmds \
19009 lt_prog_compiler_wl_RC \
19010 lt_prog_compiler_pic_RC \
19011 lt_prog_compiler_static_RC \
19012 lt_prog_compiler_no_builtin_flag_RC \
19013 export_dynamic_flag_spec_RC \
19014 thread_safe_flag_spec_RC \
19015 whole_archive_flag_spec_RC \
19016 enable_shared_with_static_runtimes_RC \
19017 old_archive_cmds_RC \
19018 old_archive_from_new_cmds_RC \
19019 predep_objects_RC \
19020 postdep_objects_RC \
19023 compiler_lib_search_path_RC \
19025 archive_expsym_cmds_RC \
19026 postinstall_cmds_RC \
19027 postuninstall_cmds_RC \
19028 old_archive_from_expsyms_cmds_RC \
19029 allow_undefined_flag_RC \
19030 no_undefined_flag_RC \
19031 export_symbols_cmds_RC \
19032 hardcode_libdir_flag_spec_RC \
19033 hardcode_libdir_flag_spec_ld_RC \
19034 hardcode_libdir_separator_RC \
19035 hardcode_automatic_RC \
19037 module_expsym_cmds_RC \
19038 lt_cv_prog_compiler_c_o_RC \
19039 exclude_expsyms_RC \
19040 include_expsyms_RC; do
19043 old_archive_cmds_RC | \
19044 old_archive_from_new_cmds_RC | \
19045 archive_cmds_RC | \
19046 archive_expsym_cmds_RC | \
19048 module_expsym_cmds_RC | \
19049 old_archive_from_expsyms_cmds_RC | \
19050 export_symbols_cmds_RC | \
19051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19052 postinstall_cmds | postuninstall_cmds | \
19053 old_postinstall_cmds | old_postuninstall_cmds | \
19054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19055 # Double-quote double-evaled strings.
19056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19065 *'\$0 --fallback-echo"')
19066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19072 cat <<__EOF__ >> "$cfgfile"
19073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19077 # Shell to use when invoking shell scripts.
19080 # Whether or not to build shared libraries.
19081 build_libtool_libs=$enable_shared
19083 # Whether or not to build static libraries.
19084 build_old_libs=$enable_static
19086 # Whether or not to add -lc for building shared libraries.
19087 build_libtool_need_lc=$archive_cmds_need_lc_RC
19089 # Whether or not to disallow shared libs when runtime libs are static
19090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19092 # Whether or not to optimize for fast installation.
19093 fast_install=$enable_fast_install
19096 host_alias=$host_alias
19100 # The build system.
19101 build_alias=$build_alias
19105 # An echo program that does not interpret backslashes.
19110 AR_FLAGS=$lt_AR_FLAGS
19115 # LTCC compiler flags.
19116 LTCFLAGS=$lt_LTCFLAGS
19118 # A language-specific compiler.
19121 # Is the compiler the GNU C compiler?
19127 # The linker used to build libraries.
19130 # Whether we need hard or soft links.
19133 # A BSD-compatible nm program.
19136 # A symbol stripping program
19139 # Used to examine libraries when file_magic_cmd begins "file"
19140 MAGIC_CMD=$MAGIC_CMD
19142 # Used on cygwin: DLL creation program.
19145 # Used on cygwin: object dumper.
19148 # Used on cygwin: assembler.
19151 # The name of the directory that contains temporary libtool files.
19154 # How to create reloadable object files.
19155 reload_flag=$lt_reload_flag
19156 reload_cmds=$lt_reload_cmds
19158 # How to pass a linker flag through the compiler.
19159 wl=$lt_lt_prog_compiler_wl_RC
19161 # Object file suffix (normally "o").
19162 objext="$ac_objext"
19164 # Old archive suffix (normally "a").
19167 # Shared library suffix (normally ".so").
19168 shrext_cmds='$shrext_cmds'
19170 # Executable file suffix (normally "").
19173 # Additional compiler flags for building library objects.
19174 pic_flag=$lt_lt_prog_compiler_pic_RC
19177 # What is the maximum length of a command?
19178 max_cmd_len=$lt_cv_sys_max_cmd_len
19180 # Does compiler simultaneously support -c and -o options?
19181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19183 # Must we lock files when doing compilation?
19184 need_locks=$lt_need_locks
19186 # Do we need the lib prefix for modules?
19187 need_lib_prefix=$need_lib_prefix
19189 # Do we need a version for libraries?
19190 need_version=$need_version
19192 # Whether dlopen is supported.
19193 dlopen_support=$enable_dlopen
19195 # Whether dlopen of programs is supported.
19196 dlopen_self=$enable_dlopen_self
19198 # Whether dlopen of statically linked programs is supported.
19199 dlopen_self_static=$enable_dlopen_self_static
19201 # Compiler flag to prevent dynamic linking.
19202 link_static_flag=$lt_lt_prog_compiler_static_RC
19204 # Compiler flag to turn off builtin functions.
19205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19207 # Compiler flag to allow reflexive dlopens.
19208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19210 # Compiler flag to generate shared objects directly from archives.
19211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19213 # Compiler flag to generate thread-safe objects.
19214 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19216 # Library versioning type.
19217 version_type=$version_type
19219 # Format of library name prefix.
19220 libname_spec=$lt_libname_spec
19222 # List of archive names. First name is the real one, the rest are links.
19223 # The last name is the one that the linker finds with -lNAME.
19224 library_names_spec=$lt_library_names_spec
19226 # The coded name of the library, if different from the real name.
19227 soname_spec=$lt_soname_spec
19229 # Commands used to build and install an old-style archive.
19231 old_archive_cmds=$lt_old_archive_cmds_RC
19232 old_postinstall_cmds=$lt_old_postinstall_cmds
19233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19235 # Create an old-style archive from a shared archive.
19236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19238 # Create a temporary old-style archive to link instead of a shared archive.
19239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19241 # Commands used to build and install a shared archive.
19242 archive_cmds=$lt_archive_cmds_RC
19243 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19244 postinstall_cmds=$lt_postinstall_cmds
19245 postuninstall_cmds=$lt_postuninstall_cmds
19247 # Commands used to build a loadable module (assumed same as above if empty)
19248 module_cmds=$lt_module_cmds_RC
19249 module_expsym_cmds=$lt_module_expsym_cmds_RC
19251 # Commands to strip libraries.
19252 old_striplib=$lt_old_striplib
19253 striplib=$lt_striplib
19255 # Dependencies to place before the objects being linked to create a
19257 predep_objects=$lt_predep_objects_RC
19259 # Dependencies to place after the objects being linked to create a
19261 postdep_objects=$lt_postdep_objects_RC
19263 # Dependencies to place before the objects being linked to create a
19265 predeps=$lt_predeps_RC
19267 # Dependencies to place after the objects being linked to create a
19269 postdeps=$lt_postdeps_RC
19271 # The library search path used internally by the compiler when linking
19272 # a shared library.
19273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19275 # Method to check whether dependent libraries are shared objects.
19276 deplibs_check_method=$lt_deplibs_check_method
19278 # Command to use when deplibs_check_method == file_magic.
19279 file_magic_cmd=$lt_file_magic_cmd
19281 # Flag that allows shared libraries with undefined symbols to be built.
19282 allow_undefined_flag=$lt_allow_undefined_flag_RC
19284 # Flag that forces no undefined symbols.
19285 no_undefined_flag=$lt_no_undefined_flag_RC
19287 # Commands used to finish a libtool library installation in a directory.
19288 finish_cmds=$lt_finish_cmds
19290 # Same as above, but a single script fragment to be evaled but not shown.
19291 finish_eval=$lt_finish_eval
19293 # Take the output of nm and produce a listing of raw symbols and C names.
19294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19296 # Transform the output of nm in a proper C declaration
19297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19299 # Transform the output of nm in a C name address pair
19300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19302 # This is the shared library runtime path variable.
19303 runpath_var=$runpath_var
19305 # This is the shared library path variable.
19306 shlibpath_var=$shlibpath_var
19308 # Is shlibpath searched before the hard-coded library search path?
19309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19311 # How to hardcode a shared library path into an executable.
19312 hardcode_action=$hardcode_action_RC
19314 # Whether we should hardcode library paths into libraries.
19315 hardcode_into_libs=$hardcode_into_libs
19317 # Flag to hardcode \$libdir into a binary during linking.
19318 # This must work even if \$libdir does not exist.
19319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19321 # If ld is used when linking, flag to hardcode \$libdir into
19322 # a binary during linking. This must work even if \$libdir does
19324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19326 # Whether we need a single -rpath flag with a separated argument.
19327 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19329 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19330 # resulting binary.
19331 hardcode_direct=$hardcode_direct_RC
19333 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_minus_L=$hardcode_minus_L_RC
19337 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19338 # the resulting binary.
19339 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19341 # Set to yes if building a shared library automatically hardcodes DIR into the library
19342 # and all subsequent libraries and executables linked against it.
19343 hardcode_automatic=$hardcode_automatic_RC
19345 # Variables whose values should be saved in libtool wrapper scripts and
19346 # restored at relink time.
19347 variables_saved_for_relink="$variables_saved_for_relink"
19349 # Whether libtool must link a program against all its dependency libraries.
19350 link_all_deplibs=$link_all_deplibs_RC
19352 # Compile-time system search path for libraries
19353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19355 # Run-time system search path for libraries
19356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19358 # Fix the shell variable \$srcfile for the compiler.
19359 fix_srcfile_path="$fix_srcfile_path_RC"
19361 # Set to yes if exported symbols are required.
19362 always_export_symbols=$always_export_symbols_RC
19364 # The commands to list exported symbols.
19365 export_symbols_cmds=$lt_export_symbols_cmds_RC
19367 # The commands to extract the exported symbol list from a shared archive.
19368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms_RC
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms_RC
19376 # ### END LIBTOOL TAG CONFIG: $tagname
19382 # If there is no Makefile yet, we rely on a make rule to execute
19383 # `config.status --recheck' to rerun these tests and create the
19384 # libtool script then.
19385 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19386 if test -f "$ltmain_in"; then
19387 test -f Makefile && make "$ltmain"
19393 ac_cpp='$CPP $CPPFLAGS'
19394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19403 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19404 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19405 { (exit 1); exit 1; }; }
19409 # Append the new tag name to the list of available tags.
19410 if test -n "$tagname" ; then
19411 available_tags="$available_tags $tagname"
19417 # Now substitute the updated list of available tags.
19418 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19419 mv "${ofile}T" "$ofile"
19423 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19424 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19425 { (exit 1); exit 1; }; }
19431 # This can be used to rebuild libtool when needed
19432 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19434 # Always use our own libtool.
19435 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19437 # Prevent multiple expansion
19450 # Check whether --with-system-libtool was given.
19451 if test "${with_system_libtool+set}" = set; then
19452 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19453 set dummy libtool; ac_word=$2
19454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19456 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 as_dummy="$PATH:/usr/local/bin"
19466 for as_dir in $as_dummy
19469 test -z "$as_dir" && as_dir=.
19470 for ac_exec_ext in '' $ac_executable_extensions; do
19471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19472 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19483 LIBTOOL=$ac_cv_path_LIBTOOL
19484 if test -n "$LIBTOOL"; then
19485 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19486 echo "${ECHO_T}$LIBTOOL" >&6; }
19488 { echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6; }
19495 LIBTOOL="`pwd`/libtool"
19515 # Check whether --enable-strict-dependencies was given.
19516 if test "${enable_strict_dependencies+set}" = set; then
19517 enableval=$enable_strict_dependencies;
19521 docdir='${datadir}/doc/freeradius'
19522 { echo "$as_me:$LINENO: checking docdir" >&5
19523 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19525 # Check whether --with-docdir was given.
19526 if test "${with_docdir+set}" = set; then
19527 withval=$with_docdir; case "$withval" in
19533 [\\/$]* | ?:[\\/]* )
19537 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19538 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19539 { (exit 1); exit 1; }; }
19546 { echo "$as_me:$LINENO: result: $docdir" >&5
19547 echo "${ECHO_T}$docdir" >&6; }
19548 if test "x$docdir" = xno; then
19549 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19550 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19553 logdir='${localstatedir}/log/radius'
19554 { echo "$as_me:$LINENO: checking logdir" >&5
19555 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19557 # Check whether --with-logdir was given.
19558 if test "${with_logdir+set}" = set; then
19559 withval=$with_logdir; case "$withval" in
19561 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19562 echo "$as_me: error: Need logdir" >&2;}
19563 { (exit 1); exit 1; }; }
19567 [\\/$]* | ?:[\\/]* )
19571 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19572 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19573 { (exit 1); exit 1; }; }
19580 { echo "$as_me:$LINENO: result: $logdir" >&5
19581 echo "${ECHO_T}$logdir" >&6; }
19583 radacctdir='${logdir}/radacct'
19584 { echo "$as_me:$LINENO: checking radacctdir" >&5
19585 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19587 # Check whether --with-radacctdir was given.
19588 if test "${with_radacctdir+set}" = set; then
19589 withval=$with_radacctdir; case "$withval" in
19591 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19592 echo "$as_me: error: Need radacctdir" >&2;}
19593 { (exit 1); exit 1; }; }
19597 [\\/$]* | ?:[\\/]* )
19598 radacctdir="$withval"
19601 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19602 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19603 { (exit 1); exit 1; }; }
19610 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19611 echo "${ECHO_T}$radacctdir" >&6; }
19613 raddbdir='${sysconfdir}/raddb'
19614 { echo "$as_me:$LINENO: checking raddbdir" >&5
19615 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19617 # Check whether --with-raddbdir was given.
19618 if test "${with_raddbdir+set}" = set; then
19619 withval=$with_raddbdir; case "$withval" in
19621 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19622 echo "$as_me: error: Need raddbdir" >&2;}
19623 { (exit 1); exit 1; }; }
19627 [\\/$]* | ?:[\\/]* )
19628 raddbdir="$withval"
19631 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19632 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19633 { (exit 1); exit 1; }; }
19640 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19641 echo "${ECHO_T}$raddbdir" >&6; }
19645 # Check whether --with-ascend-binary was given.
19646 if test "${with_ascend_binary+set}" = set; then
19647 withval=$with_ascend_binary; case "$withval" in
19656 if test "X$ASCEND_BINARY" = "Xyes"; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define ASCEND_BINARY
19666 # Check whether --with-threads was given.
19667 if test "${with_threads+set}" = set; then
19668 withval=$with_threads; case "$withval" in
19680 # Check whether --with-vmps was given.
19681 if test "${with_vmps+set}" = set; then
19682 withval=$with_vmps; case "$withval" in
19691 if test "x$WITH_VMPS" = "xyes"; then
19693 cat >>confdefs.h <<\_ACEOF
19694 #define WITH_VMPS 1
19700 # Check whether --with-dhcp was given.
19701 if test "${with_dhcp+set}" = set; then
19702 withval=$with_dhcp; case "$withval" in
19705 cat >>confdefs.h <<\_ACEOF
19706 #define WITH_DHCP 1
19720 # Check whether --with-static_modules was given.
19721 if test "${with_static_modules+set}" = set; then
19722 withval=$with_static_modules;
19723 for i in $withval; do
19724 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19732 # Check whether --with-modules was given.
19733 if test "${with_modules+set}" = set; then
19734 withval=$with_modules;
19735 for i in $withval; do
19736 MODULES="$MODULES $i"
19742 # Check whether --enable-developer was given.
19743 if test "${enable_developer+set}" = set; then
19744 enableval=$enable_developer; case "$enableval" in
19755 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19759 if test "x$developer" != "xno" -a -d $srcdir/.git; then
19765 # Check whether --with-experimental-modules was given.
19766 if test "${with_experimental_modules+set}" = set; then
19767 withval=$with_experimental_modules; case "$withval" in
19779 # Check whether --with-openssl was given.
19780 if test "${with_openssl+set}" = set; then
19781 withval=$with_openssl; case "$withval" in
19793 OPENSSL_INCLUDE_DIR=
19795 # Check whether --with-openssl-includes was given.
19796 if test "${with_openssl_includes+set}" = set; then
19797 withval=$with_openssl_includes; case "$withval" in
19798 *) OPENSSL_INCLUDE_DIR="$withval"
19807 # Check whether --with-openssl-libraries was given.
19808 if test "${with_openssl_libraries+set}" = set; then
19809 withval=$with_openssl_libraries; case "$withval" in
19810 *) OPENSSL_LIB_DIR="$withval"
19819 # Check whether --with-rlm-FOO-lib-dir was given.
19820 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19821 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19830 # Check whether --with-rlm-FOO-include-dir was given.
19831 if test "${with_rlm_FOO_include_dir+set}" = set; then
19832 withval=$with_rlm_FOO_include_dir; case "$withval" in
19843 # Check whether --with-udpfromto was given.
19844 if test "${with_udpfromto+set}" = set; then
19845 withval=$with_udpfromto; case "$withval" in
19856 if test "x$WITH_UDPFROMTO" = "xyes"; then
19858 cat >>confdefs.h <<\_ACEOF
19859 #define WITH_UDPFROMTO
19865 CHECKRAD=checkrad.pl
19866 # Extract the first word of "perl", so it can be a program name with args.
19867 set dummy perl; ac_word=$2
19868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19870 if test "${ac_cv_path_PERL+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19879 for as_dir in $PATH
19882 test -z "$as_dir" && as_dir=.
19883 for ac_exec_ext in '' $ac_executable_extensions; do
19884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19885 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19893 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19897 PERL=$ac_cv_path_PERL
19898 if test -n "$PERL"; then
19899 { echo "$as_me:$LINENO: result: $PERL" >&5
19900 echo "${ECHO_T}$PERL" >&6; }
19902 { echo "$as_me:$LINENO: result: no" >&5
19903 echo "${ECHO_T}no" >&6; }
19907 if test "x$ac_cv_path_PERL" = "x"; then
19908 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19909 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19911 # Extract the first word of "snmpget", so it can be a program name with args.
19912 set dummy snmpget; ac_word=$2
19913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19915 if test "${ac_cv_path_SNMPGET+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19920 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924 for as_dir in $PATH
19927 test -z "$as_dir" && as_dir=.
19928 for ac_exec_ext in '' $ac_executable_extensions; do
19929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19930 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19941 SNMPGET=$ac_cv_path_SNMPGET
19942 if test -n "$SNMPGET"; then
19943 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19944 echo "${ECHO_T}$SNMPGET" >&6; }
19946 { echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6; }
19951 if test "x$ac_cv_path_SNMPGET" = "x"; then
19952 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19953 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19956 # Extract the first word of "snmpwalk", so it can be a program name with args.
19957 set dummy snmpwalk; ac_word=$2
19958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19960 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19972 test -z "$as_dir" && as_dir=.
19973 for ac_exec_ext in '' $ac_executable_extensions; do
19974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19975 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19986 SNMPWALK=$ac_cv_path_SNMPWALK
19987 if test -n "$SNMPWALK"; then
19988 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19989 echo "${ECHO_T}$SNMPWALK" >&6; }
19991 { echo "$as_me:$LINENO: result: no" >&5
19992 echo "${ECHO_T}no" >&6; }
19996 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19997 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19998 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20001 # Extract the first word of "rusers", so it can be a program name with args.
20002 set dummy rusers; ac_word=$2
20003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20005 if test "${ac_cv_path_RUSERS+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20014 for as_dir in $PATH
20017 test -z "$as_dir" && as_dir=.
20018 for ac_exec_ext in '' $ac_executable_extensions; do
20019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20020 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20028 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20032 RUSERS=$ac_cv_path_RUSERS
20033 if test -n "$RUSERS"; then
20034 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20035 echo "${ECHO_T}$RUSERS" >&6; }
20037 { echo "$as_me:$LINENO: result: no" >&5
20038 echo "${ECHO_T}no" >&6; }
20043 missing_dir=`cd $ac_aux_dir && pwd`
20044 # expand $ac_aux_dir to an absolute path
20045 am_aux_dir=`cd $ac_aux_dir && pwd`
20047 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20048 # Use eval to expand $SHELL
20049 if eval "$MISSING --run true"; then
20050 am_missing_run="$MISSING --run "
20053 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20054 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20064 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20067 # Extract the first word of "locate", so it can be a program name with args.
20068 set dummy locate; ac_word=$2
20069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20071 if test "${ac_cv_path_LOCATE+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20080 for as_dir in $PATH
20083 test -z "$as_dir" && as_dir=.
20084 for ac_exec_ext in '' $ac_executable_extensions; do
20085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20086 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20097 LOCATE=$ac_cv_path_LOCATE
20098 if test -n "$LOCATE"; then
20099 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20100 echo "${ECHO_T}$LOCATE" >&6; }
20102 { echo "$as_me:$LINENO: result: no" >&5
20103 echo "${ECHO_T}no" >&6; }
20107 # Extract the first word of "dirname", so it can be a program name with args.
20108 set dummy dirname; ac_word=$2
20109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20111 if test "${ac_cv_path_DIRNAME+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20120 for as_dir in $PATH
20123 test -z "$as_dir" && as_dir=.
20124 for ac_exec_ext in '' $ac_executable_extensions; do
20125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20126 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20137 DIRNAME=$ac_cv_path_DIRNAME
20138 if test -n "$DIRNAME"; then
20139 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20140 echo "${ECHO_T}$DIRNAME" >&6; }
20142 { echo "$as_me:$LINENO: result: no" >&5
20143 echo "${ECHO_T}no" >&6; }
20147 # Extract the first word of "grep", so it can be a program name with args.
20148 set dummy grep; ac_word=$2
20149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20151 if test "${ac_cv_path_GREP+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20163 test -z "$as_dir" && as_dir=.
20164 for ac_exec_ext in '' $ac_executable_extensions; do
20165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20166 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20177 GREP=$ac_cv_path_GREP
20178 if test -n "$GREP"; then
20179 { echo "$as_me:$LINENO: result: $GREP" >&5
20180 echo "${ECHO_T}$GREP" >&6; }
20182 { echo "$as_me:$LINENO: result: no" >&5
20183 echo "${ECHO_T}no" >&6; }
20190 if test "x$WITH_THREADS" = "xyes"; then
20191 if test $ac_cv_prog_suncc = "yes"; then
20192 CFLAGS="$CFLAGS -mt"
20196 for ac_header in pthread.h
20198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 ac_res=`eval echo '${'$as_ac_Header'}'`
20206 { echo "$as_me:$LINENO: result: $ac_res" >&5
20207 echo "${ECHO_T}$ac_res" >&6; }
20209 # Is the header compilable?
20210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 #include <$ac_header>
20221 rm -f conftest.$ac_objext
20222 if { (ac_try="$ac_compile"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_compile") 2>conftest.er1
20230 grep -v '^ *+' conftest.er1 >conftest.err
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest.$ac_objext; then
20238 ac_header_compiler=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_compiler=no
20246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20248 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250 # Is the header present?
20251 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 #include <$ac_header>
20261 if { (ac_try="$ac_cpp conftest.$ac_ext"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } >/dev/null && {
20274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20277 ac_header_preproc=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289 # So? What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20296 ac_header_preproc=yes
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 eval "$as_ac_Header=\$ac_header_preproc"
20321 ac_res=`eval echo '${'$as_ac_Header'}'`
20322 { echo "$as_me:$LINENO: result: $ac_res" >&5
20323 echo "${ECHO_T}$ac_res" >&6; }
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20338 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20339 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20340 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 ac_check_lib_save_LIBS=$LIBS
20344 LIBS="-lpthread $LIBS"
20345 cat >conftest.$ac_ext <<_ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20358 char pthread_create ();
20362 return pthread_create ();
20367 rm -f conftest.$ac_objext conftest$ac_exeext
20368 if { (ac_try="$ac_link"
20369 case "(($ac_try" in
20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371 *) ac_try_echo=$ac_try;;
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374 (eval "$ac_link") 2>conftest.er1
20376 grep -v '^ *+' conftest.er1 >conftest.err
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } && {
20381 test -z "$ac_c_werror_flag" ||
20382 test ! -s conftest.err
20383 } && test -s conftest$ac_exeext &&
20384 $as_test_x conftest$ac_exeext; then
20385 ac_cv_lib_pthread_pthread_create=yes
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ac_cv_lib_pthread_pthread_create=no
20393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20394 conftest$ac_exeext conftest.$ac_ext
20395 LIBS=$ac_check_lib_save_LIBS
20397 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20398 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20399 if test $ac_cv_lib_pthread_pthread_create = yes; then
20400 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20401 LIBS="$LIBS -lpthread"
20403 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20404 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20405 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 ac_check_lib_save_LIBS=$LIBS
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20423 char pthread_create ();
20427 return pthread_create ();
20432 rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_link") 2>conftest.er1
20441 grep -v '^ *+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } && {
20446 test -z "$ac_c_werror_flag" ||
20447 test ! -s conftest.err
20448 } && test -s conftest$ac_exeext &&
20449 $as_test_x conftest$ac_exeext; then
20450 ac_cv_lib_c_r_pthread_create=yes
20452 echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20455 ac_cv_lib_c_r_pthread_create=no
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20459 conftest$ac_exeext conftest.$ac_ext
20460 LIBS=$ac_check_lib_save_LIBS
20462 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20463 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20464 if test $ac_cv_lib_c_r_pthread_create = yes; then
20465 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20476 if test "x$WITH_THREADS" != "xyes"; then
20478 ac_cv_header_pthread_h="no"
20482 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20483 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20484 if test "${ac_cv_search_sem_init+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 ac_func_search_save_LIBS=$LIBS
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20495 /* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
20505 return sem_init ();
20510 for ac_lib in '' pthread sem posix4 rt semaphore; do
20511 if test -z "$ac_lib"; then
20512 ac_res="none required"
20515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20517 rm -f conftest.$ac_objext conftest$ac_exeext
20518 if { (ac_try="$ac_link"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_link") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest$ac_exeext &&
20534 $as_test_x conftest$ac_exeext; then
20535 ac_cv_search_sem_init=$ac_res
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20545 if test "${ac_cv_search_sem_init+set}" = set; then
20549 if test "${ac_cv_search_sem_init+set}" = set; then
20552 ac_cv_search_sem_init=no
20554 rm conftest.$ac_ext
20555 LIBS=$ac_func_search_save_LIBS
20557 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20558 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20559 ac_res=$ac_cv_search_sem_init
20560 if test "$ac_res" != no; then
20561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20564 { { 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
20565 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;}
20566 { (exit 1); exit 1; }; }
20573 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20574 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20575 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20578 ac_check_lib_save_LIBS=$LIBS
20579 LIBS="-lsocket $LIBS"
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20593 char getsockname ();
20597 return getsockname ();
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest$ac_exeext &&
20619 $as_test_x conftest$ac_exeext; then
20620 ac_cv_lib_socket_getsockname=yes
20622 echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20625 ac_cv_lib_socket_getsockname=no
20628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20629 conftest$ac_exeext conftest.$ac_ext
20630 LIBS=$ac_check_lib_save_LIBS
20632 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20633 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20634 if test $ac_cv_lib_socket_getsockname = yes; then
20635 cat >>confdefs.h <<_ACEOF
20636 #define HAVE_LIBSOCKET 1
20639 LIBS="-lsocket $LIBS"
20645 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20646 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20647 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lresolv $LIBS"
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20669 return inet_aton ();
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (ac_try="$ac_link"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_link") 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest$ac_exeext &&
20691 $as_test_x conftest$ac_exeext; then
20692 ac_cv_lib_resolv_inet_aton=yes
20694 echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_cv_lib_resolv_inet_aton=no
20700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20701 conftest$ac_exeext conftest.$ac_ext
20702 LIBS=$ac_check_lib_save_LIBS
20704 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20705 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20706 if test $ac_cv_lib_resolv_inet_aton = yes; then
20707 cat >>confdefs.h <<_ACEOF
20708 #define HAVE_LIBRESOLV 1
20711 LIBS="-lresolv $LIBS"
20717 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20718 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20719 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 ac_check_lib_save_LIBS=$LIBS
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20731 /* Override any GCC internal prototype to avoid an error.
20732 Use char because int might match the return type of a GCC
20733 builtin and then its argument prototype would still apply. */
20741 return inet_ntoa ();
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext &&
20763 $as_test_x conftest$ac_exeext; then
20764 ac_cv_lib_nsl_inet_ntoa=yes
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20769 ac_cv_lib_nsl_inet_ntoa=no
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20774 LIBS=$ac_check_lib_save_LIBS
20776 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20777 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20778 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20779 cat >>confdefs.h <<_ACEOF
20780 #define HAVE_LIBNSL 1
20789 if test "x$WITH_OPENSSL" = xyes; then
20791 if test "x$OPENSSL_LIB_DIR" != "x"; then
20792 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20794 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20795 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20796 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20797 echo $ECHO_N "(cached) $ECHO_C" >&6
20799 ac_check_lib_save_LIBS=$LIBS
20800 LIBS="-lcrypto $LIBS"
20801 cat >conftest.$ac_ext <<_ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20808 /* Override any GCC internal prototype to avoid an error.
20809 Use char because int might match the return type of a GCC
20810 builtin and then its argument prototype would still apply. */
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (ac_try="$ac_link"
20825 case "(($ac_try" in
20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20827 *) ac_try_echo=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_link") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1 >conftest.err
20834 cat conftest.err >&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest$ac_exeext &&
20840 $as_test_x conftest$ac_exeext; then
20841 ac_cv_lib_crypto_DH_new=yes
20843 echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20846 ac_cv_lib_crypto_DH_new=no
20849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20850 conftest$ac_exeext conftest.$ac_ext
20851 LIBS=$ac_check_lib_save_LIBS
20853 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20854 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20855 if test $ac_cv_lib_crypto_DH_new = yes; then
20857 LIBS="-lcrypto $LIBS"
20859 cat >>confdefs.h <<\_ACEOF
20860 #define HAVE_LIBCRYPTO 1
20863 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20864 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20865 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20866 echo $ECHO_N "(cached) $ECHO_C" >&6
20868 ac_check_lib_save_LIBS=$LIBS
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20877 /* Override any GCC internal prototype to avoid an error.
20878 Use char because int might match the return type of a GCC
20879 builtin and then its argument prototype would still apply. */
20892 rm -f conftest.$ac_objext conftest$ac_exeext
20893 if { (ac_try="$ac_link"
20894 case "(($ac_try" in
20895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896 *) ac_try_echo=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_link") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1 >conftest.err
20903 cat conftest.err >&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest$ac_exeext &&
20909 $as_test_x conftest$ac_exeext; then
20910 ac_cv_lib_ssl_SSL_new=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_cv_lib_ssl_SSL_new=no
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20919 conftest$ac_exeext conftest.$ac_ext
20920 LIBS=$ac_check_lib_save_LIBS
20922 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20923 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20924 if test $ac_cv_lib_ssl_SSL_new = yes; then
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_LIBSSL 1
20931 if test "x$OPENSSL_LIB_DIR" != "x"; then
20932 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20934 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20945 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20946 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20947 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20950 ac_check_lib_save_LIBS=$LIBS
20951 LIBS="-lws2_32 $LIBS"
20952 cat >conftest.$ac_ext <<_ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20959 /* Override any GCC internal prototype to avoid an error.
20960 Use char because int might match the return type of a GCC
20961 builtin and then its argument prototype would still apply. */
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (ac_try="$ac_link"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_link") 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && {
20988 test -z "$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 } && test -s conftest$ac_exeext &&
20991 $as_test_x conftest$ac_exeext; then
20992 ac_cv_lib_ws2_32_htonl=yes
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_cv_lib_ws2_32_htonl=no
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21004 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21005 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21006 if test $ac_cv_lib_ws2_32_htonl = yes; then
21007 cat >>confdefs.h <<_ACEOF
21008 #define HAVE_LIBWS2_32 1
21011 LIBS="-lws2_32 $LIBS"
21017 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21018 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21019 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21020 echo $ECHO_N "(cached) $ECHO_C" >&6
21022 ac_check_lib_save_LIBS=$LIBS
21023 LIBS="-lpcap $LIBS"
21024 cat >conftest.$ac_ext <<_ACEOF
21027 cat confdefs.h >>conftest.$ac_ext
21028 cat >>conftest.$ac_ext <<_ACEOF
21029 /* end confdefs.h. */
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21037 char pcap_open_live ();
21041 return pcap_open_live ();
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (ac_try="$ac_link"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_link") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest$ac_exeext &&
21063 $as_test_x conftest$ac_exeext; then
21064 ac_cv_lib_pcap_pcap_open_live=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_lib_pcap_pcap_open_live=no
21072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21073 conftest$ac_exeext conftest.$ac_ext
21074 LIBS=$ac_check_lib_save_LIBS
21076 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21077 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21078 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21081 cat >>confdefs.h <<\_ACEOF
21082 #define HAVE_LIBPCAP 1
21087 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21088 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21095 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21098 CFLAGS="$CFLAGS -DDARWIN"
21099 LIBS="-framework DirectoryService $LIBS"
21108 ac_header_dirent=no
21109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21110 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21111 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21112 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <sys/types.h>
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 eval "$as_ac_Header=yes"
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 eval "$as_ac_Header=no"
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 ac_res=`eval echo '${'$as_ac_Header'}'`
21162 { echo "$as_me:$LINENO: result: $ac_res" >&5
21163 echo "${ECHO_T}$ac_res" >&6; }
21164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21169 ac_header_dirent=$ac_hdr; break
21173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21174 if test $ac_header_dirent = dirent.h; then
21175 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21176 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21177 if test "${ac_cv_search_opendir+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_func_search_save_LIBS=$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. */
21203 for ac_lib in '' dir; do
21204 if test -z "$ac_lib"; then
21205 ac_res="none required"
21208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21210 rm -f conftest.$ac_objext conftest$ac_exeext
21211 if { (ac_try="$ac_link"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_link") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } && {
21224 test -z "$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 } && test -s conftest$ac_exeext &&
21227 $as_test_x conftest$ac_exeext; then
21228 ac_cv_search_opendir=$ac_res
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21238 if test "${ac_cv_search_opendir+set}" = set; then
21242 if test "${ac_cv_search_opendir+set}" = set; then
21245 ac_cv_search_opendir=no
21247 rm conftest.$ac_ext
21248 LIBS=$ac_func_search_save_LIBS
21250 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21251 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21252 ac_res=$ac_cv_search_opendir
21253 if test "$ac_res" != no; then
21254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21259 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21260 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21261 if test "${ac_cv_search_opendir+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 ac_func_search_save_LIBS=$LIBS
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21272 /* Override any GCC internal prototype to avoid an error.
21273 Use char because int might match the return type of a GCC
21274 builtin and then its argument prototype would still apply. */
21287 for ac_lib in '' x; do
21288 if test -z "$ac_lib"; then
21289 ac_res="none required"
21292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_link") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest$ac_exeext &&
21311 $as_test_x conftest$ac_exeext; then
21312 ac_cv_search_opendir=$ac_res
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21322 if test "${ac_cv_search_opendir+set}" = set; then
21326 if test "${ac_cv_search_opendir+set}" = set; then
21329 ac_cv_search_opendir=no
21331 rm conftest.$ac_ext
21332 LIBS=$ac_func_search_save_LIBS
21334 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21335 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21336 ac_res=$ac_cv_search_opendir
21337 if test "$ac_res" != no; then
21338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21344 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21345 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21346 if test "${ac_cv_header_stdc+set}" = set; then
21347 echo $ECHO_N "(cached) $ECHO_C" >&6
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 #include <stdlib.h>
21356 #include <stdarg.h>
21357 #include <string.h>
21368 rm -f conftest.$ac_objext
21369 if { (ac_try="$ac_compile"
21370 case "(($ac_try" in
21371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21372 *) ac_try_echo=$ac_try;;
21374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21375 (eval "$ac_compile") 2>conftest.er1
21377 grep -v '^ *+' conftest.er1 >conftest.err
21379 cat conftest.err >&5
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } && {
21382 test -z "$ac_c_werror_flag" ||
21383 test ! -s conftest.err
21384 } && test -s conftest.$ac_objext; then
21385 ac_cv_header_stdc=yes
21387 echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21390 ac_cv_header_stdc=no
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 if test $ac_cv_header_stdc = yes; then
21396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21397 cat >conftest.$ac_ext <<_ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 #include <string.h>
21406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21407 $EGREP "memchr" >/dev/null 2>&1; then
21410 ac_cv_header_stdc=no
21416 if test $ac_cv_header_stdc = yes; then
21417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 #include <stdlib.h>
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428 $EGREP "free" >/dev/null 2>&1; then
21431 ac_cv_header_stdc=no
21437 if test $ac_cv_header_stdc = yes; then
21438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21439 if test "$cross_compiling" = yes; then
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21449 #include <stdlib.h>
21450 #if ((' ' & 0x0FF) == 0x020)
21451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21454 # define ISLOWER(c) \
21455 (('a' <= (c) && (c) <= 'i') \
21456 || ('j' <= (c) && (c) <= 'r') \
21457 || ('s' <= (c) && (c) <= 'z'))
21458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21466 for (i = 0; i < 256; i++)
21467 if (XOR (islower (i), ISLOWER (i))
21468 || toupper (i) != TOUPPER (i))
21473 rm -f conftest$ac_exeext
21474 if { (ac_try="$ac_link"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_link") 2>&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21484 { (case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_try") 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21495 echo "$as_me: program exited with status $ac_status" >&5
21496 echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.$ac_ext >&5
21499 ( exit $ac_status )
21500 ac_cv_header_stdc=no
21502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21509 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21510 if test $ac_cv_header_stdc = yes; then
21512 cat >>confdefs.h <<\_ACEOF
21513 #define STDC_HEADERS 1
21518 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21519 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21520 if test "${ac_cv_header_time+set}" = set; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 #include <sys/types.h>
21530 #include <sys/time.h>
21536 if ((struct tm *) 0)
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest.$ac_objext; then
21559 ac_cv_header_time=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_cv_header_time=no
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21570 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21571 if test $ac_cv_header_time = yes; then
21573 cat >>confdefs.h <<\_ACEOF
21574 #define TIME_WITH_SYS_TIME 1
21579 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21582 echo $ECHO_N "(cached) $ECHO_C" >&6
21584 cat >conftest.$ac_ext <<_ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <sys/types.h>
21591 #include <sys/wait.h>
21592 #ifndef WEXITSTATUS
21593 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21609 rm -f conftest.$ac_objext
21610 if { (ac_try="$ac_compile"
21611 case "(($ac_try" in
21612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_compile") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest.$ac_objext; then
21626 ac_cv_header_sys_wait_h=yes
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21631 ac_cv_header_sys_wait_h=no
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21637 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21638 if test $ac_cv_header_sys_wait_h = yes; then
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_SYS_WAIT_H 1
21713 readline/readline.h \
21722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 ac_res=`eval echo '${'$as_ac_Header'}'`
21730 { echo "$as_me:$LINENO: result: $ac_res" >&5
21731 echo "${ECHO_T}$ac_res" >&6; }
21733 # Is the header compilable?
21734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 $ac_includes_default
21743 #include <$ac_header>
21745 rm -f conftest.$ac_objext
21746 if { (ac_try="$ac_compile"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_compile") 2>conftest.er1
21754 grep -v '^ *+' conftest.er1 >conftest.err
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest.$ac_objext; then
21762 ac_header_compiler=yes
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ac_header_compiler=no
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21772 echo "${ECHO_T}$ac_header_compiler" >&6; }
21774 # Is the header present?
21775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 #include <$ac_header>
21785 if { (ac_try="$ac_cpp conftest.$ac_ext"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } >/dev/null && {
21798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21801 ac_header_preproc=yes
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_preproc=no
21809 rm -f conftest.err conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21811 echo "${ECHO_T}$ac_header_preproc" >&6; }
21813 # So? What about this header?
21814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21820 ac_header_preproc=yes
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 eval "$as_ac_Header=\$ac_header_preproc"
21845 ac_res=`eval echo '${'$as_ac_Header'}'`
21846 { echo "$as_me:$LINENO: result: $ac_res" >&5
21847 echo "${ECHO_T}$ac_res" >&6; }
21850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21851 cat >>confdefs.h <<_ACEOF
21852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21861 for ac_header in net/if.h
21863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 #ifdef HAVE_SYS_SOCKET_H
21876 # include <sys/socket.h>
21880 #include <$ac_header>
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 eval "$as_ac_Header=yes"
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 eval "$as_ac_Header=no"
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 ac_res=`eval echo '${'$as_ac_Header'}'`
21910 { echo "$as_me:$LINENO: result: $ac_res" >&5
21911 echo "${ECHO_T}$ac_res" >&6; }
21912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21923 if test "${ac_cv_header_regex_h+set}" = set; then
21924 { echo "$as_me:$LINENO: checking for regex.h" >&5
21925 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21926 if test "${ac_cv_header_regex_h+set}" = set; then
21927 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21930 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21932 # Is the header compilable?
21933 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21934 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_header_compiler=yes
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_header_compiler=no
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21971 echo "${ECHO_T}$ac_header_compiler" >&6; }
21973 # Is the header present?
21974 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21975 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21984 if { (ac_try="$ac_cpp conftest.$ac_ext"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } >/dev/null && {
21997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21998 test ! -s conftest.err
22000 ac_header_preproc=yes
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_header_preproc=no
22008 rm -f conftest.err conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22010 echo "${ECHO_T}$ac_header_preproc" >&6; }
22012 # So? What about this header?
22013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22016 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22017 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22018 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22019 ac_header_preproc=yes
22022 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22023 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22025 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22027 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22029 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22031 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22033 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22037 { echo "$as_me:$LINENO: checking for regex.h" >&5
22038 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22039 if test "${ac_cv_header_regex_h+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 ac_cv_header_regex_h=$ac_header_preproc
22044 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22045 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22048 if test $ac_cv_header_regex_h = yes; then
22050 cat >>confdefs.h <<\_ACEOF
22051 #define HAVE_REGEX_H
22057 if test "x$ac_cv_header_regex_h" = "xyes"; then
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22067 #ifdef REG_EXTENDED
22072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22073 $EGREP "yes" >/dev/null 2>&1; then
22075 cat >>confdefs.h <<\_ACEOF
22076 #define HAVE_REG_EXTENDED
22086 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22089 cat >>confdefs.h <<\_ACEOF
22095 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22098 cat >>confdefs.h <<\_ACEOF
22104 OPENSSL_INCLUDE="-DNO_OPENSSL"
22105 if test "x$WITH_OPENSSL" = xyes; then
22106 if test "x$OPENSSL_LIBS" = "x"; then
22107 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22108 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22110 old_CPPFLAGS=$CPPFLAGS
22111 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22112 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22114 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 ac_res=`eval echo '${'$as_ac_Header'}'`
22135 { echo "$as_me:$LINENO: result: $ac_res" >&5
22136 echo "${ECHO_T}$ac_res" >&6; }
22138 # Is the header compilable?
22139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 $ac_includes_default
22148 #include <$ac_header>
22150 rm -f conftest.$ac_objext
22151 if { (ac_try="$ac_compile"
22152 case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22159 grep -v '^ *+' conftest.er1 >conftest.err
22161 cat conftest.err >&5
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest.$ac_objext; then
22167 ac_header_compiler=yes
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_header_compiler=no
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22177 echo "${ECHO_T}$ac_header_compiler" >&6; }
22179 # Is the header present?
22180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 #include <$ac_header>
22190 if { (ac_try="$ac_cpp conftest.$ac_ext"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22198 grep -v '^ *+' conftest.er1 >conftest.err
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } >/dev/null && {
22203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22206 ac_header_preproc=yes
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22211 ac_header_preproc=no
22214 rm -f conftest.err conftest.$ac_ext
22215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22216 echo "${ECHO_T}$ac_header_preproc" >&6; }
22218 # So? What about this header?
22219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22225 ac_header_preproc=yes
22228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22246 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 eval "$as_ac_Header=\$ac_header_preproc"
22250 ac_res=`eval echo '${'$as_ac_Header'}'`
22251 { echo "$as_me:$LINENO: result: $ac_res" >&5
22252 echo "${ECHO_T}$ac_res" >&6; }
22255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22256 cat >>confdefs.h <<_ACEOF
22257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22267 if test "x$OPENSSL_LIBS" != "x"; then
22268 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22269 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 #include <openssl/crypto.h>
22277 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22283 $EGREP "yes" >/dev/null 2>&1; then
22288 if test "x$goodssl" != "xyes"; then
22289 { echo "$as_me:$LINENO: result: no" >&5
22290 echo "${ECHO_T}no" >&6; }
22293 { echo "$as_me:$LINENO: result: yes" >&5
22294 echo "${ECHO_T}yes" >&6; }
22295 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22296 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22298 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22302 CPPFLAGS=$old_CPPFLAGS
22307 export OPENSSL_LIBS
22309 if test "x$PCAP_LIBS" = x; then
22310 { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22311 echo "$as_me: skipping test for pcap.h." >&6;}
22313 if test "${ac_cv_header_pcap_h+set}" = set; then
22314 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22315 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22316 if test "${ac_cv_header_pcap_h+set}" = set; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22319 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22320 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22322 # Is the header compilable?
22323 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22324 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 $ac_includes_default
22334 rm -f conftest.$ac_objext
22335 if { (ac_try="$ac_compile"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_compile") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest.$ac_objext; then
22351 ac_header_compiler=yes
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_header_compiler=no
22359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22361 echo "${ECHO_T}$ac_header_compiler" >&6; }
22363 # Is the header present?
22364 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22365 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22374 if { (ac_try="$ac_cpp conftest.$ac_ext"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } >/dev/null && {
22387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22390 ac_header_preproc=yes
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22395 ac_header_preproc=no
22398 rm -f conftest.err conftest.$ac_ext
22399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22400 echo "${ECHO_T}$ac_header_preproc" >&6; }
22402 # So? What about this header?
22403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22405 { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22406 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22407 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22408 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22409 ac_header_preproc=yes
22412 { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22413 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22414 { echo "$as_me:$LINENO: WARNING: pcap.h: check for missing prerequisite headers?" >&5
22415 echo "$as_me: WARNING: pcap.h: check for missing prerequisite headers?" >&2;}
22416 { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22417 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&5
22419 echo "$as_me: WARNING: pcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
22420 { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22421 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22422 { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22423 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22427 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22428 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22429 if test "${ac_cv_header_pcap_h+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22432 ac_cv_header_pcap_h=$ac_header_preproc
22434 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22435 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22438 if test $ac_cv_header_pcap_h = yes; then
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_PCAP_H 1
22446 { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22447 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22456 { echo "$as_me:$LINENO: checking for off_t" >&5
22457 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22458 if test "${ac_cv_type_off_t+set}" = set; then
22459 echo $ECHO_N "(cached) $ECHO_C" >&6
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 $ac_includes_default
22468 typedef off_t ac__type_new_;
22472 if ((ac__type_new_ *) 0)
22474 if (sizeof (ac__type_new_))
22480 rm -f conftest.$ac_objext
22481 if { (ac_try="$ac_compile"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22487 (eval "$ac_compile") 2>conftest.er1
22489 grep -v '^ *+' conftest.er1 >conftest.err
22491 cat conftest.err >&5
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest.$ac_objext; then
22497 ac_cv_type_off_t=yes
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22502 ac_cv_type_off_t=no
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22508 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22509 if test $ac_cv_type_off_t = yes; then
22513 cat >>confdefs.h <<_ACEOF
22514 #define off_t long int
22519 { echo "$as_me:$LINENO: checking for pid_t" >&5
22520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22521 if test "${ac_cv_type_pid_t+set}" = set; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 typedef pid_t ac__type_new_;
22535 if ((ac__type_new_ *) 0)
22537 if (sizeof (ac__type_new_))
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_compile") 2>conftest.er1
22552 grep -v '^ *+' conftest.er1 >conftest.err
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } && {
22557 test -z "$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 } && test -s conftest.$ac_objext; then
22560 ac_cv_type_pid_t=yes
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22565 ac_cv_type_pid_t=no
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22571 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22572 if test $ac_cv_type_pid_t = yes; then
22576 cat >>confdefs.h <<_ACEOF
22582 { echo "$as_me:$LINENO: checking for size_t" >&5
22583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22584 if test "${ac_cv_type_size_t+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 $ac_includes_default
22594 typedef size_t ac__type_new_;
22598 if ((ac__type_new_ *) 0)
22600 if (sizeof (ac__type_new_))
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_compile") 2>conftest.er1
22615 grep -v '^ *+' conftest.er1 >conftest.err
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest.$ac_objext; then
22623 ac_cv_type_size_t=yes
22625 echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22628 ac_cv_type_size_t=no
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22635 if test $ac_cv_type_size_t = yes; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define size_t unsigned int
22645 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22646 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22647 if test "${ac_cv_type_uid_t+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22650 cat >conftest.$ac_ext <<_ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h. */
22656 #include <sys/types.h>
22659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22660 $EGREP "uid_t" >/dev/null 2>&1; then
22661 ac_cv_type_uid_t=yes
22663 ac_cv_type_uid_t=no
22668 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22669 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22670 if test $ac_cv_type_uid_t = no; then
22672 cat >>confdefs.h <<\_ACEOF
22677 cat >>confdefs.h <<\_ACEOF
22685 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22686 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22687 if test "${ac_cv_type_socklen_t+set}" = set; then
22688 echo $ECHO_N "(cached) $ECHO_C" >&6
22690 ac_cv_type_socklen_t=no
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 #ifdef HAVE_SYS_TYPES_H
22698 #include <sys/types.h>
22700 #ifdef HAVE_SYS_SOCKET_H
22701 #include <sys/socket.h>
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716 *) ac_try_echo=$ac_try;;
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719 (eval "$ac_compile") 2>conftest.er1
22721 grep -v '^ *+' conftest.er1 >conftest.err
22723 cat conftest.err >&5
22724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest.$ac_objext; then
22729 ac_cv_type_socklen_t=yes
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22742 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22744 if test "$ac_cv_type_socklen_t" != "yes"; then
22746 cat >>confdefs.h <<\_ACEOF
22747 #define socklen_t int
22754 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22755 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22756 if test "${ac_cv_type_uint8_t+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 ac_cv_type_uint8_t=no
22760 cat >conftest.$ac_ext <<_ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22766 #ifdef HAVE_INTTYPES_H
22767 #include <inttypes.h>
22769 #ifdef HAVE_STDINT_H
22770 #include <stdint.h>
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_cv_type_uint8_t=yes
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22810 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22811 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22813 if test "$ac_cv_type_uint8_t" != "yes"; then
22815 cat >>confdefs.h <<\_ACEOF
22816 #define uint8_t unsigned char
22823 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22824 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22825 if test "${ac_cv_type_uint16_t+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22828 ac_cv_type_uint16_t=no
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22835 #ifdef HAVE_INTTYPES_H
22836 #include <inttypes.h>
22838 #ifdef HAVE_STDINT_H
22839 #include <stdint.h>
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 ac_cv_type_uint16_t=yes
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22880 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22882 if test "$ac_cv_type_uint16_t" != "yes"; then
22884 cat >>confdefs.h <<\_ACEOF
22885 #define uint16_t unsigned short
22892 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22893 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22894 if test "${ac_cv_type_uint32_t+set}" = set; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 ac_cv_type_uint32_t=no
22898 cat >conftest.$ac_ext <<_ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h. */
22904 #ifdef HAVE_INTTYPES_H
22905 #include <inttypes.h>
22907 #ifdef HAVE_STDINT_H
22908 #include <stdint.h>
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_compile") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest.$ac_objext; then
22936 ac_cv_type_uint32_t=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22949 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22951 if test "$ac_cv_type_uint32_t" != "yes"; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define uint32_t unsigned int
22960 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22961 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22962 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22972 #ifdef HAVE_NETINET_IN_H
22973 #include <netinet/in.h>
22977 typedef struct in6_addr ac__type_new_;
22981 if ((ac__type_new_ *) 0)
22983 if (sizeof (ac__type_new_))
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_cv_type_struct_in6_addr=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_cv_type_struct_in6_addr=no
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23017 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23018 if test $ac_cv_type_struct_in6_addr = yes; then
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_STRUCT_IN6_ADDR 1
23027 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23028 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23029 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23032 cat >conftest.$ac_ext <<_ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h. */
23039 #ifdef HAVE_NETINET_IN_H
23040 #include <netinet/in.h>
23042 #ifdef HAVE_SYS_SOCKET_H
23043 #include <sys/socket.h>
23047 typedef struct sockaddr_storage ac__type_new_;
23051 if ((ac__type_new_ *) 0)
23053 if (sizeof (ac__type_new_))
23059 rm -f conftest.$ac_objext
23060 if { (ac_try="$ac_compile"
23061 case "(($ac_try" in
23062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063 *) ac_try_echo=$ac_try;;
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066 (eval "$ac_compile") 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && {
23073 test -z "$ac_c_werror_flag" ||
23074 test ! -s conftest.err
23075 } && test -s conftest.$ac_objext; then
23076 ac_cv_type_struct_sockaddr_storage=yes
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23081 ac_cv_type_struct_sockaddr_storage=no
23084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23087 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23088 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23090 cat >>confdefs.h <<\_ACEOF
23091 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23097 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23098 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23099 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23109 #ifdef HAVE_NETINET_IN_H
23110 #include <netinet/in.h>
23114 typedef struct sockaddr_in6 ac__type_new_;
23118 if ((ac__type_new_ *) 0)
23120 if (sizeof (ac__type_new_))
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest.$ac_objext; then
23143 ac_cv_type_struct_sockaddr_in6=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 ac_cv_type_struct_sockaddr_in6=no
23151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23153 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23154 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23155 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23157 cat >>confdefs.h <<\_ACEOF
23158 #define HAVE_STRUCT_SOCKADDR_IN6 1
23164 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23165 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23166 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23167 echo $ECHO_N "(cached) $ECHO_C" >&6
23169 cat >conftest.$ac_ext <<_ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 #ifdef HAVE_SYS_TYPES_H
23177 #include <sys/types.h>
23179 #ifdef HAVE_SYS_SOCKET_H
23180 #include <sys/socket.h>
23182 #ifdef HAVE_NETDB_H
23187 typedef struct addrinfo ac__type_new_;
23191 if ((ac__type_new_ *) 0)
23193 if (sizeof (ac__type_new_))
23199 rm -f conftest.$ac_objext
23200 if { (ac_try="$ac_compile"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_compile") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1 >conftest.err
23210 cat conftest.err >&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest.$ac_objext; then
23216 ac_cv_type_struct_addrinfo=yes
23218 echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ac_cv_type_struct_addrinfo=no
23224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23227 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23228 if test $ac_cv_type_struct_addrinfo = yes; then
23230 cat >>confdefs.h <<\_ACEOF
23231 #define HAVE_STRUCT_ADDRINFO 1
23296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 cat >conftest.$ac_ext <<_ACEOF
23305 cat confdefs.h >>conftest.$ac_ext
23306 cat >>conftest.$ac_ext <<_ACEOF
23307 /* end confdefs.h. */
23308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23310 #define $ac_func innocuous_$ac_func
23312 /* System header to define __stub macros and hopefully few prototypes,
23313 which can conflict with char $ac_func (); below.
23314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23315 <limits.h> exists even on freestanding compilers. */
23318 # include <limits.h>
23320 # include <assert.h>
23325 /* Override any GCC internal prototype to avoid an error.
23326 Use char because int might match the return type of a GCC
23327 builtin and then its argument prototype would still apply. */
23332 /* The GNU C library defines this for functions which it implements
23333 to always fail with ENOSYS. Some functions are actually named
23334 something starting with __ and the normal name is an alias. */
23335 #if defined __stub_$ac_func || defined __stub___$ac_func
23342 return $ac_func ();
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (ac_try="$ac_link"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_link") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest$ac_exeext &&
23364 $as_test_x conftest$ac_exeext; then
23365 eval "$as_ac_var=yes"
23367 echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 eval "$as_ac_var=no"
23373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23374 conftest$ac_exeext conftest.$ac_ext
23376 ac_res=`eval echo '${'$as_ac_var'}'`
23377 { echo "$as_me:$LINENO: result: $ac_res" >&5
23378 echo "${ECHO_T}$ac_res" >&6; }
23379 if test `eval echo '${'$as_ac_var'}'` = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23397 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23398 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23399 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23402 cat >conftest.$ac_ext <<_ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23410 #include <string.h>
23411 #ifdef HAVE_UNISTD_H
23412 #include <unistd.h>
23414 #ifdef HAVE_CRYPT_H
23417 #ifdef HAVE_ERRNO_H
23420 #ifdef HAVE_RESOURCE_H
23421 #include <resource.h>
23423 #ifdef HAVE_GETOPT_H
23424 #include <getopt.h>
23426 #ifdef HAVE_MALLOC_H
23427 #include <malloc.h>
23432 #ifdef HAVE_UTMPX_H
23435 #ifdef HAVE_SYS_SELECT_H
23436 #include <sys/select.h>
23438 #ifdef HAVE_DLFCN_H
23441 #ifdef HAVE_REGEX_H
23444 #ifdef HAVE_SYSLOG_H
23445 #include <syslog.h>
23447 #ifdef HAVE_INTTYPES_H
23448 #include <inttypes.h>
23450 #ifdef HAVE_STDINT_H
23451 #include <stdint.h>
23453 #ifdef HAVE_ARPA_INET_H
23454 #include <arpa/inet.h>
23460 char *(*pfn) = (char *(*)) $ac_func
23465 rm -f conftest.$ac_objext
23466 if { (ac_try="$ac_compile"
23467 case "(($ac_try" in
23468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469 *) ac_try_echo=$ac_try;;
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23474 grep -v '^ *+' conftest.er1 >conftest.err
23476 cat conftest.err >&5
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 eval "radius_cv_decl_needed_$ac_func=no"
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 eval "radius_cv_decl_needed_$ac_func=yes"
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23494 { echo "$as_me:$LINENO: result: yes" >&5
23495 echo "${ECHO_T}yes" >&6; }
23496 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23497 cat >>confdefs.h <<_ACEOF
23498 #define $radius_tr_decl 1
23502 { echo "$as_me:$LINENO: result: no" >&5
23503 echo "${ECHO_T}no" >&6; }
23509 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23510 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23511 if test "${ac_cv_type_signal+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 cat >conftest.$ac_ext <<_ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 #include <sys/types.h>
23521 #include <signal.h>
23526 return *(signal (0, 0)) (0) == 1;
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_compile") 2>conftest.er1
23540 grep -v '^ *+' conftest.er1 >conftest.err
23542 cat conftest.err >&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } && {
23545 test -z "$ac_c_werror_flag" ||
23546 test ! -s conftest.err
23547 } && test -s conftest.$ac_objext; then
23548 ac_cv_type_signal=int
23550 echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23553 ac_cv_type_signal=void
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23559 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23561 cat >>confdefs.h <<_ACEOF
23562 #define RETSIGTYPE $ac_cv_type_signal
23567 if test "x$ac_cv_header_utmpx_h" = "xyes"
23570 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23571 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23583 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23589 int foo = offsetof(struct utmpx, ut_xtime)
23594 rm -f conftest.$ac_objext
23595 if { (ac_try="$ac_compile"
23596 case "(($ac_try" in
23597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598 *) ac_try_echo=$ac_try;;
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601 (eval "$ac_compile") 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } && {
23608 test -z "$ac_c_werror_flag" ||
23609 test ! -s conftest.err
23610 } && test -s conftest.$ac_objext; then
23613 echo "$as_me: failed program was:" >&5
23614 sed 's/^/| /' conftest.$ac_ext >&5
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23622 if test "x$has_element" != "x"; then
23623 { echo "$as_me:$LINENO: result: yes" >&5
23624 echo "${ECHO_T}yes" >&6; }
23625 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23627 { echo "$as_me:$LINENO: result: no" >&5
23628 echo "${ECHO_T}no" >&6; }
23629 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23632 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23635 cat >>confdefs.h <<\_ACEOF
23636 #define ut_xtime ut_tv.tv_sec
23643 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23644 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $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. */
23654 #include <netinet/in.h>
23656 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23662 int foo = offsetof(struct in_pktinfo, ipi_addr)
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_compile") 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest.$ac_objext; then
23686 echo "$as_me: failed program was:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23695 if test "x$has_element" != "x"; then
23696 { echo "$as_me:$LINENO: result: yes" >&5
23697 echo "${ECHO_T}yes" >&6; }
23698 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23700 { echo "$as_me:$LINENO: result: no" >&5
23701 echo "${ECHO_T}no" >&6; }
23702 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23705 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23708 cat >>confdefs.h <<\_ACEOF
23709 #define HAVE_IP_PKTINFO
23715 { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23716 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23719 cat >conftest.$ac_ext <<_ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h. */
23726 #include <netinet/in.h>
23728 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23734 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23739 rm -f conftest.$ac_objext
23740 if { (ac_try="$ac_compile"
23741 case "(($ac_try" in
23742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23743 *) ac_try_echo=$ac_try;;
23745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23746 (eval "$ac_compile") 2>conftest.er1
23748 grep -v '^ *+' conftest.er1 >conftest.err
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } && {
23753 test -z "$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 } && test -s conftest.$ac_objext; then
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23767 if test "x$has_element" != "x"; then
23768 { echo "$as_me:$LINENO: result: yes" >&5
23769 echo "${ECHO_T}yes" >&6; }
23770 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23772 { echo "$as_me:$LINENO: result: no" >&5
23773 echo "${ECHO_T}no" >&6; }
23774 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23777 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23780 cat >>confdefs.h <<\_ACEOF
23781 #define HAVE_IN6_PKTINFO
23787 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23789 if test "${ac_cv_c_const+set}" = set; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23802 /* FIXME: Include the comments suggested by Paul. */
23803 #ifndef __cplusplus
23804 /* Ultrix mips cc rejects this. */
23805 typedef int charset[2];
23807 /* SunOS 4.1.1 cc rejects this. */
23808 char const *const *pcpcc;
23810 /* NEC SVR4.0.2 mips cc rejects this. */
23811 struct point {int x, y;};
23812 static struct point const zero = {0,0};
23813 /* AIX XL C 1.02.0.0 rejects this.
23814 It does not let you subtract one const X* pointer from another in
23815 an arm of an if-expression whose if-part is not a constant
23817 const char *g = "string";
23818 pcpcc = &g + (g ? g-g : 0);
23819 /* HPUX 7.0 cc rejects these. */
23821 ppc = (char**) pcpcc;
23822 pcpcc = (char const *const *) ppc;
23823 { /* SCO 3.2v4 cc rejects this. */
23825 char const *s = 0 ? (char *) 0 : (char const *) 0;
23830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23831 int x[] = {25, 17};
23832 const int *foo = &x[0];
23835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23836 typedef const int *iptr;
23840 { /* AIX XL C 1.02.0.0 rejects this saying
23841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23842 struct s { int j; const int *ap[3]; };
23843 struct s *b; b->j = 5;
23845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23846 const int foo = 10;
23847 if (!foo) return 0;
23849 return !cs[0] && !zero.x;
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860 *) ac_try_echo=$ac_try;;
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863 (eval "$ac_compile") 2>conftest.er1
23865 grep -v '^ *+' conftest.er1 >conftest.err
23867 cat conftest.err >&5
23868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869 (exit $ac_status); } && {
23870 test -z "$ac_c_werror_flag" ||
23871 test ! -s conftest.err
23872 } && test -s conftest.$ac_objext; then
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23884 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23885 if test $ac_cv_c_const = no; then
23887 cat >>confdefs.h <<\_ACEOF
23894 { echo "$as_me:$LINENO: checking type of OS" >&5
23895 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23897 { echo "$as_me:$LINENO: result: $OS" >&5
23898 echo "${ECHO_T}$OS" >&6; }
23899 if test "$OS" = "OS/2"; then
23906 if test "x$GCC" = "xyes"; then
23907 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23910 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23911 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23912 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23913 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23914 CFLAGS="$CFLAGS $devflags"
23916 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23917 echo "${ECHO_T}yes. Using $devflags" >&6; }
23920 CFLAGS="$CFLAGS -DNDEBUG"
23922 { echo "$as_me:$LINENO: result: no." >&5
23923 echo "${ECHO_T}no." >&6; }
23927 { echo "$as_me:$LINENO: checking for TLS" >&5
23928 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
23929 if test "$cross_compiling" = yes; then
23932 cat >conftest.$ac_ext <<_ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 static __thread int val; int main() { return 0; }
23940 rm -f conftest$ac_exeext
23941 if { (ac_try="$ac_link"
23942 case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947 (eval "$ac_link") 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23951 { (case "(($ac_try" in
23952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956 (eval "$ac_try") 2>&5
23958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23959 (exit $ac_status); }; }; then
23962 echo "$as_me: program exited with status $ac_status" >&5
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 ( exit $ac_status )
23969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23973 { echo "$as_me:$LINENO: result: $have_tls" >&5
23974 echo "${ECHO_T}$have_tls" >&6; }
23975 if test "$have_tls" = "yes"; then
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_THREAD_TLS 1
23985 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23986 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23987 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23988 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 ac_check_lib_save_LIBS=$LIBS
23991 LIBS="-lcrypt $LIBS"
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23999 /* Override any GCC internal prototype to avoid an error.
24000 Use char because int might match the return type of a GCC
24001 builtin and then its argument prototype would still apply. */
24014 rm -f conftest.$ac_objext conftest$ac_exeext
24015 if { (ac_try="$ac_link"
24016 case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021 (eval "$ac_link") 2>conftest.er1
24023 grep -v '^ *+' conftest.er1 >conftest.err
24025 cat conftest.err >&5
24026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && {
24028 test -z "$ac_c_werror_flag" ||
24029 test ! -s conftest.err
24030 } && test -s conftest$ac_exeext &&
24031 $as_test_x conftest$ac_exeext; then
24032 ac_cv_lib_crypt_crypt=yes
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24037 ac_cv_lib_crypt_crypt=no
24040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
24045 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
24046 if test $ac_cv_lib_crypt_crypt = yes; then
24051 if test "$CRYPTLIB" != ""; then
24053 cat >>confdefs.h <<\_ACEOF
24058 { echo "$as_me:$LINENO: checking for crypt" >&5
24059 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24060 if test "${ac_cv_func_crypt+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24063 cat >conftest.$ac_ext <<_ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24071 #define crypt innocuous_crypt
24073 /* System header to define __stub macros and hopefully few prototypes,
24074 which can conflict with char crypt (); below.
24075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24076 <limits.h> exists even on freestanding compilers. */
24079 # include <limits.h>
24081 # include <assert.h>
24086 /* Override any GCC internal prototype to avoid an error.
24087 Use char because int might match the return type of a GCC
24088 builtin and then its argument prototype would still apply. */
24093 /* The GNU C library defines this for functions which it implements
24094 to always fail with ENOSYS. Some functions are actually named
24095 something starting with __ and the normal name is an alias. */
24096 #if defined __stub_crypt || defined __stub___crypt
24108 rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (ac_try="$ac_link"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115 (eval "$ac_link") 2>conftest.er1
24117 grep -v '^ *+' conftest.er1 >conftest.err
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } && {
24122 test -z "$ac_c_werror_flag" ||
24123 test ! -s conftest.err
24124 } && test -s conftest$ac_exeext &&
24125 $as_test_x conftest$ac_exeext; then
24126 ac_cv_func_crypt=yes
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24131 ac_cv_func_crypt=no
24134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24135 conftest$ac_exeext conftest.$ac_ext
24137 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24138 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24139 if test $ac_cv_func_crypt = yes; then
24141 cat >>confdefs.h <<\_ACEOF
24149 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24150 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24151 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24154 ac_check_lib_save_LIBS=$LIBS
24155 LIBS="-lcipher $LIBS"
24156 cat >conftest.$ac_ext <<_ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24163 /* Override any GCC internal prototype to avoid an error.
24164 Use char because int might match the return type of a GCC
24165 builtin and then its argument prototype would still apply. */
24178 rm -f conftest.$ac_objext conftest$ac_exeext
24179 if { (ac_try="$ac_link"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_link") 2>conftest.er1
24187 grep -v '^ *+' conftest.er1 >conftest.err
24189 cat conftest.err >&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } && {
24192 test -z "$ac_c_werror_flag" ||
24193 test ! -s conftest.err
24194 } && test -s conftest$ac_exeext &&
24195 $as_test_x conftest$ac_exeext; then
24196 ac_cv_lib_cipher_setkey=yes
24198 echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.$ac_ext >&5
24201 ac_cv_lib_cipher_setkey=no
24204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24205 conftest$ac_exeext conftest.$ac_ext
24206 LIBS=$ac_check_lib_save_LIBS
24208 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24209 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24210 if test $ac_cv_lib_cipher_setkey = yes; then
24211 CRYPTLIB="${CRYPTLIB} -lcipher"
24218 cat >>confdefs.h <<\_ACEOF
24223 cat >>confdefs.h <<\_ACEOF
24224 #define SYSVSTYLE 2
24228 cat >>confdefs.h <<\_ACEOF
24232 gethostbyaddrrstyle=""
24233 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24234 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24237 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24238 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24239 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24240 echo $ECHO_N "(cached) $ECHO_C" >&6
24242 cat >conftest.$ac_ext <<_ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h. */
24249 #ifdef HAVE_NETDB_H
24257 #ifndef gethostbyaddr_r
24258 (void) gethostbyaddr_r;
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269 *) ac_try_echo=$ac_try;;
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24274 grep -v '^ *+' conftest.er1 >conftest.err
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_c_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24282 ac_cv_have_decl_gethostbyaddr_r=yes
24284 echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ac_cv_have_decl_gethostbyaddr_r=no
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24293 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24294 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24296 cat >>confdefs.h <<_ACEOF
24297 #define HAVE_DECL_GETHOSTBYADDR_R 1
24302 cat >>confdefs.h <<_ACEOF
24303 #define HAVE_DECL_GETHOSTBYADDR_R 0
24308 cat >>confdefs.h <<\_ACEOF
24309 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24312 gethostbyaddrrstyle=BSD
24313 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24314 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24321 if test "x$gethostbyaddrrstyle" = "x"; then
24322 cat >conftest.$ac_ext <<_ACEOF
24325 cat confdefs.h >>conftest.$ac_ext
24326 cat >>conftest.$ac_ext <<_ACEOF
24327 /* end confdefs.h. */
24335 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_link") 2>conftest.er1
24349 grep -v '^ *+' conftest.er1 >conftest.err
24351 cat conftest.err >&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } && {
24354 test -z "$ac_c_werror_flag" ||
24355 test ! -s conftest.err
24356 } && test -s conftest$ac_exeext &&
24357 $as_test_x conftest$ac_exeext; then
24360 cat >>confdefs.h <<\_ACEOF
24361 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24364 gethostbyaddrrstyle=GNU
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24374 conftest$ac_exeext conftest.$ac_ext
24376 if test "x$gethostbyaddrrstyle" = "x"; then
24377 cat >conftest.$ac_ext <<_ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24390 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (ac_try="$ac_link"
24397 case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_link") 2>conftest.er1
24404 grep -v '^ *+' conftest.er1 >conftest.err
24406 cat conftest.err >&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && {
24409 test -z "$ac_c_werror_flag" ||
24410 test ! -s conftest.err
24411 } && test -s conftest$ac_exeext &&
24412 $as_test_x conftest$ac_exeext; then
24415 cat >>confdefs.h <<\_ACEOF
24416 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24419 gethostbyaddrrstyle=SYSV
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24429 conftest$ac_exeext conftest.$ac_ext
24431 if test "x$gethostbyaddrrstyle" = "x"; then
24432 cat >conftest.$ac_ext <<_ACEOF
24435 cat confdefs.h >>conftest.$ac_ext
24436 cat >>conftest.$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24445 gethostbyaddr(NULL, 0, 0)
24450 rm -f conftest.$ac_objext conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457 (eval "$ac_link") 2>conftest.er1
24459 grep -v '^ *+' conftest.er1 >conftest.err
24461 cat conftest.err >&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } && {
24464 test -z "$ac_c_werror_flag" ||
24465 test ! -s conftest.err
24466 } && test -s conftest$ac_exeext &&
24467 $as_test_x conftest$ac_exeext; then
24470 cat >>confdefs.h <<\_ACEOF
24471 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24474 gethostbyaddrrstyle=BSD
24477 echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24484 conftest$ac_exeext conftest.$ac_ext
24487 if test "x$gethostbyaddrrstyle" = "x"; then
24488 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24489 echo "${ECHO_T}none! It must not exist, here." >&6; }
24491 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24492 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24495 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24496 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24497 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24500 gethostbynamerstyle=""
24501 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24502 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24516 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24521 rm -f conftest.$ac_objext conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_link") 2>conftest.er1
24530 grep -v '^ *+' conftest.er1 >conftest.err
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } && {
24535 test -z "$ac_c_werror_flag" ||
24536 test ! -s conftest.err
24537 } && test -s conftest$ac_exeext &&
24538 $as_test_x conftest$ac_exeext; then
24541 cat >>confdefs.h <<\_ACEOF
24542 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24545 gethostbynamerstyle=GNU
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555 conftest$ac_exeext conftest.$ac_ext
24556 if test "x$gethostbynamerstyle" = "x"; then
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24570 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (ac_try="$ac_link"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_link") 2>conftest.er1
24584 grep -v '^ *+' conftest.er1 >conftest.err
24586 cat conftest.err >&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest$ac_exeext &&
24592 $as_test_x conftest$ac_exeext; then
24595 cat >>confdefs.h <<\_ACEOF
24596 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24599 gethostbynamerstyle=SYSV
24602 echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24609 conftest$ac_exeext conftest.$ac_ext
24611 if test "x$gethostbynamerstyle" = "x"; then
24612 cat >conftest.$ac_ext <<_ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24625 gethostbyname(NULL)
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1 >conftest.err
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest$ac_exeext &&
24647 $as_test_x conftest$ac_exeext; then
24650 cat >>confdefs.h <<\_ACEOF
24651 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24654 gethostbynamerstyle=BSD
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24667 if test "x$gethostbynamerstyle" = "x"; then
24668 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24669 echo "${ECHO_T}none! It must not exist, here." >&6; }
24671 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24672 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24675 if test "x$gethostbynamerstyle" = "xBSD"; then
24676 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24677 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24681 cat >>confdefs.h <<\_ACEOF
24682 #define POSIXSTYLE 1
24686 cat >>confdefs.h <<\_ACEOF
24687 #define SOLARISSTYLE 2
24691 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24692 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24705 ctime_r(NULL, NULL, 0)
24710 rm -f conftest.$ac_objext conftest$ac_exeext
24711 if { (ac_try="$ac_link"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_link") 2>conftest.er1
24719 grep -v '^ *+' conftest.er1 >conftest.err
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } && {
24724 test -z "$ac_c_werror_flag" ||
24725 test ! -s conftest.err
24726 } && test -s conftest$ac_exeext &&
24727 $as_test_x conftest$ac_exeext; then
24730 cat >>confdefs.h <<\_ACEOF
24731 #define CTIMERSTYLE SOLARISSTYLE
24734 ctimerstyle="SOLARIS"
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744 conftest$ac_exeext conftest.$ac_ext
24745 if test "x$ctimerstyle" = "x"; then
24746 cat >conftest.$ac_ext <<_ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24758 ctime_r(NULL, NULL)
24763 rm -f conftest.$ac_objext conftest$ac_exeext
24764 if { (ac_try="$ac_link"
24765 case "(($ac_try" in
24766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24767 *) ac_try_echo=$ac_try;;
24769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24770 (eval "$ac_link") 2>conftest.er1
24772 grep -v '^ *+' conftest.er1 >conftest.err
24774 cat conftest.err >&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } && {
24777 test -z "$ac_c_werror_flag" ||
24778 test ! -s conftest.err
24779 } && test -s conftest$ac_exeext &&
24780 $as_test_x conftest$ac_exeext; then
24783 cat >>confdefs.h <<\_ACEOF
24784 #define CTIMERSTYLE POSIXSTYLE
24787 ctimerstyle="POSIX"
24790 echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24797 conftest$ac_exeext conftest.$ac_ext
24800 if test "x$ctimerstyle" = "x"; then
24801 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24802 echo "${ECHO_T}none! It must not exist, here." >&6; }
24804 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24805 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24813 export top_builddir
24814 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24815 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24821 mysubdirs="$LIBLTDLPATH"
24822 if test "x$EXPERIMENTAL" = "xyes"; then
24823 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
24824 mysubdirs=`echo $mysubdirs $bar`
24826 for bar in `cat "${srcdir}"/src/modules/stable`; do
24827 if test -f "${srcdir}"/src/modules/$bar/configure; then
24828 mysubdirs="$mysubdirs src/modules/$bar"
24833 if test "x$EXPERIMENTAL" = "xyes"; then
24834 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
24835 MODULES="$MODULES $foo"
24838 for foo in `cat "${srcdir}"/src/modules/stable`; do
24839 MODULES="$MODULES $foo"
24843 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24848 ac_config_commands="$ac_config_commands stamp-h"
24850 ac_config_commands="$ac_config_commands build-radpaths-h"
24852 ac_config_commands="$ac_config_commands main-chmod"
24854 ac_config_commands="$ac_config_commands scripts-chmod"
24860 USE_SHARED_LIBS=$enable_shared
24862 USE_STATIC_LIBS=$enable_static
24870 unset ac_cv_env_LIBS_set
24871 unset ac_cv_env_LIBS_value
24873 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/radiusd.conf"
24875 cat >confcache <<\_ACEOF
24876 # This file is a shell script that caches the results of configure
24877 # tests run on this system so they can be shared between configure
24878 # scripts and configure runs, see configure's option --config-cache.
24879 # It is not useful on other systems. If it contains results you don't
24880 # want to keep, you may remove or edit it.
24882 # config.status only pays attention to the cache file if you give it
24883 # the --recheck option to rerun configure.
24885 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24886 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24887 # following values.
24891 # The following way of writing the cache mishandles newlines in values,
24892 # but we know of no workaround that is simple, portable, and efficient.
24893 # So, we kill variables containing newlines.
24894 # Ultrix sh set writes to stderr and can't be redirected directly,
24895 # and sets the high bit in the cache file unless we assign to the vars.
24897 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24898 eval ac_val=\$$ac_var
24902 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24903 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24906 _ | IFS | as_nl) ;; #(
24907 *) $as_unset $ac_var ;;
24913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24914 *${as_nl}ac_space=\ *)
24915 # `set' does not quote correctly, so add quotes (double-quote
24916 # substitution turns \\\\ into \\, and sed turns \\ into \).
24919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24922 # `set' quotes correctly as required by POSIX, so do not add quotes.
24923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24937 if test -w "$cache_file"; then
24938 test "x$cache_file" != "x/dev/null" &&
24939 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24940 echo "$as_me: updating cache $cache_file" >&6;}
24941 cat confcache >$cache_file
24943 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24944 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24950 # Let make expand exec_prefix.
24951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24953 DEFS=-DHAVE_CONFIG_H
24957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24958 # 1. Remove the extension, and $U if already installed.
24959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24960 ac_i=`echo "$ac_i" | sed "$ac_script"`
24961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24962 # will be set to the directory where LIBOBJS objects are built.
24963 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24964 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24966 LIBOBJS=$ac_libobjs
24968 LTLIBOBJS=$ac_ltlibobjs
24972 : ${CONFIG_STATUS=./config.status}
24973 ac_clean_files_save=$ac_clean_files
24974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24977 cat >$CONFIG_STATUS <<_ACEOF
24979 # Generated by $as_me.
24980 # Run this file to recreate the current configuration.
24981 # Compiler output produced by configure, useful for debugging
24982 # configure, is in config.log if it exists.
24985 ac_cs_recheck=false
24987 SHELL=\${CONFIG_SHELL-$SHELL}
24990 cat >>$CONFIG_STATUS <<\_ACEOF
24991 ## --------------------- ##
24992 ## M4sh Initialization. ##
24993 ## --------------------- ##
24995 # Be more Bourne compatible
24996 DUALCASE=1; export DUALCASE # for MKS sh
24997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25001 # is contrary to our usage. Disable this feature.
25002 alias -g '${1+"$@"}'='"$@"'
25003 setopt NO_GLOB_SUBST
25005 case `(set -o) 2>/dev/null` in
25006 *posix*) set -o posix ;;
25015 # Avoid depending upon Character Ranges.
25016 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25017 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25018 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25019 as_cr_digits='0123456789'
25020 as_cr_alnum=$as_cr_Letters$as_cr_digits
25022 # The user is always right.
25023 if test "${PATH_SEPARATOR+set}" != set; then
25024 echo "#! /bin/sh" >conf$$.sh
25025 echo "exit 0" >>conf$$.sh
25027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25035 # Support unset when possible.
25036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25044 # We need space, tab and new line, in precisely that order. Quoting is
25045 # there to prevent editors from complaining about space-tab.
25046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25047 # splitting by setting IFS to empty value.)
25052 # Find who we are. Look in the path if we contain no directory separator.
25054 *[\\/]* ) as_myself=$0 ;;
25055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25056 for as_dir in $PATH
25059 test -z "$as_dir" && as_dir=.
25060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25066 # We did not find ourselves, most probably we were run as `sh COMMAND'
25067 # in which case we are not to be found in the path.
25068 if test "x$as_myself" = x; then
25071 if test ! -f "$as_myself"; then
25072 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25073 { (exit 1); exit 1; }
25076 # Work around bugs in pre-3.0 UWIN ksh.
25077 for as_var in ENV MAIL MAILPATH
25078 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25086 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25087 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25088 LC_TELEPHONE LC_TIME
25090 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25091 eval $as_var=C; export $as_var
25093 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25097 # Required to use basename.
25098 if expr a : '\(a\)' >/dev/null 2>&1 &&
25099 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25105 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25106 as_basename=basename
25112 # Name of the executable.
25113 as_me=`$as_basename -- "$0" ||
25114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25115 X"$0" : 'X\(//\)$' \| \
25116 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25118 sed '/^.*\/\([^/][^/]*\)\/*$/{
25137 as_lineno_1=$LINENO
25138 as_lineno_2=$LINENO
25139 test "x$as_lineno_1" != "x$as_lineno_2" &&
25140 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25142 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25143 # uniformly replaced by the line number. The first 'sed' inserts a
25144 # line-number line after each line using $LINENO; the second 'sed'
25145 # does the real work. The second script uses 'N' to pair each
25146 # line-number line with the line containing $LINENO, and appends
25147 # trailing '-' during substitution so that $LINENO is not a special
25148 # case at line end.
25149 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25150 # scripts with optimization help from Paolo Bonzini. Blame Lee
25151 # E. McMahon (1931-1989) for sed's syntax. :-)
25163 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25166 ' >$as_me.lineno &&
25167 chmod +x "$as_me.lineno" ||
25168 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25169 { (exit 1); exit 1; }; }
25171 # Don't try to exec as it changes $[0], causing all sort of problems
25172 # (the dirname of $[0] is not the place where we might find the
25173 # original and so on. Autoconf is especially sensitive to this).
25174 . "./$as_me.lineno"
25175 # Exit status is that of the last command.
25180 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25186 ECHO_C= ECHO_N= ECHO_T=
25187 case `echo -n x` in
25189 case `echo 'x\c'` in
25190 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25197 if expr a : '\(a\)' >/dev/null 2>&1 &&
25198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25204 rm -f conf$$ conf$$.exe conf$$.file
25205 if test -d conf$$.dir; then
25206 rm -f conf$$.dir/conf$$.file
25212 if ln -s conf$$.file conf$$ 2>/dev/null; then
25214 # ... but there are two gotchas:
25215 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25216 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25217 # In both cases, we have to default to `cp -p'.
25218 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25220 elif ln conf$$.file conf$$ 2>/dev/null; then
25225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25226 rmdir conf$$.dir 2>/dev/null
25228 if mkdir -p . 2>/dev/null; then
25231 test -d ./-p && rmdir ./-p
25235 if test -x / >/dev/null 2>&1; then
25236 as_test_x='test -x'
25238 if ls -dL / >/dev/null 2>&1; then
25245 if test -d "$1"; then
25251 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25252 ???[sx]*):;;*)false;;esac;fi
25256 as_executable_p=$as_test_x
25258 # Sed expression to map a string onto a valid CPP name.
25259 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25261 # Sed expression to map a string onto a valid variable name.
25262 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25267 # Save the log message, to keep $[0] and so on meaningful, and to
25268 # report actual input values of CONFIG_FILES etc. instead of their
25269 # values after options handling.
25271 This file was extended by $as_me, which was
25272 generated by GNU Autoconf 2.61. Invocation command line was
25274 CONFIG_FILES = $CONFIG_FILES
25275 CONFIG_HEADERS = $CONFIG_HEADERS
25276 CONFIG_LINKS = $CONFIG_LINKS
25277 CONFIG_COMMANDS = $CONFIG_COMMANDS
25280 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25285 cat >>$CONFIG_STATUS <<_ACEOF
25286 # Files that config.status was made for.
25287 config_files="$ac_config_files"
25288 config_headers="$ac_config_headers"
25289 config_commands="$ac_config_commands"
25293 cat >>$CONFIG_STATUS <<\_ACEOF
25295 \`$as_me' instantiates files from templates according to the
25296 current configuration.
25298 Usage: $0 [OPTIONS] [FILE]...
25300 -h, --help print this help, then exit
25301 -V, --version print version number and configuration settings, then exit
25302 -q, --quiet do not print progress messages
25303 -d, --debug don't remove temporary files
25304 --recheck update $as_me by reconfiguring in the same conditions
25305 --file=FILE[:TEMPLATE]
25306 instantiate the configuration file FILE
25307 --header=FILE[:TEMPLATE]
25308 instantiate the configuration header FILE
25310 Configuration files:
25313 Configuration headers:
25316 Configuration commands:
25319 Report bugs to <bug-autoconf@gnu.org>."
25322 cat >>$CONFIG_STATUS <<_ACEOF
25325 configured by $0, generated by GNU Autoconf 2.61,
25326 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25328 Copyright (C) 2006 Free Software Foundation, Inc.
25329 This config.status script is free software; the Free Software Foundation
25330 gives unlimited permission to copy, distribute and modify it."
25336 cat >>$CONFIG_STATUS <<\_ACEOF
25337 # If no file are specified by the user, then we need to provide default
25338 # value. By we need to know if files were specified by the user.
25344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25356 # Handling of the options.
25357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25359 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25360 echo "$ac_cs_version"; exit ;;
25361 --debug | --debu | --deb | --de | --d | -d )
25363 --file | --fil | --fi | --f )
25365 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25366 ac_need_defaults=false;;
25367 --header | --heade | --head | --hea )
25369 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25370 ac_need_defaults=false;;
25372 # Conflict between --help and --header
25373 { echo "$as_me: error: ambiguous option: $1
25374 Try \`$0 --help' for more information." >&2
25375 { (exit 1); exit 1; }; };;
25376 --help | --hel | -h )
25377 echo "$ac_cs_usage"; exit ;;
25378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25382 # This is an error.
25383 -*) { echo "$as_me: error: unrecognized option: $1
25384 Try \`$0 --help' for more information." >&2
25385 { (exit 1); exit 1; }; } ;;
25387 *) ac_config_targets="$ac_config_targets $1"
25388 ac_need_defaults=false ;;
25394 ac_configure_extra_args=
25396 if $ac_cs_silent; then
25398 ac_configure_extra_args="$ac_configure_extra_args --silent"
25402 cat >>$CONFIG_STATUS <<_ACEOF
25403 if \$ac_cs_recheck; then
25404 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25405 CONFIG_SHELL=$SHELL
25406 export CONFIG_SHELL
25407 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25411 cat >>$CONFIG_STATUS <<\_ACEOF
25415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25416 ## Running $as_me. ##
25422 cat >>$CONFIG_STATUS <<_ACEOF
25425 cat >>$CONFIG_STATUS <<\_ACEOF
25427 # Handling of arguments.
25428 for ac_config_target in $ac_config_targets
25430 case $ac_config_target in
25431 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25432 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25433 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25434 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25435 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25436 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25437 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25438 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25439 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25440 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25441 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25442 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25443 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25444 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25445 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25446 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25447 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25448 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25450 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25451 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25452 { (exit 1); exit 1; }; };;
25457 # If the user did not use the arguments to specify the items to instantiate,
25458 # then the envvar interface is used. Set only those that are not.
25459 # We use the long form for the default assignment because of an extremely
25460 # bizarre bug on SunOS 4.1.3.
25461 if $ac_need_defaults; then
25462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25467 # Have a temporary directory for convenience. Make it in the build tree
25468 # simply because there is no reason against having it here, and in addition,
25469 # creating and moving files from /tmp can sometimes cause problems.
25470 # Hook for its removal unless debugging.
25471 # Note that there is a small window in which the directory will not be cleaned:
25472 # after its creation but before its name has been assigned to `$tmp'.
25476 trap 'exit_status=$?
25477 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25479 trap '{ (exit 1); exit 1; }' 1 2 13 15
25481 # Create a (secure) tmp directory for tmp files.
25484 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25485 test -n "$tmp" && test -d "$tmp"
25488 tmp=./conf$$-$RANDOM
25489 (umask 077 && mkdir "$tmp")
25492 echo "$me: cannot create a temporary directory in ." >&2
25493 { (exit 1); exit 1; }
25497 # Set up the sed scripts for CONFIG_FILES section.
25500 # No need to generate the scripts if there are no CONFIG_FILES.
25501 # This happens for instance when ./config.status config.h
25502 if test -n "$CONFIG_FILES"; then
25509 for ac_last_try in false false false false false :; do
25510 cat >conf$$subs.sed <<_ACEOF
25511 SHELL!$SHELL$ac_delim
25512 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25513 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25514 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25515 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25516 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25517 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25518 exec_prefix!$exec_prefix$ac_delim
25519 prefix!$prefix$ac_delim
25520 program_transform_name!$program_transform_name$ac_delim
25521 bindir!$bindir$ac_delim
25522 sbindir!$sbindir$ac_delim
25523 libexecdir!$libexecdir$ac_delim
25524 datarootdir!$datarootdir$ac_delim
25525 datadir!$datadir$ac_delim
25526 sysconfdir!$sysconfdir$ac_delim
25527 sharedstatedir!$sharedstatedir$ac_delim
25528 localstatedir!$localstatedir$ac_delim
25529 includedir!$includedir$ac_delim
25530 oldincludedir!$oldincludedir$ac_delim
25531 docdir!$docdir$ac_delim
25532 infodir!$infodir$ac_delim
25533 htmldir!$htmldir$ac_delim
25534 dvidir!$dvidir$ac_delim
25535 pdfdir!$pdfdir$ac_delim
25536 psdir!$psdir$ac_delim
25537 libdir!$libdir$ac_delim
25538 localedir!$localedir$ac_delim
25539 mandir!$mandir$ac_delim
25540 DEFS!$DEFS$ac_delim
25541 ECHO_C!$ECHO_C$ac_delim
25542 ECHO_N!$ECHO_N$ac_delim
25543 ECHO_T!$ECHO_T$ac_delim
25544 LIBS!$LIBS$ac_delim
25545 build_alias!$build_alias$ac_delim
25546 host_alias!$host_alias$ac_delim
25547 target_alias!$target_alias$ac_delim
25549 CFLAGS!$CFLAGS$ac_delim
25550 LDFLAGS!$LDFLAGS$ac_delim
25551 CPPFLAGS!$CPPFLAGS$ac_delim
25552 ac_ct_CC!$ac_ct_CC$ac_delim
25553 EXEEXT!$EXEEXT$ac_delim
25554 OBJEXT!$OBJEXT$ac_delim
25556 CXXFLAGS!$CXXFLAGS$ac_delim
25557 ac_ct_CXX!$ac_ct_CXX$ac_delim
25559 GREP!$GREP$ac_delim
25560 EGREP!$EGREP$ac_delim
25561 RANLIB!$RANLIB$ac_delim
25562 GMAKE!$GMAKE$ac_delim
25563 MAKE!$MAKE$ac_delim
25564 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25565 LIBTOOL!$LIBTOOL$ac_delim
25566 build!$build$ac_delim
25567 build_cpu!$build_cpu$ac_delim
25568 build_vendor!$build_vendor$ac_delim
25569 build_os!$build_os$ac_delim
25570 host!$host$ac_delim
25571 host_cpu!$host_cpu$ac_delim
25572 host_vendor!$host_vendor$ac_delim
25573 host_os!$host_os$ac_delim
25574 LN_S!$LN_S$ac_delim
25575 ECHO!$ECHO$ac_delim
25577 STRIP!$STRIP$ac_delim
25578 CXXCPP!$CXXCPP$ac_delim
25580 FFLAGS!$FFLAGS$ac_delim
25581 ac_ct_F77!$ac_ct_F77$ac_delim
25582 logdir!$logdir$ac_delim
25583 radacctdir!$radacctdir$ac_delim
25584 raddbdir!$raddbdir$ac_delim
25585 PERL!$PERL$ac_delim
25586 SNMPGET!$SNMPGET$ac_delim
25587 SNMPWALK!$SNMPWALK$ac_delim
25588 RUSERS!$RUSERS$ac_delim
25589 ACLOCAL!$ACLOCAL$ac_delim
25590 AUTOCONF!$AUTOCONF$ac_delim
25591 AUTOHEADER!$AUTOHEADER$ac_delim
25592 LOCATE!$LOCATE$ac_delim
25593 DIRNAME!$DIRNAME$ac_delim
25594 REGEX!$REGEX$ac_delim
25595 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25596 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25597 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25598 PCAP_LIBS!$PCAP_LIBS$ac_delim
25599 LIBPREFIX!$LIBPREFIX$ac_delim
25600 CRYPTLIB!$CRYPTLIB$ac_delim
25601 HOSTINFO!$HOSTINFO$ac_delim
25602 LIBLTDL!$LIBLTDL$ac_delim
25603 INCLTDL!$INCLTDL$ac_delim
25604 subdirs!$subdirs$ac_delim
25605 MODULES!$MODULES$ac_delim
25606 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25607 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25612 elif $ac_last_try; then
25613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25615 { (exit 1); exit 1; }; }
25617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25622 if test -n "$ac_eof"; then
25623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25624 ac_eof=`expr $ac_eof + 1`
25627 cat >>$CONFIG_STATUS <<_ACEOF
25628 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25633 s/^/s,@/; s/!/@,|#_!!_#|/
25636 s/'"$ac_delim"'$/,g/; t
25638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25639 ' >>$CONFIG_STATUS <conf$$subs.sed
25640 rm -f conf$$subs.sed
25641 cat >>$CONFIG_STATUS <<_ACEOF
25647 for ac_last_try in false false false false false :; do
25648 cat >conf$$subs.sed <<_ACEOF
25649 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25650 STATIC_MODULES!$STATIC_MODULES$ac_delim
25651 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25652 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25653 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25654 LIBOBJS!$LIBOBJS$ac_delim
25655 LTLIBOBJS!$LTLIBOBJS$ac_delim
25658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
25660 elif $ac_last_try; then
25661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25663 { (exit 1); exit 1; }; }
25665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25670 if test -n "$ac_eof"; then
25671 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25672 ac_eof=`expr $ac_eof + 1`
25675 cat >>$CONFIG_STATUS <<_ACEOF
25676 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25681 s/^/s,@/; s/!/@,|#_!!_#|/
25684 s/'"$ac_delim"'$/,g/; t
25686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25687 ' >>$CONFIG_STATUS <conf$$subs.sed
25688 rm -f conf$$subs.sed
25689 cat >>$CONFIG_STATUS <<_ACEOF
25696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25698 # trailing colons and then remove the whole line if VPATH becomes empty
25699 # (actually we leave an empty line to preserve line numbers).
25700 if test "x$srcdir" = x.; then
25701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25702 s/:*\$(srcdir):*/:/
25703 s/:*\${srcdir}:*/:/
25705 s/^\([^=]*=[ ]*\):*/\1/
25711 cat >>$CONFIG_STATUS <<\_ACEOF
25712 fi # test -n "$CONFIG_FILES"
25715 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25718 :[FHLC]) ac_mode=$ac_tag; continue;;
25720 case $ac_mode$ac_tag in
25722 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25723 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25724 { (exit 1); exit 1; }; };;
25725 :[FH]-) ac_tag=-:-;;
25726 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25743 -) ac_f="$tmp/stdin";;
25744 *) # Look for the file first in the build tree, then in the source tree
25745 # (if the path is not absolute). The absolute path cannot be DOS-style,
25746 # because $ac_f cannot contain `:'.
25750 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25752 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25753 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25754 { (exit 1); exit 1; }; };;
25756 ac_file_inputs="$ac_file_inputs $ac_f"
25759 # Let's still pretend it is `configure' which instantiates (i.e., don't
25760 # use $as_me), people would be surprised to read:
25761 # /* config.h. Generated by config.status. */
25762 configure_input="Generated from "`IFS=:
25763 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25764 if test x"$ac_file" != x-; then
25765 configure_input="$ac_file. $configure_input"
25766 { echo "$as_me:$LINENO: creating $ac_file" >&5
25767 echo "$as_me: creating $ac_file" >&6;}
25771 *:-:* | *:-) cat >"$tmp/stdin";;
25776 ac_dir=`$as_dirname -- "$ac_file" ||
25777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25778 X"$ac_file" : 'X\(//\)[^/]' \| \
25779 X"$ac_file" : 'X\(//\)$' \| \
25780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25786 /^X\(\/\/\)[^/].*/{
25801 -*) as_dir=./$as_dir;;
25803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25807 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25808 *) as_qdir=$as_dir;;
25810 as_dirs="'$as_qdir' $as_dirs"
25811 as_dir=`$as_dirname -- "$as_dir" ||
25812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25813 X"$as_dir" : 'X\(//\)[^/]' \| \
25814 X"$as_dir" : 'X\(//\)$' \| \
25815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25821 /^X\(\/\/\)[^/].*/{
25834 test -d "$as_dir" && break
25836 test -z "$as_dirs" || eval "mkdir $as_dirs"
25837 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25838 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25839 { (exit 1); exit 1; }; }; }
25843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25846 # A ".." for each directory in $ac_dir_suffix.
25847 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25848 case $ac_top_builddir_sub in
25849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25853 ac_abs_top_builddir=$ac_pwd
25854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25855 # for backward compatibility:
25856 ac_top_builddir=$ac_top_build_prefix
25859 .) # We are building in place.
25861 ac_top_srcdir=$ac_top_builddir_sub
25862 ac_abs_top_srcdir=$ac_pwd ;;
25863 [\\/]* | ?:[\\/]* ) # Absolute name.
25864 ac_srcdir=$srcdir$ac_dir_suffix;
25865 ac_top_srcdir=$srcdir
25866 ac_abs_top_srcdir=$srcdir ;;
25867 *) # Relative name.
25868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25869 ac_top_srcdir=$ac_top_build_prefix$srcdir
25870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25884 # If the template does not know about datarootdir, expand it.
25885 # FIXME: This hack should be removed a few years after 2.60.
25886 ac_datarootdir_hack=; ac_datarootdir_seen=
25888 case `sed -n '/datarootdir/ {
25897 ' $ac_file_inputs` in
25898 *datarootdir*) ac_datarootdir_seen=yes;;
25899 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25900 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25901 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25903 cat >>$CONFIG_STATUS <<_ACEOF
25904 ac_datarootdir_hack='
25905 s&@datadir@&$datadir&g
25906 s&@docdir@&$docdir&g
25907 s&@infodir@&$infodir&g
25908 s&@localedir@&$localedir&g
25909 s&@mandir@&$mandir&g
25910 s&\\\${datarootdir}&$datarootdir&g' ;;
25914 # Neutralize VPATH when `$srcdir' = `.'.
25915 # Shell code in configure.ac might set extrasub.
25916 # FIXME: do we really want to maintain this feature?
25917 cat >>$CONFIG_STATUS <<_ACEOF
25921 cat >>$CONFIG_STATUS <<\_ACEOF
25923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25924 s&@configure_input@&$configure_input&;t t
25925 s&@top_builddir@&$ac_top_builddir_sub&;t t
25926 s&@srcdir@&$ac_srcdir&;t t
25927 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25928 s&@top_srcdir@&$ac_top_srcdir&;t t
25929 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25930 s&@builddir@&$ac_builddir&;t t
25931 s&@abs_builddir@&$ac_abs_builddir&;t t
25932 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25933 $ac_datarootdir_hack
25934 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25937 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25939 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25940 which seems to be undefined. Please make sure it is defined." >&5
25941 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25942 which seems to be undefined. Please make sure it is defined." >&2;}
25946 -) cat "$tmp/out"; rm -f "$tmp/out";;
25947 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25956 # Transform confdefs.h into a sed script `conftest.defines', that
25957 # substitutes the proper values into config.h.in to produce config.h.
25958 rm -f conftest.defines conftest.tail
25959 # First, append a space to every undef/define line, to ease matching.
25960 echo 's/$/ /' >conftest.defines
25961 # Then, protect against being on the right side of a sed subst, or in
25962 # an unquoted here document, in config.status. If some macros were
25963 # called several times there might be several #defines for the same
25964 # symbol, which is useless. But do not sort them, since the last
25965 # AC_DEFINE must be honored.
25966 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25967 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25968 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25969 # PARAMS is the parameter list in the macro definition--in most cases, it's
25970 # just an empty string.
25971 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25972 ac_dB='\\)[ (].*,\\1define\\2'
25980 s/^[ ]*#[ ]*define[ ][ ]*//
25985 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25986 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25987 ' >>conftest.defines
25989 # Remove the space that was appended to ease matching.
25990 # Then replace #undef with comments. This is necessary, for
25991 # example, in the case of _POSIX_SOURCE, which is predefined and required
25992 # on some systems where configure will not decide to define it.
25993 # (The regexp can be short, since the line contains either #define or #undef.)
25995 s,^[ #]*u.*,/* & */,' >>conftest.defines
25997 # Break up conftest.defines:
25998 ac_max_sed_lines=50
26000 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26001 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26002 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26004 ac_in='$ac_file_inputs'
26005 ac_out='"$tmp/out1"'
26006 ac_nxt='"$tmp/out2"'
26010 # Write a here document:
26011 cat >>$CONFIG_STATUS <<_ACEOF
26012 # First, check the format of the line:
26013 cat >"\$tmp/defines.sed" <<\\CEOF
26014 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26015 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26019 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26021 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26022 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26023 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26024 grep . conftest.tail >/dev/null || break
26025 rm -f conftest.defines
26026 mv conftest.tail conftest.defines
26028 rm -f conftest.defines conftest.tail
26030 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26031 cat >>$CONFIG_STATUS <<\_ACEOF
26032 if test x"$ac_file" != x-; then
26033 echo "/* $configure_input */" >"$tmp/config.h"
26034 cat "$ac_result" >>"$tmp/config.h"
26035 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26036 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26037 echo "$as_me: $ac_file is unchanged" >&6;}
26040 mv "$tmp/config.h" $ac_file
26043 echo "/* $configure_input */"
26049 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26050 echo "$as_me: executing $ac_file commands" >&6;}
26055 case $ac_file$ac_mode in
26056 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26057 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26058 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26059 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26065 { (exit 0); exit 0; }
26067 chmod +x $CONFIG_STATUS
26068 ac_clean_files=$ac_clean_files_save
26071 # configure is writing to config.log, and then calls config.status.
26072 # config.status does its own redirection, appending to config.log.
26073 # Unfortunately, on DOS this fails, as config.log is still kept open
26074 # by configure, so config.status won't be able to write to it; its
26075 # output is simply discarded. So we exec the FD to /dev/null,
26076 # effectively closing config.log, so it can be properly (re)opened and
26077 # appended to by config.status. When coming back to configure, we
26078 # need to make the FD available again.
26079 if test "$no_create" != yes; then
26081 ac_config_status_args=
26082 test "$silent" = yes &&
26083 ac_config_status_args="$ac_config_status_args --quiet"
26085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26088 # would make configure fail if this is the last instruction.
26089 $ac_cs_success || { (exit 1); exit 1; }
26093 # CONFIG_SUBDIRS section.
26095 if test "$no_recursion" != yes; then
26097 # Remove --cache-file and --srcdir arguments so they do not pile up.
26098 ac_sub_configure_args=
26100 eval "set x $ac_configure_args"
26104 if test -n "$ac_prev"; then
26109 -cache-file | --cache-file | --cache-fil | --cache-fi \
26110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26111 ac_prev=cache_file ;;
26112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26116 --config-cache | -C)
26118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26128 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26130 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26134 # Always prepend --prefix to ensure using the same prefix
26135 # in subdir configurations.
26136 ac_arg="--prefix=$prefix"
26138 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26140 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26143 if test "$silent" = yes; then
26144 ac_sub_configure_args="--silent $ac_sub_configure_args"
26148 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26150 # Do not complain, so a configure script can configure whichever
26151 # parts of a large source tree are present.
26152 test -d "$srcdir/$ac_dir" || continue
26154 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26155 echo "$as_me:$LINENO: $ac_msg" >&5
26159 -*) as_dir=./$as_dir;;
26161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26165 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26166 *) as_qdir=$as_dir;;
26168 as_dirs="'$as_qdir' $as_dirs"
26169 as_dir=`$as_dirname -- "$as_dir" ||
26170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26171 X"$as_dir" : 'X\(//\)[^/]' \| \
26172 X"$as_dir" : 'X\(//\)$' \| \
26173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26179 /^X\(\/\/\)[^/].*/{
26192 test -d "$as_dir" && break
26194 test -z "$as_dirs" || eval "mkdir $as_dirs"
26195 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26197 { (exit 1); exit 1; }; }; }
26201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26204 # A ".." for each directory in $ac_dir_suffix.
26205 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26206 case $ac_top_builddir_sub in
26207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26211 ac_abs_top_builddir=$ac_pwd
26212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26213 # for backward compatibility:
26214 ac_top_builddir=$ac_top_build_prefix
26217 .) # We are building in place.
26219 ac_top_srcdir=$ac_top_builddir_sub
26220 ac_abs_top_srcdir=$ac_pwd ;;
26221 [\\/]* | ?:[\\/]* ) # Absolute name.
26222 ac_srcdir=$srcdir$ac_dir_suffix;
26223 ac_top_srcdir=$srcdir
26224 ac_abs_top_srcdir=$srcdir ;;
26225 *) # Relative name.
26226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26227 ac_top_srcdir=$ac_top_build_prefix$srcdir
26228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26235 # Check for guested configure; otherwise get Cygnus style configure.
26236 if test -f "$ac_srcdir/configure.gnu"; then
26237 ac_sub_configure=$ac_srcdir/configure.gnu
26238 elif test -f "$ac_srcdir/configure"; then
26239 ac_sub_configure=$ac_srcdir/configure
26240 elif test -f "$ac_srcdir/configure.in"; then
26241 # This should be Cygnus configure.
26242 ac_sub_configure=$ac_aux_dir/configure
26244 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26245 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26249 # The recursion is here.
26250 if test -n "$ac_sub_configure"; then
26251 # Make the cache file name correct relative to the subdirectory.
26252 case $cache_file in
26253 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26254 *) # Relative name.
26255 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26258 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26259 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26260 # The eval makes quoting arguments work.
26261 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26262 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26263 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26264 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26265 { (exit 1); exit 1; }; }