2 # From configure.in Revision: 1.256 .
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
872 RADIUSD_MAJOR_VERSION
873 RADIUSD_MINOR_VERSION
878 ac_precious_vars='build_alias
893 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
895 # Initialize some variables set by options.
897 ac_init_version=false
898 # The variables have the same names as the options, with
899 # dashes changed to underlines.
907 program_transform_name=s,x,x,
915 # Installation directory options.
916 # These are left unexpanded so users can "make install exec_prefix=/foo"
917 # and all the variables that are supposed to be based on exec_prefix
918 # by default will actually change.
919 # Use braces instead of parens because sh, perl, etc. also accept them.
920 # (The list follows the same order as the GNU Coding Standards.)
921 bindir='${exec_prefix}/bin'
922 sbindir='${exec_prefix}/sbin'
923 libexecdir='${exec_prefix}/libexec'
924 datarootdir='${prefix}/share'
925 datadir='${datarootdir}'
926 sysconfdir='${prefix}/etc'
927 sharedstatedir='${prefix}/com'
928 localstatedir='${prefix}/var'
929 includedir='${prefix}/include'
930 oldincludedir='/usr/include'
931 docdir='${datarootdir}/doc/${PACKAGE}'
932 infodir='${datarootdir}/info'
937 libdir='${exec_prefix}/lib'
938 localedir='${datarootdir}/locale'
939 mandir='${datarootdir}/man'
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\$ac_option
953 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 # Accept the important Cygnus configure options, so we can diagnose typos.
959 case $ac_dashdash$ac_option in
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
981 cache_file=config.cache ;;
983 -datadir | --datadir | --datadi | --datad)
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
995 -disable-* | --disable-*)
996 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002 eval enable_$ac_feature=no ;;
1004 -docdir | --docdir | --docdi | --doc | --do)
1006 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007 docdir=$ac_optarg ;;
1009 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012 dvidir=$ac_optarg ;;
1014 -enable-* | --enable-*)
1015 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019 { (exit 1); exit 1; }; }
1020 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021 eval enable_$ac_feature=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218 eval with_$ac_package=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid package name: $ac_package" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227 eval with_$ac_package=no ;;
1230 # Obsolete; use --with-x.
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1247 -*) { echo "$as_me: error: unrecognized option: $ac_option
1248 Try \`$0 --help' for more information." >&2
1249 { (exit 1); exit 1; }; }
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257 { (exit 1); exit 1; }; }
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1262 # FIXME: should be removed in autoconf 3.0.
1263 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 { echo "$as_me: error: missing argument to $ac_option" >&2
1275 { (exit 1); exit 1; }; }
1278 # Be sure to have absolute directory names.
1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280 datadir sysconfdir sharedstatedir localstatedir includedir \
1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282 libdir localedir mandir
1284 eval ac_val=\$$ac_var
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290 { (exit 1); exit 1; }; }
1293 # There might be people who depend on the old broken behavior: `$host'
1294 # used to hold the argument of --host etc.
1295 # FIXME: To remove some day.
1298 target=$target_alias
1300 # FIXME: To remove some day.
1301 if test "x$host_alias" != x; then
1302 if test "x$build_alias" = x; then
1303 cross_compiling=maybe
1304 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305 If a cross compiler is detected then cross compile mode will be used." >&2
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 { echo "$as_me: error: Working directory cannot be determined" >&2
1321 { (exit 1); exit 1; }; }
1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323 { echo "$as_me: error: pwd does not report name of working directory" >&2
1324 { (exit 1); exit 1; }; }
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$0" ||
1332 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$0" : 'X\(//\)[^/]' \| \
1334 X"$0" : 'X\(//\)$' \| \
1335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364 { (exit 1); exit 1; }; }
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369 { (exit 1); exit 1; }; }
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 if test -n "$ac_init_help"; then
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-largefile omit support for large files
1466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-strict-dependencies Fail configure on lack of module dependancy.
1472 --enable-developer Enables features of interest to developers.
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-system-libtool try to use libtool installed in your system default=use our own
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-pic try to use only PIC/non-PIC objects [default=use
1481 --with-tags[=TAGS] include additional configurations [automatic]
1482 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1483 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1484 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1485 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1486 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1487 --with-threads Use threads, if available. (default=yes)
1488 --with-snmp Compile in SNMP support. (default=yes)
1489 --with-snmp-include-dir=DIR Directory to look for include files used by SNMP
1490 --with-vmps Compile in VMPS support. (default=yes)
1491 --with-static-modules=QUOTED-MODULE-LIST
1492 --with-modules=QUOTED-MODULE-LIST
1493 --with-experimental-modules Use experimental and unstable modules. (default=no)
1494 --with-openssl Use OpenSSL. (default=yes)
1495 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1496 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1497 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1498 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1499 --with-udpfromto Compile in UDPFROMTO support. (default=yes)
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 F77 Fortran 77 compiler command
1514 FFLAGS Fortran 77 compiler flags
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" || continue
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1546 .) # We are building in place.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1568 $SHELL "$ac_srcdir/configure" --help=recursive
1570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 cd "$ac_pwd" || { ac_status=$?; break; }
1576 test -n "$ac_init_help" && exit $ac_status
1577 if $ac_init_version; then
1580 generated by GNU Autoconf 2.61
1582 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1583 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1589 cat >config.log <<_ACEOF
1590 This file contains any messages produced by compilers while
1591 running configure, to aid debugging if configure makes a mistake.
1593 It was created by $as_me, which was
1594 generated by GNU Autoconf 2.61. Invocation command line was
1606 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1615 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1619 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1646 # Keep a trace of the command line.
1647 # Strip out --no-create and --no-recursion so they do not pile up.
1648 # Strip out --silent because we don't want to record it for future runs.
1649 # Also quote any args containing shell meta-characters.
1650 # Make two passes to allow for proper duplicate-argument suppression.
1654 ac_must_keep_next=false
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
1672 ac_must_keep_next=false # Got value, back to normal.
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 -* ) ac_must_keep_next=true ;;
1686 ac_configure_args="$ac_configure_args '$ac_arg'"
1691 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694 # When interrupted or exit'd, cleanup temporary files, and complete
1695 # config.log. We remove comments because anyway the quotes in there
1696 # would cause problems or look ugly.
1697 # WARNING: Use '\'' to represent an apostrophe within the trap.
1698 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699 trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
1705 ## ---------------- ##
1706 ## Cache variables. ##
1707 ## ---------------- ##
1710 # The following way of writing the cache mishandles newlines in values,
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
1730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742 ## ----------------- ##
1743 ## Output variables. ##
1744 ## ----------------- ##
1747 for ac_var in $ac_subst_vars
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1757 if test -n "$ac_subst_files"; then
1759 ## ------------------- ##
1760 ## File substitutions. ##
1761 ## ------------------- ##
1764 for ac_var in $ac_subst_files
1766 eval ac_val=\$$ac_var
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 echo "$ac_var='\''$ac_val'\''"
1775 if test -s confdefs.h; then
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793 for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1798 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1799 rm -f -r conftest* confdefs.h
1801 # Predefined preprocessor variables.
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_NAME "$PACKAGE_NAME"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_STRING "$PACKAGE_STRING"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1828 # Let the site file select an alternate cache file if it wants to.
1829 # Prefer explicitly selected file to automatically selected ones.
1830 if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832 elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
1841 if test -r "$ac_site_file"; then
1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 echo "$as_me: loading cache $cache_file" >&6;}
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 echo "$as_me: creating cache $cache_file" >&6;}
1866 # Check that the precious variables saved in the cache have kept the same
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
1874 case $ac_old_set,$ac_new_set in
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1889 echo "$as_me: former value: $ac_old_val" >&2;}
1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1891 echo "$as_me: current value: $ac_new_val" >&2;}
1892 ac_cache_corrupted=:
1895 # Pass precious variables to config.status.
1896 if test "$ac_new_set" = set; then
1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 *) ac_arg=$ac_var=$ac_new_val ;;
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1907 if $ac_cache_corrupted; then
1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941 RADIUSD_MAJOR_VERSION=2
1942 RADIUSD_MINOR_VERSION=0.1-pre
1943 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952 if test -n "$ac_tool_prefix"; then
1953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1970 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 { echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6; }
1985 { echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6; }
1991 if test -z "$ac_cv_prog_CC"; then
1993 # Extract the first word of "gcc", so it can be a program name with args.
1994 set dummy gcc; ac_word=$2
1995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$ac_ct_CC"; then
2001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2010 ac_cv_prog_ac_ct_CC="gcc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6; }
2025 { echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6; }
2029 if test "x$ac_ct_CC" = x; then
2032 case $cross_compiling:$ac_tool_warned in
2034 { echo "$as_me:$LINENO: 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." >&5
2037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet. If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2040 ac_tool_warned=yes ;;
2048 if test -z "$CC"; then
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}cc; ac_word=$2
2052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_CC="${ac_tool_prefix}cc"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 { echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6; }
2082 { echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6; }
2089 if test -z "$CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2109 ac_prog_rejected=yes
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 if test $ac_prog_rejected = yes; then
2121 # We found a bogon in the path, so make sure we never use it.
2122 set dummy $ac_cv_prog_CC
2124 if test $# != 0; then
2125 # We chose a different compiler from the bogus one.
2126 # However, it has the same basename, so the bogon will be chosen
2127 # first if we set CC to just the basename; use the full file name.
2129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2135 if test -n "$CC"; then
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2145 if test -z "$CC"; then
2146 if test -n "$ac_tool_prefix"; then
2147 for ac_prog in cl.exe
2149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 if test -n "$CC"; then
2178 { echo "$as_me:$LINENO: result: $CC" >&5
2179 echo "${ECHO_T}$CC" >&6; }
2181 { echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6; }
2186 test -n "$CC" && break
2189 if test -z "$CC"; then
2191 for ac_prog in cl.exe
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2200 if test -n "$ac_ct_CC"; then
2201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_ac_ct_CC="$ac_prog"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2230 test -n "$ac_ct_CC" && break
2233 if test "x$ac_ct_CC" = x; then
2236 case $cross_compiling:$ac_tool_warned in
2238 { echo "$as_me:$LINENO: 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." >&5
2241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet. If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2244 ac_tool_warned=yes ;;
2253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&2;}
2257 { (exit 1); exit 1; }; }
2259 # Provide some information about the compiler.
2260 echo "$as_me:$LINENO: checking for C compiler version" >&5
2261 ac_compiler=`set X $ac_compile; echo $2`
2262 { (ac_try="$ac_compiler --version >&5"
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268 (eval "$ac_compiler --version >&5") 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (ac_try="$ac_compiler -v >&5"
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2278 (eval "$ac_compiler -v >&5") 2>&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }
2282 { (ac_try="$ac_compiler -V >&5"
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288 (eval "$ac_compiler -V >&5") 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }
2293 cat >conftest.$ac_ext <<_ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2308 ac_clean_files_save=$ac_clean_files
2309 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2310 # Try to create an executable without -o first, disregard a.out.
2311 # It will help us diagnose broken compilers, and finding out an intuition
2313 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2314 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2315 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 # List of possible output files, starting from the most likely.
2318 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2319 # only as a last resort. b.out is created by i960 compilers.
2320 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2322 # The IRIX 6 linker writes into existing files which may not be
2323 # executable, retaining their permissions. Remove them first so a
2324 # subsequent execution test works.
2326 for ac_file in $ac_files
2329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2335 if { (ac_try="$ac_link_default"
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_link_default") 2>&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2346 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2347 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2348 # so that the user can short-circuit this test for compilers unknown to
2350 for ac_file in $ac_files ''
2352 test -f "$ac_file" || continue
2354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357 # We found the default executable, but exeext='' is most
2361 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2363 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365 # We set ac_cv_exeext here because the later test for it is not
2366 # safe: cross compilers may not add the suffix if given an `-o'
2367 # argument, so we may need to know it at that point already.
2368 # Even if this section looks crufty: it has the advantage of
2375 test "$ac_cv_exeext" = no && ac_cv_exeext=
2381 { echo "$as_me:$LINENO: result: $ac_file" >&5
2382 echo "${ECHO_T}$ac_file" >&6; }
2383 if test -z "$ac_file"; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&5
2389 echo "$as_me: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&2;}
2391 { (exit 77); exit 77; }; }
2394 ac_exeext=$ac_cv_exeext
2396 # Check that the compiler produces executables we can run. If not, either
2397 # the compiler is broken, or we cross compile.
2398 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2399 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2400 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2401 # If not cross compiling, check that we can run a simple program.
2402 if test "$cross_compiling" != yes; then
2403 if { ac_try='./$ac_file'
2404 { (case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_try") 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 if test "$cross_compiling" = maybe; then
2418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2428 { echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6; }
2431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432 ac_clean_files=$ac_clean_files_save
2433 # Check that the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2437 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438 echo "${ECHO_T}$cross_compiling" >&6; }
2440 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2442 if { (ac_try="$ac_link"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_link") 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; then
2452 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2453 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2454 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 for ac_file in conftest.exe conftest conftest.*; do
2457 test -f "$ac_file" || continue
2459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2460 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2467 See \`config.log' for more details." >&5
2468 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2473 rm -f conftest$ac_cv_exeext
2474 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2475 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2477 rm -f conftest.$ac_ext
2478 EXEEXT=$ac_cv_exeext
2480 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2481 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2482 if test "${ac_cv_objext+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.o conftest.obj
2501 if { (ac_try="$ac_compile"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; then
2511 for ac_file in conftest.o conftest.obj conftest.*; do
2512 test -f "$ac_file" || continue;
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&2;}
2527 { (exit 1); exit 1; }; }
2530 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2533 echo "${ECHO_T}$ac_cv_objext" >&6; }
2534 OBJEXT=$ac_cv_objext
2536 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2537 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2538 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } && {
2573 test -z "$ac_c_werror_flag" ||
2574 test ! -s conftest.err
2575 } && test -s conftest.$ac_objext; then
2578 echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2589 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2590 GCC=`test $ac_compiler_gnu = yes && echo yes`
2591 ac_test_CFLAGS=${CFLAGS+set}
2592 ac_save_CFLAGS=$CFLAGS
2593 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2594 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_cc_g+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 ac_save_c_werror_flag=$ac_c_werror_flag
2599 ac_c_werror_flag=yes
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compile") 2>conftest.er1
2626 grep -v '^ *+' conftest.er1 >conftest.err
2628 cat conftest.err >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); } && {
2631 test -z "$ac_c_werror_flag" ||
2632 test ! -s conftest.err
2633 } && test -s conftest.$ac_objext; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compile") 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } && {
2669 test -z "$ac_c_werror_flag" ||
2670 test ! -s conftest.err
2671 } && test -s conftest.$ac_objext; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 ac_c_werror_flag=$ac_save_c_werror_flag
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compile") 2>conftest.er1
2703 grep -v '^ *+' conftest.er1 >conftest.err
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } && {
2708 test -z "$ac_c_werror_flag" ||
2709 test ! -s conftest.err
2710 } && test -s conftest.$ac_objext; then
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_c_werror_flag=$ac_save_c_werror_flag
2728 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2729 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2730 if test "$ac_test_CFLAGS" = set; then
2731 CFLAGS=$ac_save_CFLAGS
2732 elif test $ac_cv_prog_cc_g = yes; then
2733 if test "$GCC" = yes; then
2739 if test "$GCC" = yes; then
2745 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2746 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_cc_c89+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 ac_cv_prog_cc_c89=no
2752 cat >conftest.$ac_ext <<_ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2760 #include <sys/types.h>
2761 #include <sys/stat.h>
2762 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2763 struct buf { int x; };
2764 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2765 static char *e (p, i)
2771 static char *f (char * (*g) (char **, int), char **p, ...)
2776 s = g (p, va_arg (v,int));
2781 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2782 function prototypes and stuff, but not '\xHH' hex character constants.
2783 These don't provoke an error unfortunately, instead are silently treated
2784 as 'x'. The following induces an error, until -std is added to get
2785 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2786 array size at least. It's necessary to write '\x00'==0 to get something
2787 that's true only with -std. */
2788 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2791 inside strings and character constants. */
2793 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2795 int test (int i, double x);
2796 struct s1 {int (*f) (int a);};
2797 struct s2 {int (*f) (double a);};
2798 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2804 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2809 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2810 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 CC="$ac_save_CC $ac_arg"
2813 rm -f conftest.$ac_objext
2814 if { (ac_try="$ac_compile"
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_compile") 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && {
2827 test -z "$ac_c_werror_flag" ||
2828 test ! -s conftest.err
2829 } && test -s conftest.$ac_objext; then
2830 ac_cv_prog_cc_c89=$ac_arg
2832 echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f core conftest.err conftest.$ac_objext
2839 test "x$ac_cv_prog_cc_c89" != "xno" && break
2841 rm -f conftest.$ac_ext
2846 case "x$ac_cv_prog_cc_c89" in
2848 { echo "$as_me:$LINENO: result: none needed" >&5
2849 echo "${ECHO_T}none needed" >&6; } ;;
2851 { echo "$as_me:$LINENO: result: unsupported" >&5
2852 echo "${ECHO_T}unsupported" >&6; } ;;
2854 CC="$CC $ac_cv_prog_cc_c89"
2855 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2856 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 ac_cpp='$CXXCPP $CPPFLAGS'
2868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2871 if test -z "$CXX"; then
2872 if test -n "$CCC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CXX+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CXX"; then
2886 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test -n "$CXX"; then
2907 { echo "$as_me:$LINENO: result: $CXX" >&5
2908 echo "${ECHO_T}$CXX" >&6; }
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2915 test -n "$CXX" && break
2918 if test -z "$CXX"; then
2920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 if test -n "$ac_ct_CXX"; then
2930 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CXX="$ac_prog"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2950 if test -n "$ac_ct_CXX"; then
2951 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2952 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2959 test -n "$ac_ct_CXX" && break
2962 if test "x$ac_ct_CXX" = x; then
2965 case $cross_compiling:$ac_tool_warned in
2967 { echo "$as_me:$LINENO: 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." >&5
2970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2971 whose name does not start with the host triplet. If you think this
2972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2973 ac_tool_warned=yes ;;
2981 # Provide some information about the compiler.
2982 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2983 ac_compiler=`set X $ac_compile; echo $2`
2984 { (ac_try="$ac_compiler --version >&5"
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_compiler --version >&5") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }
2994 { (ac_try="$ac_compiler -v >&5"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compiler -v >&5") 2>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }
3004 { (ac_try="$ac_compiler -V >&5"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compiler -V >&5") 2>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3017 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } && {
3052 test -z "$ac_cxx_werror_flag" ||
3053 test ! -s conftest.err
3054 } && test -s conftest.$ac_objext; then
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3067 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3068 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3069 GXX=`test $ac_compiler_gnu = yes && echo yes`
3070 ac_test_CXXFLAGS=${CXXFLAGS+set}
3071 ac_save_CXXFLAGS=$CXXFLAGS
3072 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3073 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3074 if test "${ac_cv_prog_cxx_g+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3078 ac_cxx_werror_flag=yes
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_cxx_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_prog_cxx_g=yes
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_cxx_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_cxx_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_cv_prog_cxx_g=yes
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3209 if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3218 if test "$GXX" = yes; then
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3239 # On Suns, sometimes $CPP names a directory.
3240 if test -n "$CPP" && test -d "$CPP"; then
3243 if test -z "$CPP"; then
3244 if test "${ac_cv_prog_CPP+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 # Double quotes because CPP needs to be expanded
3248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251 for ac_c_preproc_warn_flag in '' yes
3253 # Use a header file that comes with gcc, so configuring glibc
3254 # with a fresh cross-compiler works.
3255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3256 # <limits.h> exists even on freestanding compilers.
3257 # On the NeXT, cc -E runs the code through the compiler's parser,
3258 # not just through cpp. "Syntax error" is here to catch this case.
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3266 # include <limits.h>
3268 # include <assert.h>
3272 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } >/dev/null && {
3285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 # Broken: fails on valid input.
3297 rm -f conftest.err conftest.$ac_ext
3299 # OK, works on sane cases. Now check whether nonexistent headers
3300 # can be detected and how.
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 #include <ac_nonexistent.h>
3309 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317 grep -v '^ *+' conftest.er1 >conftest.err
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null && {
3322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3323 test ! -s conftest.err
3325 # Broken: success on invalid input.
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 # Passes both tests.
3336 rm -f conftest.err conftest.$ac_ext
3339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3340 rm -f conftest.err conftest.$ac_ext
3341 if $ac_preproc_ok; then
3353 { echo "$as_me:$LINENO: result: $CPP" >&5
3354 echo "${ECHO_T}$CPP" >&6; }
3356 for ac_c_preproc_warn_flag in '' yes
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3371 # include <limits.h>
3373 # include <assert.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1 >conftest.err
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # Broken: fails on valid input.
3402 rm -f conftest.err conftest.$ac_ext
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat >conftest.$ac_ext <<_ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <ac_nonexistent.h>
3414 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } >/dev/null && {
3427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3430 # Broken: success on invalid input.
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 # Passes both tests.
3441 rm -f conftest.err conftest.$ac_ext
3444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3445 rm -f conftest.err conftest.$ac_ext
3446 if $ac_preproc_ok; then
3449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&5
3451 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3452 See \`config.log' for more details." >&2;}
3453 { (exit 1); exit 1; }; }
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3464 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3465 if test "${ac_cv_path_GREP+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 # Extract the first word of "grep ggrep" to use in msg output
3469 if test -z "$GREP"; then
3470 set dummy grep ggrep; ac_prog_name=$2
3471 if test "${ac_cv_path_GREP+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_path_GREP_found=false
3475 # Loop through the user's path and test for each of PROGNAME-LIST
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3480 test -z "$as_dir" && as_dir=.
3481 for ac_prog in grep ggrep; do
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3484 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3485 # Check for GNU ac_path_GREP and select it if it is found.
3486 # Check for GNU $ac_path_GREP
3487 case `"$ac_path_GREP" --version 2>&1` in
3489 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3492 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3495 cat "conftest.in" "conftest.in" >"conftest.tmp"
3496 mv "conftest.tmp" "conftest.in"
3497 cp "conftest.in" "conftest.nl"
3498 echo 'GREP' >> "conftest.nl"
3499 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3501 ac_count=`expr $ac_count + 1`
3502 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3503 # Best one so far, save it but keep looking for a better one
3504 ac_cv_path_GREP="$ac_path_GREP"
3505 ac_path_GREP_max=$ac_count
3507 # 10*(2^10) chars as input seems more than enough
3508 test $ac_count -gt 10 && break
3510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514 $ac_path_GREP_found && break 3
3524 GREP="$ac_cv_path_GREP"
3525 if test -z "$GREP"; then
3526 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3527 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3528 { (exit 1); exit 1; }; }
3532 ac_cv_path_GREP=$GREP
3537 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3538 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3539 GREP="$ac_cv_path_GREP"
3542 { echo "$as_me:$LINENO: checking for egrep" >&5
3543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3544 if test "${ac_cv_path_EGREP+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3548 then ac_cv_path_EGREP="$GREP -E"
3550 # Extract the first word of "egrep" to use in msg output
3551 if test -z "$EGREP"; then
3552 set dummy egrep; ac_prog_name=$2
3553 if test "${ac_cv_path_EGREP+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 ac_path_EGREP_found=false
3557 # Loop through the user's path and test for each of PROGNAME-LIST
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3562 test -z "$as_dir" && as_dir=.
3563 for ac_prog in egrep; do
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3566 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3567 # Check for GNU ac_path_EGREP and select it if it is found.
3568 # Check for GNU $ac_path_EGREP
3569 case `"$ac_path_EGREP" --version 2>&1` in
3571 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3574 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3577 cat "conftest.in" "conftest.in" >"conftest.tmp"
3578 mv "conftest.tmp" "conftest.in"
3579 cp "conftest.in" "conftest.nl"
3580 echo 'EGREP' >> "conftest.nl"
3581 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3583 ac_count=`expr $ac_count + 1`
3584 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3585 # Best one so far, save it but keep looking for a better one
3586 ac_cv_path_EGREP="$ac_path_EGREP"
3587 ac_path_EGREP_max=$ac_count
3589 # 10*(2^10) chars as input seems more than enough
3590 test $ac_count -gt 10 && break
3592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596 $ac_path_EGREP_found && break 3
3606 EGREP="$ac_cv_path_EGREP"
3607 if test -z "$EGREP"; then
3608 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3609 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3610 { (exit 1); exit 1; }; }
3614 ac_cv_path_EGREP=$EGREP
3620 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3621 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3622 EGREP="$ac_cv_path_EGREP"
3626 { echo "$as_me:$LINENO: checking for AIX" >&5
3627 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "yes" >/dev/null 2>&1; then
3641 { echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6; }
3643 cat >>confdefs.h <<\_ACEOF
3644 #define _ALL_SOURCE 1
3648 { echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6; }
3655 if test $ac_cv_c_compiler_gnu = yes; then
3656 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3657 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 ac_pattern="Autoconf.*'x'"
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3672 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3673 ac_cv_prog_gcc_traditional=yes
3675 ac_cv_prog_gcc_traditional=no
3680 if test $ac_cv_prog_gcc_traditional = no; then
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3692 ac_cv_prog_gcc_traditional=yes
3698 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3699 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3700 if test $ac_cv_prog_gcc_traditional = yes; then
3701 CC="$CC -traditional"
3705 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3706 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3707 if test "${ac_cv_prog_suncc+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 cat > conftest.c <<EOF
3715 if { ac_try='${CC-cc} -E conftest.c'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3721 ac_cv_prog_suncc=yes
3726 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3727 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3728 if test -n "$ac_tool_prefix"; then
3729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3733 if test "${ac_cv_prog_RANLIB+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if test -n "$RANLIB"; then
3737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 RANLIB=$ac_cv_prog_RANLIB
3757 if test -n "$RANLIB"; then
3758 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3759 echo "${ECHO_T}$RANLIB" >&6; }
3761 { echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6; }
3767 if test -z "$ac_cv_prog_RANLIB"; then
3768 ac_ct_RANLIB=$RANLIB
3769 # Extract the first word of "ranlib", so it can be a program name with args.
3770 set dummy ranlib; ac_word=$2
3771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$ac_ct_RANLIB"; then
3777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_ac_ct_RANLIB="ranlib"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3797 if test -n "$ac_ct_RANLIB"; then
3798 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3801 { echo "$as_me:$LINENO: result: no" >&5
3802 echo "${ECHO_T}no" >&6; }
3805 if test "x$ac_ct_RANLIB" = x; then
3808 case $cross_compiling:$ac_tool_warned in
3810 { echo "$as_me:$LINENO: 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." >&5
3813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3814 whose name does not start with the host triplet. If you think this
3815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3816 ac_tool_warned=yes ;;
3818 RANLIB=$ac_ct_RANLIB
3821 RANLIB="$ac_cv_prog_RANLIB"
3825 # Check whether --enable-largefile was given.
3826 if test "${enable_largefile+set}" = set; then
3827 enableval=$enable_largefile;
3830 if test "$enable_largefile" != no; then
3832 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3833 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3834 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 ac_cv_sys_largefile_CC=no
3838 if test "$GCC" != yes; then
3841 # IRIX 6.2 and later do not support large files by default,
3842 # so use the C compiler's -n32 option if that helps.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <sys/types.h>
3850 /* Check that off_t can represent 2**63 - 1 correctly.
3851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3852 since some C++ compilers masquerading as C compilers
3853 incorrectly reject 9223372036854775807. */
3854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3856 && LARGE_OFF_T % 2147483647 == 1)
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3891 rm -f core conftest.err conftest.$ac_objext
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_compile") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && {
3907 test -z "$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3909 } && test -s conftest.$ac_objext; then
3910 ac_cv_sys_largefile_CC=' -n32'; break
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext
3922 rm -f conftest.$ac_ext
3925 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3926 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3927 if test "$ac_cv_sys_largefile_CC" != no; then
3928 CC=$CC$ac_cv_sys_largefile_CC
3931 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3932 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3933 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 /* Check that off_t can represent 2**63 - 1 correctly.
3945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3946 since some C++ compilers masquerading as C compilers
3947 incorrectly reject 9223372036854775807. */
3948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3950 && LARGE_OFF_T % 2147483647 == 1)
3960 rm -f conftest.$ac_objext
3961 if { (ac_try="$ac_compile"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3977 ac_cv_sys_file_offset_bits=no; break
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
3992 #define _FILE_OFFSET_BITS 64
3993 #include <sys/types.h>
3994 /* Check that off_t can represent 2**63 - 1 correctly.
3995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3996 since some C++ compilers masquerading as C compilers
3997 incorrectly reject 9223372036854775807. */
3998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4000 && LARGE_OFF_T % 2147483647 == 1)
4010 rm -f conftest.$ac_objext
4011 if { (ac_try="$ac_compile"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4019 grep -v '^ *+' conftest.er1 >conftest.err
4021 cat conftest.err >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } && {
4024 test -z "$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4026 } && test -s conftest.$ac_objext; then
4027 ac_cv_sys_file_offset_bits=64; break
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_sys_file_offset_bits=unknown
4040 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4041 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4042 case $ac_cv_sys_file_offset_bits in #(
4045 cat >>confdefs.h <<_ACEOF
4046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4051 if test $ac_cv_sys_file_offset_bits = unknown; then
4052 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4053 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4054 if test "${ac_cv_sys_large_files+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4064 #include <sys/types.h>
4065 /* Check that off_t can represent 2**63 - 1 correctly.
4066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4067 since some C++ compilers masquerading as C compilers
4068 incorrectly reject 9223372036854775807. */
4069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4071 && LARGE_OFF_T % 2147483647 == 1)
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4098 ac_cv_sys_large_files=no; break
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #define _LARGE_FILES 1
4114 #include <sys/types.h>
4115 /* Check that off_t can represent 2**63 - 1 correctly.
4116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4117 since some C++ compilers masquerading as C compilers
4118 incorrectly reject 9223372036854775807. */
4119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4121 && LARGE_OFF_T % 2147483647 == 1)
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_cv_sys_large_files=1; break
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_sys_large_files=unknown
4161 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4162 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4163 case $ac_cv_sys_large_files in #(
4166 cat >>confdefs.h <<_ACEOF
4167 #define _LARGE_FILES $ac_cv_sys_large_files
4176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4178 if test "${ac_cv_header_stdc+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4200 rm -f conftest.$ac_objext
4201 if { (ac_try="$ac_compile"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.$ac_objext; then
4217 ac_cv_header_stdc=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_header_stdc=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 if test $ac_cv_header_stdc = yes; then
4228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "memchr" >/dev/null 2>&1; then
4242 ac_cv_header_stdc=no
4248 if test $ac_cv_header_stdc = yes; then
4249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "free" >/dev/null 2>&1; then
4263 ac_cv_header_stdc=no
4269 if test $ac_cv_header_stdc = yes; then
4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271 if test "$cross_compiling" = yes; then
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 # define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
4305 rm -f conftest$ac_exeext
4306 if { (ac_try="$ac_link"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_link") 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_header_stdc=no
4334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4342 if test $ac_cv_header_stdc = yes; then
4344 cat >>confdefs.h <<\_ACEOF
4345 #define STDC_HEADERS 1
4350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4360 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4361 inttypes.h stdint.h unistd.h
4363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375 $ac_includes_default
4377 #include <$ac_header>
4379 rm -f conftest.$ac_objext
4380 if { (ac_try="$ac_compile"
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
4396 eval "$as_ac_Header=yes"
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 eval "$as_ac_Header=no"
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 ac_res=`eval echo '${'$as_ac_Header'}'`
4407 { echo "$as_me:$LINENO: result: $ac_res" >&5
4408 echo "${ECHO_T}$ac_res" >&6; }
4409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4410 cat >>confdefs.h <<_ACEOF
4411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4420 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4421 if test "${ac_cv_c_bigendian+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 # See if sys/param.h defines the BYTE_ORDER macro.
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4437 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4438 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4463 # It does; now see whether it defined to BIG_ENDIAN or not.
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <sys/types.h>
4471 #include <sys/param.h>
4476 #if BYTE_ORDER != BIG_ENDIAN
4484 rm -f conftest.$ac_objext
4485 if { (ac_try="$ac_compile"
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4493 grep -v '^ *+' conftest.er1 >conftest.err
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 ac_cv_c_bigendian=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 ac_cv_c_bigendian=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 # It does not; compile a test program.
4515 if test "$cross_compiling" = yes; then
4516 # try to guess the endianness by grepping values into an object file
4517 ac_cv_c_bigendian=unknown
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4524 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4526 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4527 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4529 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4533 _ascii (); _ebcdic ();
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compile") 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && {
4552 test -z "$ac_c_werror_flag" ||
4553 test ! -s conftest.err
4554 } && test -s conftest.$ac_objext; then
4555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4556 ac_cv_c_bigendian=yes
4558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4559 if test "$ac_cv_c_bigendian" = unknown; then
4560 ac_cv_c_bigendian=no
4562 # finding both strings is unlikely to happen, but who knows?
4563 ac_cv_c_bigendian=unknown
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 $ac_includes_default
4586 /* Are we little or big endian? From Harbison&Steele. */
4590 char c[sizeof (long int)];
4593 return u.c[sizeof (long int) - 1] == 1;
4599 rm -f conftest$ac_exeext
4600 if { (ac_try="$ac_link"
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_link") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_c_bigendian=no
4621 echo "$as_me: program exited with status $ac_status" >&5
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_cv_c_bigendian=yes
4628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4638 case $ac_cv_c_bigendian in
4641 cat >>confdefs.h <<\_ACEOF
4642 #define WORDS_BIGENDIAN 1
4648 { { echo "$as_me:$LINENO: error: unknown endianness
4649 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4650 echo "$as_me: error: unknown endianness
4651 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4652 { (exit 1); exit 1; }; } ;;
4656 # Extract the first word of "gmake", so it can be a program name with args.
4657 set dummy gmake; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_GMAKE+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$GMAKE"; then
4664 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_GMAKE="yes"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4684 GMAKE=$ac_cv_prog_GMAKE
4685 if test -n "$GMAKE"; then
4686 { echo "$as_me:$LINENO: result: $GMAKE" >&5
4687 echo "${ECHO_T}$GMAKE" >&6; }
4689 { echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6; }
4694 if test $GMAKE = no; then
4695 # Extract the first word of "make", so it can be a program name with args.
4696 set dummy make; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_MAKE+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4726 MAKE=$ac_cv_path_MAKE
4727 if test -n "$MAKE"; then
4728 { echo "$as_me:$LINENO: result: $MAKE" >&5
4729 echo "${ECHO_T}$MAKE" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4737 # Extract the first word of "gmake", so it can be a program name with args.
4738 set dummy gmake; ac_word=$2
4739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741 if test "${ac_cv_path_MAKE+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4768 MAKE=$ac_cv_path_MAKE
4769 if test -n "$MAKE"; then
4770 { echo "$as_me:$LINENO: result: $MAKE" >&5
4771 echo "${ECHO_T}$MAKE" >&6; }
4773 { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4779 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4780 if test -z "$makever"; then
4781 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4782 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4783 echo "$as_me: error: GNU Make is not installed. Please download and install it
4784 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4785 { (exit 1); exit 1; }; }
4788 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4789 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4790 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 ac_check_lib_save_LIBS=$LIBS
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4802 /* Override any GCC internal prototype to avoid an error.
4803 Use char because int might match the return type of a GCC
4804 builtin and then its argument prototype would still apply. */
4812 return lt_dlinit ();
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (ac_try="$ac_link"
4820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_link") 2>conftest.er1
4826 grep -v '^ *+' conftest.er1 >conftest.err
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && {
4831 test -z "$ac_c_werror_flag" ||
4832 test ! -s conftest.err
4833 } && test -s conftest$ac_exeext &&
4834 $as_test_x conftest$ac_exeext; then
4835 ac_cv_lib_ltdl_lt_dlinit=yes
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_cv_lib_ltdl_lt_dlinit=no
4843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4844 conftest$ac_exeext conftest.$ac_ext
4845 LIBS=$ac_check_lib_save_LIBS
4847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4848 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4849 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4850 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4852 if test x"$enable_ltdl_install" = xno; then
4853 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4854 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4856 enable_ltdl_install=yes
4861 if test x"$enable_ltdl_install" = x"yes"; then
4862 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4863 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4864 LTDLINCL='-I${top_srcdir}/''libltdl'
4866 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4870 # For backwards non-gettext consistent compatibility...
4874 if test x"$enable_ltdl_install" = x"yes"; then
4875 LTDL_SUBDIRS=libltdl
4879 # Check whether --enable-shared was given.
4880 if test "${enable_shared+set}" = set; then
4881 enableval=$enable_shared; p=${PACKAGE-default}
4883 yes) enable_shared=yes ;;
4884 no) enable_shared=no ;;
4887 # Look at the argument we got. We use all the common list separators.
4888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4889 for pkg in $enableval; do
4891 if test "X$pkg" = "X$p"; then
4903 # Check whether --enable-static was given.
4904 if test "${enable_static+set}" = set; then
4905 enableval=$enable_static; p=${PACKAGE-default}
4907 yes) enable_static=yes ;;
4908 no) enable_static=no ;;
4911 # Look at the argument we got. We use all the common list separators.
4912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4913 for pkg in $enableval; do
4915 if test "X$pkg" = "X$p"; then
4927 # Check whether --enable-fast-install was given.
4928 if test "${enable_fast_install+set}" = set; then
4929 enableval=$enable_fast_install; p=${PACKAGE-default}
4931 yes) enable_fast_install=yes ;;
4932 no) enable_fast_install=no ;;
4934 enable_fast_install=no
4935 # Look at the argument we got. We use all the common list separators.
4936 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4937 for pkg in $enableval; do
4939 if test "X$pkg" = "X$p"; then
4940 enable_fast_install=yes
4947 enable_fast_install=yes
4952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953 if test -f "$ac_dir/install-sh"; then
4955 ac_install_sh="$ac_aux_dir/install-sh -c"
4957 elif test -f "$ac_dir/install.sh"; then
4959 ac_install_sh="$ac_aux_dir/install.sh -c"
4961 elif test -f "$ac_dir/shtool"; then
4963 ac_install_sh="$ac_aux_dir/shtool install -c"
4967 if test -z "$ac_aux_dir"; then
4968 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4969 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4970 { (exit 1); exit 1; }; }
4973 # These three variables are undocumented and unsupported,
4974 # and are intended to be withdrawn in a future Autoconf release.
4975 # They can cause serious problems if a builder's source tree is in a directory
4976 # whose full name contains unusual characters.
4977 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4978 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4979 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4982 # Make sure we can run config.sub.
4983 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4984 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4985 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4986 { (exit 1); exit 1; }; }
4988 { echo "$as_me:$LINENO: checking build system type" >&5
4989 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4990 if test "${ac_cv_build+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 ac_build_alias=$build_alias
4994 test "x$ac_build_alias" = x &&
4995 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4996 test "x$ac_build_alias" = x &&
4997 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4999 { (exit 1); exit 1; }; }
5000 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5002 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5003 { (exit 1); exit 1; }; }
5006 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5007 echo "${ECHO_T}$ac_cv_build" >&6; }
5008 case $ac_cv_build in
5010 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5011 echo "$as_me: error: invalid value of canonical build" >&2;}
5012 { (exit 1); exit 1; }; };;
5015 ac_save_IFS=$IFS; IFS='-'
5021 # Remember, the first character of IFS is used to create $*,
5022 # except with old shells:
5025 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5028 { echo "$as_me:$LINENO: checking host system type" >&5
5029 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5030 if test "${ac_cv_host+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 if test "x$host_alias" = x; then
5034 ac_cv_host=$ac_cv_build
5036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5037 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5038 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5039 { (exit 1); exit 1; }; }
5043 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5044 echo "${ECHO_T}$ac_cv_host" >&6; }
5047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5048 echo "$as_me: error: invalid value of canonical host" >&2;}
5049 { (exit 1); exit 1; }; };;
5052 ac_save_IFS=$IFS; IFS='-'
5058 # Remember, the first character of IFS is used to create $*,
5059 # except with old shells:
5062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5065 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5066 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5067 if test "${lt_cv_path_SED+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 # Loop through the user's path and test for sed and gsed.
5071 # Then use that list of sed's as ones to test for truncation.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for lt_ac_prog in sed gsed; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5080 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5087 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5088 # along with /bin/sed that truncates output.
5089 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5090 test ! -f $lt_ac_sed && continue
5091 cat /dev/null > conftest.in
5093 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5094 # Check for GNU sed and select it if it is found.
5095 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5096 lt_cv_path_SED=$lt_ac_sed
5100 cat conftest.in conftest.in >conftest.tmp
5101 mv conftest.tmp conftest.in
5102 cp conftest.in conftest.nl
5104 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5105 cmp -s conftest.out conftest.nl || break
5106 # 10000 chars as input seems more than enough
5107 test $lt_ac_count -gt 10 && break
5108 lt_ac_count=`expr $lt_ac_count + 1`
5109 if test $lt_ac_count -gt $lt_ac_max; then
5110 lt_ac_max=$lt_ac_count
5111 lt_cv_path_SED=$lt_ac_sed
5119 { echo "$as_me:$LINENO: result: $SED" >&5
5120 echo "${ECHO_T}$SED" >&6; }
5123 # Check whether --with-gnu-ld was given.
5124 if test "${with_gnu_ld+set}" = set; then
5125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5131 if test "$GCC" = yes; then
5132 # Check if gcc -print-prog-name=ld gives a path.
5133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5137 # gcc leaves a trailing carriage return which upsets mingw
5138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5143 # Accept absolute paths.
5145 re_direlt='/[^/][^/]*/\.\./'
5146 # Canonicalize the pathname of ld
5147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5151 test -z "$LD" && LD="$ac_prog"
5154 # If it fails, then pretend we aren't using GCC.
5158 # If it is relative, then search for the first ld in PATH.
5162 elif test "$with_gnu_ld" = yes; then
5163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5169 if test "${lt_cv_path_LD+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 if test -z "$LD"; then
5173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5174 for ac_dir in $PATH; do
5176 test -z "$ac_dir" && ac_dir=.
5177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5178 lt_cv_path_LD="$ac_dir/$ac_prog"
5179 # Check to see if the program is GNU ld. I'd rather use --version,
5180 # but apparently some variants of GNU ld only accept -v.
5181 # Break only if it was the GNU/non-GNU ld that we prefer.
5182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5183 *GNU* | *'with BFD'*)
5184 test "$with_gnu_ld" != no && break
5187 test "$with_gnu_ld" != yes && break
5194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5199 if test -n "$LD"; then
5200 { echo "$as_me:$LINENO: result: $LD" >&5
5201 echo "${ECHO_T}$LD" >&6; }
5203 { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5208 { (exit 1); exit 1; }; }
5209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5215 case `$LD -v 2>&1 </dev/null` in
5216 *GNU* | *'with BFD'*)
5217 lt_cv_prog_gnu_ld=yes
5220 lt_cv_prog_gnu_ld=no
5224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5226 with_gnu_ld=$lt_cv_prog_gnu_ld
5229 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5230 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5231 if test "${lt_cv_ld_reload_flag+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 lt_cv_ld_reload_flag='-r'
5236 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5237 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5238 reload_flag=$lt_cv_ld_reload_flag
5239 case $reload_flag in
5241 *) reload_flag=" $reload_flag" ;;
5243 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5246 if test "$GCC" = yes; then
5247 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5254 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5255 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5256 if test "${lt_cv_path_NM+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 if test -n "$NM"; then
5260 # Let the user override the test.
5263 lt_nm_to_check="${ac_tool_prefix}nm"
5264 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5265 lt_nm_to_check="$lt_nm_to_check nm"
5267 for lt_tmp_nm in $lt_nm_to_check; do
5268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5269 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5271 test -z "$ac_dir" && ac_dir=.
5272 tmp_nm="$ac_dir/$lt_tmp_nm"
5273 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5274 # Check to see if the nm accepts a BSD-compat flag.
5275 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5276 # nm: unknown option "B" ignored
5277 # Tru64's nm complains that /dev/null is an invalid object file
5278 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5279 */dev/null* | *'Invalid file or object type'*)
5280 lt_cv_path_NM="$tmp_nm -B"
5284 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5286 lt_cv_path_NM="$tmp_nm -p"
5290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5291 continue # so that we can try to find one that supports BSD flags
5300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5303 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5304 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5307 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5308 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5310 if test "$LN_S" = "ln -s"; then
5311 { echo "$as_me:$LINENO: result: yes" >&5
5312 echo "${ECHO_T}yes" >&6; }
5314 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5315 echo "${ECHO_T}no, using $LN_S" >&6; }
5318 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5319 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5320 if test "${lt_cv_deplibs_check_method+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 lt_cv_file_magic_cmd='$MAGIC_CMD'
5324 lt_cv_file_magic_test_file=
5325 lt_cv_deplibs_check_method='unknown'
5326 # Need to set the preceding variable on all platforms that support
5327 # interlibrary dependencies.
5328 # 'none' -- dependencies not supported.
5329 # `unknown' -- same as none, but documents that we really don't know.
5330 # 'pass_all' -- all dependencies passed with no checks.
5331 # 'test_compile' -- check by making test program.
5332 # 'file_magic [[regex]]' -- check by looking for files in library path
5333 # which responds to the $file_magic_cmd with a given extended regex.
5334 # If you have `file' or equivalent on your system and you're not sure
5335 # whether `pass_all' will *always* work, you probably want this one.
5339 lt_cv_deplibs_check_method=pass_all
5343 lt_cv_deplibs_check_method=pass_all
5347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5348 lt_cv_file_magic_cmd='/usr/bin/file -L'
5349 lt_cv_file_magic_test_file=/shlib/libc.so
5353 # func_win32_libid is a shell function defined in ltmain.sh
5354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5355 lt_cv_file_magic_cmd='func_win32_libid'
5359 # Base MSYS/MinGW do not provide the 'file' command needed by
5360 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5361 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5362 lt_cv_file_magic_cmd='$OBJDUMP -f'
5365 darwin* | rhapsody*)
5366 lt_cv_deplibs_check_method=pass_all
5369 freebsd* | kfreebsd*-gnu | dragonfly*)
5370 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5373 # Not sure whether the presence of OpenBSD here was a mistake.
5374 # Let's accept both of them until this is cleared up.
5375 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5376 lt_cv_file_magic_cmd=/usr/bin/file
5377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5381 lt_cv_deplibs_check_method=pass_all
5386 lt_cv_deplibs_check_method=pass_all
5389 hpux10.20* | hpux11*)
5390 lt_cv_file_magic_cmd=/usr/bin/file
5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5394 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5397 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]'
5398 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5402 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5412 irix5* | irix6* | nonstopux*)
5414 *-32|*"-32 ") libmagic=32-bit;;
5415 *-n32|*"-n32 ") libmagic=N32;;
5416 *-64|*"-64 ") libmagic=64-bit;;
5417 *) libmagic=never-match;;
5419 lt_cv_deplibs_check_method=pass_all
5422 # This must be Linux ELF.
5424 lt_cv_deplibs_check_method=pass_all
5428 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437 lt_cv_file_magic_cmd=/usr/bin/file
5438 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5442 lt_cv_deplibs_check_method=unknown
5446 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5453 osf3* | osf4* | osf5*)
5454 lt_cv_deplibs_check_method=pass_all
5458 lt_cv_deplibs_check_method=pass_all
5462 case $host_vendor in
5464 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]'
5465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5468 lt_cv_deplibs_check_method=pass_all
5471 lt_cv_file_magic_cmd='/bin/file'
5472 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5475 lt_cv_file_magic_cmd='/bin/file'
5476 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5477 lt_cv_file_magic_test_file=/lib/libc.so
5480 lt_cv_deplibs_check_method=pass_all
5483 lt_cv_deplibs_check_method=pass_all
5488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5489 lt_cv_deplibs_check_method=pass_all
5494 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5495 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5496 file_magic_cmd=$lt_cv_file_magic_cmd
5497 deplibs_check_method=$lt_cv_deplibs_check_method
5498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5503 # If no C compiler was specified, use CC.
5506 # If no C compiler flags were specified, use CFLAGS.
5507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5509 # Allow CC to be a program name with arguments.
5512 # Check whether --enable-libtool-lock was given.
5513 if test "${enable_libtool_lock+set}" = set; then
5514 enableval=$enable_libtool_lock;
5517 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5519 # Some flags need to be propagated to the compiler or linker for good
5523 # Find out which ABI we are using.
5524 echo 'int i;' > conftest.$ac_ext
5525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; then
5530 case `/usr/bin/file conftest.$ac_objext` in
5542 # Find out which ABI we are using.
5543 echo '#line 5543 "configure"' > conftest.$ac_ext
5544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545 (eval $ac_compile) 2>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; then
5549 if test "$lt_cv_prog_gnu_ld" = yes; then
5550 case `/usr/bin/file conftest.$ac_objext` in
5552 LD="${LD-ld} -melf32bsmip"
5555 LD="${LD-ld} -melf32bmipn32"
5558 LD="${LD-ld} -melf64bmip"
5562 case `/usr/bin/file conftest.$ac_objext` in
5578 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5579 # Find out which ABI we are using.
5580 echo 'int i;' > conftest.$ac_ext
5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5582 (eval $ac_compile) 2>&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; then
5586 case `/usr/bin/file conftest.o` in
5590 LD="${LD-ld} -m elf_i386"
5592 ppc64-*linux*|powerpc64-*linux*)
5593 LD="${LD-ld} -m elf32ppclinux"
5596 LD="${LD-ld} -m elf_s390"
5599 LD="${LD-ld} -m elf32_sparc"
5606 LD="${LD-ld} -m elf_x86_64"
5608 ppc*-*linux*|powerpc*-*linux*)
5609 LD="${LD-ld} -m elf64ppc"
5612 LD="${LD-ld} -m elf64_s390"
5615 LD="${LD-ld} -m elf64_sparc"
5625 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5626 SAVE_CFLAGS="$CFLAGS"
5627 CFLAGS="$CFLAGS -belf"
5628 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5629 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5630 if test "${lt_cv_cc_needs_belf+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 cat >conftest.$ac_ext <<_ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (ac_try="$ac_link"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_link") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest$ac_exeext &&
5671 $as_test_x conftest$ac_exeext; then
5672 lt_cv_cc_needs_belf=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 lt_cv_cc_needs_belf=no
5680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5681 conftest$ac_exeext conftest.$ac_ext
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5690 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5691 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5692 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5693 CFLAGS="$SAVE_CFLAGS"
5697 # Find out which ABI we are using.
5698 echo 'int i;' > conftest.$ac_ext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; then
5704 case `/usr/bin/file conftest.o` in
5706 case $lt_cv_prog_gnu_ld in
5707 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5708 *) LD="${LD-ld} -64" ;;
5719 need_locks="$enable_libtool_lock"
5723 for ac_header in dlfcn.h
5725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 ac_res=`eval echo '${'$as_ac_Header'}'`
5733 { echo "$as_me:$LINENO: result: $ac_res" >&5
5734 echo "${ECHO_T}$ac_res" >&6; }
5736 # Is the header compilable?
5737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5739 cat >conftest.$ac_ext <<_ACEOF
5742 cat confdefs.h >>conftest.$ac_ext
5743 cat >>conftest.$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5746 #include <$ac_header>
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_header_compiler=yes
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5770 ac_header_compiler=no
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5775 echo "${ECHO_T}$ac_header_compiler" >&6; }
5777 # Is the header present?
5778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 #include <$ac_header>
5788 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } >/dev/null && {
5801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5804 ac_header_preproc=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5809 ac_header_preproc=no
5812 rm -f conftest.err conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5814 echo "${ECHO_T}$ac_header_preproc" >&6; }
5816 # So? What about this header?
5817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5823 ac_header_preproc=yes
5826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 eval "$as_ac_Header=\$ac_header_preproc"
5848 ac_res=`eval echo '${'$as_ac_Header'}'`
5849 { echo "$as_me:$LINENO: result: $ac_res" >&5
5850 echo "${ECHO_T}$ac_res" >&6; }
5853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5854 cat >>confdefs.h <<_ACEOF
5855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5864 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5865 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5866 (test "X$CXX" != "Xg++"))) ; then
5868 ac_cpp='$CXXCPP $CPPFLAGS'
5869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5872 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5873 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5874 if test -z "$CXXCPP"; then
5875 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 # Double quotes because CXXCPP needs to be expanded
5879 for CXXCPP in "$CXX -E" "/lib/cpp"
5882 for ac_cxx_preproc_warn_flag in '' yes
5884 # Use a header file that comes with gcc, so configuring glibc
5885 # with a fresh cross-compiler works.
5886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5887 # <limits.h> exists even on freestanding compilers.
5888 # On the NeXT, cc -E runs the code through the compiler's parser,
5889 # not just through cpp. "Syntax error" is here to catch this case.
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 # include <limits.h>
5899 # include <assert.h>
5903 if { (ac_try="$ac_cpp conftest.$ac_ext"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev/null && {
5916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5924 # Broken: fails on valid input.
5928 rm -f conftest.err conftest.$ac_ext
5930 # OK, works on sane cases. Now check whether nonexistent headers
5931 # can be detected and how.
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 #include <ac_nonexistent.h>
5940 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } >/dev/null && {
5953 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5956 # Broken: success on invalid input.
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 # Passes both tests.
5967 rm -f conftest.err conftest.$ac_ext
5970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5971 rm -f conftest.err conftest.$ac_ext
5972 if $ac_preproc_ok; then
5977 ac_cv_prog_CXXCPP=$CXXCPP
5980 CXXCPP=$ac_cv_prog_CXXCPP
5982 ac_cv_prog_CXXCPP=$CXXCPP
5984 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5985 echo "${ECHO_T}$CXXCPP" >&6; }
5987 for ac_cxx_preproc_warn_flag in '' yes
5989 # Use a header file that comes with gcc, so configuring glibc
5990 # with a fresh cross-compiler works.
5991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 # <limits.h> exists even on freestanding compilers.
5993 # On the NeXT, cc -E runs the code through the compiler's parser,
5994 # not just through cpp. "Syntax error" is here to catch this case.
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6002 # include <limits.h>
6004 # include <assert.h>
6008 if { (ac_try="$ac_cpp conftest.$ac_ext"
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } >/dev/null && {
6021 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6022 test ! -s conftest.err
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 # Broken: fails on valid input.
6033 rm -f conftest.err conftest.$ac_ext
6035 # OK, works on sane cases. Now check whether nonexistent headers
6036 # can be detected and how.
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6043 #include <ac_nonexistent.h>
6045 if { (ac_try="$ac_cpp conftest.$ac_ext"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1 >conftest.err
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null && {
6058 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6059 test ! -s conftest.err
6061 # Broken: success on invalid input.
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 # Passes both tests.
6072 rm -f conftest.err conftest.$ac_ext
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.err conftest.$ac_ext
6077 if $ac_preproc_ok; then
6080 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081 See \`config.log' for more details." >&5
6082 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6083 See \`config.log' for more details." >&2;}
6084 { (exit 1); exit 1; }; }
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6100 if test -n "$ac_tool_prefix"; then
6101 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
6103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6107 if test "${ac_cv_prog_F77+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 if test -n "$F77"; then
6111 ac_cv_prog_F77="$F77" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 if test -n "$F77"; then
6132 { echo "$as_me:$LINENO: result: $F77" >&5
6133 echo "${ECHO_T}$F77" >&6; }
6135 { echo "$as_me:$LINENO: result: no" >&5
6136 echo "${ECHO_T}no" >&6; }
6140 test -n "$F77" && break
6143 if test -z "$F77"; then
6145 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
6147 # Extract the first word of "$ac_prog", so it can be a program name with args.
6148 set dummy $ac_prog; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 if test -n "$ac_ct_F77"; then
6155 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_F77="$ac_prog"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6175 if test -n "$ac_ct_F77"; then
6176 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6177 echo "${ECHO_T}$ac_ct_F77" >&6; }
6179 { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6184 test -n "$ac_ct_F77" && break
6187 if test "x$ac_ct_F77" = x; then
6190 case $cross_compiling:$ac_tool_warned in
6192 { echo "$as_me:$LINENO: 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." >&5
6195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6198 ac_tool_warned=yes ;;
6205 # Provide some information about the compiler.
6206 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6207 ac_compiler=`set X $ac_compile; echo $2`
6208 { (ac_try="$ac_compiler --version >&5"
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compiler --version >&5") 2>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }
6218 { (ac_try="$ac_compiler -v >&5"
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_compiler -v >&5") 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }
6228 { (ac_try="$ac_compiler -V >&5"
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compiler -V >&5") 2>&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }
6240 # If we don't use `.F' as extension, the preprocessor is not run on the
6241 # input file. (Note that this only needs to work for GNU compilers.)
6244 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6245 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6246 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.$ac_ext <<_ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_f77_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6286 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6287 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6289 ac_test_FFLAGS=${FFLAGS+set}
6290 ac_save_FFLAGS=$FFLAGS
6292 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6293 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_f77_g+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6303 rm -f conftest.$ac_objext
6304 if { (ac_try="$ac_compile"
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_f77_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_cv_prog_f77_g=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6332 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6333 if test "$ac_test_FFLAGS" = set; then
6334 FFLAGS=$ac_save_FFLAGS
6335 elif test $ac_cv_prog_f77_g = yes; then
6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6342 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6349 G77=`test $ac_compiler_gnu = yes && echo yes`
6351 ac_cpp='$CPP $CPPFLAGS'
6352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6360 # find the maximum length of command line arguments
6361 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6362 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6363 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 # On DJGPP, this test can blow up pretty badly due to problems in libc
6372 # (any single argument exceeding 2000 bytes causes a buffer overrun
6373 # during glob expansion). Even if it were fixed, the result of this
6374 # check would be larger than it should be.
6375 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6379 # Under GNU Hurd, this test is not required because there is
6380 # no limit to the length of command line arguments.
6381 # Libtool will interpret -1 as no limit whatsoever
6382 lt_cv_sys_max_cmd_len=-1;
6386 # On Win9x/ME, this test blows up -- it succeeds, but takes
6387 # about 5 minutes as the teststring grows exponentially.
6388 # Worse, since 9x/ME are not pre-emptively multitasking,
6389 # you end up with a "frozen" computer, even though with patience
6390 # the test eventually succeeds (with a max line length of 256k).
6391 # Instead, let's just punt: use the minimum linelength reported by
6392 # all of the supported platforms: 8192 (on NT/2K/XP).
6393 lt_cv_sys_max_cmd_len=8192;
6397 # On AmigaOS with pdksh, this test takes hours, literally.
6398 # So we just punt and use a minimum line length of 8192.
6399 lt_cv_sys_max_cmd_len=8192;
6402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6403 # This has been around since 386BSD, at least. Likely further.
6404 if test -x /sbin/sysctl; then
6405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6406 elif test -x /usr/sbin/sysctl; then
6407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6411 # And add a safety zone
6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6417 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6418 lt_cv_sys_max_cmd_len=196608
6422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6424 # nice to cause kernel panics so lets avoid the loop below.
6425 # First set a reasonable default.
6426 lt_cv_sys_max_cmd_len=16384
6428 if test -x /sbin/sysconfig; then
6429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6430 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6435 lt_cv_sys_max_cmd_len=102400
6437 sysv5* | sco5v6* | sysv4.2uw2*)
6438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6439 if test -n "$kargmax"; then
6440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6442 lt_cv_sys_max_cmd_len=32768
6446 # If test is not a shell built-in, we'll probably end up computing a
6447 # maximum length that is only half of the actual maximum length, but
6449 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6450 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6451 = "XX$teststring") >/dev/null 2>&1 &&
6452 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6453 lt_cv_sys_max_cmd_len=$new_result &&
6454 test $i != 17 # 1/2 MB should be enough
6457 teststring=$teststring$teststring
6460 # Add a significant safety factor because C++ compilers can tack on massive
6461 # amounts of additional arguments before passing them to the linker.
6462 # It appears as though 1/2 is a usable value.
6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6469 if test -n $lt_cv_sys_max_cmd_len ; then
6470 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6473 { echo "$as_me:$LINENO: result: none" >&5
6474 echo "${ECHO_T}none" >&6; }
6480 # Check for command to grab the raw symbol name followed by C symbol from nm.
6481 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 # These are sane defaults that work on at least a few old systems.
6488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6490 # Character class describing NM global symbol codes.
6491 symcode='[BCDEGRST]'
6493 # Regexp to match symbols that can be accessed directly from C.
6494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6496 # Transform an extracted symbol line into a proper C declaration
6497 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6499 # Transform an extracted symbol line into symbol name and symbol address
6500 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'"
6502 # Define system-specific variables.
6507 cygwin* | mingw* | pw32*)
6508 symcode='[ABCDGISTW]'
6510 hpux*) # Its linker distinguishes data from code symbols
6511 if test "$host_cpu" = ia64; then
6512 symcode='[ABCDEGRST]'
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515 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'"
6518 if test "$host_cpu" = ia64; then
6519 symcode='[ABCDGIRSTW]'
6520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521 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'"
6525 symcode='[BCDEGRST]'
6528 symcode='[BCDEGQRST]'
6539 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6547 # Handle CRLF in mingw tool chain
6551 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6555 # If we're using GNU nm, then use its standard symbol codes.
6556 case `$NM -V 2>&1` in
6557 *GNU* | *'with BFD'*)
6558 symcode='[ABCDGIRSTW]' ;;
6561 # Try without a prefix undercore, then with it.
6562 for ac_symprfx in "" "_"; do
6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565 symxfrm="\\1 $ac_symprfx\\2 \\2"
6567 # Write the raw and C identifiers.
6568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6570 # Check to see that the pipe works correctly.
6574 cat > conftest.$ac_ext <<EOF
6579 void nm_test_func(){}
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; then
6591 # Now try to grab the symbols.
6593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6605 # Make sure that we snagged all the symbols we need.
6606 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6607 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<EOF > conftest.$ac_ext
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6617 cat <<EOF >> conftest.$ac_ext
6618 #if defined (__STDC__) && __STDC__
6619 # define lt_ptr_t void *
6621 # define lt_ptr_t char *
6625 /* The mapping between symbol names and symbols. */
6630 lt_preloaded_symbols[] =
6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6634 cat <<\EOF >> conftest.$ac_ext
6642 # Now try linking the two files.
6643 mv conftest.$ac_objext conftstm.$ac_objext
6644 lt_save_LIBS="$LIBS"
6645 lt_save_CFLAGS="$CFLAGS"
6646 LIBS="conftstm.$ac_objext"
6647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6655 LIBS="$lt_save_LIBS"
6656 CFLAGS="$lt_save_CFLAGS"
6658 echo "cannot find nm_test_func in $nlist" >&5
6661 echo "cannot find nm_test_var in $nlist" >&5
6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6667 echo "$progname: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6670 rm -f conftest* conftst*
6672 # Do not use the global_symbol_pipe unless it works.
6673 if test "$pipe_works" = yes; then
6676 lt_cv_sys_global_symbol_pipe=
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683 lt_cv_sys_global_symbol_to_cdecl=
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686 { echo "$as_me:$LINENO: result: failed" >&5
6687 echo "${ECHO_T}failed" >&6; }
6689 { echo "$as_me:$LINENO: result: ok" >&5
6690 echo "${ECHO_T}ok" >&6; }
6693 { echo "$as_me:$LINENO: checking for objdir" >&5
6694 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6695 if test "${lt_cv_objdir+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 rm -f .libs 2>/dev/null
6699 mkdir .libs 2>/dev/null
6700 if test -d .libs; then
6703 # MS-DOS does not allow filenames that begin with a dot.
6706 rmdir .libs 2>/dev/null
6708 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6709 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6710 objdir=$lt_cv_objdir
6718 # AIX sometimes has problems with the GCC collect2 program. For some
6719 # reason, if we set the COLLECT_NAMES environment variable, the problems
6720 # vanish in a puff of smoke.
6721 if test "X${COLLECT_NAMES+set}" != Xset; then
6723 export COLLECT_NAMES
6728 # Sed substitution that helps us do robust quoting. It backslashifies
6729 # metacharacters that are still active within double-quoted strings.
6730 Xsed='sed -e 1s/^X//'
6731 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6733 # Same as above, but do not quote variable references.
6734 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6736 # Sed substitution to delay expansion of an escaped shell variable in a
6737 # double_quote_subst'ed string.
6738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6740 # Sed substitution to avoid accidental globbing in evaled expressions
6741 no_glob_subst='s/\*/\\\*/g'
6747 default_ofile=libtool
6748 can_build_shared=yes
6750 # All known linkers require a `.a' archive for static linking (except MSVC,
6751 # which needs '.lib').
6753 ltmain="$ac_aux_dir/ltmain.sh"
6754 ofile="$default_ofile"
6755 with_gnu_ld="$lt_cv_prog_gnu_ld"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ar; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_AR+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$AR"; then
6766 ac_cv_prog_AR="$AR" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_AR="${ac_tool_prefix}ar"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 if test -n "$AR"; then
6787 { echo "$as_me:$LINENO: result: $AR" >&5
6788 echo "${ECHO_T}$AR" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6796 if test -z "$ac_cv_prog_AR"; then
6798 # Extract the first word of "ar", so it can be a program name with args.
6799 set dummy ar; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_AR="ar"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6826 if test -n "$ac_ct_AR"; then
6827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6828 echo "${ECHO_T}$ac_ct_AR" >&6; }
6830 { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6834 if test "x$ac_ct_AR" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { echo "$as_me:$LINENO: 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." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet. If you think this
6844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845 ac_tool_warned=yes ;;
6853 if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 RANLIB=$ac_cv_prog_RANLIB
6882 if test -n "$RANLIB"; then
6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884 echo "${ECHO_T}$RANLIB" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6892 if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895 set dummy ranlib; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922 if test -n "$ac_ct_RANLIB"; then
6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6930 if test "x$ac_ct_RANLIB" = x; then
6933 case $cross_compiling:$ac_tool_warned in
6935 { echo "$as_me:$LINENO: 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." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet. If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6943 RANLIB=$ac_ct_RANLIB
6946 RANLIB="$ac_cv_prog_RANLIB"
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}strip; ac_word=$2
6952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954 if test "${ac_cv_prog_STRIP+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 if test -n "$STRIP"; then
6958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 STRIP=$ac_cv_prog_STRIP
6978 if test -n "$STRIP"; then
6979 { echo "$as_me:$LINENO: result: $STRIP" >&5
6980 echo "${ECHO_T}$STRIP" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6988 if test -z "$ac_cv_prog_STRIP"; then
6990 # Extract the first word of "strip", so it can be a program name with args.
6991 set dummy strip; ac_word=$2
6992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 if test -n "$ac_ct_STRIP"; then
6998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_prog_ac_ct_STRIP="strip"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7018 if test -n "$ac_ct_STRIP"; then
7019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7020 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7022 { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7026 if test "x$ac_ct_STRIP" = x; then
7029 case $cross_compiling:$ac_tool_warned in
7031 { echo "$as_me:$LINENO: 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." >&5
7034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035 whose name does not start with the host triplet. If you think this
7036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7037 ac_tool_warned=yes ;;
7042 STRIP="$ac_cv_prog_STRIP"
7047 old_CFLAGS="$CFLAGS"
7049 # Set sane defaults for various variables
7050 test -z "$AR" && AR=ar
7051 test -z "$AR_FLAGS" && AR_FLAGS=cru
7052 test -z "$AS" && AS=as
7053 test -z "$CC" && CC=cc
7054 test -z "$LTCC" && LTCC=$CC
7055 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7056 test -z "$DLLTOOL" && DLLTOOL=dlltool
7057 test -z "$LD" && LD=ld
7058 test -z "$LN_S" && LN_S="ln -s"
7059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7060 test -z "$NM" && NM=nm
7061 test -z "$SED" && SED=sed
7062 test -z "$OBJDUMP" && OBJDUMP=objdump
7063 test -z "$RANLIB" && RANLIB=:
7064 test -z "$STRIP" && STRIP=:
7065 test -z "$ac_objext" && ac_objext=o
7067 # Determine commands to create old-style static archives.
7068 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7069 old_postinstall_cmds='chmod 644 $oldlib'
7070 old_postuninstall_cmds=
7072 if test -n "$RANLIB"; then
7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7084 for cc_temp in $compiler""; do
7086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7095 # Only perform the check for file, if the check method requires it
7096 case $deplibs_check_method in
7098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7109 lt_save_MAGIC_CMD="$MAGIC_CMD"
7110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7112 for ac_dir in $ac_dummy; do
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f $ac_dir/${ac_tool_prefix}file; then
7116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7117 if test -n "$file_magic_test_file"; then
7118 case $deplibs_check_method in
7120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7123 $EGREP "$file_magic_regex" > /dev/null; then
7128 *** Warning: the command libtool uses to detect shared libraries,
7129 *** $file_magic_cmd, produces output that libtool cannot recognize.
7130 *** The result is that libtool may fail to recognize shared libraries
7131 *** as such. This will affect the creation of libtool libraries that
7132 *** depend on shared libraries, but programs linked with such libtool
7133 *** libraries will work regardless of this problem. Nevertheless, you
7134 *** may want to report the problem to your system manager and/or to
7135 *** bug-libtool@gnu.org
7145 MAGIC_CMD="$lt_save_MAGIC_CMD"
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if test -n "$MAGIC_CMD"; then
7152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7153 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7159 if test -z "$lt_cv_path_MAGIC_CMD"; then
7160 if test -n "$ac_tool_prefix"; then
7161 { echo "$as_me:$LINENO: checking for file" >&5
7162 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7171 lt_save_MAGIC_CMD="$MAGIC_CMD"
7172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174 for ac_dir in $ac_dummy; do
7176 test -z "$ac_dir" && ac_dir=.
7177 if test -f $ac_dir/file; then
7178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179 if test -n "$file_magic_test_file"; then
7180 case $deplibs_check_method in
7182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185 $EGREP "$file_magic_regex" > /dev/null; then
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such. This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem. Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7207 MAGIC_CMD="$lt_save_MAGIC_CMD"
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7233 # Check whether --enable-libtool-lock was given.
7234 if test "${enable_libtool_lock+set}" = set; then
7235 enableval=$enable_libtool_lock;
7238 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7241 # Check whether --with-pic was given.
7242 if test "${with_pic+set}" = set; then
7243 withval=$with_pic; pic_mode="$withval"
7248 test -z "$pic_mode" && pic_mode=default
7250 # Use C for the default configuration in the libtool script
7254 ac_cpp='$CPP $CPPFLAGS'
7255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260 # Source file extension for C test sources.
7263 # Object file extension for compiled C test sources.
7267 # Code to be used in simple compile tests
7268 lt_simple_compile_test_code="int some_variable = 0;\n"
7270 # Code to be used in simple link tests
7271 lt_simple_link_test_code='int main(){return(0);}\n'
7274 # If no C compiler was specified, use CC.
7277 # If no C compiler flags were specified, use CFLAGS.
7278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7280 # Allow CC to be a program name with arguments.
7284 # save warnings/boilerplate of simple test code
7285 ac_outfile=conftest.$ac_objext
7286 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7288 _lt_compiler_boilerplate=`cat conftest.err`
7291 ac_outfile=conftest.$ac_objext
7292 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294 _lt_linker_boilerplate=`cat conftest.err`
7299 ## There is no encapsulation within the following macros, do not change
7300 ## the running order or otherwise move them around unless you know exactly
7301 ## what you are doing...
7303 lt_prog_compiler_no_builtin_flag=
7305 if test "$GCC" = yes; then
7306 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7309 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7310 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 lt_cv_prog_compiler_rtti_exceptions=no
7315 ac_outfile=conftest.$ac_objext
7316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7317 lt_compiler_flag="-fno-rtti -fno-exceptions"
7318 # Insert the option either (1) after the last *FLAGS variable, or
7319 # (2) before a word containing "conftest.", or (3) at the end.
7320 # Note that $ac_compile itself does not contain backslashes and begins
7321 # with a dollar sign (not a hyphen), so the echo should work correctly.
7322 # The option is referenced via a variable to avoid confusing sed.
7323 lt_compile=`echo "$ac_compile" | $SED \
7324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7326 -e 's:$: $lt_compiler_flag:'`
7327 (eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
7328 (eval "$lt_compile" 2>conftest.err)
7330 cat conftest.err >&5
7331 echo "$as_me:7331: \$? = $ac_status" >&5
7332 if (exit $ac_status) && test -s "$ac_outfile"; then
7333 # The compiler can only warn and ignore the option if not recognized
7334 # So say no if there are warnings other than the usual output.
7335 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7338 lt_cv_prog_compiler_rtti_exceptions=yes
7344 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7355 lt_prog_compiler_wl=
7356 lt_prog_compiler_pic=
7357 lt_prog_compiler_static=
7359 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7360 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7362 if test "$GCC" = yes; then
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_static='-static'
7368 # All AIX code is PIC.
7369 if test "$host_cpu" = ia64; then
7370 # AIX 5 now supports IA64 processor
7371 lt_prog_compiler_static='-Bstatic'
7376 # FIXME: we need at least 68020 code to build shared libraries, but
7377 # adding the `-m68020' flag to GCC prevents building anything better,
7379 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7382 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7383 # PIC is the default for these OSes.
7386 mingw* | pw32* | os2*)
7387 # This hack is so that the source file can tell whether it is being
7388 # built for inclusion in a dll (and should export symbols for example).
7389 lt_prog_compiler_pic='-DDLL_EXPORT'
7392 darwin* | rhapsody*)
7393 # PIC is the default on this platform
7394 # Common symbols not allowed in MH_DYLIB files
7395 lt_prog_compiler_pic='-fno-common'
7399 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7400 # Instead, we relocate shared libraries at runtime.
7404 # Just because we use GCC doesn't mean we suddenly get shared libraries
7405 # on systems that don't support them.
7406 lt_prog_compiler_can_build_shared=no
7411 if test -d /usr/nec; then
7412 lt_prog_compiler_pic=-Kconform_pic
7417 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7424 lt_prog_compiler_pic='-fPIC'
7430 lt_prog_compiler_pic='-fPIC'
7434 # PORTME Check for flag to pass linker flags through the system compiler.
7437 lt_prog_compiler_wl='-Wl,'
7438 if test "$host_cpu" = ia64; then
7439 # AIX 5 now supports IA64 processor
7440 lt_prog_compiler_static='-Bstatic'
7442 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7446 # PIC is the default on this platform
7447 # Common symbols not allowed in MH_DYLIB files
7448 case $cc_basename in
7450 lt_prog_compiler_pic='-qnocommon'
7451 lt_prog_compiler_wl='-Wl,'
7456 mingw* | pw32* | os2*)
7457 # This hack is so that the source file can tell whether it is being
7458 # built for inclusion in a dll (and should export symbols for example).
7459 lt_prog_compiler_pic='-DDLL_EXPORT'
7462 hpux9* | hpux10* | hpux11*)
7463 lt_prog_compiler_wl='-Wl,'
7464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7471 lt_prog_compiler_pic='+Z'
7474 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7475 lt_prog_compiler_static='${wl}-a ${wl}archive'
7478 irix5* | irix6* | nonstopux*)
7479 lt_prog_compiler_wl='-Wl,'
7480 # PIC (with -KPIC) is the default.
7481 lt_prog_compiler_static='-non_shared'
7485 lt_prog_compiler_pic='-KPIC'
7486 lt_prog_compiler_static='-Bstatic'
7490 case $cc_basename in
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_pic='-KPIC'
7494 lt_prog_compiler_static='-static'
7496 pgcc* | pgf77* | pgf90* | pgf95*)
7497 # Portland Group compilers (*not* the Pentium gcc compiler,
7498 # which looks to be a dead project)
7499 lt_prog_compiler_wl='-Wl,'
7500 lt_prog_compiler_pic='-fpic'
7501 lt_prog_compiler_static='-Bstatic'
7504 lt_prog_compiler_wl='-Wl,'
7505 # All Alpha code is PIC.
7506 lt_prog_compiler_static='-non_shared'
7511 osf3* | osf4* | osf5*)
7512 lt_prog_compiler_wl='-Wl,'
7513 # All OSF/1 code is PIC.
7514 lt_prog_compiler_static='-non_shared'
7518 lt_prog_compiler_pic='-KPIC'
7519 lt_prog_compiler_static='-Bstatic'
7520 case $cc_basename in
7522 lt_prog_compiler_wl='-Qoption ld ';;
7524 lt_prog_compiler_wl='-Wl,';;
7529 lt_prog_compiler_wl='-Qoption ld '
7530 lt_prog_compiler_pic='-PIC'
7531 lt_prog_compiler_static='-Bstatic'
7534 sysv4 | sysv4.2uw2* | sysv4.3*)
7535 lt_prog_compiler_wl='-Wl,'
7536 lt_prog_compiler_pic='-KPIC'
7537 lt_prog_compiler_static='-Bstatic'
7541 if test -d /usr/nec ;then
7542 lt_prog_compiler_pic='-Kconform_pic'
7543 lt_prog_compiler_static='-Bstatic'
7547 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7548 lt_prog_compiler_wl='-Wl,'
7549 lt_prog_compiler_pic='-KPIC'
7550 lt_prog_compiler_static='-Bstatic'
7554 lt_prog_compiler_wl='-Wl,'
7555 lt_prog_compiler_can_build_shared=no
7559 lt_prog_compiler_pic='-pic'
7560 lt_prog_compiler_static='-Bstatic'
7564 lt_prog_compiler_can_build_shared=no
7569 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7570 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7573 # Check to make sure the PIC flag actually works.
7575 if test -n "$lt_prog_compiler_pic"; then
7577 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7578 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7579 if test "${lt_prog_compiler_pic_works+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 lt_prog_compiler_pic_works=no
7583 ac_outfile=conftest.$ac_objext
7584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7585 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7586 # Insert the option either (1) after the last *FLAGS variable, or
7587 # (2) before a word containing "conftest.", or (3) at the end.
7588 # Note that $ac_compile itself does not contain backslashes and begins
7589 # with a dollar sign (not a hyphen), so the echo should work correctly.
7590 # The option is referenced via a variable to avoid confusing sed.
7591 lt_compile=`echo "$ac_compile" | $SED \
7592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7594 -e 's:$: $lt_compiler_flag:'`
7595 (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
7596 (eval "$lt_compile" 2>conftest.err)
7598 cat conftest.err >&5
7599 echo "$as_me:7599: \$? = $ac_status" >&5
7600 if (exit $ac_status) && test -s "$ac_outfile"; then
7601 # The compiler can only warn and ignore the option if not recognized
7602 # So say no if there are warnings other than the usual output.
7603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7606 lt_prog_compiler_pic_works=yes
7612 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7613 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7615 if test x"$lt_prog_compiler_pic_works" = xyes; then
7616 case $lt_prog_compiler_pic in
7618 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7621 lt_prog_compiler_pic=
7622 lt_prog_compiler_can_build_shared=no
7627 # For platforms which do not support PIC, -DPIC is meaningless:
7629 lt_prog_compiler_pic=
7632 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7637 # Check to make sure the static flag actually works.
7639 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7640 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7641 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7642 if test "${lt_prog_compiler_static_works+set}" = set; then
7643 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 lt_prog_compiler_static_works=no
7646 save_LDFLAGS="$LDFLAGS"
7647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7648 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7650 # The linker can only warn and ignore the option if not recognized
7651 # So say no if there are warnings
7652 if test -s conftest.err; then
7653 # Append any errors to the config.log.
7654 cat conftest.err 1>&5
7655 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7657 if diff conftest.exp conftest.er2 >/dev/null; then
7658 lt_prog_compiler_static_works=yes
7661 lt_prog_compiler_static_works=yes
7665 LDFLAGS="$save_LDFLAGS"
7668 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7669 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7671 if test x"$lt_prog_compiler_static_works" = xyes; then
7674 lt_prog_compiler_static=
7678 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7679 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7680 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 lt_cv_prog_compiler_c_o=no
7684 $rm -r conftest 2>/dev/null
7688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7690 lt_compiler_flag="-o out/conftest2.$ac_objext"
7691 # Insert the option either (1) after the last *FLAGS variable, or
7692 # (2) before a word containing "conftest.", or (3) at the end.
7693 # Note that $ac_compile itself does not contain backslashes and begins
7694 # with a dollar sign (not a hyphen), so the echo should work correctly.
7695 lt_compile=`echo "$ac_compile" | $SED \
7696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7698 -e 's:$: $lt_compiler_flag:'`
7699 (eval echo "\"\$as_me:7699: $lt_compile\"" >&5)
7700 (eval "$lt_compile" 2>out/conftest.err)
7702 cat out/conftest.err >&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7706 # The compiler can only warn and ignore the option if not recognized
7707 # So say no if there are warnings
7708 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7711 lt_cv_prog_compiler_c_o=yes
7716 # SGI C++ compiler will create directory out/ii_files/ for
7717 # template instantiation
7718 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7719 $rm out/* && rmdir out
7725 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7726 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7729 hard_links="nottested"
7730 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7731 # do not overwrite the value of need_locks provided by the user
7732 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7733 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7738 ln conftest.a conftest.b 2>&5 || hard_links=no
7739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7740 { echo "$as_me:$LINENO: result: $hard_links" >&5
7741 echo "${ECHO_T}$hard_links" >&6; }
7742 if test "$hard_links" = no; then
7743 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7744 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7751 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7752 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7755 allow_undefined_flag=
7756 enable_shared_with_static_runtimes=no
7758 archive_expsym_cmds=
7759 old_archive_From_new_cmds=
7760 old_archive_from_expsyms_cmds=
7761 export_dynamic_flag_spec=
7762 whole_archive_flag_spec=
7763 thread_safe_flag_spec=
7764 hardcode_libdir_flag_spec=
7765 hardcode_libdir_flag_spec_ld=
7766 hardcode_libdir_separator=
7769 hardcode_shlibpath_var=unsupported
7770 link_all_deplibs=unknown
7771 hardcode_automatic=no
7774 always_export_symbols=no
7775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7776 # include_expsyms should be a list of space-separated symbols to be *always*
7777 # included in the symbol list
7779 # exclude_expsyms can be an extended regexp of symbols to exclude
7780 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7781 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7782 # as well as any symbol that contains `d'.
7783 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7785 # platforms (ab)use it in PIC code, but their linkers get confused if
7786 # the symbol is explicitly referenced. Since portable code cannot
7787 # rely on this symbol name, it's probably fine to never include it in
7788 # preloaded symbol tables.
7789 extract_expsyms_cmds=
7790 # Just being paranoid about ensuring that cc_basename is set.
7791 for cc_temp in $compiler""; do
7793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7799 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7802 cygwin* | mingw* | pw32*)
7803 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7804 # When not using gcc, we currently assume that we are using
7805 # Microsoft Visual C++.
7806 if test "$GCC" != yes; then
7811 # we just hope/assume this is gcc and not c89 (= MSVC++)
7820 if test "$with_gnu_ld" = yes; then
7821 # If archive_cmds runs LD, not CC, wlarc should be empty
7824 # Set some defaults for GNU ld with shared library support. These
7825 # are reset later if shared libraries are not supported. Putting them
7826 # here allows them to be overridden if necessary.
7827 runpath_var=LD_RUN_PATH
7828 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7829 export_dynamic_flag_spec='${wl}--export-dynamic'
7830 # ancient GNU ld didn't support --whole-archive et. al.
7831 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7832 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7834 whole_archive_flag_spec=
7836 supports_anon_versioning=no
7837 case `$LD -v 2>/dev/null` in
7838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7841 *\ 2.11.*) ;; # other 2.11 versions
7842 *) supports_anon_versioning=yes ;;
7845 # See if GNU ld supports shared libraries.
7847 aix3* | aix4* | aix5*)
7848 # On AIX/PPC, the GNU linker is very broken
7849 if test "$host_cpu" != ia64; then
7853 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7854 *** to be unable to reliably create shared libraries on AIX.
7855 *** Therefore, libtool is disabling shared libraries support. If you
7856 *** really care for shared libraries, you may want to modify your PATH
7857 *** so that a non-GNU linker is found, and then restart.
7864 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)'
7865 hardcode_libdir_flag_spec='-L$libdir'
7866 hardcode_minus_L=yes
7868 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7869 # that the semantics of dynamic libraries on AmigaOS, at least up
7870 # to version 4, is to share data among multiple programs linked
7871 # with the same dynamic library. Since this doesn't match the
7872 # behavior of shared libraries on other platforms, we can't use
7878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7879 allow_undefined_flag=unsupported
7880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7881 # support --undefined. This deserves some investigation. FIXME
7882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 cygwin* | mingw* | pw32*)
7889 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7890 # as there is no search path for DLLs.
7891 hardcode_libdir_flag_spec='-L$libdir'
7892 allow_undefined_flag=unsupported
7893 always_export_symbols=no
7894 enable_shared_with_static_runtimes=yes
7895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7897 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7899 # If the export-symbols file already is a .def file (1st line
7900 # is EXPORTS), use it as is; otherwise, prepend...
7901 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7902 cp $export_symbols $output_objdir/$soname.def;
7904 echo EXPORTS > $output_objdir/$soname.def;
7905 cat $export_symbols >> $output_objdir/$soname.def;
7907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7915 hardcode_shlibpath_var=no
7916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7917 export_dynamic_flag_spec='${wl}-E'
7918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7919 # Instead, shared libraries are loaded at an image base (0x10000000 by
7920 # default) and relocated if they conflict, which is a slow very memory
7921 # consuming and fragmenting process. To avoid this, we pick a random,
7922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7925 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'
7929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7931 case $cc_basename,$host_cpu in
7932 pgcc*) # Portland Group C compiler
7933 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'
7934 tmp_addflag=' $pic_flag'
7936 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7937 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'
7938 tmp_addflag=' $pic_flag -Mnomain' ;;
7939 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7940 tmp_addflag=' -i_dynamic' ;;
7941 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7942 tmp_addflag=' -i_dynamic -nofor_main' ;;
7943 ifc* | ifort*) # Intel Fortran compiler
7944 tmp_addflag=' -nofor_main' ;;
7946 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7948 if test $supports_anon_versioning = yes; then
7949 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7951 $echo "local: *; };" >> $output_objdir/$libname.ver~
7952 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7961 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7970 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7975 *** create shared libraries on Solaris systems. Therefore, libtool
7976 *** is disabling shared libraries support. We urge you to upgrade GNU
7977 *** binutils to release 2.9.1 or newer. Another option is to modify
7978 *** your PATH or compiler configuration so that the native linker is
7979 *** used, and then restart.
7982 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7991 case `$LD -v 2>&1` in
7992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7997 *** reliably create shared libraries on SCO systems. Therefore, libtool
7998 *** is disabling shared libraries support. We urge you to upgrade GNU
7999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8000 *** your PATH or compiler configuration so that the native linker is
8001 *** used, and then restart.
8006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8007 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8018 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8021 hardcode_shlibpath_var=no
8025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034 if test "$ld_shlibs" = no; then
8036 hardcode_libdir_flag_spec=
8037 export_dynamic_flag_spec=
8038 whole_archive_flag_spec=
8041 # PORTME fill in a description of your system's linker (not GNU ld)
8044 allow_undefined_flag=unsupported
8045 always_export_symbols=yes
8046 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'
8047 # Note: this linker hardcodes the directories in LIBPATH if there
8048 # are no directories specified by -L.
8049 hardcode_minus_L=yes
8050 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8051 # Neither direct hardcoding nor static linking is supported with a
8053 hardcode_direct=unsupported
8058 if test "$host_cpu" = ia64; then
8059 # On IA64, the linker does run time linking by default, so we don't
8060 # have to do anything special.
8061 aix_use_runtimelinking=no
8062 exp_sym_flag='-Bexport'
8065 # If we're using GNU nm, then we don't want the "-C" option.
8066 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8067 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8068 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'
8070 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'
8072 aix_use_runtimelinking=no
8074 # Test if we are trying to use run time linking or normal
8075 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8076 # need to do runtime linking.
8077 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8078 for ld_flag in $LDFLAGS; do
8079 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8080 aix_use_runtimelinking=yes
8087 exp_sym_flag='-bexport'
8088 no_entry_flag='-bnoentry'
8091 # When large executables or shared objects are built, AIX ld can
8092 # have problems creating the table of contents. If linking a library
8093 # or program results in "error TOC overflow" add -mminimal-toc to
8094 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8095 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8099 hardcode_libdir_separator=':'
8100 link_all_deplibs=yes
8102 if test "$GCC" = yes; then
8103 case $host_os in aix4.[012]|aix4.[012].*)
8104 # We only want to do this on AIX 4.2 and lower, the check
8105 # below for broken collect2 doesn't work under 4.3+
8106 collect2name=`${CC} -print-prog-name=collect2`
8107 if test -f "$collect2name" && \
8108 strings "$collect2name" | grep resolve_lib_name >/dev/null
8110 # We have reworked collect2
8113 # We have old collect2
8114 hardcode_direct=unsupported
8115 # It fails to find uninstalled libraries when the uninstalled
8116 # path is not listed in the libpath. Setting hardcode_minus_L
8117 # to unsupported forces relinking
8118 hardcode_minus_L=yes
8119 hardcode_libdir_flag_spec='-L$libdir'
8120 hardcode_libdir_separator=
8124 shared_flag='-shared'
8125 if test "$aix_use_runtimelinking" = yes; then
8126 shared_flag="$shared_flag "'${wl}-G'
8130 if test "$host_cpu" = ia64; then
8131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8132 # chokes on -Wl,-G. The following line is correct:
8135 if test "$aix_use_runtimelinking" = yes; then
8136 shared_flag='${wl}-G'
8138 shared_flag='${wl}-bM:SRE'
8143 # It seems that -bexpall does not export symbols beginning with
8144 # underscore (_), so it is better to generate a list of symbols to export.
8145 always_export_symbols=yes
8146 if test "$aix_use_runtimelinking" = yes; then
8147 # Warning - without using the other runtime loading flags (-brtl),
8148 # -berok will link without error, but may produce a broken library.
8149 allow_undefined_flag='-berok'
8150 # Determine the default libpath from the value encoded in an empty executable.
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_link") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest$ac_exeext &&
8183 $as_test_x conftest$ac_exeext; then
8185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8187 # Check for a 64-bit object if we didn't find anything.
8188 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; }
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8198 conftest$ac_exeext conftest.$ac_ext
8199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8202 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"
8204 if test "$host_cpu" = ia64; then
8205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8206 allow_undefined_flag="-z nodefs"
8207 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"
8209 # Determine the default libpath from the value encoded in an empty executable.
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_link") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest$ac_exeext &&
8242 $as_test_x conftest$ac_exeext; then
8244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8246 # Check for a 64-bit object if we didn't find anything.
8247 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; }
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8257 conftest$ac_exeext conftest.$ac_ext
8258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8261 # Warning - without using the other run time loading flags,
8262 # -berok will link without error, but may produce a broken library.
8263 no_undefined_flag=' ${wl}-bernotok'
8264 allow_undefined_flag=' ${wl}-berok'
8265 # Exported symbols can be pulled into shared objects from archives
8266 whole_archive_flag_spec='$convenience'
8267 archive_cmds_need_lc=yes
8268 # This is similar to how AIX traditionally builds its shared libraries.
8269 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'
8275 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)'
8276 hardcode_libdir_flag_spec='-L$libdir'
8277 hardcode_minus_L=yes
8278 # see comment about different semantics on the GNU ld section
8283 export_dynamic_flag_spec=-rdynamic
8286 cygwin* | mingw* | pw32*)
8287 # When not using gcc, we currently assume that we are using
8288 # Microsoft Visual C++.
8289 # hardcode_libdir_flag_spec is actually meaningless, as there is
8290 # no search path for DLLs.
8291 hardcode_libdir_flag_spec=' '
8292 allow_undefined_flag=unsupported
8293 # Tell ltmain to make .lib files, not .a files.
8295 # Tell ltmain to make .dll files, not .so files.
8297 # FIXME: Setting linknames here is a bad hack.
8298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8299 # The linker will automatically build a .lib file if we build a DLL.
8300 old_archive_From_new_cmds='true'
8301 # FIXME: Should let the user specify the lib program.
8302 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8303 fix_srcfile_path='`cygpath -w "$srcfile"`'
8304 enable_shared_with_static_runtimes=yes
8307 darwin* | rhapsody*)
8309 rhapsody* | darwin1.[012])
8310 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8313 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8314 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8316 case ${MACOSX_DEPLOYMENT_TARGET} in
8318 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8321 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8327 archive_cmds_need_lc=no
8329 hardcode_automatic=yes
8330 hardcode_shlibpath_var=unsupported
8331 whole_archive_flag_spec=''
8332 link_all_deplibs=yes
8333 if test "$GCC" = yes ; then
8334 output_verbose_link_cmd='echo'
8335 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8336 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8337 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8338 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}'
8339 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}'
8341 case $cc_basename in
8343 output_verbose_link_cmd='echo'
8344 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8345 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8346 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8347 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}'
8348 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}'
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 hardcode_shlibpath_var=no
8367 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8368 # support. Future versions do this automatically, but an explicit c++rt0.o
8369 # does not break anything, and helps significantly (at the cost of a little
8372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8373 hardcode_libdir_flag_spec='-R$libdir'
8375 hardcode_shlibpath_var=no
8378 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_minus_L=yes
8383 hardcode_shlibpath_var=no
8386 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8387 freebsd* | kfreebsd*-gnu | dragonfly*)
8388 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8389 hardcode_libdir_flag_spec='-R$libdir'
8391 hardcode_shlibpath_var=no
8395 if test "$GCC" = yes; then
8396 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'
8398 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'
8400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8401 hardcode_libdir_separator=:
8404 # hardcode_minus_L: Not really in the search PATH,
8405 # but as the default location of the library.
8406 hardcode_minus_L=yes
8407 export_dynamic_flag_spec='${wl}-E'
8411 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8416 if test "$with_gnu_ld" = no; then
8417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8418 hardcode_libdir_separator=:
8421 export_dynamic_flag_spec='${wl}-E'
8423 # hardcode_minus_L: Not really in the search PATH,
8424 # but as the default location of the library.
8425 hardcode_minus_L=yes
8430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8433 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8436 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8455 if test "$with_gnu_ld" = no; then
8456 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457 hardcode_libdir_separator=:
8461 hardcode_libdir_flag_spec_ld='+b $libdir'
8463 hardcode_shlibpath_var=no
8467 export_dynamic_flag_spec='${wl}-E'
8469 # hardcode_minus_L: Not really in the search PATH,
8470 # but as the default location of the library.
8471 hardcode_minus_L=yes
8477 irix5* | irix6* | nonstopux*)
8478 if test "$GCC" = yes; then
8479 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'
8481 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'
8482 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8485 hardcode_libdir_separator=:
8486 link_all_deplibs=yes
8490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8493 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8495 hardcode_libdir_flag_spec='-R$libdir'
8497 hardcode_shlibpath_var=no
8501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8504 hardcode_libdir_separator=:
8505 hardcode_shlibpath_var=no
8510 hardcode_shlibpath_var=no
8511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8513 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8515 export_dynamic_flag_spec='${wl}-E'
8518 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8520 hardcode_libdir_flag_spec='-R$libdir'
8523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8533 allow_undefined_flag=unsupported
8534 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'
8535 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8539 if test "$GCC" = yes; then
8540 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8541 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'
8543 allow_undefined_flag=' -expect_unresolved \*'
8544 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'
8546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547 hardcode_libdir_separator=:
8550 osf4* | osf5*) # as osf3* with the addition of -msym flag
8551 if test "$GCC" = yes; then
8552 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8553 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'
8554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8556 allow_undefined_flag=' -expect_unresolved \*'
8557 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'
8558 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8559 $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'
8561 # Both c and cxx compiler support -rpath directly
8562 hardcode_libdir_flag_spec='-rpath $libdir'
8564 hardcode_libdir_separator=:
8568 no_undefined_flag=' -z text'
8569 if test "$GCC" = yes; then
8571 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8573 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8576 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8577 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8580 hardcode_libdir_flag_spec='-R$libdir'
8581 hardcode_shlibpath_var=no
8583 solaris2.[0-5] | solaris2.[0-5].*) ;;
8585 # The compiler driver will combine linker options so we
8586 # cannot just pass the convience library names through
8587 # without $wl, iff we do not link with $LD.
8588 # Luckily, gcc supports the same syntax we need for Sun Studio.
8589 # Supported since Solaris 2.6 (maybe 2.5.1?)
8592 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8594 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' ;;
8597 link_all_deplibs=yes
8601 if test "x$host_vendor" = xsequent; then
8602 # Use $CC to link under sequent, because it throws in some extra .o
8603 # files that make .init and .fini sections work.
8604 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8606 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8608 hardcode_libdir_flag_spec='-L$libdir'
8610 hardcode_minus_L=yes
8611 hardcode_shlibpath_var=no
8615 case $host_vendor in
8617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8618 hardcode_direct=yes # is this really true???
8621 ## LD is ld it makes a PLAMLIB
8622 ## CC just makes a GrossModule.
8623 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8624 reload_cmds='$CC -r -o $output$reload_objs'
8628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8629 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8632 runpath_var='LD_RUN_PATH'
8633 hardcode_shlibpath_var=no
8637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638 hardcode_shlibpath_var=no
8639 export_dynamic_flag_spec='-Bexport'
8643 if test -d /usr/nec; then
8644 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 hardcode_shlibpath_var=no
8646 runpath_var=LD_RUN_PATH
8647 hardcode_runpath_var=yes
8652 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8653 no_undefined_flag='${wl}-z,text'
8654 archive_cmds_need_lc=no
8655 hardcode_shlibpath_var=no
8656 runpath_var='LD_RUN_PATH'
8658 if test "$GCC" = yes; then
8659 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8662 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8667 sysv5* | sco3.2v5* | sco5v6*)
8668 # Note: We can NOT use -z defs as we might desire, because we do not
8669 # link with -lc, and that would cause any symbols used from libc to
8670 # always be unresolved, which means just about no library would
8671 # ever link correctly. If we're not using GNU ld we use -z text
8672 # though, which does catch some bad symbols but isn't as heavy-handed
8674 no_undefined_flag='${wl}-z,text'
8675 allow_undefined_flag='${wl}-z,nodefs'
8676 archive_cmds_need_lc=no
8677 hardcode_shlibpath_var=no
8678 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8679 hardcode_libdir_separator=':'
8680 link_all_deplibs=yes
8681 export_dynamic_flag_spec='${wl}-Bexport'
8682 runpath_var='LD_RUN_PATH'
8684 if test "$GCC" = yes; then
8685 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695 hardcode_libdir_flag_spec='-L$libdir'
8696 hardcode_shlibpath_var=no
8705 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8706 echo "${ECHO_T}$ld_shlibs" >&6; }
8707 test "$ld_shlibs" = no && can_build_shared=no
8710 # Do we need to explicitly link libc?
8712 case "x$archive_cmds_need_lc" in
8714 # Assume -lc should be added
8715 archive_cmds_need_lc=yes
8717 if test "$enable_shared" = yes && test "$GCC" = yes; then
8718 case $archive_cmds in
8720 # FIXME: we may have to deal with multi-command sequences.
8723 # Test whether the compiler implicitly links with -lc since on some
8724 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8725 # to ld, don't add -lc before -lgcc.
8726 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8727 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8732 (eval $ac_compile) 2>&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } 2>conftest.err; then
8738 libobjs=conftest.$ac_objext
8740 wl=$lt_prog_compiler_wl
8741 pic_flag=$lt_prog_compiler_pic
8747 lt_save_allow_undefined_flag=$allow_undefined_flag
8748 allow_undefined_flag=
8749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8750 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }
8755 archive_cmds_need_lc=no
8757 archive_cmds_need_lc=yes
8759 allow_undefined_flag=$lt_save_allow_undefined_flag
8761 cat conftest.err 1>&5
8764 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8765 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8772 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8775 libname_spec='lib$name'
8783 shlibpath_overrides_runpath=unknown
8785 dynamic_linker="$host_os ld.so"
8786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8787 if test "$GCC" = yes; then
8788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8790 # if the path contains ";" then we assume it to be the separator
8791 # otherwise default to the standard path separator (i.e. ":") - it is
8792 # assumed that no part of a normal pathname contains ";" but that should
8793 # okay in the real world where ";" in dirpaths is itself problematic.
8794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8801 need_lib_prefix=unknown
8802 hardcode_into_libs=no
8804 # when you set need_version to no, make sure it does not cause -set_version
8805 # flags to be left without arguments
8806 need_version=unknown
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8812 shlibpath_var=LIBPATH
8814 # AIX 3 has no versioning support, so we append a major version to the name.
8815 soname_spec='${libname}${release}${shared_ext}$major'
8822 hardcode_into_libs=yes
8823 if test "$host_cpu" = ia64; then
8824 # AIX 5 supports IA64
8825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8826 shlibpath_var=LD_LIBRARY_PATH
8828 # With GCC up to 2.95.x, collect2 would create an import file
8829 # for dependence libraries. The import file would start with
8830 # the line `#! .'. This would cause the generated library to
8831 # depend on `.', always an invalid library. This was fixed in
8832 # development snapshots of GCC prior to 3.0.
8834 aix4 | aix4.[01] | aix4.[01].*)
8835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8845 # soname into executable. Probably we can add versioning support to
8846 # collect2, so additional links can be useful in future.
8847 if test "$aix_use_runtimelinking" = yes; then
8848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8849 # instead of lib<name>.a to let people know that these are not
8850 # typical AIX shared libraries.
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 # We preserve .a as extension for shared libraries through AIX4.2
8854 # and later when we are not doing run time linking.
8855 library_names_spec='${libname}${release}.a $libname.a'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8858 shlibpath_var=LIBPATH
8863 library_names_spec='$libname.ixlibrary $libname.a'
8864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8865 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'
8869 library_names_spec='${libname}${shared_ext}'
8870 dynamic_linker="$host_os ld.so"
8871 shlibpath_var=LIBRARY_PATH
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8883 # the default ld.so.conf also contains /usr/contrib/lib and
8884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8885 # libtool to hard-code these into programs
8888 cygwin* | mingw* | pw32*)
8889 version_type=windows
8894 case $GCC,$host_os in
8895 yes,cygwin* | yes,mingw* | yes,pw32*)
8896 library_names_spec='$libname.dll.a'
8897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8898 postinstall_cmds='base_file=`basename \${file}`~
8899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8900 dldir=$destdir/`dirname \$dlpath`~
8901 test -d \$dldir || mkdir -p \$dldir~
8902 $install_prog $dir/$dlname \$dldir/$dlname~
8903 chmod a+x \$dldir/$dlname'
8904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8905 dlpath=$dir/\$dldll~
8907 shlibpath_overrides_runpath=yes
8911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8916 # MinGW DLLs use traditional 'lib' prefix
8917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8920 # It is most probably a Windows format PATH printed by
8921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8922 # path with ; separators, and with drive letters. We can handle the
8923 # drive letters (cygwin fileutils understands them), so leave them,
8924 # especially as we might pass files found there to a mingw objdump,
8925 # which wouldn't understand a cygwinified path. Ahh.
8926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8932 # pw32 DLLs use 'pw' prefix rather than 'lib'
8933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8942 dynamic_linker='Win32 ld.exe'
8943 # FIXME: first we should search . and the directory the executable is in
8947 darwin* | rhapsody*)
8948 dynamic_linker="$host_os dyld"
8952 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8953 soname_spec='${libname}${release}${major}$shared_ext'
8954 shlibpath_overrides_runpath=yes
8955 shlibpath_var=DYLD_LIBRARY_PATH
8956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8957 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8958 if test "$GCC" = yes; then
8959 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"`
8961 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 shlibpath_var=LD_LIBRARY_PATH
8986 shlibpath_overrides_runpath=no
8987 hardcode_into_libs=yes
8988 dynamic_linker='GNU ld.so'
8991 freebsd* | dragonfly*)
8992 # DragonFly does not have aout. When/if they implement a new
8993 # versioning mechanism, adjust this.
8994 if test -x /usr/bin/objformat; then
8995 objformat=`/usr/bin/objformat`
8998 freebsd[123]*) objformat=aout ;;
9002 version_type=freebsd-$objformat
9003 case $version_type in
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9014 shlibpath_var=LD_LIBRARY_PATH
9017 shlibpath_overrides_runpath=yes
9019 freebsd3.[01]* | freebsdelf3.[01]*)
9020 shlibpath_overrides_runpath=yes
9021 hardcode_into_libs=yes
9023 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9024 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9025 shlibpath_overrides_runpath=no
9026 hardcode_into_libs=yes
9028 freebsd*) # from 4.6 on
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 hardcode_into_libs=yes
9045 hpux9* | hpux10* | hpux11*)
9046 # Give a soname corresponding to the major version so that dld.sl refuses to
9047 # link against other versions.
9054 hardcode_into_libs=yes
9055 dynamic_linker="$host_os dld.so"
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 if test "X$HPUX_IA64_MODE" = X32; then
9061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9069 hardcode_into_libs=yes
9070 dynamic_linker="$host_os dld.sl"
9071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9080 dynamic_linker="$host_os dld.sl"
9081 shlibpath_var=SHLIB_PATH
9082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9087 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9088 postinstall_cmds='chmod 555 $lib'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=no
9100 hardcode_into_libs=yes
9103 irix5* | irix6* | nonstopux*)
9105 nonstopux*) version_type=nonstopux ;;
9107 if test "$lt_cv_prog_gnu_ld" = yes; then
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9118 irix5* | nonstopux*)
9122 case $LD in # libtool.m4 will add one of these switches to LD
9123 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9124 libsuff= shlibsuff= libmagic=32-bit;;
9125 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9126 libsuff=32 shlibsuff=N32 libmagic=N32;;
9127 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9128 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9129 *) libsuff= shlibsuff= libmagic=never-match;;
9133 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9134 shlibpath_overrides_runpath=no
9135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9137 hardcode_into_libs=yes
9140 # No shared lib support for Linux oldld, aout, or coff.
9141 linux*oldld* | linux*aout* | linux*coff*)
9145 # This must be Linux ELF.
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 shlibpath_overrides_runpath=no
9155 # This implies no fast_install, which is unacceptable.
9156 # Some rework will be needed to allow for fast_install
9157 # before this can be enabled.
9158 hardcode_into_libs=yes
9160 # Append ld.so.conf contents to the search path
9161 if test -f /etc/ld.so.conf; then
9162 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' ' '`
9163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9166 # We used to test for /lib/ld.so.1 and disable shared libraries on
9167 # powerpc, because MkLinux only supported shared libraries with the
9168 # GNU dynamic linker. Since this was broken with cross compilers,
9169 # most powerpc-linux boxes support dynamic linking these days and
9170 # people can always --disable-shared, the test was removed, and we
9171 # assume the GNU/Linux dynamic linker is in use.
9172 dynamic_linker='GNU/Linux ld.so'
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 shlibpath_overrides_runpath=no
9183 hardcode_into_libs=yes
9184 dynamic_linker='GNU ld.so'
9191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9194 dynamic_linker='NetBSD (a.out) ld.so'
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 dynamic_linker='NetBSD ld.elf_so'
9200 shlibpath_var=LD_LIBRARY_PATH
9201 shlibpath_overrides_runpath=yes
9202 hardcode_into_libs=yes
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9224 sys_lib_dlsearch_path_spec="/usr/lib"
9226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9228 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9229 *) need_version=no ;;
9231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9236 openbsd2.[89] | openbsd2.[89].*)
9237 shlibpath_overrides_runpath=no
9240 shlibpath_overrides_runpath=yes
9244 shlibpath_overrides_runpath=yes
9249 libname_spec='$name'
9252 library_names_spec='$libname${shared_ext} $libname.a'
9253 dynamic_linker='OS/2 ld.exe'
9254 shlibpath_var=LIBPATH
9257 osf3* | osf4* | osf5*)
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=yes
9276 hardcode_into_libs=yes
9277 # ldd complains unless libraries are executable
9278 postinstall_cmds='chmod +x $lib'
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9284 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath=yes
9287 if test "$with_gnu_ld" = yes; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 shlibpath_var=LD_LIBRARY_PATH
9298 case $host_vendor in
9300 shlibpath_overrides_runpath=no
9302 export_dynamic_flag_spec='${wl}-Blargedynsym'
9303 runpath_var=LD_RUN_PATH
9311 shlibpath_overrides_runpath=no
9312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9318 if test -d /usr/nec ;then
9320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9321 soname_spec='$libname${shared_ext}.$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9327 version_type=freebsd-elf
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 hardcode_into_libs=yes
9334 if test "$with_gnu_ld" = yes; then
9335 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9336 shlibpath_overrides_runpath=no
9338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9339 shlibpath_overrides_runpath=yes
9342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9346 sys_lib_dlsearch_path_spec='/usr/lib'
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 shlibpath_var=LD_LIBRARY_PATH
9360 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9361 echo "${ECHO_T}$dynamic_linker" >&6; }
9362 test "$dynamic_linker" = no && can_build_shared=no
9364 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9365 if test "$GCC" = yes; then
9366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9370 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9372 if test -n "$hardcode_libdir_flag_spec" || \
9373 test -n "$runpath_var" || \
9374 test "X$hardcode_automatic" = "Xyes" ; then
9376 # We can hardcode non-existant directories.
9377 if test "$hardcode_direct" != no &&
9378 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9379 # have to relink, otherwise we might link with an installed library
9380 # when we should be linking with a yet-to-be-installed one
9381 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9382 test "$hardcode_minus_L" != no; then
9383 # Linking always hardcodes the temporary library directory.
9384 hardcode_action=relink
9386 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9387 hardcode_action=immediate
9390 # We cannot hardcode anything, or else we can only hardcode existing
9392 hardcode_action=unsupported
9394 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9395 echo "${ECHO_T}$hardcode_action" >&6; }
9397 if test "$hardcode_action" = relink; then
9398 # Fast installation is not supported
9399 enable_fast_install=no
9400 elif test "$shlibpath_overrides_runpath" = yes ||
9401 test "$enable_shared" = no; then
9402 # Fast installation is not necessary
9403 enable_fast_install=needless
9408 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9409 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9410 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9411 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9412 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9413 { echo "$as_me:$LINENO: result: yes" >&5
9414 echo "${ECHO_T}yes" >&6; }
9416 # FIXME - insert some real tests, host_os isn't really good enough
9419 if test -n "$STRIP" ; then
9420 striplib="$STRIP -x"
9421 { echo "$as_me:$LINENO: result: yes" >&5
9422 echo "${ECHO_T}yes" >&6; }
9424 { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9429 { echo "$as_me:$LINENO: result: no" >&5
9430 echo "${ECHO_T}no" >&6; }
9435 if test "x$enable_dlopen" != xyes; then
9436 enable_dlopen=unknown
9437 enable_dlopen_self=unknown
9438 enable_dlopen_self_static=unknown
9445 lt_cv_dlopen="load_add_on"
9447 lt_cv_dlopen_self=yes
9451 lt_cv_dlopen="LoadLibrary"
9456 lt_cv_dlopen="dlopen"
9461 # if libdl is installed we need to link against it
9462 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9463 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 ac_check_lib_save_LIBS=$LIBS
9469 cat >conftest.$ac_ext <<_ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_link") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest$ac_exeext &&
9508 $as_test_x conftest$ac_exeext; then
9509 ac_cv_lib_dl_dlopen=yes
9511 echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9514 ac_cv_lib_dl_dlopen=no
9517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9518 conftest$ac_exeext conftest.$ac_ext
9519 LIBS=$ac_check_lib_save_LIBS
9521 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9523 if test $ac_cv_lib_dl_dlopen = yes; then
9524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9529 lt_cv_dlopen_self=yes
9536 { echo "$as_me:$LINENO: checking for shl_load" >&5
9537 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9538 if test "${ac_cv_func_shl_load+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9549 #define shl_load innocuous_shl_load
9551 /* System header to define __stub macros and hopefully few prototypes,
9552 which can conflict with char shl_load (); below.
9553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9554 <limits.h> exists even on freestanding compilers. */
9557 # include <limits.h>
9559 # include <assert.h>
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9571 /* The GNU C library defines this for functions which it implements
9572 to always fail with ENOSYS. Some functions are actually named
9573 something starting with __ and the normal name is an alias. */
9574 #if defined __stub_shl_load || defined __stub___shl_load
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (ac_try="$ac_link"
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest$ac_exeext &&
9603 $as_test_x conftest$ac_exeext; then
9604 ac_cv_func_shl_load=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_func_shl_load=no
9612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9613 conftest$ac_exeext conftest.$ac_ext
9615 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9616 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9617 if test $ac_cv_func_shl_load = yes; then
9618 lt_cv_dlopen="shl_load"
9620 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9621 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9622 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 ac_check_lib_save_LIBS=$LIBS
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9649 rm -f conftest.$ac_objext conftest$ac_exeext
9650 if { (ac_try="$ac_link"
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_link") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext &&
9666 $as_test_x conftest$ac_exeext; then
9667 ac_cv_lib_dld_shl_load=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_cv_lib_dld_shl_load=no
9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LIBS=$ac_check_lib_save_LIBS
9679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9681 if test $ac_cv_lib_dld_shl_load = yes; then
9682 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9684 { echo "$as_me:$LINENO: checking for dlopen" >&5
9685 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_dlopen+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define dlopen innocuous_dlopen
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char dlopen (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9705 # include <limits.h>
9707 # include <assert.h>
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_dlopen || defined __stub___dlopen
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_func_dlopen=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_func_dlopen=no
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9763 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9765 if test $ac_cv_func_dlopen = yes; then
9766 lt_cv_dlopen="dlopen"
9768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_check_lib_save_LIBS=$LIBS
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dl_dlopen=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dl_dlopen=no
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9829 if test $ac_cv_lib_dl_dlopen = yes; then
9830 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9833 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9834 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_check_lib_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && {
9875 test -z "$ac_c_werror_flag" ||
9876 test ! -s conftest.err
9877 } && test -s conftest$ac_exeext &&
9878 $as_test_x conftest$ac_exeext; then
9879 ac_cv_lib_svld_dlopen=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_lib_svld_dlopen=no
9887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9888 conftest$ac_exeext conftest.$ac_ext
9889 LIBS=$ac_check_lib_save_LIBS
9891 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9892 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9893 if test $ac_cv_lib_svld_dlopen = yes; then
9894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9896 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9897 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9898 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 ac_check_lib_save_LIBS=$LIBS
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 /* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 ac_cv_lib_dld_dld_link=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_lib_dld_dld_link=no
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9953 LIBS=$ac_check_lib_save_LIBS
9955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9957 if test $ac_cv_lib_dld_dld_link = yes; then
9958 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9979 if test "x$lt_cv_dlopen" != xno; then
9985 case $lt_cv_dlopen in
9987 save_CPPFLAGS="$CPPFLAGS"
9988 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9990 save_LDFLAGS="$LDFLAGS"
9991 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9994 LIBS="$lt_cv_dlopen_libs $LIBS"
9996 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9998 if test "${lt_cv_dlopen_self+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 if test "$cross_compiling" = yes; then :
10002 lt_cv_dlopen_self=cross
10004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10005 lt_status=$lt_dlunknown
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10007 "configure"
10008 #include "confdefs.h"
10017 # define LT_DLGLOBAL RTLD_GLOBAL
10020 # define LT_DLGLOBAL DL_GLOBAL
10022 # define LT_DLGLOBAL 0
10026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10027 find out it does not work in some platform. */
10028 #ifndef LT_DLLAZY_OR_NOW
10030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10033 # define LT_DLLAZY_OR_NOW DL_LAZY
10036 # define LT_DLLAZY_OR_NOW RTLD_NOW
10039 # define LT_DLLAZY_OR_NOW DL_NOW
10041 # define LT_DLLAZY_OR_NOW 0
10049 extern "C" void exit (int);
10052 void fnord() { int i=42;}
10055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10056 int status = $lt_dlunknown;
10060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10062 /* dlclose (self); */
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10075 (./conftest; exit; ) >&5 2>/dev/null
10077 case x$lt_status in
10078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10083 # compilation failed
10084 lt_cv_dlopen_self=no
10091 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10092 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10094 if test "x$lt_cv_dlopen_self" = xyes; then
10095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10096 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10097 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10098 if test "${lt_cv_dlopen_self_static+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 if test "$cross_compiling" = yes; then :
10102 lt_cv_dlopen_self_static=cross
10104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10105 lt_status=$lt_dlunknown
10106 cat > conftest.$ac_ext <<EOF
10107 #line 10107 "configure"
10108 #include "confdefs.h"
10117 # define LT_DLGLOBAL RTLD_GLOBAL
10120 # define LT_DLGLOBAL DL_GLOBAL
10122 # define LT_DLGLOBAL 0
10126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10127 find out it does not work in some platform. */
10128 #ifndef LT_DLLAZY_OR_NOW
10130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10133 # define LT_DLLAZY_OR_NOW DL_LAZY
10136 # define LT_DLLAZY_OR_NOW RTLD_NOW
10139 # define LT_DLLAZY_OR_NOW DL_NOW
10141 # define LT_DLLAZY_OR_NOW 0
10149 extern "C" void exit (int);
10152 void fnord() { int i=42;}
10155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10156 int status = $lt_dlunknown;
10160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10161 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10162 /* dlclose (self); */
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10175 (./conftest; exit; ) >&5 2>/dev/null
10177 case x$lt_status in
10178 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10179 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10180 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10183 # compilation failed
10184 lt_cv_dlopen_self_static=no
10191 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10192 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10195 CPPFLAGS="$save_CPPFLAGS"
10196 LDFLAGS="$save_LDFLAGS"
10201 case $lt_cv_dlopen_self in
10202 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10203 *) enable_dlopen_self=unknown ;;
10206 case $lt_cv_dlopen_self_static in
10207 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10208 *) enable_dlopen_self_static=unknown ;;
10213 # Report which library types will actually be built
10214 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10215 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10216 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10217 echo "${ECHO_T}$can_build_shared" >&6; }
10219 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10220 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10221 test "$can_build_shared" = "no" && enable_shared=no
10223 # On AIX, shared libraries and static libraries use the same namespace, and
10224 # are all built from PIC.
10227 test "$enable_shared" = yes && enable_static=no
10228 if test -n "$RANLIB"; then
10229 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10230 postinstall_cmds='$RANLIB $lib'
10235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10236 test "$enable_shared" = yes && enable_static=no
10240 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10241 echo "${ECHO_T}$enable_shared" >&6; }
10243 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10244 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10245 # Make sure either enable_shared or enable_static is yes.
10246 test "$enable_shared" = yes || enable_static=yes
10247 { echo "$as_me:$LINENO: result: $enable_static" >&5
10248 echo "${ECHO_T}$enable_static" >&6; }
10250 # The else clause should only fire when bootstrapping the
10251 # libtool distribution, otherwise you forgot to ship ltmain.sh
10252 # with your package, and you will get complaints that there are
10253 # no rules to generate ltmain.sh.
10254 if test -f "$ltmain"; then
10255 # See if we are running on zsh, and set the options which allow our commands through
10256 # without removal of \ escapes.
10257 if test -n "${ZSH_VERSION+set}" ; then
10258 setopt NO_GLOB_SUBST
10260 # Now quote all the things that may contain metacharacters while being
10261 # careful not to overquote the AC_SUBSTed values. We take copies of the
10262 # variables and quote the copies for generation of the libtool script.
10263 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10265 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10266 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10267 deplibs_check_method reload_flag reload_cmds need_locks \
10268 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10269 lt_cv_sys_global_symbol_to_c_name_address \
10270 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10271 old_postinstall_cmds old_postuninstall_cmds \
10275 lt_prog_compiler_wl \
10276 lt_prog_compiler_pic \
10277 lt_prog_compiler_static \
10278 lt_prog_compiler_no_builtin_flag \
10279 export_dynamic_flag_spec \
10280 thread_safe_flag_spec \
10281 whole_archive_flag_spec \
10282 enable_shared_with_static_runtimes \
10284 old_archive_from_new_cmds \
10289 compiler_lib_search_path \
10291 archive_expsym_cmds \
10293 postuninstall_cmds \
10294 old_archive_from_expsyms_cmds \
10295 allow_undefined_flag \
10296 no_undefined_flag \
10297 export_symbols_cmds \
10298 hardcode_libdir_flag_spec \
10299 hardcode_libdir_flag_spec_ld \
10300 hardcode_libdir_separator \
10301 hardcode_automatic \
10303 module_expsym_cmds \
10304 lt_cv_prog_compiler_c_o \
10306 include_expsyms; do
10309 old_archive_cmds | \
10310 old_archive_from_new_cmds | \
10312 archive_expsym_cmds | \
10314 module_expsym_cmds | \
10315 old_archive_from_expsyms_cmds | \
10316 export_symbols_cmds | \
10317 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10318 postinstall_cmds | postuninstall_cmds | \
10319 old_postinstall_cmds | old_postuninstall_cmds | \
10320 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10321 # Double-quote double-evaled strings.
10322 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10331 *'\$0 --fallback-echo"')
10332 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10336 cfgfile="${ofile}T"
10337 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10339 { echo "$as_me:$LINENO: creating $ofile" >&5
10340 echo "$as_me: creating $ofile" >&6;}
10342 cat <<__EOF__ >> "$cfgfile"
10345 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10346 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10347 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10349 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10350 # Free Software Foundation, Inc.
10352 # This file is part of GNU Libtool:
10353 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10355 # This program is free software; you can redistribute it and/or modify
10356 # it under the terms of the GNU General Public License as published by
10357 # the Free Software Foundation; either version 2 of the License, or
10358 # (at your option) any later version.
10360 # This program is distributed in the hope that it will be useful, but
10361 # WITHOUT ANY WARRANTY; without even the implied warranty of
10362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10363 # General Public License for more details.
10365 # You should have received a copy of the GNU General Public License
10366 # along with this program; if not, write to the Free Software
10367 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10369 # As a special exception to the GNU General Public License, if you
10370 # distribute this file as part of a program that contains a
10371 # configuration script generated by Autoconf, you may include it under
10372 # the same distribution terms that you use for the rest of that program.
10374 # A sed program that does not truncate output.
10377 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10378 Xsed="$SED -e 1s/^X//"
10380 # The HP-UX ksh and POSIX shell print the target directory to stdout
10381 # if CDPATH is set.
10382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10384 # The names of the tagged configurations supported by this script.
10387 # ### BEGIN LIBTOOL CONFIG
10389 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10391 # Shell to use when invoking shell scripts.
10394 # Whether or not to build shared libraries.
10395 build_libtool_libs=$enable_shared
10397 # Whether or not to build static libraries.
10398 build_old_libs=$enable_static
10400 # Whether or not to add -lc for building shared libraries.
10401 build_libtool_need_lc=$archive_cmds_need_lc
10403 # Whether or not to disallow shared libs when runtime libs are static
10404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10406 # Whether or not to optimize for fast installation.
10407 fast_install=$enable_fast_install
10410 host_alias=$host_alias
10414 # The build system.
10415 build_alias=$build_alias
10419 # An echo program that does not interpret backslashes.
10424 AR_FLAGS=$lt_AR_FLAGS
10429 # LTCC compiler flags.
10430 LTCFLAGS=$lt_LTCFLAGS
10432 # A language-specific compiler.
10435 # Is the compiler the GNU C compiler?
10441 # The linker used to build libraries.
10444 # Whether we need hard or soft links.
10447 # A BSD-compatible nm program.
10450 # A symbol stripping program
10453 # Used to examine libraries when file_magic_cmd begins "file"
10454 MAGIC_CMD=$MAGIC_CMD
10456 # Used on cygwin: DLL creation program.
10459 # Used on cygwin: object dumper.
10462 # Used on cygwin: assembler.
10465 # The name of the directory that contains temporary libtool files.
10468 # How to create reloadable object files.
10469 reload_flag=$lt_reload_flag
10470 reload_cmds=$lt_reload_cmds
10472 # How to pass a linker flag through the compiler.
10473 wl=$lt_lt_prog_compiler_wl
10475 # Object file suffix (normally "o").
10476 objext="$ac_objext"
10478 # Old archive suffix (normally "a").
10481 # Shared library suffix (normally ".so").
10482 shrext_cmds='$shrext_cmds'
10484 # Executable file suffix (normally "").
10487 # Additional compiler flags for building library objects.
10488 pic_flag=$lt_lt_prog_compiler_pic
10491 # What is the maximum length of a command?
10492 max_cmd_len=$lt_cv_sys_max_cmd_len
10494 # Does compiler simultaneously support -c and -o options?
10495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10497 # Must we lock files when doing compilation?
10498 need_locks=$lt_need_locks
10500 # Do we need the lib prefix for modules?
10501 need_lib_prefix=$need_lib_prefix
10503 # Do we need a version for libraries?
10504 need_version=$need_version
10506 # Whether dlopen is supported.
10507 dlopen_support=$enable_dlopen
10509 # Whether dlopen of programs is supported.
10510 dlopen_self=$enable_dlopen_self
10512 # Whether dlopen of statically linked programs is supported.
10513 dlopen_self_static=$enable_dlopen_self_static
10515 # Compiler flag to prevent dynamic linking.
10516 link_static_flag=$lt_lt_prog_compiler_static
10518 # Compiler flag to turn off builtin functions.
10519 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10521 # Compiler flag to allow reflexive dlopens.
10522 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10524 # Compiler flag to generate shared objects directly from archives.
10525 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10527 # Compiler flag to generate thread-safe objects.
10528 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10530 # Library versioning type.
10531 version_type=$version_type
10533 # Format of library name prefix.
10534 libname_spec=$lt_libname_spec
10536 # List of archive names. First name is the real one, the rest are links.
10537 # The last name is the one that the linker finds with -lNAME.
10538 library_names_spec=$lt_library_names_spec
10540 # The coded name of the library, if different from the real name.
10541 soname_spec=$lt_soname_spec
10543 # Commands used to build and install an old-style archive.
10545 old_archive_cmds=$lt_old_archive_cmds
10546 old_postinstall_cmds=$lt_old_postinstall_cmds
10547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10549 # Create an old-style archive from a shared archive.
10550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10552 # Create a temporary old-style archive to link instead of a shared archive.
10553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10555 # Commands used to build and install a shared archive.
10556 archive_cmds=$lt_archive_cmds
10557 archive_expsym_cmds=$lt_archive_expsym_cmds
10558 postinstall_cmds=$lt_postinstall_cmds
10559 postuninstall_cmds=$lt_postuninstall_cmds
10561 # Commands used to build a loadable module (assumed same as above if empty)
10562 module_cmds=$lt_module_cmds
10563 module_expsym_cmds=$lt_module_expsym_cmds
10565 # Commands to strip libraries.
10566 old_striplib=$lt_old_striplib
10567 striplib=$lt_striplib
10569 # Dependencies to place before the objects being linked to create a
10571 predep_objects=$lt_predep_objects
10573 # Dependencies to place after the objects being linked to create a
10575 postdep_objects=$lt_postdep_objects
10577 # Dependencies to place before the objects being linked to create a
10579 predeps=$lt_predeps
10581 # Dependencies to place after the objects being linked to create a
10583 postdeps=$lt_postdeps
10585 # The library search path used internally by the compiler when linking
10586 # a shared library.
10587 compiler_lib_search_path=$lt_compiler_lib_search_path
10589 # Method to check whether dependent libraries are shared objects.
10590 deplibs_check_method=$lt_deplibs_check_method
10592 # Command to use when deplibs_check_method == file_magic.
10593 file_magic_cmd=$lt_file_magic_cmd
10595 # Flag that allows shared libraries with undefined symbols to be built.
10596 allow_undefined_flag=$lt_allow_undefined_flag
10598 # Flag that forces no undefined symbols.
10599 no_undefined_flag=$lt_no_undefined_flag
10601 # Commands used to finish a libtool library installation in a directory.
10602 finish_cmds=$lt_finish_cmds
10604 # Same as above, but a single script fragment to be evaled but not shown.
10605 finish_eval=$lt_finish_eval
10607 # Take the output of nm and produce a listing of raw symbols and C names.
10608 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10610 # Transform the output of nm in a proper C declaration
10611 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10613 # Transform the output of nm in a C name address pair
10614 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10616 # This is the shared library runtime path variable.
10617 runpath_var=$runpath_var
10619 # This is the shared library path variable.
10620 shlibpath_var=$shlibpath_var
10622 # Is shlibpath searched before the hard-coded library search path?
10623 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10625 # How to hardcode a shared library path into an executable.
10626 hardcode_action=$hardcode_action
10628 # Whether we should hardcode library paths into libraries.
10629 hardcode_into_libs=$hardcode_into_libs
10631 # Flag to hardcode \$libdir into a binary during linking.
10632 # This must work even if \$libdir does not exist.
10633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10635 # If ld is used when linking, flag to hardcode \$libdir into
10636 # a binary during linking. This must work even if \$libdir does
10638 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10640 # Whether we need a single -rpath flag with a separated argument.
10641 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10643 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10644 # resulting binary.
10645 hardcode_direct=$hardcode_direct
10647 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10648 # resulting binary.
10649 hardcode_minus_L=$hardcode_minus_L
10651 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10652 # the resulting binary.
10653 hardcode_shlibpath_var=$hardcode_shlibpath_var
10655 # Set to yes if building a shared library automatically hardcodes DIR into the library
10656 # and all subsequent libraries and executables linked against it.
10657 hardcode_automatic=$hardcode_automatic
10659 # Variables whose values should be saved in libtool wrapper scripts and
10660 # restored at relink time.
10661 variables_saved_for_relink="$variables_saved_for_relink"
10663 # Whether libtool must link a program against all its dependency libraries.
10664 link_all_deplibs=$link_all_deplibs
10666 # Compile-time system search path for libraries
10667 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10669 # Run-time system search path for libraries
10670 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10672 # Fix the shell variable \$srcfile for the compiler.
10673 fix_srcfile_path="$fix_srcfile_path"
10675 # Set to yes if exported symbols are required.
10676 always_export_symbols=$always_export_symbols
10678 # The commands to list exported symbols.
10679 export_symbols_cmds=$lt_export_symbols_cmds
10681 # The commands to extract the exported symbol list from a shared archive.
10682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10684 # Symbols that should not be listed in the preloaded symbols.
10685 exclude_expsyms=$lt_exclude_expsyms
10687 # Symbols that must always be exported.
10688 include_expsyms=$lt_include_expsyms
10690 # ### END LIBTOOL CONFIG
10697 cat <<\EOF >> "$cfgfile"
10699 # AIX sometimes has problems with the GCC collect2 program. For some
10700 # reason, if we set the COLLECT_NAMES environment variable, the problems
10701 # vanish in a puff of smoke.
10702 if test "X${COLLECT_NAMES+set}" != Xset; then
10704 export COLLECT_NAMES
10710 # We use sed instead of cat because bash on DJGPP gets confused if
10711 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10712 # text mode, it properly converts lines to CR/LF. This bash problem
10713 # is reportedly fixed, but why not run on old versions too?
10714 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10716 mv -f "$cfgfile" "$ofile" || \
10717 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10721 # If there is no Makefile yet, we rely on a make rule to execute
10722 # `config.status --recheck' to rerun these tests and create the
10723 # libtool script then.
10724 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10725 if test -f "$ltmain_in"; then
10726 test -f Makefile && make "$ltmain"
10732 ac_cpp='$CPP $CPPFLAGS'
10733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740 # Check whether --with-tags was given.
10741 if test "${with_tags+set}" = set; then
10742 withval=$with_tags; tagnames="$withval"
10746 if test -f "$ltmain" && test -n "$tagnames"; then
10747 if test ! -f "${ofile}"; then
10748 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10749 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10752 if test -z "$LTCC"; then
10753 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10754 if test -z "$LTCC"; then
10755 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10756 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10758 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10759 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10762 if test -z "$LTCFLAGS"; then
10763 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10766 # Extract list of available tagged configurations in $ofile.
10767 # Note that this assumes the entire list is on one line.
10768 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10770 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10771 for tagname in $tagnames; do
10773 # Check whether tagname contains only valid characters
10774 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10776 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10777 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10778 { (exit 1); exit 1; }; }
10782 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10784 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10785 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10786 { (exit 1); exit 1; }; }
10789 # Update the list of available tags.
10790 if test -n "$tagname"; then
10791 echo appending configuration tag \"$tagname\" to $ofile
10795 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10797 (test "X$CXX" != "Xg++"))) ; then
10799 ac_cpp='$CXXCPP $CPPFLAGS'
10800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10807 archive_cmds_need_lc_CXX=no
10808 allow_undefined_flag_CXX=
10809 always_export_symbols_CXX=no
10810 archive_expsym_cmds_CXX=
10811 export_dynamic_flag_spec_CXX=
10812 hardcode_direct_CXX=no
10813 hardcode_libdir_flag_spec_CXX=
10814 hardcode_libdir_flag_spec_ld_CXX=
10815 hardcode_libdir_separator_CXX=
10816 hardcode_minus_L_CXX=no
10817 hardcode_shlibpath_var_CXX=unsupported
10818 hardcode_automatic_CXX=no
10820 module_expsym_cmds_CXX=
10821 link_all_deplibs_CXX=unknown
10822 old_archive_cmds_CXX=$old_archive_cmds
10823 no_undefined_flag_CXX=
10824 whole_archive_flag_spec_CXX=
10825 enable_shared_with_static_runtimes_CXX=no
10827 # Dependencies to place before and after the object being linked:
10828 predep_objects_CXX=
10829 postdep_objects_CXX=
10832 compiler_lib_search_path_CXX=
10834 # Source file extension for C++ test sources.
10837 # Object file extension for compiled C++ test sources.
10841 # Code to be used in simple compile tests
10842 lt_simple_compile_test_code="int some_variable = 0;\n"
10844 # Code to be used in simple link tests
10845 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10849 # If no C compiler was specified, use CC.
10852 # If no C compiler flags were specified, use CFLAGS.
10853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10855 # Allow CC to be a program name with arguments.
10859 # save warnings/boilerplate of simple test code
10860 ac_outfile=conftest.$ac_objext
10861 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10863 _lt_compiler_boilerplate=`cat conftest.err`
10866 ac_outfile=conftest.$ac_objext
10867 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10869 _lt_linker_boilerplate=`cat conftest.err`
10873 # Allow CC to be a program name with arguments.
10878 lt_save_with_gnu_ld=$with_gnu_ld
10879 lt_save_path_LD=$lt_cv_path_LD
10880 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10881 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10883 $as_unset lt_cv_prog_gnu_ld
10885 if test -n "${lt_cv_path_LDCXX+set}"; then
10886 lt_cv_path_LD=$lt_cv_path_LDCXX
10888 $as_unset lt_cv_path_LD
10890 test -z "${LDCXX+set}" || LD=$LDCXX
10894 for cc_temp in $compiler""; do
10896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10902 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10905 # We don't want -fno-exception wen compiling C++ code, so set the
10906 # no_builtin_flag separately
10907 if test "$GXX" = yes; then
10908 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10910 lt_prog_compiler_no_builtin_flag_CXX=
10913 if test "$GXX" = yes; then
10914 # Set up default GNU C++ configuration
10917 # Check whether --with-gnu-ld was given.
10918 if test "${with_gnu_ld+set}" = set; then
10919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10925 if test "$GCC" = yes; then
10926 # Check if gcc -print-prog-name=ld gives a path.
10927 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10928 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10931 # gcc leaves a trailing carriage return which upsets mingw
10932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10937 # Accept absolute paths.
10939 re_direlt='/[^/][^/]*/\.\./'
10940 # Canonicalize the pathname of ld
10941 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10942 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10943 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10945 test -z "$LD" && LD="$ac_prog"
10948 # If it fails, then pretend we aren't using GCC.
10952 # If it is relative, then search for the first ld in PATH.
10953 with_gnu_ld=unknown
10956 elif test "$with_gnu_ld" = yes; then
10957 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10958 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10960 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10961 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10963 if test "${lt_cv_path_LD+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 if test -z "$LD"; then
10967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10968 for ac_dir in $PATH; do
10970 test -z "$ac_dir" && ac_dir=.
10971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10972 lt_cv_path_LD="$ac_dir/$ac_prog"
10973 # Check to see if the program is GNU ld. I'd rather use --version,
10974 # but apparently some variants of GNU ld only accept -v.
10975 # Break only if it was the GNU/non-GNU ld that we prefer.
10976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10977 *GNU* | *'with BFD'*)
10978 test "$with_gnu_ld" != no && break
10981 test "$with_gnu_ld" != yes && break
10988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10992 LD="$lt_cv_path_LD"
10993 if test -n "$LD"; then
10994 { echo "$as_me:$LINENO: result: $LD" >&5
10995 echo "${ECHO_T}$LD" >&6; }
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
11000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11002 { (exit 1); exit 1; }; }
11003 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11005 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11009 case `$LD -v 2>&1 </dev/null` in
11010 *GNU* | *'with BFD'*)
11011 lt_cv_prog_gnu_ld=yes
11014 lt_cv_prog_gnu_ld=no
11018 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11019 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11020 with_gnu_ld=$lt_cv_prog_gnu_ld
11024 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11025 # archiving commands below assume that GNU ld is being used.
11026 if test "$with_gnu_ld" = yes; then
11027 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11028 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'
11030 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11033 # If archive_cmds runs LD, not CC, wlarc should be empty
11034 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11035 # investigate it a little bit more. (MM)
11038 # ancient GNU ld didn't support --whole-archive et. al.
11039 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11040 grep 'no-whole-archive' > /dev/null; then
11041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11043 whole_archive_flag_spec_CXX=
11049 # A generic and very simple default shared library creation
11050 # command for GNU C++ for the case where it uses the native
11051 # linker, instead of GNU ld. If possible, this setting should
11052 # overridden to take advantage of the native linker features on
11053 # the platform it is being used on.
11054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11057 # Commands to make compiler produce verbose output that lists
11058 # what "hidden" libraries, object files and flags are used when
11059 # linking a shared library.
11060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11068 # PORTME: fill in a description of your system's C++ link characteristics
11069 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11070 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11074 # FIXME: insert proper C++ library support
11078 if test "$host_cpu" = ia64; then
11079 # On IA64, the linker does run time linking by default, so we don't
11080 # have to do anything special.
11081 aix_use_runtimelinking=no
11082 exp_sym_flag='-Bexport'
11085 aix_use_runtimelinking=no
11087 # Test if we are trying to use run time linking or normal
11088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11089 # need to do runtime linking.
11090 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11091 for ld_flag in $LDFLAGS; do
11094 aix_use_runtimelinking=yes
11102 exp_sym_flag='-bexport'
11103 no_entry_flag='-bnoentry'
11106 # When large executables or shared objects are built, AIX ld can
11107 # have problems creating the table of contents. If linking a library
11108 # or program results in "error TOC overflow" add -mminimal-toc to
11109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11112 archive_cmds_CXX=''
11113 hardcode_direct_CXX=yes
11114 hardcode_libdir_separator_CXX=':'
11115 link_all_deplibs_CXX=yes
11117 if test "$GXX" = yes; then
11118 case $host_os in aix4.[012]|aix4.[012].*)
11119 # We only want to do this on AIX 4.2 and lower, the check
11120 # below for broken collect2 doesn't work under 4.3+
11121 collect2name=`${CC} -print-prog-name=collect2`
11122 if test -f "$collect2name" && \
11123 strings "$collect2name" | grep resolve_lib_name >/dev/null
11125 # We have reworked collect2
11126 hardcode_direct_CXX=yes
11128 # We have old collect2
11129 hardcode_direct_CXX=unsupported
11130 # It fails to find uninstalled libraries when the uninstalled
11131 # path is not listed in the libpath. Setting hardcode_minus_L
11132 # to unsupported forces relinking
11133 hardcode_minus_L_CXX=yes
11134 hardcode_libdir_flag_spec_CXX='-L$libdir'
11135 hardcode_libdir_separator_CXX=
11139 shared_flag='-shared'
11140 if test "$aix_use_runtimelinking" = yes; then
11141 shared_flag="$shared_flag "'${wl}-G'
11145 if test "$host_cpu" = ia64; then
11146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11147 # chokes on -Wl,-G. The following line is correct:
11150 if test "$aix_use_runtimelinking" = yes; then
11151 shared_flag='${wl}-G'
11153 shared_flag='${wl}-bM:SRE'
11158 # It seems that -bexpall does not export symbols beginning with
11159 # underscore (_), so it is better to generate a list of symbols to export.
11160 always_export_symbols_CXX=yes
11161 if test "$aix_use_runtimelinking" = yes; then
11162 # Warning - without using the other runtime loading flags (-brtl),
11163 # -berok will link without error, but may produce a broken library.
11164 allow_undefined_flag_CXX='-berok'
11165 # Determine the default libpath from the value encoded in an empty executable.
11166 cat >conftest.$ac_ext <<_ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (ac_try="$ac_link"
11183 case "(($ac_try" in
11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185 *) ac_try_echo=$ac_try;;
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188 (eval "$ac_link") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_cxx_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest$ac_exeext &&
11198 $as_test_x conftest$ac_exeext; then
11200 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11202 # Check for a 64-bit object if we didn't find anything.
11203 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; }
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11213 conftest$ac_exeext conftest.$ac_ext
11214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11218 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"
11220 if test "$host_cpu" = ia64; then
11221 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11222 allow_undefined_flag_CXX="-z nodefs"
11223 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"
11225 # Determine the default libpath from the value encoded in an empty executable.
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_cxx_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
11260 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11262 # Check for a 64-bit object if we didn't find anything.
11263 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; }
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11276 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11277 # Warning - without using the other run time loading flags,
11278 # -berok will link without error, but may produce a broken library.
11279 no_undefined_flag_CXX=' ${wl}-bernotok'
11280 allow_undefined_flag_CXX=' ${wl}-berok'
11281 # Exported symbols can be pulled into shared objects from archives
11282 whole_archive_flag_spec_CXX='$convenience'
11283 archive_cmds_need_lc_CXX=yes
11284 # This is similar to how AIX traditionally builds its shared libraries.
11285 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'
11291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11292 allow_undefined_flag_CXX=unsupported
11293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11294 # support --undefined. This deserves some investigation. FIXME
11295 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11302 case $cc_basename in
11304 # FIXME: insert proper C++ library support
11310 cygwin* | mingw* | pw32*)
11311 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11312 # as there is no search path for DLLs.
11313 hardcode_libdir_flag_spec_CXX='-L$libdir'
11314 allow_undefined_flag_CXX=unsupported
11315 always_export_symbols_CXX=no
11316 enable_shared_with_static_runtimes_CXX=yes
11318 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11319 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'
11320 # If the export-symbols file already is a .def file (1st line
11321 # is EXPORTS), use it as is; otherwise, prepend...
11322 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11323 cp $export_symbols $output_objdir/$soname.def;
11325 echo EXPORTS > $output_objdir/$soname.def;
11326 cat $export_symbols >> $output_objdir/$soname.def;
11328 $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'
11333 darwin* | rhapsody*)
11335 rhapsody* | darwin1.[012])
11336 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11340 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11342 case ${MACOSX_DEPLOYMENT_TARGET} in
11344 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11347 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11353 archive_cmds_need_lc_CXX=no
11354 hardcode_direct_CXX=no
11355 hardcode_automatic_CXX=yes
11356 hardcode_shlibpath_var_CXX=unsupported
11357 whole_archive_flag_spec_CXX=''
11358 link_all_deplibs_CXX=yes
11360 if test "$GXX" = yes ; then
11361 lt_int_apple_cc_single_mod=no
11362 output_verbose_link_cmd='echo'
11363 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11364 lt_int_apple_cc_single_mod=yes
11366 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11367 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11369 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'
11371 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11372 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11373 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11374 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}'
11376 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}'
11378 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}'
11380 case $cc_basename in
11382 output_verbose_link_cmd='echo'
11383 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'
11384 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11386 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}'
11387 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}'
11397 case $cc_basename in
11399 # FIXME: insert proper C++ library support
11403 # Green Hills C++ Compiler
11404 # FIXME: insert proper C++ library support
11408 # FIXME: insert proper C++ library support
11414 # C++ shared libraries reported to be fairly broken before switch to ELF
11418 archive_cmds_need_lc_CXX=no
11420 freebsd* | kfreebsd*-gnu | dragonfly*)
11421 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11429 hardcode_libdir_separator_CXX=:
11430 export_dynamic_flag_spec_CXX='${wl}-E'
11431 hardcode_direct_CXX=yes
11432 hardcode_minus_L_CXX=yes # Not in the search PATH,
11433 # but as the default
11434 # location of the library.
11436 case $cc_basename in
11438 # FIXME: insert proper C++ library support
11442 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'
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11447 # There doesn't appear to be a way to prevent this compiler from
11448 # explicitly linking system object files so we need to strip them
11449 # from the output so that they don't get included in the library
11451 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'
11454 if test "$GXX" = yes; then
11455 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'
11457 # FIXME: insert proper C++ library support
11464 if test $with_gnu_ld = no; then
11465 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11466 hardcode_libdir_separator_CXX=:
11470 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11473 export_dynamic_flag_spec_CXX='${wl}-E'
11479 hardcode_direct_CXX=no
11480 hardcode_shlibpath_var_CXX=no
11483 hardcode_direct_CXX=yes
11484 hardcode_minus_L_CXX=yes # Not in the search PATH,
11485 # but as the default
11486 # location of the library.
11490 case $cc_basename in
11492 # FIXME: insert proper C++ library support
11498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11504 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11507 # Commands to make compiler produce verbose output that lists
11508 # what "hidden" libraries, object files and flags are used when
11509 # linking a shared library.
11511 # There doesn't appear to be a way to prevent this compiler from
11512 # explicitly linking system object files so we need to strip them
11513 # from the output so that they don't get included in the library
11515 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'
11518 if test "$GXX" = yes; then
11519 if test $with_gnu_ld = no; then
11522 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11525 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11528 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'
11533 # FIXME: insert proper C++ library support
11540 hardcode_direct_CXX=no
11541 hardcode_shlibpath_var_CXX=no
11542 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11543 export_dynamic_flag_spec_CXX='${wl}-E'
11544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11545 # Instead, shared libraries are loaded at an image base (0x10000000 by
11546 # default) and relocated if they conflict, which is a slow very memory
11547 # consuming and fragmenting process. To avoid this, we pick a random,
11548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11549 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11550 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'
11551 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'
11554 case $cc_basename in
11557 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'
11559 # Archives containing C++ object files must be created using
11560 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11561 # necessary to make sure instantiated templates are included
11563 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11566 if test "$GXX" = yes; then
11567 if test "$with_gnu_ld" = no; then
11568 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'
11570 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'
11573 link_all_deplibs_CXX=yes
11576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11577 hardcode_libdir_separator_CXX=:
11580 case $cc_basename in
11582 # Kuck and Associates, Inc. (KAI) C++ Compiler
11584 # KCC will only create a shared library if the output file
11585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11586 # to its proper name (with version) after linking.
11587 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'
11588 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'
11589 # Commands to make compiler produce verbose output that lists
11590 # what "hidden" libraries, object files and flags are used when
11591 # linking a shared library.
11593 # There doesn't appear to be a way to prevent this compiler from
11594 # explicitly linking system object files so we need to strip them
11595 # from the output so that they don't get included in the library
11597 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'
11599 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11602 # Archives containing C++ object files must be created using
11603 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11609 # version 8.0 and above of icpc choke on multiply defined symbols
11610 # if we add $predep_objects and $postdep_objects, however 7.1 and
11611 # earlier do not add the objects themselves.
11612 case `$CC -V 2>&1` in
11614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11615 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'
11617 *) # Version 8.0 or newer
11620 ia64*) tmp_idyn=' -i_dynamic';;
11622 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11623 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'
11626 archive_cmds_need_lc_CXX=no
11627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11629 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11632 # Portland Group C++ compiler
11633 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11634 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'
11636 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11638 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'
11642 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11643 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'
11645 runpath_var=LD_RUN_PATH
11646 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11647 hardcode_libdir_separator_CXX=:
11649 # Commands to make compiler produce verbose output that lists
11650 # what "hidden" libraries, object files and flags are used when
11651 # linking a shared library.
11653 # There doesn't appear to be a way to prevent this compiler from
11654 # explicitly linking system object files so we need to strip them
11655 # from the output so that they don't get included in the library
11657 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'
11662 # FIXME: insert proper C++ library support
11666 # FIXME: insert proper C++ library support
11670 case $cc_basename in
11672 # FIXME: insert proper C++ library support
11676 # FIXME: insert proper C++ library support
11682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11683 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11685 hardcode_libdir_flag_spec_CXX='-R$libdir'
11686 hardcode_direct_CXX=yes
11687 hardcode_shlibpath_var_CXX=no
11689 # Workaround some broken pre-1.5 toolchains
11690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11693 # C++ shared libraries are fairly broken
11697 hardcode_direct_CXX=yes
11698 hardcode_shlibpath_var_CXX=no
11699 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11702 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11703 export_dynamic_flag_spec_CXX='${wl}-E'
11704 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11706 output_verbose_link_cmd='echo'
11709 case $cc_basename in
11711 # Kuck and Associates, Inc. (KAI) C++ Compiler
11713 # KCC will only create a shared library if the output file
11714 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11715 # to its proper name (with version) after linking.
11716 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'
11718 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11719 hardcode_libdir_separator_CXX=:
11721 # Archives containing C++ object files must be created using
11722 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11723 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11727 # Rational C++ 2.4.1
11728 # FIXME: insert proper C++ library support
11732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11733 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'
11735 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11736 hardcode_libdir_separator_CXX=:
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11742 # There doesn't appear to be a way to prevent this compiler from
11743 # explicitly linking system object files so we need to strip them
11744 # from the output so that they don't get included in the library
11746 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'
11749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11750 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11751 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'
11753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11754 hardcode_libdir_separator_CXX=:
11756 # Commands to make compiler produce verbose output that lists
11757 # what "hidden" libraries, object files and flags are used when
11758 # linking a shared library.
11759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11762 # FIXME: insert proper C++ library support
11769 case $cc_basename in
11771 # Kuck and Associates, Inc. (KAI) C++ Compiler
11773 # KCC will only create a shared library if the output file
11774 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11775 # to its proper name (with version) after linking.
11776 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'
11778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11779 hardcode_libdir_separator_CXX=:
11781 # Archives containing C++ object files must be created using
11782 # the KAI C++ compiler.
11783 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11786 # Rational C++ 2.4.1
11787 # FIXME: insert proper C++ library support
11791 allow_undefined_flag_CXX=' -expect_unresolved \*'
11792 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'
11793 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11794 echo "-hidden">> $lib.exp~
11795 $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~
11798 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11799 hardcode_libdir_separator_CXX=:
11801 # Commands to make compiler produce verbose output that lists
11802 # what "hidden" libraries, object files and flags are used when
11803 # linking a shared library.
11805 # There doesn't appear to be a way to prevent this compiler from
11806 # explicitly linking system object files so we need to strip them
11807 # from the output so that they don't get included in the library
11809 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'
11812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11813 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11814 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'
11816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11817 hardcode_libdir_separator_CXX=:
11819 # Commands to make compiler produce verbose output that lists
11820 # what "hidden" libraries, object files and flags are used when
11821 # linking a shared library.
11822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11825 # FIXME: insert proper C++ library support
11832 # FIXME: insert proper C++ library support
11836 case $cc_basename in
11839 # FIXME: insert proper C++ library support
11844 # FIXME: insert proper C++ library support
11848 # FIXME: insert proper C++ library support
11854 case $cc_basename in
11856 # Sun C++ 4.2, 5.x and Centerline C++
11857 archive_cmds_need_lc_CXX=yes
11858 no_undefined_flag_CXX=' -zdefs'
11859 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11861 $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'
11863 hardcode_libdir_flag_spec_CXX='-R$libdir'
11864 hardcode_shlibpath_var_CXX=no
11866 solaris2.[0-5] | solaris2.[0-5].*) ;;
11868 # The C++ compiler is used as linker so we must use $wl
11869 # flag to pass the commands to the underlying system
11870 # linker. We must also pass each convience library through
11871 # to the system linker between allextract/defaultextract.
11872 # The C++ compiler will combine linker options so we
11873 # cannot just pass the convience library names through
11875 # Supported since Solaris 2.6 (maybe 2.5.1?)
11876 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'
11879 link_all_deplibs_CXX=yes
11881 output_verbose_link_cmd='echo'
11883 # Archives containing C++ object files must be created using
11884 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11885 # necessary to make sure instantiated templates are included
11887 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11890 # Green Hills C++ Compiler
11891 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893 # The C++ compiler must be used to create the archive.
11894 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11897 # GNU C++ compiler with Solaris linker
11898 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11899 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11900 if $CC --version | grep -v '^2\.7' > /dev/null; then
11901 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11902 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11903 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905 # Commands to make compiler produce verbose output that lists
11906 # what "hidden" libraries, object files and flags are used when
11907 # linking a shared library.
11908 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11913 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11914 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916 # Commands to make compiler produce verbose output that lists
11917 # what "hidden" libraries, object files and flags are used when
11918 # linking a shared library.
11919 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11922 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11928 no_undefined_flag_CXX='${wl}-z,text'
11929 archive_cmds_need_lc_CXX=no
11930 hardcode_shlibpath_var_CXX=no
11931 runpath_var='LD_RUN_PATH'
11933 case $cc_basename in
11935 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 sysv5* | sco3.2v5* | sco5v6*)
11945 # Note: We can NOT use -z defs as we might desire, because we do not
11946 # link with -lc, and that would cause any symbols used from libc to
11947 # always be unresolved, which means just about no library would
11948 # ever link correctly. If we're not using GNU ld we use -z text
11949 # though, which does catch some bad symbols but isn't as heavy-handed
11951 # For security reasons, it is highly recommended that you always
11952 # use absolute paths for naming shared libraries, and exclude the
11953 # DT_RUNPATH tag from executables and libraries. But doing so
11954 # requires that you compile everything twice, which is a pain.
11955 # So that behaviour is only enabled if SCOABSPATH is set to a
11956 # non-empty value in the environment. Most likely only useful for
11957 # creating official distributions of packages.
11958 # This is a hack until libtool officially supports absolute path
11959 # names for shared libraries.
11960 no_undefined_flag_CXX='${wl}-z,text'
11961 allow_undefined_flag_CXX='${wl}-z,nodefs'
11962 archive_cmds_need_lc_CXX=no
11963 hardcode_shlibpath_var_CXX=no
11964 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11965 hardcode_libdir_separator_CXX=':'
11966 link_all_deplibs_CXX=yes
11967 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11968 runpath_var='LD_RUN_PATH'
11970 case $cc_basename in
11972 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11973 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11976 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11977 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11982 case $cc_basename in
11984 # NonStop-UX NCC 3.20
11985 # FIXME: insert proper C++ library support
11989 # FIXME: insert proper C++ library support
11995 # FIXME: insert proper C++ library support
11999 # FIXME: insert proper C++ library support
12003 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12004 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12005 test "$ld_shlibs_CXX" = no && can_build_shared=no
12011 ## There is no encapsulation within the following macros, do not change
12012 ## the running order or otherwise move them around unless you know exactly
12013 ## what you are doing...
12015 cat > conftest.$ac_ext <<EOF
12019 Foo (void) { a = 0; }
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; then
12030 # Parse the compiler output and extract the necessary
12031 # objects, libraries and library flags.
12033 # Sentinel used to keep track of whether or not we are before
12034 # the conftest object file.
12035 pre_test_object_deps_done=no
12037 # The `*' in the case matches for architectures that use `case' in
12038 # $output_verbose_cmd can trigger glob expansion during the loop
12039 # eval without this substitution.
12040 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12042 for p in `eval $output_verbose_link_cmd`; do
12046 # Some compilers place space between "-{L,R}" and the path.
12047 # Remove the space.
12048 if test $p = "-L" \
12049 || test $p = "-R"; then
12056 if test "$pre_test_object_deps_done" = no; then
12059 # Internal compiler library paths should come after those
12060 # provided the user. The postdeps already come after the
12061 # user supplied libs so there is no need to process them.
12062 if test -z "$compiler_lib_search_path_CXX"; then
12063 compiler_lib_search_path_CXX="${prev}${p}"
12065 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12068 # The "-l" case would never come before the object being
12069 # linked, so don't bother handling this case.
12072 if test -z "$postdeps_CXX"; then
12073 postdeps_CXX="${prev}${p}"
12075 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12081 # This assumes that the test object file only shows up
12082 # once in the compiler output.
12083 if test "$p" = "conftest.$objext"; then
12084 pre_test_object_deps_done=yes
12088 if test "$pre_test_object_deps_done" = no; then
12089 if test -z "$predep_objects_CXX"; then
12090 predep_objects_CXX="$p"
12092 predep_objects_CXX="$predep_objects_CXX $p"
12095 if test -z "$postdep_objects_CXX"; then
12096 postdep_objects_CXX="$p"
12098 postdep_objects_CXX="$postdep_objects_CXX $p"
12103 *) ;; # Ignore the rest.
12111 echo "libtool.m4: error: problem compiling CXX test program"
12114 $rm -f confest.$objext
12116 # PORTME: override above test on systems where it is broken
12119 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12120 # hack all around it, let's just trust "g++" to DTRT.
12121 predep_objects_CXX=
12122 postdep_objects_CXX=
12127 case $cc_basename in
12129 # Adding this requires a known-good setup of shared libraries for
12130 # Sun compiler versions before 5.6, else PIC objects from an old
12131 # archive will be linked into the output, leading to subtle bugs.
12132 postdeps_CXX='-lCstd -lCrun'
12139 case " $postdeps_CXX " in
12140 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12143 lt_prog_compiler_wl_CXX=
12144 lt_prog_compiler_pic_CXX=
12145 lt_prog_compiler_static_CXX=
12147 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12150 # C++ specific cases for pic, static, wl, etc.
12151 if test "$GXX" = yes; then
12152 lt_prog_compiler_wl_CXX='-Wl,'
12153 lt_prog_compiler_static_CXX='-static'
12157 # All AIX code is PIC.
12158 if test "$host_cpu" = ia64; then
12159 # AIX 5 now supports IA64 processor
12160 lt_prog_compiler_static_CXX='-Bstatic'
12164 # FIXME: we need at least 68020 code to build shared libraries, but
12165 # adding the `-m68020' flag to GCC prevents building anything better,
12167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12169 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12170 # PIC is the default for these OSes.
12172 mingw* | os2* | pw32*)
12173 # This hack is so that the source file can tell whether it is being
12174 # built for inclusion in a dll (and should export symbols for example).
12175 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177 darwin* | rhapsody*)
12178 # PIC is the default on this platform
12179 # Common symbols not allowed in MH_DYLIB files
12180 lt_prog_compiler_pic_CXX='-fno-common'
12183 # DJGPP does not support shared libraries at all
12184 lt_prog_compiler_pic_CXX=
12187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12188 # Instead, we relocate shared libraries at runtime.
12191 if test -d /usr/nec; then
12192 lt_prog_compiler_pic_CXX=-Kconform_pic
12196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12197 # not for PA HP-UX.
12202 lt_prog_compiler_pic_CXX='-fPIC'
12207 lt_prog_compiler_pic_CXX='-fPIC'
12213 # All AIX code is PIC.
12214 if test "$host_cpu" = ia64; then
12215 # AIX 5 now supports IA64 processor
12216 lt_prog_compiler_static_CXX='-Bstatic'
12218 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12222 case $cc_basename in
12224 # Green Hills C++ Compiler
12225 # _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"
12230 # PIC is the default on this platform
12231 # Common symbols not allowed in MH_DYLIB files
12232 case $cc_basename in
12234 lt_prog_compiler_pic_CXX='-qnocommon'
12235 lt_prog_compiler_wl_CXX='-Wl,'
12240 case $cc_basename in
12242 lt_prog_compiler_pic_CXX='-KPIC'
12245 # Green Hills C++ Compiler
12246 lt_prog_compiler_pic_CXX='-pic'
12252 freebsd* | kfreebsd*-gnu | dragonfly*)
12253 # FreeBSD uses GNU C++
12255 hpux9* | hpux10* | hpux11*)
12256 case $cc_basename in
12258 lt_prog_compiler_wl_CXX='-Wl,'
12259 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12260 if test "$host_cpu" != ia64; then
12261 lt_prog_compiler_pic_CXX='+Z'
12265 lt_prog_compiler_wl_CXX='-Wl,'
12266 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12272 lt_prog_compiler_pic_CXX='+Z'
12281 # This is c89, which is MS Visual C++ (no shared libs)
12282 # Anyone wants to do a port?
12284 irix5* | irix6* | nonstopux*)
12285 case $cc_basename in
12287 lt_prog_compiler_wl_CXX='-Wl,'
12288 lt_prog_compiler_static_CXX='-non_shared'
12289 # CC pic flag -KPIC is the default.
12296 case $cc_basename in
12299 lt_prog_compiler_wl_CXX='--backend -Wl,'
12300 lt_prog_compiler_pic_CXX='-fPIC'
12304 lt_prog_compiler_wl_CXX='-Wl,'
12305 lt_prog_compiler_pic_CXX='-KPIC'
12306 lt_prog_compiler_static_CXX='-static'
12309 # Portland Group C++ compiler.
12310 lt_prog_compiler_wl_CXX='-Wl,'
12311 lt_prog_compiler_pic_CXX='-fpic'
12312 lt_prog_compiler_static_CXX='-Bstatic'
12316 # Make sure the PIC flag is empty. It appears that all Alpha
12317 # Linux and Compaq Tru64 Unix objects are PIC.
12318 lt_prog_compiler_pic_CXX=
12319 lt_prog_compiler_static_CXX='-non_shared'
12330 case $cc_basename in
12332 lt_prog_compiler_pic_CXX='-W c,exportall'
12340 osf3* | osf4* | osf5*)
12341 case $cc_basename in
12343 lt_prog_compiler_wl_CXX='--backend -Wl,'
12346 # Rational C++ 2.4.1
12347 lt_prog_compiler_pic_CXX='-pic'
12350 # Digital/Compaq C++
12351 lt_prog_compiler_wl_CXX='-Wl,'
12352 # Make sure the PIC flag is empty. It appears that all Alpha
12353 # Linux and Compaq Tru64 Unix objects are PIC.
12354 lt_prog_compiler_pic_CXX=
12355 lt_prog_compiler_static_CXX='-non_shared'
12364 case $cc_basename in
12366 # Sun C++ 4.2, 5.x and Centerline C++
12367 lt_prog_compiler_pic_CXX='-KPIC'
12368 lt_prog_compiler_static_CXX='-Bstatic'
12369 lt_prog_compiler_wl_CXX='-Qoption ld '
12372 # Green Hills C++ Compiler
12373 lt_prog_compiler_pic_CXX='-PIC'
12380 case $cc_basename in
12383 lt_prog_compiler_pic_CXX='-pic'
12384 lt_prog_compiler_static_CXX='-Bstatic'
12388 lt_prog_compiler_pic_CXX='-pic'
12395 case $cc_basename in
12397 # NonStop-UX NCC 3.20
12398 lt_prog_compiler_pic_CXX='-KPIC'
12404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12405 case $cc_basename in
12407 lt_prog_compiler_wl_CXX='-Wl,'
12408 lt_prog_compiler_pic_CXX='-KPIC'
12409 lt_prog_compiler_static_CXX='-Bstatic'
12416 lt_prog_compiler_can_build_shared_CXX=no
12421 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12422 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12425 # Check to make sure the PIC flag actually works.
12427 if test -n "$lt_prog_compiler_pic_CXX"; then
12429 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12431 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 lt_prog_compiler_pic_works_CXX=no
12435 ac_outfile=conftest.$ac_objext
12436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12437 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12438 # Insert the option either (1) after the last *FLAGS variable, or
12439 # (2) before a word containing "conftest.", or (3) at the end.
12440 # Note that $ac_compile itself does not contain backslashes and begins
12441 # with a dollar sign (not a hyphen), so the echo should work correctly.
12442 # The option is referenced via a variable to avoid confusing sed.
12443 lt_compile=`echo "$ac_compile" | $SED \
12444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12446 -e 's:$: $lt_compiler_flag:'`
12447 (eval echo "\"\$as_me:12447: $lt_compile\"" >&5)
12448 (eval "$lt_compile" 2>conftest.err)
12450 cat conftest.err >&5
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 if (exit $ac_status) && test -s "$ac_outfile"; then
12453 # The compiler can only warn and ignore the option if not recognized
12454 # So say no if there are warnings other than the usual output.
12455 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12457 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12458 lt_prog_compiler_pic_works_CXX=yes
12464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12465 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12467 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12468 case $lt_prog_compiler_pic_CXX in
12470 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12473 lt_prog_compiler_pic_CXX=
12474 lt_prog_compiler_can_build_shared_CXX=no
12479 # For platforms which do not support PIC, -DPIC is meaningless:
12481 lt_prog_compiler_pic_CXX=
12484 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12489 # Check to make sure the static flag actually works.
12491 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12492 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12493 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12494 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 lt_prog_compiler_static_works_CXX=no
12498 save_LDFLAGS="$LDFLAGS"
12499 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12500 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12501 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12502 # The linker can only warn and ignore the option if not recognized
12503 # So say no if there are warnings
12504 if test -s conftest.err; then
12505 # Append any errors to the config.log.
12506 cat conftest.err 1>&5
12507 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12509 if diff conftest.exp conftest.er2 >/dev/null; then
12510 lt_prog_compiler_static_works_CXX=yes
12513 lt_prog_compiler_static_works_CXX=yes
12517 LDFLAGS="$save_LDFLAGS"
12520 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12521 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12523 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12526 lt_prog_compiler_static_CXX=
12530 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12531 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12532 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 lt_cv_prog_compiler_c_o_CXX=no
12536 $rm -r conftest 2>/dev/null
12540 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12542 lt_compiler_flag="-o out/conftest2.$ac_objext"
12543 # Insert the option either (1) after the last *FLAGS variable, or
12544 # (2) before a word containing "conftest.", or (3) at the end.
12545 # Note that $ac_compile itself does not contain backslashes and begins
12546 # with a dollar sign (not a hyphen), so the echo should work correctly.
12547 lt_compile=`echo "$ac_compile" | $SED \
12548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12550 -e 's:$: $lt_compiler_flag:'`
12551 (eval echo "\"\$as_me:12551: $lt_compile\"" >&5)
12552 (eval "$lt_compile" 2>out/conftest.err)
12554 cat out/conftest.err >&5
12555 echo "$as_me:12555: \$? = $ac_status" >&5
12556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12558 # The compiler can only warn and ignore the option if not recognized
12559 # So say no if there are warnings
12560 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12563 lt_cv_prog_compiler_c_o_CXX=yes
12568 # SGI C++ compiler will create directory out/ii_files/ for
12569 # template instantiation
12570 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12571 $rm out/* && rmdir out
12577 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12578 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12581 hard_links="nottested"
12582 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12583 # do not overwrite the value of need_locks provided by the user
12584 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12585 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12590 ln conftest.a conftest.b 2>&5 || hard_links=no
12591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12592 { echo "$as_me:$LINENO: result: $hard_links" >&5
12593 echo "${ECHO_T}$hard_links" >&6; }
12594 if test "$hard_links" = no; then
12595 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12596 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12603 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12609 # If we're using GNU nm, then we don't want the "-C" option.
12610 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12611 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12612 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'
12614 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'
12618 export_symbols_cmds_CXX="$ltdll_cmds"
12621 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'
12624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12628 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12629 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12630 test "$ld_shlibs_CXX" = no && can_build_shared=no
12633 # Do we need to explicitly link libc?
12635 case "x$archive_cmds_need_lc_CXX" in
12637 # Assume -lc should be added
12638 archive_cmds_need_lc_CXX=yes
12640 if test "$enable_shared" = yes && test "$GCC" = yes; then
12641 case $archive_cmds_CXX in
12643 # FIXME: we may have to deal with multi-command sequences.
12646 # Test whether the compiler implicitly links with -lc since on some
12647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12648 # to ld, don't add -lc before -lgcc.
12649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } 2>conftest.err; then
12661 libobjs=conftest.$ac_objext
12663 wl=$lt_prog_compiler_wl_CXX
12664 pic_flag=$lt_prog_compiler_pic_CXX
12670 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12671 allow_undefined_flag_CXX=
12672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12673 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }
12678 archive_cmds_need_lc_CXX=no
12680 archive_cmds_need_lc_CXX=yes
12682 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12684 cat conftest.err 1>&5
12687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12688 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12697 library_names_spec=
12698 libname_spec='lib$name'
12702 postuninstall_cmds=
12706 shlibpath_overrides_runpath=unknown
12708 dynamic_linker="$host_os ld.so"
12709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12710 if test "$GCC" = yes; then
12711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12713 # if the path contains ";" then we assume it to be the separator
12714 # otherwise default to the standard path separator (i.e. ":") - it is
12715 # assumed that no part of a normal pathname contains ";" but that should
12716 # okay in the real world where ";" in dirpaths is itself problematic.
12717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12724 need_lib_prefix=unknown
12725 hardcode_into_libs=no
12727 # when you set need_version to no, make sure it does not cause -set_version
12728 # flags to be left without arguments
12729 need_version=unknown
12734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12735 shlibpath_var=LIBPATH
12737 # AIX 3 has no versioning support, so we append a major version to the name.
12738 soname_spec='${libname}${release}${shared_ext}$major'
12745 hardcode_into_libs=yes
12746 if test "$host_cpu" = ia64; then
12747 # AIX 5 supports IA64
12748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12749 shlibpath_var=LD_LIBRARY_PATH
12751 # With GCC up to 2.95.x, collect2 would create an import file
12752 # for dependence libraries. The import file would start with
12753 # the line `#! .'. This would cause the generated library to
12754 # depend on `.', always an invalid library. This was fixed in
12755 # development snapshots of GCC prior to 3.0.
12757 aix4 | aix4.[01] | aix4.[01].*)
12758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12763 can_build_shared=no
12767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12768 # soname into executable. Probably we can add versioning support to
12769 # collect2, so additional links can be useful in future.
12770 if test "$aix_use_runtimelinking" = yes; then
12771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12772 # instead of lib<name>.a to let people know that these are not
12773 # typical AIX shared libraries.
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 # We preserve .a as extension for shared libraries through AIX4.2
12777 # and later when we are not doing run time linking.
12778 library_names_spec='${libname}${release}.a $libname.a'
12779 soname_spec='${libname}${release}${shared_ext}$major'
12781 shlibpath_var=LIBPATH
12786 library_names_spec='$libname.ixlibrary $libname.a'
12787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12788 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'
12792 library_names_spec='${libname}${shared_ext}'
12793 dynamic_linker="$host_os ld.so"
12794 shlibpath_var=LIBRARY_PATH
12800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12801 soname_spec='${libname}${release}${shared_ext}$major'
12802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12803 shlibpath_var=LD_LIBRARY_PATH
12804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12806 # the default ld.so.conf also contains /usr/contrib/lib and
12807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12808 # libtool to hard-code these into programs
12811 cygwin* | mingw* | pw32*)
12812 version_type=windows
12817 case $GCC,$host_os in
12818 yes,cygwin* | yes,mingw* | yes,pw32*)
12819 library_names_spec='$libname.dll.a'
12820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12821 postinstall_cmds='base_file=`basename \${file}`~
12822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12823 dldir=$destdir/`dirname \$dlpath`~
12824 test -d \$dldir || mkdir -p \$dldir~
12825 $install_prog $dir/$dlname \$dldir/$dlname~
12826 chmod a+x \$dldir/$dlname'
12827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12828 dlpath=$dir/\$dldll~
12830 shlibpath_overrides_runpath=yes
12834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12839 # MinGW DLLs use traditional 'lib' prefix
12840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12843 # It is most probably a Windows format PATH printed by
12844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12845 # path with ; separators, and with drive letters. We can handle the
12846 # drive letters (cygwin fileutils understands them), so leave them,
12847 # especially as we might pass files found there to a mingw objdump,
12848 # which wouldn't understand a cygwinified path. Ahh.
12849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12855 # pw32 DLLs use 'pw' prefix rather than 'lib'
12856 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12865 dynamic_linker='Win32 ld.exe'
12866 # FIXME: first we should search . and the directory the executable is in
12870 darwin* | rhapsody*)
12871 dynamic_linker="$host_os dyld"
12872 version_type=darwin
12875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12876 soname_spec='${libname}${release}${major}$shared_ext'
12877 shlibpath_overrides_runpath=yes
12878 shlibpath_var=DYLD_LIBRARY_PATH
12879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12881 if test "$GCC" = yes; then
12882 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"`
12884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12894 soname_spec='${libname}${release}${shared_ext}$major'
12895 shlibpath_var=LD_LIBRARY_PATH
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 shlibpath_overrides_runpath=no
12910 hardcode_into_libs=yes
12911 dynamic_linker='GNU ld.so'
12914 freebsd* | dragonfly*)
12915 # DragonFly does not have aout. When/if they implement a new
12916 # versioning mechanism, adjust this.
12917 if test -x /usr/bin/objformat; then
12918 objformat=`/usr/bin/objformat`
12921 freebsd[123]*) objformat=aout ;;
12922 *) objformat=elf ;;
12925 version_type=freebsd-$objformat
12926 case $version_type in
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12937 shlibpath_var=LD_LIBRARY_PATH
12940 shlibpath_overrides_runpath=yes
12942 freebsd3.[01]* | freebsdelf3.[01]*)
12943 shlibpath_overrides_runpath=yes
12944 hardcode_into_libs=yes
12946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12948 shlibpath_overrides_runpath=no
12949 hardcode_into_libs=yes
12951 freebsd*) # from 4.6 on
12952 shlibpath_overrides_runpath=yes
12953 hardcode_into_libs=yes
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 hardcode_into_libs=yes
12968 hpux9* | hpux10* | hpux11*)
12969 # Give a soname corresponding to the major version so that dld.sl refuses to
12970 # link against other versions.
12977 hardcode_into_libs=yes
12978 dynamic_linker="$host_os dld.so"
12979 shlibpath_var=LD_LIBRARY_PATH
12980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982 soname_spec='${libname}${release}${shared_ext}$major'
12983 if test "X$HPUX_IA64_MODE" = X32; then
12984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12992 hardcode_into_libs=yes
12993 dynamic_linker="$host_os dld.sl"
12994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12997 soname_spec='${libname}${release}${shared_ext}$major'
12998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13003 dynamic_linker="$host_os dld.sl"
13004 shlibpath_var=SHLIB_PATH
13005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13011 postinstall_cmds='chmod 555 $lib'
13018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 shlibpath_overrides_runpath=no
13023 hardcode_into_libs=yes
13026 irix5* | irix6* | nonstopux*)
13028 nonstopux*) version_type=nonstopux ;;
13030 if test "$lt_cv_prog_gnu_ld" = yes; then
13038 soname_spec='${libname}${release}${shared_ext}$major'
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041 irix5* | nonstopux*)
13042 libsuff= shlibsuff=
13045 case $LD in # libtool.m4 will add one of these switches to LD
13046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13047 libsuff= shlibsuff= libmagic=32-bit;;
13048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13049 libsuff=32 shlibsuff=N32 libmagic=N32;;
13050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13052 *) libsuff= shlibsuff= libmagic=never-match;;
13056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13057 shlibpath_overrides_runpath=no
13058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13060 hardcode_into_libs=yes
13063 # No shared lib support for Linux oldld, aout, or coff.
13064 linux*oldld* | linux*aout* | linux*coff*)
13068 # This must be Linux ELF.
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13076 shlibpath_var=LD_LIBRARY_PATH
13077 shlibpath_overrides_runpath=no
13078 # This implies no fast_install, which is unacceptable.
13079 # Some rework will be needed to allow for fast_install
13080 # before this can be enabled.
13081 hardcode_into_libs=yes
13083 # Append ld.so.conf contents to the search path
13084 if test -f /etc/ld.so.conf; then
13085 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' ' '`
13086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13089 # We used to test for /lib/ld.so.1 and disable shared libraries on
13090 # powerpc, because MkLinux only supported shared libraries with the
13091 # GNU dynamic linker. Since this was broken with cross compilers,
13092 # most powerpc-linux boxes support dynamic linking these days and
13093 # people can always --disable-shared, the test was removed, and we
13094 # assume the GNU/Linux dynamic linker is in use.
13095 dynamic_linker='GNU/Linux ld.so'
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13103 soname_spec='${libname}${release}${shared_ext}$major'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=no
13106 hardcode_into_libs=yes
13107 dynamic_linker='GNU ld.so'
13114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13117 dynamic_linker='NetBSD (a.out) ld.so'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 dynamic_linker='NetBSD ld.elf_so'
13123 shlibpath_var=LD_LIBRARY_PATH
13124 shlibpath_overrides_runpath=yes
13125 hardcode_into_libs=yes
13130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=yes
13139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13140 soname_spec='${libname}${release}${shared_ext}$major'
13141 shlibpath_var=LD_LIBRARY_PATH
13142 shlibpath_overrides_runpath=yes
13147 sys_lib_dlsearch_path_spec="/usr/lib"
13149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13152 *) need_version=no ;;
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 openbsd2.[89] | openbsd2.[89].*)
13160 shlibpath_overrides_runpath=no
13163 shlibpath_overrides_runpath=yes
13167 shlibpath_overrides_runpath=yes
13172 libname_spec='$name'
13175 library_names_spec='$libname${shared_ext} $libname.a'
13176 dynamic_linker='OS/2 ld.exe'
13177 shlibpath_var=LIBPATH
13180 osf3* | osf4* | osf5*)
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 shlibpath_var=LD_LIBRARY_PATH
13187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 shlibpath_var=LD_LIBRARY_PATH
13198 shlibpath_overrides_runpath=yes
13199 hardcode_into_libs=yes
13200 # ldd complains unless libraries are executable
13201 postinstall_cmds='chmod +x $lib'
13206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13208 shlibpath_var=LD_LIBRARY_PATH
13209 shlibpath_overrides_runpath=yes
13210 if test "$with_gnu_ld" = yes; then
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13221 case $host_vendor in
13223 shlibpath_overrides_runpath=no
13225 export_dynamic_flag_spec='${wl}-Blargedynsym'
13226 runpath_var=LD_RUN_PATH
13234 shlibpath_overrides_runpath=no
13235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13241 if test -d /usr/nec ;then
13243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13244 soname_spec='$libname${shared_ext}.$major'
13245 shlibpath_var=LD_LIBRARY_PATH
13249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13250 version_type=freebsd-elf
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254 soname_spec='${libname}${release}${shared_ext}$major'
13255 shlibpath_var=LD_LIBRARY_PATH
13256 hardcode_into_libs=yes
13257 if test "$with_gnu_ld" = yes; then
13258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13259 shlibpath_overrides_runpath=no
13261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13262 shlibpath_overrides_runpath=yes
13265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13269 sys_lib_dlsearch_path_spec='/usr/lib'
13274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13275 soname_spec='${libname}${release}${shared_ext}$major'
13276 shlibpath_var=LD_LIBRARY_PATH
13283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13284 echo "${ECHO_T}$dynamic_linker" >&6; }
13285 test "$dynamic_linker" = no && can_build_shared=no
13287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13288 if test "$GCC" = yes; then
13289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13292 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13294 hardcode_action_CXX=
13295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13296 test -n "$runpath_var_CXX" || \
13297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13299 # We can hardcode non-existant directories.
13300 if test "$hardcode_direct_CXX" != no &&
13301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13302 # have to relink, otherwise we might link with an installed library
13303 # when we should be linking with a yet-to-be-installed one
13304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13305 test "$hardcode_minus_L_CXX" != no; then
13306 # Linking always hardcodes the temporary library directory.
13307 hardcode_action_CXX=relink
13309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13310 hardcode_action_CXX=immediate
13313 # We cannot hardcode anything, or else we can only hardcode existing
13315 hardcode_action_CXX=unsupported
13317 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13318 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13320 if test "$hardcode_action_CXX" = relink; then
13321 # Fast installation is not supported
13322 enable_fast_install=no
13323 elif test "$shlibpath_overrides_runpath" = yes ||
13324 test "$enable_shared" = no; then
13325 # Fast installation is not necessary
13326 enable_fast_install=needless
13330 # The else clause should only fire when bootstrapping the
13331 # libtool distribution, otherwise you forgot to ship ltmain.sh
13332 # with your package, and you will get complaints that there are
13333 # no rules to generate ltmain.sh.
13334 if test -f "$ltmain"; then
13335 # See if we are running on zsh, and set the options which allow our commands through
13336 # without removal of \ escapes.
13337 if test -n "${ZSH_VERSION+set}" ; then
13338 setopt NO_GLOB_SUBST
13340 # Now quote all the things that may contain metacharacters while being
13341 # careful not to overquote the AC_SUBSTed values. We take copies of the
13342 # variables and quote the copies for generation of the libtool script.
13343 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13347 deplibs_check_method reload_flag reload_cmds need_locks \
13348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13349 lt_cv_sys_global_symbol_to_c_name_address \
13350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13351 old_postinstall_cmds old_postuninstall_cmds \
13355 lt_prog_compiler_wl_CXX \
13356 lt_prog_compiler_pic_CXX \
13357 lt_prog_compiler_static_CXX \
13358 lt_prog_compiler_no_builtin_flag_CXX \
13359 export_dynamic_flag_spec_CXX \
13360 thread_safe_flag_spec_CXX \
13361 whole_archive_flag_spec_CXX \
13362 enable_shared_with_static_runtimes_CXX \
13363 old_archive_cmds_CXX \
13364 old_archive_from_new_cmds_CXX \
13365 predep_objects_CXX \
13366 postdep_objects_CXX \
13369 compiler_lib_search_path_CXX \
13371 archive_expsym_cmds_CXX \
13372 postinstall_cmds_CXX \
13373 postuninstall_cmds_CXX \
13374 old_archive_from_expsyms_cmds_CXX \
13375 allow_undefined_flag_CXX \
13376 no_undefined_flag_CXX \
13377 export_symbols_cmds_CXX \
13378 hardcode_libdir_flag_spec_CXX \
13379 hardcode_libdir_flag_spec_ld_CXX \
13380 hardcode_libdir_separator_CXX \
13381 hardcode_automatic_CXX \
13383 module_expsym_cmds_CXX \
13384 lt_cv_prog_compiler_c_o_CXX \
13385 exclude_expsyms_CXX \
13386 include_expsyms_CXX; do
13389 old_archive_cmds_CXX | \
13390 old_archive_from_new_cmds_CXX | \
13391 archive_cmds_CXX | \
13392 archive_expsym_cmds_CXX | \
13393 module_cmds_CXX | \
13394 module_expsym_cmds_CXX | \
13395 old_archive_from_expsyms_cmds_CXX | \
13396 export_symbols_cmds_CXX | \
13397 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13398 postinstall_cmds | postuninstall_cmds | \
13399 old_postinstall_cmds | old_postuninstall_cmds | \
13400 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13401 # Double-quote double-evaled strings.
13402 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13411 *'\$0 --fallback-echo"')
13412 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13418 cat <<__EOF__ >> "$cfgfile"
13419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423 # Shell to use when invoking shell scripts.
13426 # Whether or not to build shared libraries.
13427 build_libtool_libs=$enable_shared
13429 # Whether or not to build static libraries.
13430 build_old_libs=$enable_static
13432 # Whether or not to add -lc for building shared libraries.
13433 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13435 # Whether or not to disallow shared libs when runtime libs are static
13436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13438 # Whether or not to optimize for fast installation.
13439 fast_install=$enable_fast_install
13442 host_alias=$host_alias
13446 # The build system.
13447 build_alias=$build_alias
13451 # An echo program that does not interpret backslashes.
13456 AR_FLAGS=$lt_AR_FLAGS
13461 # LTCC compiler flags.
13462 LTCFLAGS=$lt_LTCFLAGS
13464 # A language-specific compiler.
13465 CC=$lt_compiler_CXX
13467 # Is the compiler the GNU C compiler?
13473 # The linker used to build libraries.
13476 # Whether we need hard or soft links.
13479 # A BSD-compatible nm program.
13482 # A symbol stripping program
13485 # Used to examine libraries when file_magic_cmd begins "file"
13486 MAGIC_CMD=$MAGIC_CMD
13488 # Used on cygwin: DLL creation program.
13491 # Used on cygwin: object dumper.
13494 # Used on cygwin: assembler.
13497 # The name of the directory that contains temporary libtool files.
13500 # How to create reloadable object files.
13501 reload_flag=$lt_reload_flag
13502 reload_cmds=$lt_reload_cmds
13504 # How to pass a linker flag through the compiler.
13505 wl=$lt_lt_prog_compiler_wl_CXX
13507 # Object file suffix (normally "o").
13508 objext="$ac_objext"
13510 # Old archive suffix (normally "a").
13513 # Shared library suffix (normally ".so").
13514 shrext_cmds='$shrext_cmds'
13516 # Executable file suffix (normally "").
13519 # Additional compiler flags for building library objects.
13520 pic_flag=$lt_lt_prog_compiler_pic_CXX
13523 # What is the maximum length of a command?
13524 max_cmd_len=$lt_cv_sys_max_cmd_len
13526 # Does compiler simultaneously support -c and -o options?
13527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13529 # Must we lock files when doing compilation?
13530 need_locks=$lt_need_locks
13532 # Do we need the lib prefix for modules?
13533 need_lib_prefix=$need_lib_prefix
13535 # Do we need a version for libraries?
13536 need_version=$need_version
13538 # Whether dlopen is supported.
13539 dlopen_support=$enable_dlopen
13541 # Whether dlopen of programs is supported.
13542 dlopen_self=$enable_dlopen_self
13544 # Whether dlopen of statically linked programs is supported.
13545 dlopen_self_static=$enable_dlopen_self_static
13547 # Compiler flag to prevent dynamic linking.
13548 link_static_flag=$lt_lt_prog_compiler_static_CXX
13550 # Compiler flag to turn off builtin functions.
13551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13553 # Compiler flag to allow reflexive dlopens.
13554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13556 # Compiler flag to generate shared objects directly from archives.
13557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13559 # Compiler flag to generate thread-safe objects.
13560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13562 # Library versioning type.
13563 version_type=$version_type
13565 # Format of library name prefix.
13566 libname_spec=$lt_libname_spec
13568 # List of archive names. First name is the real one, the rest are links.
13569 # The last name is the one that the linker finds with -lNAME.
13570 library_names_spec=$lt_library_names_spec
13572 # The coded name of the library, if different from the real name.
13573 soname_spec=$lt_soname_spec
13575 # Commands used to build and install an old-style archive.
13577 old_archive_cmds=$lt_old_archive_cmds_CXX
13578 old_postinstall_cmds=$lt_old_postinstall_cmds
13579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13581 # Create an old-style archive from a shared archive.
13582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13584 # Create a temporary old-style archive to link instead of a shared archive.
13585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13587 # Commands used to build and install a shared archive.
13588 archive_cmds=$lt_archive_cmds_CXX
13589 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13590 postinstall_cmds=$lt_postinstall_cmds
13591 postuninstall_cmds=$lt_postuninstall_cmds
13593 # Commands used to build a loadable module (assumed same as above if empty)
13594 module_cmds=$lt_module_cmds_CXX
13595 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13597 # Commands to strip libraries.
13598 old_striplib=$lt_old_striplib
13599 striplib=$lt_striplib
13601 # Dependencies to place before the objects being linked to create a
13603 predep_objects=$lt_predep_objects_CXX
13605 # Dependencies to place after the objects being linked to create a
13607 postdep_objects=$lt_postdep_objects_CXX
13609 # Dependencies to place before the objects being linked to create a
13611 predeps=$lt_predeps_CXX
13613 # Dependencies to place after the objects being linked to create a
13615 postdeps=$lt_postdeps_CXX
13617 # The library search path used internally by the compiler when linking
13618 # a shared library.
13619 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13621 # Method to check whether dependent libraries are shared objects.
13622 deplibs_check_method=$lt_deplibs_check_method
13624 # Command to use when deplibs_check_method == file_magic.
13625 file_magic_cmd=$lt_file_magic_cmd
13627 # Flag that allows shared libraries with undefined symbols to be built.
13628 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13630 # Flag that forces no undefined symbols.
13631 no_undefined_flag=$lt_no_undefined_flag_CXX
13633 # Commands used to finish a libtool library installation in a directory.
13634 finish_cmds=$lt_finish_cmds
13636 # Same as above, but a single script fragment to be evaled but not shown.
13637 finish_eval=$lt_finish_eval
13639 # Take the output of nm and produce a listing of raw symbols and C names.
13640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642 # Transform the output of nm in a proper C declaration
13643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645 # Transform the output of nm in a C name address pair
13646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648 # This is the shared library runtime path variable.
13649 runpath_var=$runpath_var
13651 # This is the shared library path variable.
13652 shlibpath_var=$shlibpath_var
13654 # Is shlibpath searched before the hard-coded library search path?
13655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13657 # How to hardcode a shared library path into an executable.
13658 hardcode_action=$hardcode_action_CXX
13660 # Whether we should hardcode library paths into libraries.
13661 hardcode_into_libs=$hardcode_into_libs
13663 # Flag to hardcode \$libdir into a binary during linking.
13664 # This must work even if \$libdir does not exist.
13665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13667 # If ld is used when linking, flag to hardcode \$libdir into
13668 # a binary during linking. This must work even if \$libdir does
13670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13672 # Whether we need a single -rpath flag with a separated argument.
13673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13676 # resulting binary.
13677 hardcode_direct=$hardcode_direct_CXX
13679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13680 # resulting binary.
13681 hardcode_minus_L=$hardcode_minus_L_CXX
13683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13684 # the resulting binary.
13685 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13687 # Set to yes if building a shared library automatically hardcodes DIR into the library
13688 # and all subsequent libraries and executables linked against it.
13689 hardcode_automatic=$hardcode_automatic_CXX
13691 # Variables whose values should be saved in libtool wrapper scripts and
13692 # restored at relink time.
13693 variables_saved_for_relink="$variables_saved_for_relink"
13695 # Whether libtool must link a program against all its dependency libraries.
13696 link_all_deplibs=$link_all_deplibs_CXX
13698 # Compile-time system search path for libraries
13699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13701 # Run-time system search path for libraries
13702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13704 # Fix the shell variable \$srcfile for the compiler.
13705 fix_srcfile_path="$fix_srcfile_path_CXX"
13707 # Set to yes if exported symbols are required.
13708 always_export_symbols=$always_export_symbols_CXX
13710 # The commands to list exported symbols.
13711 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13713 # The commands to extract the exported symbol list from a shared archive.
13714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13716 # Symbols that should not be listed in the preloaded symbols.
13717 exclude_expsyms=$lt_exclude_expsyms_CXX
13719 # Symbols that must always be exported.
13720 include_expsyms=$lt_include_expsyms_CXX
13722 # ### END LIBTOOL TAG CONFIG: $tagname
13728 # If there is no Makefile yet, we rely on a make rule to execute
13729 # `config.status --recheck' to rerun these tests and create the
13730 # libtool script then.
13731 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13732 if test -f "$ltmain_in"; then
13733 test -f Makefile && make "$ltmain"
13739 ac_cpp='$CPP $CPPFLAGS'
13740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748 with_gnu_ldcxx=$with_gnu_ld
13749 with_gnu_ld=$lt_save_with_gnu_ld
13750 lt_cv_path_LDCXX=$lt_cv_path_LD
13751 lt_cv_path_LD=$lt_save_path_LD
13752 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13753 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13761 if test -n "$F77" && test "X$F77" != "Xno"; then
13764 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13765 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13766 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13769 archive_cmds_need_lc_F77=no
13770 allow_undefined_flag_F77=
13771 always_export_symbols_F77=no
13772 archive_expsym_cmds_F77=
13773 export_dynamic_flag_spec_F77=
13774 hardcode_direct_F77=no
13775 hardcode_libdir_flag_spec_F77=
13776 hardcode_libdir_flag_spec_ld_F77=
13777 hardcode_libdir_separator_F77=
13778 hardcode_minus_L_F77=no
13779 hardcode_automatic_F77=no
13781 module_expsym_cmds_F77=
13782 link_all_deplibs_F77=unknown
13783 old_archive_cmds_F77=$old_archive_cmds
13784 no_undefined_flag_F77=
13785 whole_archive_flag_spec_F77=
13786 enable_shared_with_static_runtimes_F77=no
13788 # Source file extension for f77 test sources.
13791 # Object file extension for compiled f77 test sources.
13795 # Code to be used in simple compile tests
13796 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13798 # Code to be used in simple link tests
13799 lt_simple_link_test_code=" program t\n end\n"
13801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13803 # If no C compiler was specified, use CC.
13806 # If no C compiler flags were specified, use CFLAGS.
13807 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13809 # Allow CC to be a program name with arguments.
13813 # save warnings/boilerplate of simple test code
13814 ac_outfile=conftest.$ac_objext
13815 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13816 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13817 _lt_compiler_boilerplate=`cat conftest.err`
13820 ac_outfile=conftest.$ac_objext
13821 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13822 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13823 _lt_linker_boilerplate=`cat conftest.err`
13827 # Allow CC to be a program name with arguments.
13832 for cc_temp in $compiler""; do
13834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13840 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13846 echo "${ECHO_T}$can_build_shared" >&6; }
13848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13850 test "$can_build_shared" = "no" && enable_shared=no
13852 # On AIX, shared libraries and static libraries use the same namespace, and
13853 # are all built from PIC.
13856 test "$enable_shared" = yes && enable_static=no
13857 if test -n "$RANLIB"; then
13858 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13859 postinstall_cmds='$RANLIB $lib'
13863 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13864 test "$enable_shared" = yes && enable_static=no
13868 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13869 echo "${ECHO_T}$enable_shared" >&6; }
13871 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13872 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13873 # Make sure either enable_shared or enable_static is yes.
13874 test "$enable_shared" = yes || enable_static=yes
13875 { echo "$as_me:$LINENO: result: $enable_static" >&5
13876 echo "${ECHO_T}$enable_static" >&6; }
13881 lt_prog_compiler_wl_F77=
13882 lt_prog_compiler_pic_F77=
13883 lt_prog_compiler_static_F77=
13885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13888 if test "$GCC" = yes; then
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_static_F77='-static'
13894 # All AIX code is PIC.
13895 if test "$host_cpu" = ia64; then
13896 # AIX 5 now supports IA64 processor
13897 lt_prog_compiler_static_F77='-Bstatic'
13902 # FIXME: we need at least 68020 code to build shared libraries, but
13903 # adding the `-m68020' flag to GCC prevents building anything better,
13905 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13909 # PIC is the default for these OSes.
13912 mingw* | pw32* | os2*)
13913 # This hack is so that the source file can tell whether it is being
13914 # built for inclusion in a dll (and should export symbols for example).
13915 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13918 darwin* | rhapsody*)
13919 # PIC is the default on this platform
13920 # Common symbols not allowed in MH_DYLIB files
13921 lt_prog_compiler_pic_F77='-fno-common'
13925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13926 # Instead, we relocate shared libraries at runtime.
13930 # Just because we use GCC doesn't mean we suddenly get shared libraries
13931 # on systems that don't support them.
13932 lt_prog_compiler_can_build_shared_F77=no
13937 if test -d /usr/nec; then
13938 lt_prog_compiler_pic_F77=-Kconform_pic
13943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13944 # not for PA HP-UX.
13950 lt_prog_compiler_pic_F77='-fPIC'
13956 lt_prog_compiler_pic_F77='-fPIC'
13960 # PORTME Check for flag to pass linker flags through the system compiler.
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 if test "$host_cpu" = ia64; then
13965 # AIX 5 now supports IA64 processor
13966 lt_prog_compiler_static_F77='-Bstatic'
13968 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13972 # PIC is the default on this platform
13973 # Common symbols not allowed in MH_DYLIB files
13974 case $cc_basename in
13976 lt_prog_compiler_pic_F77='-qnocommon'
13977 lt_prog_compiler_wl_F77='-Wl,'
13982 mingw* | pw32* | os2*)
13983 # This hack is so that the source file can tell whether it is being
13984 # built for inclusion in a dll (and should export symbols for example).
13985 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13988 hpux9* | hpux10* | hpux11*)
13989 lt_prog_compiler_wl_F77='-Wl,'
13990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13991 # not for PA HP-UX.
13997 lt_prog_compiler_pic_F77='+Z'
14000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14001 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14004 irix5* | irix6* | nonstopux*)
14005 lt_prog_compiler_wl_F77='-Wl,'
14006 # PIC (with -KPIC) is the default.
14007 lt_prog_compiler_static_F77='-non_shared'
14011 lt_prog_compiler_pic_F77='-KPIC'
14012 lt_prog_compiler_static_F77='-Bstatic'
14016 case $cc_basename in
14018 lt_prog_compiler_wl_F77='-Wl,'
14019 lt_prog_compiler_pic_F77='-KPIC'
14020 lt_prog_compiler_static_F77='-static'
14022 pgcc* | pgf77* | pgf90* | pgf95*)
14023 # Portland Group compilers (*not* the Pentium gcc compiler,
14024 # which looks to be a dead project)
14025 lt_prog_compiler_wl_F77='-Wl,'
14026 lt_prog_compiler_pic_F77='-fpic'
14027 lt_prog_compiler_static_F77='-Bstatic'
14030 lt_prog_compiler_wl_F77='-Wl,'
14031 # All Alpha code is PIC.
14032 lt_prog_compiler_static_F77='-non_shared'
14037 osf3* | osf4* | osf5*)
14038 lt_prog_compiler_wl_F77='-Wl,'
14039 # All OSF/1 code is PIC.
14040 lt_prog_compiler_static_F77='-non_shared'
14044 lt_prog_compiler_pic_F77='-KPIC'
14045 lt_prog_compiler_static_F77='-Bstatic'
14046 case $cc_basename in
14047 f77* | f90* | f95*)
14048 lt_prog_compiler_wl_F77='-Qoption ld ';;
14050 lt_prog_compiler_wl_F77='-Wl,';;
14055 lt_prog_compiler_wl_F77='-Qoption ld '
14056 lt_prog_compiler_pic_F77='-PIC'
14057 lt_prog_compiler_static_F77='-Bstatic'
14060 sysv4 | sysv4.2uw2* | sysv4.3*)
14061 lt_prog_compiler_wl_F77='-Wl,'
14062 lt_prog_compiler_pic_F77='-KPIC'
14063 lt_prog_compiler_static_F77='-Bstatic'
14067 if test -d /usr/nec ;then
14068 lt_prog_compiler_pic_F77='-Kconform_pic'
14069 lt_prog_compiler_static_F77='-Bstatic'
14073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14074 lt_prog_compiler_wl_F77='-Wl,'
14075 lt_prog_compiler_pic_F77='-KPIC'
14076 lt_prog_compiler_static_F77='-Bstatic'
14080 lt_prog_compiler_wl_F77='-Wl,'
14081 lt_prog_compiler_can_build_shared_F77=no
14085 lt_prog_compiler_pic_F77='-pic'
14086 lt_prog_compiler_static_F77='-Bstatic'
14090 lt_prog_compiler_can_build_shared_F77=no
14095 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14096 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14099 # Check to make sure the PIC flag actually works.
14101 if test -n "$lt_prog_compiler_pic_F77"; then
14103 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14104 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14105 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 lt_prog_compiler_pic_works_F77=no
14109 ac_outfile=conftest.$ac_objext
14110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14111 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14112 # Insert the option either (1) after the last *FLAGS variable, or
14113 # (2) before a word containing "conftest.", or (3) at the end.
14114 # Note that $ac_compile itself does not contain backslashes and begins
14115 # with a dollar sign (not a hyphen), so the echo should work correctly.
14116 # The option is referenced via a variable to avoid confusing sed.
14117 lt_compile=`echo "$ac_compile" | $SED \
14118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14120 -e 's:$: $lt_compiler_flag:'`
14121 (eval echo "\"\$as_me:14121: $lt_compile\"" >&5)
14122 (eval "$lt_compile" 2>conftest.err)
14124 cat conftest.err >&5
14125 echo "$as_me:14125: \$? = $ac_status" >&5
14126 if (exit $ac_status) && test -s "$ac_outfile"; then
14127 # The compiler can only warn and ignore the option if not recognized
14128 # So say no if there are warnings other than the usual output.
14129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14132 lt_prog_compiler_pic_works_F77=yes
14138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14139 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14141 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14142 case $lt_prog_compiler_pic_F77 in
14144 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14147 lt_prog_compiler_pic_F77=
14148 lt_prog_compiler_can_build_shared_F77=no
14153 # For platforms which do not support PIC, -DPIC is meaningless:
14155 lt_prog_compiler_pic_F77=
14158 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14163 # Check to make sure the static flag actually works.
14165 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14166 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14167 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14168 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 lt_prog_compiler_static_works_F77=no
14172 save_LDFLAGS="$LDFLAGS"
14173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176 # The linker can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 if test -s conftest.err; then
14179 # Append any errors to the config.log.
14180 cat conftest.err 1>&5
14181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_prog_compiler_static_works_F77=yes
14187 lt_prog_compiler_static_works_F77=yes
14191 LDFLAGS="$save_LDFLAGS"
14194 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14195 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14197 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14200 lt_prog_compiler_static_F77=
14204 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14205 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14206 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 lt_cv_prog_compiler_c_o_F77=no
14210 $rm -r conftest 2>/dev/null
14214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 lt_compiler_flag="-o out/conftest2.$ac_objext"
14217 # Insert the option either (1) after the last *FLAGS variable, or
14218 # (2) before a word containing "conftest.", or (3) at the end.
14219 # Note that $ac_compile itself does not contain backslashes and begins
14220 # with a dollar sign (not a hyphen), so the echo should work correctly.
14221 lt_compile=`echo "$ac_compile" | $SED \
14222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224 -e 's:$: $lt_compiler_flag:'`
14225 (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226 (eval "$lt_compile" 2>out/conftest.err)
14228 cat out/conftest.err >&5
14229 echo "$as_me:14229: \$? = $ac_status" >&5
14230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232 # The compiler can only warn and ignore the option if not recognized
14233 # So say no if there are warnings
14234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14237 lt_cv_prog_compiler_c_o_F77=yes
14242 # SGI C++ compiler will create directory out/ii_files/ for
14243 # template instantiation
14244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14245 $rm out/* && rmdir out
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14255 hard_links="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14257 # do not overwrite the value of need_locks provided by the user
14258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 ln conftest.a conftest.b 2>&5 || hard_links=no
14265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268 if test "$hard_links" = no; then
14269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14281 allow_undefined_flag_F77=
14282 enable_shared_with_static_runtimes_F77=no
14284 archive_expsym_cmds_F77=
14285 old_archive_From_new_cmds_F77=
14286 old_archive_from_expsyms_cmds_F77=
14287 export_dynamic_flag_spec_F77=
14288 whole_archive_flag_spec_F77=
14289 thread_safe_flag_spec_F77=
14290 hardcode_libdir_flag_spec_F77=
14291 hardcode_libdir_flag_spec_ld_F77=
14292 hardcode_libdir_separator_F77=
14293 hardcode_direct_F77=no
14294 hardcode_minus_L_F77=no
14295 hardcode_shlibpath_var_F77=unsupported
14296 link_all_deplibs_F77=unknown
14297 hardcode_automatic_F77=no
14299 module_expsym_cmds_F77=
14300 always_export_symbols_F77=no
14301 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302 # include_expsyms should be a list of space-separated symbols to be *always*
14303 # included in the symbol list
14304 include_expsyms_F77=
14305 # exclude_expsyms can be an extended regexp of symbols to exclude
14306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308 # as well as any symbol that contains `d'.
14309 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311 # platforms (ab)use it in PIC code, but their linkers get confused if
14312 # the symbol is explicitly referenced. Since portable code cannot
14313 # rely on this symbol name, it's probably fine to never include it in
14314 # preloaded symbol tables.
14315 extract_expsyms_cmds=
14316 # Just being paranoid about ensuring that cc_basename is set.
14317 for cc_temp in $compiler""; do
14319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14325 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14328 cygwin* | mingw* | pw32*)
14329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14330 # When not using gcc, we currently assume that we are using
14331 # Microsoft Visual C++.
14332 if test "$GCC" != yes; then
14337 # we just hope/assume this is gcc and not c89 (= MSVC++)
14346 if test "$with_gnu_ld" = yes; then
14347 # If archive_cmds runs LD, not CC, wlarc should be empty
14350 # Set some defaults for GNU ld with shared library support. These
14351 # are reset later if shared libraries are not supported. Putting them
14352 # here allows them to be overridden if necessary.
14353 runpath_var=LD_RUN_PATH
14354 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14355 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14356 # ancient GNU ld didn't support --whole-archive et. al.
14357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14358 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360 whole_archive_flag_spec_F77=
14362 supports_anon_versioning=no
14363 case `$LD -v 2>/dev/null` in
14364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14367 *\ 2.11.*) ;; # other 2.11 versions
14368 *) supports_anon_versioning=yes ;;
14371 # See if GNU ld supports shared libraries.
14373 aix3* | aix4* | aix5*)
14374 # On AIX/PPC, the GNU linker is very broken
14375 if test "$host_cpu" != ia64; then
14379 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14380 *** to be unable to reliably create shared libraries on AIX.
14381 *** Therefore, libtool is disabling shared libraries support. If you
14382 *** really care for shared libraries, you may want to modify your PATH
14383 *** so that a non-GNU linker is found, and then restart.
14390 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)'
14391 hardcode_libdir_flag_spec_F77='-L$libdir'
14392 hardcode_minus_L_F77=yes
14394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14395 # that the semantics of dynamic libraries on AmigaOS, at least up
14396 # to version 4, is to share data among multiple programs linked
14397 # with the same dynamic library. Since this doesn't match the
14398 # behavior of shared libraries on other platforms, we can't use
14404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14405 allow_undefined_flag_F77=unsupported
14406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14407 # support --undefined. This deserves some investigation. FIXME
14408 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414 cygwin* | mingw* | pw32*)
14415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14416 # as there is no search path for DLLs.
14417 hardcode_libdir_flag_spec_F77='-L$libdir'
14418 allow_undefined_flag_F77=unsupported
14419 always_export_symbols_F77=no
14420 enable_shared_with_static_runtimes_F77=yes
14421 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14425 # If the export-symbols file already is a .def file (1st line
14426 # is EXPORTS), use it as is; otherwise, prepend...
14427 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14428 cp $export_symbols $output_objdir/$soname.def;
14430 echo EXPORTS > $output_objdir/$soname.def;
14431 cat $export_symbols >> $output_objdir/$soname.def;
14433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14440 hardcode_direct_F77=no
14441 hardcode_shlibpath_var_F77=no
14442 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14443 export_dynamic_flag_spec_F77='${wl}-E'
14444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14445 # Instead, shared libraries are loaded at an image base (0x10000000 by
14446 # default) and relocated if they conflict, which is a slow very memory
14447 # consuming and fragmenting process. To avoid this, we pick a random,
14448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14450 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'
14451 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'
14455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457 case $cc_basename,$host_cpu in
14458 pgcc*) # Portland Group C compiler
14459 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'
14460 tmp_addflag=' $pic_flag'
14462 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14463 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'
14464 tmp_addflag=' $pic_flag -Mnomain' ;;
14465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14466 tmp_addflag=' -i_dynamic' ;;
14467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14468 tmp_addflag=' -i_dynamic -nofor_main' ;;
14469 ifc* | ifort*) # Intel Fortran compiler
14470 tmp_addflag=' -nofor_main' ;;
14472 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474 if test $supports_anon_versioning = yes; then
14475 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14477 $echo "local: *; };" >> $output_objdir/$libname.ver~
14478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14487 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14490 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14491 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14501 *** create shared libraries on Solaris systems. Therefore, libtool
14502 *** is disabling shared libraries support. We urge you to upgrade GNU
14503 *** binutils to release 2.9.1 or newer. Another option is to modify
14504 *** your PATH or compiler configuration so that the native linker is
14505 *** used, and then restart.
14508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14509 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14517 case `$LD -v 2>&1` in
14518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14523 *** reliably create shared libraries on SCO systems. Therefore, libtool
14524 *** is disabling shared libraries support. We urge you to upgrade GNU
14525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14526 *** your PATH or compiler configuration so that the native linker is
14527 *** used, and then restart.
14532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14533 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14534 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14535 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14544 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546 hardcode_direct_F77=yes
14547 hardcode_shlibpath_var_F77=no
14551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14552 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14553 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14560 if test "$ld_shlibs_F77" = no; then
14562 hardcode_libdir_flag_spec_F77=
14563 export_dynamic_flag_spec_F77=
14564 whole_archive_flag_spec_F77=
14567 # PORTME fill in a description of your system's linker (not GNU ld)
14570 allow_undefined_flag_F77=unsupported
14571 always_export_symbols_F77=yes
14572 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'
14573 # Note: this linker hardcodes the directories in LIBPATH if there
14574 # are no directories specified by -L.
14575 hardcode_minus_L_F77=yes
14576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14577 # Neither direct hardcoding nor static linking is supported with a
14579 hardcode_direct_F77=unsupported
14584 if test "$host_cpu" = ia64; then
14585 # On IA64, the linker does run time linking by default, so we don't
14586 # have to do anything special.
14587 aix_use_runtimelinking=no
14588 exp_sym_flag='-Bexport'
14591 # If we're using GNU nm, then we don't want the "-C" option.
14592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14594 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'
14596 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'
14598 aix_use_runtimelinking=no
14600 # Test if we are trying to use run time linking or normal
14601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14602 # need to do runtime linking.
14603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14604 for ld_flag in $LDFLAGS; do
14605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14606 aix_use_runtimelinking=yes
14613 exp_sym_flag='-bexport'
14614 no_entry_flag='-bnoentry'
14617 # When large executables or shared objects are built, AIX ld can
14618 # have problems creating the table of contents. If linking a library
14619 # or program results in "error TOC overflow" add -mminimal-toc to
14620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14623 archive_cmds_F77=''
14624 hardcode_direct_F77=yes
14625 hardcode_libdir_separator_F77=':'
14626 link_all_deplibs_F77=yes
14628 if test "$GCC" = yes; then
14629 case $host_os in aix4.[012]|aix4.[012].*)
14630 # We only want to do this on AIX 4.2 and lower, the check
14631 # below for broken collect2 doesn't work under 4.3+
14632 collect2name=`${CC} -print-prog-name=collect2`
14633 if test -f "$collect2name" && \
14634 strings "$collect2name" | grep resolve_lib_name >/dev/null
14636 # We have reworked collect2
14637 hardcode_direct_F77=yes
14639 # We have old collect2
14640 hardcode_direct_F77=unsupported
14641 # It fails to find uninstalled libraries when the uninstalled
14642 # path is not listed in the libpath. Setting hardcode_minus_L
14643 # to unsupported forces relinking
14644 hardcode_minus_L_F77=yes
14645 hardcode_libdir_flag_spec_F77='-L$libdir'
14646 hardcode_libdir_separator_F77=
14650 shared_flag='-shared'
14651 if test "$aix_use_runtimelinking" = yes; then
14652 shared_flag="$shared_flag "'${wl}-G'
14656 if test "$host_cpu" = ia64; then
14657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14658 # chokes on -Wl,-G. The following line is correct:
14661 if test "$aix_use_runtimelinking" = yes; then
14662 shared_flag='${wl}-G'
14664 shared_flag='${wl}-bM:SRE'
14669 # It seems that -bexpall does not export symbols beginning with
14670 # underscore (_), so it is better to generate a list of symbols to export.
14671 always_export_symbols_F77=yes
14672 if test "$aix_use_runtimelinking" = yes; then
14673 # Warning - without using the other runtime loading flags (-brtl),
14674 # -berok will link without error, but may produce a broken library.
14675 allow_undefined_flag_F77='-berok'
14676 # Determine the default libpath from the value encoded in an empty executable.
14677 cat >conftest.$ac_ext <<_ACEOF
14682 rm -f conftest.$ac_objext conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && {
14696 test -z "$ac_f77_werror_flag" ||
14697 test ! -s conftest.err
14698 } && test -s conftest$ac_exeext &&
14699 $as_test_x conftest$ac_exeext; then
14701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14703 # Check for a 64-bit object if we didn't find anything.
14704 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; }
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714 conftest$ac_exeext conftest.$ac_ext
14715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14717 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14718 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"
14720 if test "$host_cpu" = ia64; then
14721 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14722 allow_undefined_flag_F77="-z nodefs"
14723 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"
14725 # Determine the default libpath from the value encoded in an empty executable.
14726 cat >conftest.$ac_ext <<_ACEOF
14731 rm -f conftest.$ac_objext conftest$ac_exeext
14732 if { (ac_try="$ac_link"
14733 case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_link") 2>conftest.er1
14740 grep -v '^ *+' conftest.er1 >conftest.err
14742 cat conftest.err >&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } && {
14745 test -z "$ac_f77_werror_flag" ||
14746 test ! -s conftest.err
14747 } && test -s conftest$ac_exeext &&
14748 $as_test_x conftest$ac_exeext; then
14750 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14752 # Check for a 64-bit object if we didn't find anything.
14753 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; }
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14763 conftest$ac_exeext conftest.$ac_ext
14764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14766 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14767 # Warning - without using the other run time loading flags,
14768 # -berok will link without error, but may produce a broken library.
14769 no_undefined_flag_F77=' ${wl}-bernotok'
14770 allow_undefined_flag_F77=' ${wl}-berok'
14771 # Exported symbols can be pulled into shared objects from archives
14772 whole_archive_flag_spec_F77='$convenience'
14773 archive_cmds_need_lc_F77=yes
14774 # This is similar to how AIX traditionally builds its shared libraries.
14775 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'
14781 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)'
14782 hardcode_libdir_flag_spec_F77='-L$libdir'
14783 hardcode_minus_L_F77=yes
14784 # see comment about different semantics on the GNU ld section
14789 export_dynamic_flag_spec_F77=-rdynamic
14792 cygwin* | mingw* | pw32*)
14793 # When not using gcc, we currently assume that we are using
14794 # Microsoft Visual C++.
14795 # hardcode_libdir_flag_spec is actually meaningless, as there is
14796 # no search path for DLLs.
14797 hardcode_libdir_flag_spec_F77=' '
14798 allow_undefined_flag_F77=unsupported
14799 # Tell ltmain to make .lib files, not .a files.
14801 # Tell ltmain to make .dll files, not .so files.
14803 # FIXME: Setting linknames here is a bad hack.
14804 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14805 # The linker will automatically build a .lib file if we build a DLL.
14806 old_archive_From_new_cmds_F77='true'
14807 # FIXME: Should let the user specify the lib program.
14808 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14809 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14810 enable_shared_with_static_runtimes_F77=yes
14813 darwin* | rhapsody*)
14815 rhapsody* | darwin1.[012])
14816 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14819 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14820 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822 case ${MACOSX_DEPLOYMENT_TARGET} in
14824 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14827 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14833 archive_cmds_need_lc_F77=no
14834 hardcode_direct_F77=no
14835 hardcode_automatic_F77=yes
14836 hardcode_shlibpath_var_F77=unsupported
14837 whole_archive_flag_spec_F77=''
14838 link_all_deplibs_F77=yes
14839 if test "$GCC" = yes ; then
14840 output_verbose_link_cmd='echo'
14841 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14842 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14843 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14844 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}'
14845 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}'
14847 case $cc_basename in
14849 output_verbose_link_cmd='echo'
14850 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14851 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14852 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14853 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}'
14854 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}'
14864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14865 hardcode_libdir_flag_spec_F77='-L$libdir'
14866 hardcode_shlibpath_var_F77=no
14873 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14874 # support. Future versions do this automatically, but an explicit c++rt0.o
14875 # does not break anything, and helps significantly (at the cost of a little
14878 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14879 hardcode_libdir_flag_spec_F77='-R$libdir'
14880 hardcode_direct_F77=yes
14881 hardcode_shlibpath_var_F77=no
14884 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_F77=yes
14888 hardcode_minus_L_F77=yes
14889 hardcode_shlibpath_var_F77=no
14892 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14893 freebsd* | kfreebsd*-gnu | dragonfly*)
14894 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14895 hardcode_libdir_flag_spec_F77='-R$libdir'
14896 hardcode_direct_F77=yes
14897 hardcode_shlibpath_var_F77=no
14901 if test "$GCC" = yes; then
14902 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'
14904 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'
14906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907 hardcode_libdir_separator_F77=:
14908 hardcode_direct_F77=yes
14910 # hardcode_minus_L: Not really in the search PATH,
14911 # but as the default location of the library.
14912 hardcode_minus_L_F77=yes
14913 export_dynamic_flag_spec_F77='${wl}-E'
14917 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14918 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14920 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14922 if test "$with_gnu_ld" = no; then
14923 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14924 hardcode_libdir_separator_F77=:
14926 hardcode_direct_F77=yes
14927 export_dynamic_flag_spec_F77='${wl}-E'
14929 # hardcode_minus_L: Not really in the search PATH,
14930 # but as the default location of the library.
14931 hardcode_minus_L_F77=yes
14936 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14939 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14945 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14951 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14961 if test "$with_gnu_ld" = no; then
14962 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14963 hardcode_libdir_separator_F77=:
14967 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14968 hardcode_direct_F77=no
14969 hardcode_shlibpath_var_F77=no
14972 hardcode_direct_F77=yes
14973 export_dynamic_flag_spec_F77='${wl}-E'
14975 # hardcode_minus_L: Not really in the search PATH,
14976 # but as the default location of the library.
14977 hardcode_minus_L_F77=yes
14983 irix5* | irix6* | nonstopux*)
14984 if test "$GCC" = yes; then
14985 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'
14987 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'
14988 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14990 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14991 hardcode_libdir_separator_F77=:
14992 link_all_deplibs_F77=yes
14996 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14999 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15001 hardcode_libdir_flag_spec_F77='-R$libdir'
15002 hardcode_direct_F77=yes
15003 hardcode_shlibpath_var_F77=no
15007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_direct_F77=yes
15009 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15010 hardcode_libdir_separator_F77=:
15011 hardcode_shlibpath_var_F77=no
15015 hardcode_direct_F77=yes
15016 hardcode_shlibpath_var_F77=no
15017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15018 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15019 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15020 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15021 export_dynamic_flag_spec_F77='${wl}-E'
15024 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15025 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15026 hardcode_libdir_flag_spec_F77='-R$libdir'
15029 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15030 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15037 hardcode_libdir_flag_spec_F77='-L$libdir'
15038 hardcode_minus_L_F77=yes
15039 allow_undefined_flag_F77=unsupported
15040 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'
15041 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15045 if test "$GCC" = yes; then
15046 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15047 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'
15049 allow_undefined_flag_F77=' -expect_unresolved \*'
15050 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'
15052 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053 hardcode_libdir_separator_F77=:
15056 osf4* | osf5*) # as osf3* with the addition of -msym flag
15057 if test "$GCC" = yes; then
15058 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15059 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'
15060 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15062 allow_undefined_flag_F77=' -expect_unresolved \*'
15063 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'
15064 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~
15065 $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'
15067 # Both c and cxx compiler support -rpath directly
15068 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15070 hardcode_libdir_separator_F77=:
15074 no_undefined_flag_F77=' -z text'
15075 if test "$GCC" = yes; then
15077 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15079 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15082 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15086 hardcode_libdir_flag_spec_F77='-R$libdir'
15087 hardcode_shlibpath_var_F77=no
15089 solaris2.[0-5] | solaris2.[0-5].*) ;;
15091 # The compiler driver will combine linker options so we
15092 # cannot just pass the convience library names through
15093 # without $wl, iff we do not link with $LD.
15094 # Luckily, gcc supports the same syntax we need for Sun Studio.
15095 # Supported since Solaris 2.6 (maybe 2.5.1?)
15098 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15100 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' ;;
15103 link_all_deplibs_F77=yes
15107 if test "x$host_vendor" = xsequent; then
15108 # Use $CC to link under sequent, because it throws in some extra .o
15109 # files that make .init and .fini sections work.
15110 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15112 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15114 hardcode_libdir_flag_spec_F77='-L$libdir'
15115 hardcode_direct_F77=yes
15116 hardcode_minus_L_F77=yes
15117 hardcode_shlibpath_var_F77=no
15121 case $host_vendor in
15123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15124 hardcode_direct_F77=yes # is this really true???
15127 ## LD is ld it makes a PLAMLIB
15128 ## CC just makes a GrossModule.
15129 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15130 reload_cmds_F77='$CC -r -o $output$reload_objs'
15131 hardcode_direct_F77=no
15134 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15135 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15138 runpath_var='LD_RUN_PATH'
15139 hardcode_shlibpath_var_F77=no
15143 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144 hardcode_shlibpath_var_F77=no
15145 export_dynamic_flag_spec_F77='-Bexport'
15149 if test -d /usr/nec; then
15150 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15151 hardcode_shlibpath_var_F77=no
15152 runpath_var=LD_RUN_PATH
15153 hardcode_runpath_var=yes
15158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15159 no_undefined_flag_F77='${wl}-z,text'
15160 archive_cmds_need_lc_F77=no
15161 hardcode_shlibpath_var_F77=no
15162 runpath_var='LD_RUN_PATH'
15164 if test "$GCC" = yes; then
15165 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15173 sysv5* | sco3.2v5* | sco5v6*)
15174 # Note: We can NOT use -z defs as we might desire, because we do not
15175 # link with -lc, and that would cause any symbols used from libc to
15176 # always be unresolved, which means just about no library would
15177 # ever link correctly. If we're not using GNU ld we use -z text
15178 # though, which does catch some bad symbols but isn't as heavy-handed
15180 no_undefined_flag_F77='${wl}-z,text'
15181 allow_undefined_flag_F77='${wl}-z,nodefs'
15182 archive_cmds_need_lc_F77=no
15183 hardcode_shlibpath_var_F77=no
15184 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15185 hardcode_libdir_separator_F77=':'
15186 link_all_deplibs_F77=yes
15187 export_dynamic_flag_spec_F77='${wl}-Bexport'
15188 runpath_var='LD_RUN_PATH'
15190 if test "$GCC" = yes; then
15191 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15201 hardcode_libdir_flag_spec_F77='-L$libdir'
15202 hardcode_shlibpath_var_F77=no
15211 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15212 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15213 test "$ld_shlibs_F77" = no && can_build_shared=no
15216 # Do we need to explicitly link libc?
15218 case "x$archive_cmds_need_lc_F77" in
15220 # Assume -lc should be added
15221 archive_cmds_need_lc_F77=yes
15223 if test "$enable_shared" = yes && test "$GCC" = yes; then
15224 case $archive_cmds_F77 in
15226 # FIXME: we may have to deal with multi-command sequences.
15229 # Test whether the compiler implicitly links with -lc since on some
15230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15231 # to ld, don't add -lc before -lgcc.
15232 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15233 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15235 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } 2>conftest.err; then
15244 libobjs=conftest.$ac_objext
15246 wl=$lt_prog_compiler_wl_F77
15247 pic_flag=$lt_prog_compiler_pic_F77
15253 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15254 allow_undefined_flag_F77=
15255 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15256 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }
15261 archive_cmds_need_lc_F77=no
15263 archive_cmds_need_lc_F77=yes
15265 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15267 cat conftest.err 1>&5
15270 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15271 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15278 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15279 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15280 library_names_spec=
15281 libname_spec='lib$name'
15285 postuninstall_cmds=
15289 shlibpath_overrides_runpath=unknown
15291 dynamic_linker="$host_os ld.so"
15292 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15293 if test "$GCC" = yes; then
15294 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15295 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15296 # if the path contains ";" then we assume it to be the separator
15297 # otherwise default to the standard path separator (i.e. ":") - it is
15298 # assumed that no part of a normal pathname contains ";" but that should
15299 # okay in the real world where ";" in dirpaths is itself problematic.
15300 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15305 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15307 need_lib_prefix=unknown
15308 hardcode_into_libs=no
15310 # when you set need_version to no, make sure it does not cause -set_version
15311 # flags to be left without arguments
15312 need_version=unknown
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15318 shlibpath_var=LIBPATH
15320 # AIX 3 has no versioning support, so we append a major version to the name.
15321 soname_spec='${libname}${release}${shared_ext}$major'
15328 hardcode_into_libs=yes
15329 if test "$host_cpu" = ia64; then
15330 # AIX 5 supports IA64
15331 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15332 shlibpath_var=LD_LIBRARY_PATH
15334 # With GCC up to 2.95.x, collect2 would create an import file
15335 # for dependence libraries. The import file would start with
15336 # the line `#! .'. This would cause the generated library to
15337 # depend on `.', always an invalid library. This was fixed in
15338 # development snapshots of GCC prior to 3.0.
15340 aix4 | aix4.[01] | aix4.[01].*)
15341 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15343 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15346 can_build_shared=no
15350 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15351 # soname into executable. Probably we can add versioning support to
15352 # collect2, so additional links can be useful in future.
15353 if test "$aix_use_runtimelinking" = yes; then
15354 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15355 # instead of lib<name>.a to let people know that these are not
15356 # typical AIX shared libraries.
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 # We preserve .a as extension for shared libraries through AIX4.2
15360 # and later when we are not doing run time linking.
15361 library_names_spec='${libname}${release}.a $libname.a'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15364 shlibpath_var=LIBPATH
15369 library_names_spec='$libname.ixlibrary $libname.a'
15370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15371 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'
15375 library_names_spec='${libname}${shared_ext}'
15376 dynamic_linker="$host_os ld.so"
15377 shlibpath_var=LIBRARY_PATH
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15388 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15389 # the default ld.so.conf also contains /usr/contrib/lib and
15390 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15391 # libtool to hard-code these into programs
15394 cygwin* | mingw* | pw32*)
15395 version_type=windows
15400 case $GCC,$host_os in
15401 yes,cygwin* | yes,mingw* | yes,pw32*)
15402 library_names_spec='$libname.dll.a'
15403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404 postinstall_cmds='base_file=`basename \${file}`~
15405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15406 dldir=$destdir/`dirname \$dlpath`~
15407 test -d \$dldir || mkdir -p \$dldir~
15408 $install_prog $dir/$dlname \$dldir/$dlname~
15409 chmod a+x \$dldir/$dlname'
15410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15411 dlpath=$dir/\$dldll~
15413 shlibpath_overrides_runpath=yes
15417 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15419 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15422 # MinGW DLLs use traditional 'lib' prefix
15423 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15425 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15426 # It is most probably a Windows format PATH printed by
15427 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15428 # path with ; separators, and with drive letters. We can handle the
15429 # drive letters (cygwin fileutils understands them), so leave them,
15430 # especially as we might pass files found there to a mingw objdump,
15431 # which wouldn't understand a cygwinified path. Ahh.
15432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15438 # pw32 DLLs use 'pw' prefix rather than 'lib'
15439 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15445 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15448 dynamic_linker='Win32 ld.exe'
15449 # FIXME: first we should search . and the directory the executable is in
15453 darwin* | rhapsody*)
15454 dynamic_linker="$host_os dyld"
15455 version_type=darwin
15458 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15459 soname_spec='${libname}${release}${major}$shared_ext'
15460 shlibpath_overrides_runpath=yes
15461 shlibpath_var=DYLD_LIBRARY_PATH
15462 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15463 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15464 if test "$GCC" = yes; then
15465 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"`
15467 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15477 soname_spec='${libname}${release}${shared_ext}$major'
15478 shlibpath_var=LD_LIBRARY_PATH
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 shlibpath_var=LD_LIBRARY_PATH
15492 shlibpath_overrides_runpath=no
15493 hardcode_into_libs=yes
15494 dynamic_linker='GNU ld.so'
15497 freebsd* | dragonfly*)
15498 # DragonFly does not have aout. When/if they implement a new
15499 # versioning mechanism, adjust this.
15500 if test -x /usr/bin/objformat; then
15501 objformat=`/usr/bin/objformat`
15504 freebsd[123]*) objformat=aout ;;
15505 *) objformat=elf ;;
15508 version_type=freebsd-$objformat
15509 case $version_type in
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15520 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=yes
15525 freebsd3.[01]* | freebsdelf3.[01]*)
15526 shlibpath_overrides_runpath=yes
15527 hardcode_into_libs=yes
15529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15531 shlibpath_overrides_runpath=no
15532 hardcode_into_libs=yes
15534 freebsd*) # from 4.6 on
15535 shlibpath_overrides_runpath=yes
15536 hardcode_into_libs=yes
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 hardcode_into_libs=yes
15551 hpux9* | hpux10* | hpux11*)
15552 # Give a soname corresponding to the major version so that dld.sl refuses to
15553 # link against other versions.
15560 hardcode_into_libs=yes
15561 dynamic_linker="$host_os dld.so"
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 if test "X$HPUX_IA64_MODE" = X32; then
15567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575 hardcode_into_libs=yes
15576 dynamic_linker="$host_os dld.sl"
15577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15586 dynamic_linker="$host_os dld.sl"
15587 shlibpath_var=SHLIB_PATH
15588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15594 postinstall_cmds='chmod 555 $lib'
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=no
15606 hardcode_into_libs=yes
15609 irix5* | irix6* | nonstopux*)
15611 nonstopux*) version_type=nonstopux ;;
15613 if test "$lt_cv_prog_gnu_ld" = yes; then
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15624 irix5* | nonstopux*)
15625 libsuff= shlibsuff=
15628 case $LD in # libtool.m4 will add one of these switches to LD
15629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15630 libsuff= shlibsuff= libmagic=32-bit;;
15631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15632 libsuff=32 shlibsuff=N32 libmagic=N32;;
15633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15635 *) libsuff= shlibsuff= libmagic=never-match;;
15639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15640 shlibpath_overrides_runpath=no
15641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15643 hardcode_into_libs=yes
15646 # No shared lib support for Linux oldld, aout, or coff.
15647 linux*oldld* | linux*aout* | linux*coff*)
15651 # This must be Linux ELF.
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 # This implies no fast_install, which is unacceptable.
15662 # Some rework will be needed to allow for fast_install
15663 # before this can be enabled.
15664 hardcode_into_libs=yes
15666 # Append ld.so.conf contents to the search path
15667 if test -f /etc/ld.so.conf; then
15668 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' ' '`
15669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15672 # We used to test for /lib/ld.so.1 and disable shared libraries on
15673 # powerpc, because MkLinux only supported shared libraries with the
15674 # GNU dynamic linker. Since this was broken with cross compilers,
15675 # most powerpc-linux boxes support dynamic linking these days and
15676 # people can always --disable-shared, the test was removed, and we
15677 # assume the GNU/Linux dynamic linker is in use.
15678 dynamic_linker='GNU/Linux ld.so'
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 shlibpath_var=LD_LIBRARY_PATH
15688 shlibpath_overrides_runpath=no
15689 hardcode_into_libs=yes
15690 dynamic_linker='GNU ld.so'
15697 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15700 dynamic_linker='NetBSD (a.out) ld.so'
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 dynamic_linker='NetBSD ld.elf_so'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=yes
15708 hardcode_into_libs=yes
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 shlibpath_overrides_runpath=yes
15730 sys_lib_dlsearch_path_spec="/usr/lib"
15732 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15734 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15735 *) need_version=no ;;
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15742 openbsd2.[89] | openbsd2.[89].*)
15743 shlibpath_overrides_runpath=no
15746 shlibpath_overrides_runpath=yes
15750 shlibpath_overrides_runpath=yes
15755 libname_spec='$name'
15758 library_names_spec='$libname${shared_ext} $libname.a'
15759 dynamic_linker='OS/2 ld.exe'
15760 shlibpath_var=LIBPATH
15763 osf3* | osf4* | osf5*)
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 shlibpath_var=LD_LIBRARY_PATH
15770 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15771 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=yes
15782 hardcode_into_libs=yes
15783 # ldd complains unless libraries are executable
15784 postinstall_cmds='chmod +x $lib'
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 shlibpath_overrides_runpath=yes
15793 if test "$with_gnu_ld" = yes; then
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802 soname_spec='${libname}${release}${shared_ext}$major'
15803 shlibpath_var=LD_LIBRARY_PATH
15804 case $host_vendor in
15806 shlibpath_overrides_runpath=no
15808 export_dynamic_flag_spec='${wl}-Blargedynsym'
15809 runpath_var=LD_RUN_PATH
15817 shlibpath_overrides_runpath=no
15818 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15824 if test -d /usr/nec ;then
15826 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15827 soname_spec='$libname${shared_ext}.$major'
15828 shlibpath_var=LD_LIBRARY_PATH
15832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15833 version_type=freebsd-elf
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 hardcode_into_libs=yes
15840 if test "$with_gnu_ld" = yes; then
15841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15842 shlibpath_overrides_runpath=no
15844 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15845 shlibpath_overrides_runpath=yes
15848 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15852 sys_lib_dlsearch_path_spec='/usr/lib'
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15858 soname_spec='${libname}${release}${shared_ext}$major'
15859 shlibpath_var=LD_LIBRARY_PATH
15866 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15867 echo "${ECHO_T}$dynamic_linker" >&6; }
15868 test "$dynamic_linker" = no && can_build_shared=no
15870 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15871 if test "$GCC" = yes; then
15872 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15875 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15877 hardcode_action_F77=
15878 if test -n "$hardcode_libdir_flag_spec_F77" || \
15879 test -n "$runpath_var_F77" || \
15880 test "X$hardcode_automatic_F77" = "Xyes" ; then
15882 # We can hardcode non-existant directories.
15883 if test "$hardcode_direct_F77" != no &&
15884 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15885 # have to relink, otherwise we might link with an installed library
15886 # when we should be linking with a yet-to-be-installed one
15887 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15888 test "$hardcode_minus_L_F77" != no; then
15889 # Linking always hardcodes the temporary library directory.
15890 hardcode_action_F77=relink
15892 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15893 hardcode_action_F77=immediate
15896 # We cannot hardcode anything, or else we can only hardcode existing
15898 hardcode_action_F77=unsupported
15900 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15901 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15903 if test "$hardcode_action_F77" = relink; then
15904 # Fast installation is not supported
15905 enable_fast_install=no
15906 elif test "$shlibpath_overrides_runpath" = yes ||
15907 test "$enable_shared" = no; then
15908 # Fast installation is not necessary
15909 enable_fast_install=needless
15913 # The else clause should only fire when bootstrapping the
15914 # libtool distribution, otherwise you forgot to ship ltmain.sh
15915 # with your package, and you will get complaints that there are
15916 # no rules to generate ltmain.sh.
15917 if test -f "$ltmain"; then
15918 # See if we are running on zsh, and set the options which allow our commands through
15919 # without removal of \ escapes.
15920 if test -n "${ZSH_VERSION+set}" ; then
15921 setopt NO_GLOB_SUBST
15923 # Now quote all the things that may contain metacharacters while being
15924 # careful not to overquote the AC_SUBSTed values. We take copies of the
15925 # variables and quote the copies for generation of the libtool script.
15926 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15928 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15929 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15930 deplibs_check_method reload_flag reload_cmds need_locks \
15931 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15932 lt_cv_sys_global_symbol_to_c_name_address \
15933 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15934 old_postinstall_cmds old_postuninstall_cmds \
15938 lt_prog_compiler_wl_F77 \
15939 lt_prog_compiler_pic_F77 \
15940 lt_prog_compiler_static_F77 \
15941 lt_prog_compiler_no_builtin_flag_F77 \
15942 export_dynamic_flag_spec_F77 \
15943 thread_safe_flag_spec_F77 \
15944 whole_archive_flag_spec_F77 \
15945 enable_shared_with_static_runtimes_F77 \
15946 old_archive_cmds_F77 \
15947 old_archive_from_new_cmds_F77 \
15948 predep_objects_F77 \
15949 postdep_objects_F77 \
15952 compiler_lib_search_path_F77 \
15954 archive_expsym_cmds_F77 \
15955 postinstall_cmds_F77 \
15956 postuninstall_cmds_F77 \
15957 old_archive_from_expsyms_cmds_F77 \
15958 allow_undefined_flag_F77 \
15959 no_undefined_flag_F77 \
15960 export_symbols_cmds_F77 \
15961 hardcode_libdir_flag_spec_F77 \
15962 hardcode_libdir_flag_spec_ld_F77 \
15963 hardcode_libdir_separator_F77 \
15964 hardcode_automatic_F77 \
15966 module_expsym_cmds_F77 \
15967 lt_cv_prog_compiler_c_o_F77 \
15968 exclude_expsyms_F77 \
15969 include_expsyms_F77; do
15972 old_archive_cmds_F77 | \
15973 old_archive_from_new_cmds_F77 | \
15974 archive_cmds_F77 | \
15975 archive_expsym_cmds_F77 | \
15976 module_cmds_F77 | \
15977 module_expsym_cmds_F77 | \
15978 old_archive_from_expsyms_cmds_F77 | \
15979 export_symbols_cmds_F77 | \
15980 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15981 postinstall_cmds | postuninstall_cmds | \
15982 old_postinstall_cmds | old_postuninstall_cmds | \
15983 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15984 # Double-quote double-evaled strings.
15985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15988 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15994 *'\$0 --fallback-echo"')
15995 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16001 cat <<__EOF__ >> "$cfgfile"
16002 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16004 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16006 # Shell to use when invoking shell scripts.
16009 # Whether or not to build shared libraries.
16010 build_libtool_libs=$enable_shared
16012 # Whether or not to build static libraries.
16013 build_old_libs=$enable_static
16015 # Whether or not to add -lc for building shared libraries.
16016 build_libtool_need_lc=$archive_cmds_need_lc_F77
16018 # Whether or not to disallow shared libs when runtime libs are static
16019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16021 # Whether or not to optimize for fast installation.
16022 fast_install=$enable_fast_install
16025 host_alias=$host_alias
16029 # The build system.
16030 build_alias=$build_alias
16034 # An echo program that does not interpret backslashes.
16039 AR_FLAGS=$lt_AR_FLAGS
16044 # LTCC compiler flags.
16045 LTCFLAGS=$lt_LTCFLAGS
16047 # A language-specific compiler.
16048 CC=$lt_compiler_F77
16050 # Is the compiler the GNU C compiler?
16056 # The linker used to build libraries.
16059 # Whether we need hard or soft links.
16062 # A BSD-compatible nm program.
16065 # A symbol stripping program
16068 # Used to examine libraries when file_magic_cmd begins "file"
16069 MAGIC_CMD=$MAGIC_CMD
16071 # Used on cygwin: DLL creation program.
16074 # Used on cygwin: object dumper.
16077 # Used on cygwin: assembler.
16080 # The name of the directory that contains temporary libtool files.
16083 # How to create reloadable object files.
16084 reload_flag=$lt_reload_flag
16085 reload_cmds=$lt_reload_cmds
16087 # How to pass a linker flag through the compiler.
16088 wl=$lt_lt_prog_compiler_wl_F77
16090 # Object file suffix (normally "o").
16091 objext="$ac_objext"
16093 # Old archive suffix (normally "a").
16096 # Shared library suffix (normally ".so").
16097 shrext_cmds='$shrext_cmds'
16099 # Executable file suffix (normally "").
16102 # Additional compiler flags for building library objects.
16103 pic_flag=$lt_lt_prog_compiler_pic_F77
16106 # What is the maximum length of a command?
16107 max_cmd_len=$lt_cv_sys_max_cmd_len
16109 # Does compiler simultaneously support -c and -o options?
16110 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16112 # Must we lock files when doing compilation?
16113 need_locks=$lt_need_locks
16115 # Do we need the lib prefix for modules?
16116 need_lib_prefix=$need_lib_prefix
16118 # Do we need a version for libraries?
16119 need_version=$need_version
16121 # Whether dlopen is supported.
16122 dlopen_support=$enable_dlopen
16124 # Whether dlopen of programs is supported.
16125 dlopen_self=$enable_dlopen_self
16127 # Whether dlopen of statically linked programs is supported.
16128 dlopen_self_static=$enable_dlopen_self_static
16130 # Compiler flag to prevent dynamic linking.
16131 link_static_flag=$lt_lt_prog_compiler_static_F77
16133 # Compiler flag to turn off builtin functions.
16134 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16136 # Compiler flag to allow reflexive dlopens.
16137 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16139 # Compiler flag to generate shared objects directly from archives.
16140 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16142 # Compiler flag to generate thread-safe objects.
16143 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16145 # Library versioning type.
16146 version_type=$version_type
16148 # Format of library name prefix.
16149 libname_spec=$lt_libname_spec
16151 # List of archive names. First name is the real one, the rest are links.
16152 # The last name is the one that the linker finds with -lNAME.
16153 library_names_spec=$lt_library_names_spec
16155 # The coded name of the library, if different from the real name.
16156 soname_spec=$lt_soname_spec
16158 # Commands used to build and install an old-style archive.
16160 old_archive_cmds=$lt_old_archive_cmds_F77
16161 old_postinstall_cmds=$lt_old_postinstall_cmds
16162 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16164 # Create an old-style archive from a shared archive.
16165 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16167 # Create a temporary old-style archive to link instead of a shared archive.
16168 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16170 # Commands used to build and install a shared archive.
16171 archive_cmds=$lt_archive_cmds_F77
16172 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16173 postinstall_cmds=$lt_postinstall_cmds
16174 postuninstall_cmds=$lt_postuninstall_cmds
16176 # Commands used to build a loadable module (assumed same as above if empty)
16177 module_cmds=$lt_module_cmds_F77
16178 module_expsym_cmds=$lt_module_expsym_cmds_F77
16180 # Commands to strip libraries.
16181 old_striplib=$lt_old_striplib
16182 striplib=$lt_striplib
16184 # Dependencies to place before the objects being linked to create a
16186 predep_objects=$lt_predep_objects_F77
16188 # Dependencies to place after the objects being linked to create a
16190 postdep_objects=$lt_postdep_objects_F77
16192 # Dependencies to place before the objects being linked to create a
16194 predeps=$lt_predeps_F77
16196 # Dependencies to place after the objects being linked to create a
16198 postdeps=$lt_postdeps_F77
16200 # The library search path used internally by the compiler when linking
16201 # a shared library.
16202 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16204 # Method to check whether dependent libraries are shared objects.
16205 deplibs_check_method=$lt_deplibs_check_method
16207 # Command to use when deplibs_check_method == file_magic.
16208 file_magic_cmd=$lt_file_magic_cmd
16210 # Flag that allows shared libraries with undefined symbols to be built.
16211 allow_undefined_flag=$lt_allow_undefined_flag_F77
16213 # Flag that forces no undefined symbols.
16214 no_undefined_flag=$lt_no_undefined_flag_F77
16216 # Commands used to finish a libtool library installation in a directory.
16217 finish_cmds=$lt_finish_cmds
16219 # Same as above, but a single script fragment to be evaled but not shown.
16220 finish_eval=$lt_finish_eval
16222 # Take the output of nm and produce a listing of raw symbols and C names.
16223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16225 # Transform the output of nm in a proper C declaration
16226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16228 # Transform the output of nm in a C name address pair
16229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16231 # This is the shared library runtime path variable.
16232 runpath_var=$runpath_var
16234 # This is the shared library path variable.
16235 shlibpath_var=$shlibpath_var
16237 # Is shlibpath searched before the hard-coded library search path?
16238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16240 # How to hardcode a shared library path into an executable.
16241 hardcode_action=$hardcode_action_F77
16243 # Whether we should hardcode library paths into libraries.
16244 hardcode_into_libs=$hardcode_into_libs
16246 # Flag to hardcode \$libdir into a binary during linking.
16247 # This must work even if \$libdir does not exist.
16248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16250 # If ld is used when linking, flag to hardcode \$libdir into
16251 # a binary during linking. This must work even if \$libdir does
16253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16255 # Whether we need a single -rpath flag with a separated argument.
16256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16259 # resulting binary.
16260 hardcode_direct=$hardcode_direct_F77
16262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16263 # resulting binary.
16264 hardcode_minus_L=$hardcode_minus_L_F77
16266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16267 # the resulting binary.
16268 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16270 # Set to yes if building a shared library automatically hardcodes DIR into the library
16271 # and all subsequent libraries and executables linked against it.
16272 hardcode_automatic=$hardcode_automatic_F77
16274 # Variables whose values should be saved in libtool wrapper scripts and
16275 # restored at relink time.
16276 variables_saved_for_relink="$variables_saved_for_relink"
16278 # Whether libtool must link a program against all its dependency libraries.
16279 link_all_deplibs=$link_all_deplibs_F77
16281 # Compile-time system search path for libraries
16282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16284 # Run-time system search path for libraries
16285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16287 # Fix the shell variable \$srcfile for the compiler.
16288 fix_srcfile_path="$fix_srcfile_path_F77"
16290 # Set to yes if exported symbols are required.
16291 always_export_symbols=$always_export_symbols_F77
16293 # The commands to list exported symbols.
16294 export_symbols_cmds=$lt_export_symbols_cmds_F77
16296 # The commands to extract the exported symbol list from a shared archive.
16297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16299 # Symbols that should not be listed in the preloaded symbols.
16300 exclude_expsyms=$lt_exclude_expsyms_F77
16302 # Symbols that must always be exported.
16303 include_expsyms=$lt_include_expsyms_F77
16305 # ### END LIBTOOL TAG CONFIG: $tagname
16311 # If there is no Makefile yet, we rely on a make rule to execute
16312 # `config.status --recheck' to rerun these tests and create the
16313 # libtool script then.
16314 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16315 if test -f "$ltmain_in"; then
16316 test -f Makefile && make "$ltmain"
16322 ac_cpp='$CPP $CPPFLAGS'
16323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16338 # Source file extension for Java test sources.
16341 # Object file extension for compiled Java test sources.
16345 # Code to be used in simple compile tests
16346 lt_simple_compile_test_code="class foo {}\n"
16348 # Code to be used in simple link tests
16349 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16351 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16353 # If no C compiler was specified, use CC.
16356 # If no C compiler flags were specified, use CFLAGS.
16357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16359 # Allow CC to be a program name with arguments.
16363 # save warnings/boilerplate of simple test code
16364 ac_outfile=conftest.$ac_objext
16365 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16366 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16367 _lt_compiler_boilerplate=`cat conftest.err`
16370 ac_outfile=conftest.$ac_objext
16371 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16372 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16373 _lt_linker_boilerplate=`cat conftest.err`
16377 # Allow CC to be a program name with arguments.
16382 for cc_temp in $compiler""; do
16384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16390 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16393 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16394 archive_cmds_need_lc_GCJ=no
16396 old_archive_cmds_GCJ=$old_archive_cmds
16399 ## There is no encapsulation within the following macros, do not change
16400 ## the running order or otherwise move them around unless you know exactly
16401 ## what you are doing...
16403 lt_prog_compiler_no_builtin_flag_GCJ=
16405 if test "$GCC" = yes; then
16406 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16409 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16410 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 lt_cv_prog_compiler_rtti_exceptions=no
16415 ac_outfile=conftest.$ac_objext
16416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16417 lt_compiler_flag="-fno-rtti -fno-exceptions"
16418 # Insert the option either (1) after the last *FLAGS variable, or
16419 # (2) before a word containing "conftest.", or (3) at the end.
16420 # Note that $ac_compile itself does not contain backslashes and begins
16421 # with a dollar sign (not a hyphen), so the echo should work correctly.
16422 # The option is referenced via a variable to avoid confusing sed.
16423 lt_compile=`echo "$ac_compile" | $SED \
16424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16426 -e 's:$: $lt_compiler_flag:'`
16427 (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
16428 (eval "$lt_compile" 2>conftest.err)
16430 cat conftest.err >&5
16431 echo "$as_me:16431: \$? = $ac_status" >&5
16432 if (exit $ac_status) && test -s "$ac_outfile"; then
16433 # The compiler can only warn and ignore the option if not recognized
16434 # So say no if there are warnings other than the usual output.
16435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16438 lt_cv_prog_compiler_rtti_exceptions=yes
16444 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16445 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16448 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16455 lt_prog_compiler_wl_GCJ=
16456 lt_prog_compiler_pic_GCJ=
16457 lt_prog_compiler_static_GCJ=
16459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16462 if test "$GCC" = yes; then
16463 lt_prog_compiler_wl_GCJ='-Wl,'
16464 lt_prog_compiler_static_GCJ='-static'
16468 # All AIX code is PIC.
16469 if test "$host_cpu" = ia64; then
16470 # AIX 5 now supports IA64 processor
16471 lt_prog_compiler_static_GCJ='-Bstatic'
16476 # FIXME: we need at least 68020 code to build shared libraries, but
16477 # adding the `-m68020' flag to GCC prevents building anything better,
16479 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16482 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16483 # PIC is the default for these OSes.
16486 mingw* | pw32* | os2*)
16487 # This hack is so that the source file can tell whether it is being
16488 # built for inclusion in a dll (and should export symbols for example).
16489 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16492 darwin* | rhapsody*)
16493 # PIC is the default on this platform
16494 # Common symbols not allowed in MH_DYLIB files
16495 lt_prog_compiler_pic_GCJ='-fno-common'
16499 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16500 # Instead, we relocate shared libraries at runtime.
16504 # Just because we use GCC doesn't mean we suddenly get shared libraries
16505 # on systems that don't support them.
16506 lt_prog_compiler_can_build_shared_GCJ=no
16511 if test -d /usr/nec; then
16512 lt_prog_compiler_pic_GCJ=-Kconform_pic
16517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16518 # not for PA HP-UX.
16524 lt_prog_compiler_pic_GCJ='-fPIC'
16530 lt_prog_compiler_pic_GCJ='-fPIC'
16534 # PORTME Check for flag to pass linker flags through the system compiler.
16537 lt_prog_compiler_wl_GCJ='-Wl,'
16538 if test "$host_cpu" = ia64; then
16539 # AIX 5 now supports IA64 processor
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16542 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16546 # PIC is the default on this platform
16547 # Common symbols not allowed in MH_DYLIB files
16548 case $cc_basename in
16550 lt_prog_compiler_pic_GCJ='-qnocommon'
16551 lt_prog_compiler_wl_GCJ='-Wl,'
16556 mingw* | pw32* | os2*)
16557 # This hack is so that the source file can tell whether it is being
16558 # built for inclusion in a dll (and should export symbols for example).
16559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16562 hpux9* | hpux10* | hpux11*)
16563 lt_prog_compiler_wl_GCJ='-Wl,'
16564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16565 # not for PA HP-UX.
16571 lt_prog_compiler_pic_GCJ='+Z'
16574 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16575 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16578 irix5* | irix6* | nonstopux*)
16579 lt_prog_compiler_wl_GCJ='-Wl,'
16580 # PIC (with -KPIC) is the default.
16581 lt_prog_compiler_static_GCJ='-non_shared'
16585 lt_prog_compiler_pic_GCJ='-KPIC'
16586 lt_prog_compiler_static_GCJ='-Bstatic'
16590 case $cc_basename in
16592 lt_prog_compiler_wl_GCJ='-Wl,'
16593 lt_prog_compiler_pic_GCJ='-KPIC'
16594 lt_prog_compiler_static_GCJ='-static'
16596 pgcc* | pgf77* | pgf90* | pgf95*)
16597 # Portland Group compilers (*not* the Pentium gcc compiler,
16598 # which looks to be a dead project)
16599 lt_prog_compiler_wl_GCJ='-Wl,'
16600 lt_prog_compiler_pic_GCJ='-fpic'
16601 lt_prog_compiler_static_GCJ='-Bstatic'
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 # All Alpha code is PIC.
16606 lt_prog_compiler_static_GCJ='-non_shared'
16611 osf3* | osf4* | osf5*)
16612 lt_prog_compiler_wl_GCJ='-Wl,'
16613 # All OSF/1 code is PIC.
16614 lt_prog_compiler_static_GCJ='-non_shared'
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16620 case $cc_basename in
16621 f77* | f90* | f95*)
16622 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16624 lt_prog_compiler_wl_GCJ='-Wl,';;
16629 lt_prog_compiler_wl_GCJ='-Qoption ld '
16630 lt_prog_compiler_pic_GCJ='-PIC'
16631 lt_prog_compiler_static_GCJ='-Bstatic'
16634 sysv4 | sysv4.2uw2* | sysv4.3*)
16635 lt_prog_compiler_wl_GCJ='-Wl,'
16636 lt_prog_compiler_pic_GCJ='-KPIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16641 if test -d /usr/nec ;then
16642 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16648 lt_prog_compiler_wl_GCJ='-Wl,'
16649 lt_prog_compiler_pic_GCJ='-KPIC'
16650 lt_prog_compiler_static_GCJ='-Bstatic'
16654 lt_prog_compiler_wl_GCJ='-Wl,'
16655 lt_prog_compiler_can_build_shared_GCJ=no
16659 lt_prog_compiler_pic_GCJ='-pic'
16660 lt_prog_compiler_static_GCJ='-Bstatic'
16664 lt_prog_compiler_can_build_shared_GCJ=no
16669 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16670 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16673 # Check to make sure the PIC flag actually works.
16675 if test -n "$lt_prog_compiler_pic_GCJ"; then
16677 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16678 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16679 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 lt_prog_compiler_pic_works_GCJ=no
16683 ac_outfile=conftest.$ac_objext
16684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16685 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16686 # Insert the option either (1) after the last *FLAGS variable, or
16687 # (2) before a word containing "conftest.", or (3) at the end.
16688 # Note that $ac_compile itself does not contain backslashes and begins
16689 # with a dollar sign (not a hyphen), so the echo should work correctly.
16690 # The option is referenced via a variable to avoid confusing sed.
16691 lt_compile=`echo "$ac_compile" | $SED \
16692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16694 -e 's:$: $lt_compiler_flag:'`
16695 (eval echo "\"\$as_me:16695: $lt_compile\"" >&5)
16696 (eval "$lt_compile" 2>conftest.err)
16698 cat conftest.err >&5
16699 echo "$as_me:16699: \$? = $ac_status" >&5
16700 if (exit $ac_status) && test -s "$ac_outfile"; then
16701 # The compiler can only warn and ignore the option if not recognized
16702 # So say no if there are warnings other than the usual output.
16703 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16706 lt_prog_compiler_pic_works_GCJ=yes
16712 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16713 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16715 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16716 case $lt_prog_compiler_pic_GCJ in
16718 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16721 lt_prog_compiler_pic_GCJ=
16722 lt_prog_compiler_can_build_shared_GCJ=no
16727 # For platforms which do not support PIC, -DPIC is meaningless:
16729 lt_prog_compiler_pic_GCJ=
16732 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16737 # Check to make sure the static flag actually works.
16739 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16740 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16741 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16742 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 lt_prog_compiler_static_works_GCJ=no
16746 save_LDFLAGS="$LDFLAGS"
16747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16748 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16750 # The linker can only warn and ignore the option if not recognized
16751 # So say no if there are warnings
16752 if test -s conftest.err; then
16753 # Append any errors to the config.log.
16754 cat conftest.err 1>&5
16755 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16757 if diff conftest.exp conftest.er2 >/dev/null; then
16758 lt_prog_compiler_static_works_GCJ=yes
16761 lt_prog_compiler_static_works_GCJ=yes
16765 LDFLAGS="$save_LDFLAGS"
16768 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16769 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16771 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16774 lt_prog_compiler_static_GCJ=
16778 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16779 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16780 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16781 echo $ECHO_N "(cached) $ECHO_C" >&6
16783 lt_cv_prog_compiler_c_o_GCJ=no
16784 $rm -r conftest 2>/dev/null
16788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16790 lt_compiler_flag="-o out/conftest2.$ac_objext"
16791 # Insert the option either (1) after the last *FLAGS variable, or
16792 # (2) before a word containing "conftest.", or (3) at the end.
16793 # Note that $ac_compile itself does not contain backslashes and begins
16794 # with a dollar sign (not a hyphen), so the echo should work correctly.
16795 lt_compile=`echo "$ac_compile" | $SED \
16796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16798 -e 's:$: $lt_compiler_flag:'`
16799 (eval echo "\"\$as_me:16799: $lt_compile\"" >&5)
16800 (eval "$lt_compile" 2>out/conftest.err)
16802 cat out/conftest.err >&5
16803 echo "$as_me:16803: \$? = $ac_status" >&5
16804 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16806 # The compiler can only warn and ignore the option if not recognized
16807 # So say no if there are warnings
16808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16809 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16810 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16811 lt_cv_prog_compiler_c_o_GCJ=yes
16816 # SGI C++ compiler will create directory out/ii_files/ for
16817 # template instantiation
16818 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16819 $rm out/* && rmdir out
16825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16826 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16829 hard_links="nottested"
16830 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16831 # do not overwrite the value of need_locks provided by the user
16832 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16833 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838 ln conftest.a conftest.b 2>&5 || hard_links=no
16839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16840 { echo "$as_me:$LINENO: result: $hard_links" >&5
16841 echo "${ECHO_T}$hard_links" >&6; }
16842 if test "$hard_links" = no; then
16843 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16844 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16851 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16852 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16855 allow_undefined_flag_GCJ=
16856 enable_shared_with_static_runtimes_GCJ=no
16858 archive_expsym_cmds_GCJ=
16859 old_archive_From_new_cmds_GCJ=
16860 old_archive_from_expsyms_cmds_GCJ=
16861 export_dynamic_flag_spec_GCJ=
16862 whole_archive_flag_spec_GCJ=
16863 thread_safe_flag_spec_GCJ=
16864 hardcode_libdir_flag_spec_GCJ=
16865 hardcode_libdir_flag_spec_ld_GCJ=
16866 hardcode_libdir_separator_GCJ=
16867 hardcode_direct_GCJ=no
16868 hardcode_minus_L_GCJ=no
16869 hardcode_shlibpath_var_GCJ=unsupported
16870 link_all_deplibs_GCJ=unknown
16871 hardcode_automatic_GCJ=no
16873 module_expsym_cmds_GCJ=
16874 always_export_symbols_GCJ=no
16875 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16876 # include_expsyms should be a list of space-separated symbols to be *always*
16877 # included in the symbol list
16878 include_expsyms_GCJ=
16879 # exclude_expsyms can be an extended regexp of symbols to exclude
16880 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16881 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16882 # as well as any symbol that contains `d'.
16883 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16885 # platforms (ab)use it in PIC code, but their linkers get confused if
16886 # the symbol is explicitly referenced. Since portable code cannot
16887 # rely on this symbol name, it's probably fine to never include it in
16888 # preloaded symbol tables.
16889 extract_expsyms_cmds=
16890 # Just being paranoid about ensuring that cc_basename is set.
16891 for cc_temp in $compiler""; do
16893 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16894 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16902 cygwin* | mingw* | pw32*)
16903 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16904 # When not using gcc, we currently assume that we are using
16905 # Microsoft Visual C++.
16906 if test "$GCC" != yes; then
16911 # we just hope/assume this is gcc and not c89 (= MSVC++)
16920 if test "$with_gnu_ld" = yes; then
16921 # If archive_cmds runs LD, not CC, wlarc should be empty
16924 # Set some defaults for GNU ld with shared library support. These
16925 # are reset later if shared libraries are not supported. Putting them
16926 # here allows them to be overridden if necessary.
16927 runpath_var=LD_RUN_PATH
16928 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16929 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16930 # ancient GNU ld didn't support --whole-archive et. al.
16931 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16932 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16934 whole_archive_flag_spec_GCJ=
16936 supports_anon_versioning=no
16937 case `$LD -v 2>/dev/null` in
16938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16941 *\ 2.11.*) ;; # other 2.11 versions
16942 *) supports_anon_versioning=yes ;;
16945 # See if GNU ld supports shared libraries.
16947 aix3* | aix4* | aix5*)
16948 # On AIX/PPC, the GNU linker is very broken
16949 if test "$host_cpu" != ia64; then
16953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16954 *** to be unable to reliably create shared libraries on AIX.
16955 *** Therefore, libtool is disabling shared libraries support. If you
16956 *** really care for shared libraries, you may want to modify your PATH
16957 *** so that a non-GNU linker is found, and then restart.
16964 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)'
16965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16966 hardcode_minus_L_GCJ=yes
16968 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16969 # that the semantics of dynamic libraries on AmigaOS, at least up
16970 # to version 4, is to share data among multiple programs linked
16971 # with the same dynamic library. Since this doesn't match the
16972 # behavior of shared libraries on other platforms, we can't use
16978 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16979 allow_undefined_flag_GCJ=unsupported
16980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16981 # support --undefined. This deserves some investigation. FIXME
16982 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 cygwin* | mingw* | pw32*)
16989 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16990 # as there is no search path for DLLs.
16991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16992 allow_undefined_flag_GCJ=unsupported
16993 always_export_symbols_GCJ=no
16994 enable_shared_with_static_runtimes_GCJ=yes
16995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16997 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16999 # If the export-symbols file already is a .def file (1st line
17000 # is EXPORTS), use it as is; otherwise, prepend...
17001 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17002 cp $export_symbols $output_objdir/$soname.def;
17004 echo EXPORTS > $output_objdir/$soname.def;
17005 cat $export_symbols >> $output_objdir/$soname.def;
17007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17014 hardcode_direct_GCJ=no
17015 hardcode_shlibpath_var_GCJ=no
17016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17017 export_dynamic_flag_spec_GCJ='${wl}-E'
17018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17019 # Instead, shared libraries are loaded at an image base (0x10000000 by
17020 # default) and relocated if they conflict, which is a slow very memory
17021 # consuming and fragmenting process. To avoid this, we pick a random,
17022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17024 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'
17025 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'
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17031 case $cc_basename,$host_cpu in
17032 pgcc*) # Portland Group C compiler
17033 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'
17034 tmp_addflag=' $pic_flag'
17036 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17037 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'
17038 tmp_addflag=' $pic_flag -Mnomain' ;;
17039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17040 tmp_addflag=' -i_dynamic' ;;
17041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17042 tmp_addflag=' -i_dynamic -nofor_main' ;;
17043 ifc* | ifort*) # Intel Fortran compiler
17044 tmp_addflag=' -nofor_main' ;;
17046 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17048 if test $supports_anon_versioning = yes; then
17049 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17051 $echo "local: *; };" >> $output_objdir/$libname.ver~
17052 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17061 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17064 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17065 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17070 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17074 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17075 *** create shared libraries on Solaris systems. Therefore, libtool
17076 *** is disabling shared libraries support. We urge you to upgrade GNU
17077 *** binutils to release 2.9.1 or newer. Another option is to modify
17078 *** your PATH or compiler configuration so that the native linker is
17079 *** used, and then restart.
17082 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17083 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17084 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17091 case `$LD -v 2>&1` in
17092 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17096 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17097 *** reliably create shared libraries on SCO systems. Therefore, libtool
17098 *** is disabling shared libraries support. We urge you to upgrade GNU
17099 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17100 *** your PATH or compiler configuration so that the native linker is
17101 *** used, and then restart.
17106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17107 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17108 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17109 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17118 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120 hardcode_direct_GCJ=yes
17121 hardcode_shlibpath_var_GCJ=no
17125 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17126 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17127 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17134 if test "$ld_shlibs_GCJ" = no; then
17136 hardcode_libdir_flag_spec_GCJ=
17137 export_dynamic_flag_spec_GCJ=
17138 whole_archive_flag_spec_GCJ=
17141 # PORTME fill in a description of your system's linker (not GNU ld)
17144 allow_undefined_flag_GCJ=unsupported
17145 always_export_symbols_GCJ=yes
17146 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'
17147 # Note: this linker hardcodes the directories in LIBPATH if there
17148 # are no directories specified by -L.
17149 hardcode_minus_L_GCJ=yes
17150 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17151 # Neither direct hardcoding nor static linking is supported with a
17153 hardcode_direct_GCJ=unsupported
17158 if test "$host_cpu" = ia64; then
17159 # On IA64, the linker does run time linking by default, so we don't
17160 # have to do anything special.
17161 aix_use_runtimelinking=no
17162 exp_sym_flag='-Bexport'
17165 # If we're using GNU nm, then we don't want the "-C" option.
17166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17167 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17168 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'
17170 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'
17172 aix_use_runtimelinking=no
17174 # Test if we are trying to use run time linking or normal
17175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17176 # need to do runtime linking.
17177 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17178 for ld_flag in $LDFLAGS; do
17179 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17180 aix_use_runtimelinking=yes
17187 exp_sym_flag='-bexport'
17188 no_entry_flag='-bnoentry'
17191 # When large executables or shared objects are built, AIX ld can
17192 # have problems creating the table of contents. If linking a library
17193 # or program results in "error TOC overflow" add -mminimal-toc to
17194 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17195 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17197 archive_cmds_GCJ=''
17198 hardcode_direct_GCJ=yes
17199 hardcode_libdir_separator_GCJ=':'
17200 link_all_deplibs_GCJ=yes
17202 if test "$GCC" = yes; then
17203 case $host_os in aix4.[012]|aix4.[012].*)
17204 # We only want to do this on AIX 4.2 and lower, the check
17205 # below for broken collect2 doesn't work under 4.3+
17206 collect2name=`${CC} -print-prog-name=collect2`
17207 if test -f "$collect2name" && \
17208 strings "$collect2name" | grep resolve_lib_name >/dev/null
17210 # We have reworked collect2
17211 hardcode_direct_GCJ=yes
17213 # We have old collect2
17214 hardcode_direct_GCJ=unsupported
17215 # It fails to find uninstalled libraries when the uninstalled
17216 # path is not listed in the libpath. Setting hardcode_minus_L
17217 # to unsupported forces relinking
17218 hardcode_minus_L_GCJ=yes
17219 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220 hardcode_libdir_separator_GCJ=
17224 shared_flag='-shared'
17225 if test "$aix_use_runtimelinking" = yes; then
17226 shared_flag="$shared_flag "'${wl}-G'
17230 if test "$host_cpu" = ia64; then
17231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17232 # chokes on -Wl,-G. The following line is correct:
17235 if test "$aix_use_runtimelinking" = yes; then
17236 shared_flag='${wl}-G'
17238 shared_flag='${wl}-bM:SRE'
17243 # It seems that -bexpall does not export symbols beginning with
17244 # underscore (_), so it is better to generate a list of symbols to export.
17245 always_export_symbols_GCJ=yes
17246 if test "$aix_use_runtimelinking" = yes; then
17247 # Warning - without using the other runtime loading flags (-brtl),
17248 # -berok will link without error, but may produce a broken library.
17249 allow_undefined_flag_GCJ='-berok'
17250 # Determine the default libpath from the value encoded in an empty executable.
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^ *+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17287 # Check for a 64-bit object if we didn't find anything.
17288 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; }
17291 echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17298 conftest$ac_exeext conftest.$ac_ext
17299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17301 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17302 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"
17304 if test "$host_cpu" = ia64; then
17305 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17306 allow_undefined_flag_GCJ="-z nodefs"
17307 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"
17309 # Determine the default libpath from the value encoded in an empty executable.
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332 (eval "$ac_link") 2>conftest.er1
17334 grep -v '^ *+' conftest.er1 >conftest.err
17336 cat conftest.err >&5
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } && {
17339 test -z "$ac_c_werror_flag" ||
17340 test ! -s conftest.err
17341 } && test -s conftest$ac_exeext &&
17342 $as_test_x conftest$ac_exeext; then
17344 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17346 # Check for a 64-bit object if we didn't find anything.
17347 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; }
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17357 conftest$ac_exeext conftest.$ac_ext
17358 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17360 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17361 # Warning - without using the other run time loading flags,
17362 # -berok will link without error, but may produce a broken library.
17363 no_undefined_flag_GCJ=' ${wl}-bernotok'
17364 allow_undefined_flag_GCJ=' ${wl}-berok'
17365 # Exported symbols can be pulled into shared objects from archives
17366 whole_archive_flag_spec_GCJ='$convenience'
17367 archive_cmds_need_lc_GCJ=yes
17368 # This is similar to how AIX traditionally builds its shared libraries.
17369 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'
17375 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)'
17376 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17377 hardcode_minus_L_GCJ=yes
17378 # see comment about different semantics on the GNU ld section
17383 export_dynamic_flag_spec_GCJ=-rdynamic
17386 cygwin* | mingw* | pw32*)
17387 # When not using gcc, we currently assume that we are using
17388 # Microsoft Visual C++.
17389 # hardcode_libdir_flag_spec is actually meaningless, as there is
17390 # no search path for DLLs.
17391 hardcode_libdir_flag_spec_GCJ=' '
17392 allow_undefined_flag_GCJ=unsupported
17393 # Tell ltmain to make .lib files, not .a files.
17395 # Tell ltmain to make .dll files, not .so files.
17397 # FIXME: Setting linknames here is a bad hack.
17398 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17399 # The linker will automatically build a .lib file if we build a DLL.
17400 old_archive_From_new_cmds_GCJ='true'
17401 # FIXME: Should let the user specify the lib program.
17402 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17403 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17404 enable_shared_with_static_runtimes_GCJ=yes
17407 darwin* | rhapsody*)
17409 rhapsody* | darwin1.[012])
17410 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17414 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17416 case ${MACOSX_DEPLOYMENT_TARGET} in
17418 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17421 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17427 archive_cmds_need_lc_GCJ=no
17428 hardcode_direct_GCJ=no
17429 hardcode_automatic_GCJ=yes
17430 hardcode_shlibpath_var_GCJ=unsupported
17431 whole_archive_flag_spec_GCJ=''
17432 link_all_deplibs_GCJ=yes
17433 if test "$GCC" = yes ; then
17434 output_verbose_link_cmd='echo'
17435 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17436 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17438 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}'
17439 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}'
17441 case $cc_basename in
17443 output_verbose_link_cmd='echo'
17444 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17445 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17447 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}'
17448 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}'
17458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17460 hardcode_shlibpath_var_GCJ=no
17467 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17468 # support. Future versions do this automatically, but an explicit c++rt0.o
17469 # does not break anything, and helps significantly (at the cost of a little
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17474 hardcode_direct_GCJ=yes
17475 hardcode_shlibpath_var_GCJ=no
17478 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17480 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17481 hardcode_direct_GCJ=yes
17482 hardcode_minus_L_GCJ=yes
17483 hardcode_shlibpath_var_GCJ=no
17486 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17487 freebsd* | kfreebsd*-gnu | dragonfly*)
17488 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17489 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17490 hardcode_direct_GCJ=yes
17491 hardcode_shlibpath_var_GCJ=no
17495 if test "$GCC" = yes; then
17496 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'
17498 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'
17500 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17501 hardcode_libdir_separator_GCJ=:
17502 hardcode_direct_GCJ=yes
17504 # hardcode_minus_L: Not really in the search PATH,
17505 # but as the default location of the library.
17506 hardcode_minus_L_GCJ=yes
17507 export_dynamic_flag_spec_GCJ='${wl}-E'
17511 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17512 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17514 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17516 if test "$with_gnu_ld" = no; then
17517 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17518 hardcode_libdir_separator_GCJ=:
17520 hardcode_direct_GCJ=yes
17521 export_dynamic_flag_spec_GCJ='${wl}-E'
17523 # hardcode_minus_L: Not really in the search PATH,
17524 # but as the default location of the library.
17525 hardcode_minus_L_GCJ=yes
17530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17533 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17536 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17545 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17548 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17551 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17555 if test "$with_gnu_ld" = no; then
17556 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17557 hardcode_libdir_separator_GCJ=:
17561 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17562 hardcode_direct_GCJ=no
17563 hardcode_shlibpath_var_GCJ=no
17566 hardcode_direct_GCJ=yes
17567 export_dynamic_flag_spec_GCJ='${wl}-E'
17569 # hardcode_minus_L: Not really in the search PATH,
17570 # but as the default location of the library.
17571 hardcode_minus_L_GCJ=yes
17577 irix5* | irix6* | nonstopux*)
17578 if test "$GCC" = yes; then
17579 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'
17581 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'
17582 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17584 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17585 hardcode_libdir_separator_GCJ=:
17586 link_all_deplibs_GCJ=yes
17590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17591 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17593 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17595 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17596 hardcode_direct_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=no
17601 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17602 hardcode_direct_GCJ=yes
17603 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17604 hardcode_libdir_separator_GCJ=:
17605 hardcode_shlibpath_var_GCJ=no
17609 hardcode_direct_GCJ=yes
17610 hardcode_shlibpath_var_GCJ=no
17611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17612 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17613 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17614 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17615 export_dynamic_flag_spec_GCJ='${wl}-E'
17618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17619 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17623 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17624 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632 hardcode_minus_L_GCJ=yes
17633 allow_undefined_flag_GCJ=unsupported
17634 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'
17635 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17639 if test "$GCC" = yes; then
17640 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17641 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'
17643 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17644 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'
17646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17647 hardcode_libdir_separator_GCJ=:
17650 osf4* | osf5*) # as osf3* with the addition of -msym flag
17651 if test "$GCC" = yes; then
17652 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17653 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'
17654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17656 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17657 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'
17658 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~
17659 $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'
17661 # Both c and cxx compiler support -rpath directly
17662 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17664 hardcode_libdir_separator_GCJ=:
17668 no_undefined_flag_GCJ=' -z text'
17669 if test "$GCC" = yes; then
17671 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17672 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17673 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17676 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17677 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17678 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17680 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17681 hardcode_shlibpath_var_GCJ=no
17683 solaris2.[0-5] | solaris2.[0-5].*) ;;
17685 # The compiler driver will combine linker options so we
17686 # cannot just pass the convience library names through
17687 # without $wl, iff we do not link with $LD.
17688 # Luckily, gcc supports the same syntax we need for Sun Studio.
17689 # Supported since Solaris 2.6 (maybe 2.5.1?)
17692 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17694 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' ;;
17697 link_all_deplibs_GCJ=yes
17701 if test "x$host_vendor" = xsequent; then
17702 # Use $CC to link under sequent, because it throws in some extra .o
17703 # files that make .init and .fini sections work.
17704 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17706 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17708 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17709 hardcode_direct_GCJ=yes
17710 hardcode_minus_L_GCJ=yes
17711 hardcode_shlibpath_var_GCJ=no
17715 case $host_vendor in
17717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17718 hardcode_direct_GCJ=yes # is this really true???
17721 ## LD is ld it makes a PLAMLIB
17722 ## CC just makes a GrossModule.
17723 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17724 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17725 hardcode_direct_GCJ=no
17728 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17729 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17732 runpath_var='LD_RUN_PATH'
17733 hardcode_shlibpath_var_GCJ=no
17737 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17738 hardcode_shlibpath_var_GCJ=no
17739 export_dynamic_flag_spec_GCJ='-Bexport'
17743 if test -d /usr/nec; then
17744 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17745 hardcode_shlibpath_var_GCJ=no
17746 runpath_var=LD_RUN_PATH
17747 hardcode_runpath_var=yes
17752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17753 no_undefined_flag_GCJ='${wl}-z,text'
17754 archive_cmds_need_lc_GCJ=no
17755 hardcode_shlibpath_var_GCJ=no
17756 runpath_var='LD_RUN_PATH'
17758 if test "$GCC" = yes; then
17759 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17763 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17767 sysv5* | sco3.2v5* | sco5v6*)
17768 # Note: We can NOT use -z defs as we might desire, because we do not
17769 # link with -lc, and that would cause any symbols used from libc to
17770 # always be unresolved, which means just about no library would
17771 # ever link correctly. If we're not using GNU ld we use -z text
17772 # though, which does catch some bad symbols but isn't as heavy-handed
17774 no_undefined_flag_GCJ='${wl}-z,text'
17775 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17776 archive_cmds_need_lc_GCJ=no
17777 hardcode_shlibpath_var_GCJ=no
17778 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17779 hardcode_libdir_separator_GCJ=':'
17780 link_all_deplibs_GCJ=yes
17781 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17782 runpath_var='LD_RUN_PATH'
17784 if test "$GCC" = yes; then
17785 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17788 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17789 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17796 hardcode_shlibpath_var_GCJ=no
17805 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17806 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17807 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17810 # Do we need to explicitly link libc?
17812 case "x$archive_cmds_need_lc_GCJ" in
17814 # Assume -lc should be added
17815 archive_cmds_need_lc_GCJ=yes
17817 if test "$enable_shared" = yes && test "$GCC" = yes; then
17818 case $archive_cmds_GCJ in
17820 # FIXME: we may have to deal with multi-command sequences.
17823 # Test whether the compiler implicitly links with -lc since on some
17824 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17825 # to ld, don't add -lc before -lgcc.
17826 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17832 (eval $ac_compile) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } 2>conftest.err; then
17838 libobjs=conftest.$ac_objext
17840 wl=$lt_prog_compiler_wl_GCJ
17841 pic_flag=$lt_prog_compiler_pic_GCJ
17847 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17848 allow_undefined_flag_GCJ=
17849 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17850 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }
17855 archive_cmds_need_lc_GCJ=no
17857 archive_cmds_need_lc_GCJ=yes
17859 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17861 cat conftest.err 1>&5
17864 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17865 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17872 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17873 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17874 library_names_spec=
17875 libname_spec='lib$name'
17879 postuninstall_cmds=
17883 shlibpath_overrides_runpath=unknown
17885 dynamic_linker="$host_os ld.so"
17886 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17887 if test "$GCC" = yes; then
17888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17889 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17890 # if the path contains ";" then we assume it to be the separator
17891 # otherwise default to the standard path separator (i.e. ":") - it is
17892 # assumed that no part of a normal pathname contains ";" but that should
17893 # okay in the real world where ";" in dirpaths is itself problematic.
17894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17899 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17901 need_lib_prefix=unknown
17902 hardcode_into_libs=no
17904 # when you set need_version to no, make sure it does not cause -set_version
17905 # flags to be left without arguments
17906 need_version=unknown
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17912 shlibpath_var=LIBPATH
17914 # AIX 3 has no versioning support, so we append a major version to the name.
17915 soname_spec='${libname}${release}${shared_ext}$major'
17922 hardcode_into_libs=yes
17923 if test "$host_cpu" = ia64; then
17924 # AIX 5 supports IA64
17925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17926 shlibpath_var=LD_LIBRARY_PATH
17928 # With GCC up to 2.95.x, collect2 would create an import file
17929 # for dependence libraries. The import file would start with
17930 # the line `#! .'. This would cause the generated library to
17931 # depend on `.', always an invalid library. This was fixed in
17932 # development snapshots of GCC prior to 3.0.
17934 aix4 | aix4.[01] | aix4.[01].*)
17935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17937 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17940 can_build_shared=no
17944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17945 # soname into executable. Probably we can add versioning support to
17946 # collect2, so additional links can be useful in future.
17947 if test "$aix_use_runtimelinking" = yes; then
17948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17949 # instead of lib<name>.a to let people know that these are not
17950 # typical AIX shared libraries.
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17953 # We preserve .a as extension for shared libraries through AIX4.2
17954 # and later when we are not doing run time linking.
17955 library_names_spec='${libname}${release}.a $libname.a'
17956 soname_spec='${libname}${release}${shared_ext}$major'
17958 shlibpath_var=LIBPATH
17963 library_names_spec='$libname.ixlibrary $libname.a'
17964 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17965 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'
17969 library_names_spec='${libname}${shared_ext}'
17970 dynamic_linker="$host_os ld.so"
17971 shlibpath_var=LIBRARY_PATH
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978 soname_spec='${libname}${release}${shared_ext}$major'
17979 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17980 shlibpath_var=LD_LIBRARY_PATH
17981 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17982 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17983 # the default ld.so.conf also contains /usr/contrib/lib and
17984 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17985 # libtool to hard-code these into programs
17988 cygwin* | mingw* | pw32*)
17989 version_type=windows
17994 case $GCC,$host_os in
17995 yes,cygwin* | yes,mingw* | yes,pw32*)
17996 library_names_spec='$libname.dll.a'
17997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17998 postinstall_cmds='base_file=`basename \${file}`~
17999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18000 dldir=$destdir/`dirname \$dlpath`~
18001 test -d \$dldir || mkdir -p \$dldir~
18002 $install_prog $dir/$dlname \$dldir/$dlname~
18003 chmod a+x \$dldir/$dlname'
18004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18005 dlpath=$dir/\$dldll~
18007 shlibpath_overrides_runpath=yes
18011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18013 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18016 # MinGW DLLs use traditional 'lib' prefix
18017 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18018 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18019 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18020 # It is most probably a Windows format PATH printed by
18021 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18022 # path with ; separators, and with drive letters. We can handle the
18023 # drive letters (cygwin fileutils understands them), so leave them,
18024 # especially as we might pass files found there to a mingw objdump,
18025 # which wouldn't understand a cygwinified path. Ahh.
18026 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18032 # pw32 DLLs use 'pw' prefix rather than 'lib'
18033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18042 dynamic_linker='Win32 ld.exe'
18043 # FIXME: first we should search . and the directory the executable is in
18047 darwin* | rhapsody*)
18048 dynamic_linker="$host_os dyld"
18049 version_type=darwin
18052 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18053 soname_spec='${libname}${release}${major}$shared_ext'
18054 shlibpath_overrides_runpath=yes
18055 shlibpath_var=DYLD_LIBRARY_PATH
18056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18057 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18058 if test "$GCC" = yes; then
18059 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"`
18061 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 shlibpath_var=LD_LIBRARY_PATH
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 shlibpath_var=LD_LIBRARY_PATH
18086 shlibpath_overrides_runpath=no
18087 hardcode_into_libs=yes
18088 dynamic_linker='GNU ld.so'
18091 freebsd* | dragonfly*)
18092 # DragonFly does not have aout. When/if they implement a new
18093 # versioning mechanism, adjust this.
18094 if test -x /usr/bin/objformat; then
18095 objformat=`/usr/bin/objformat`
18098 freebsd[123]*) objformat=aout ;;
18099 *) objformat=elf ;;
18102 version_type=freebsd-$objformat
18103 case $version_type in
18105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18114 shlibpath_var=LD_LIBRARY_PATH
18117 shlibpath_overrides_runpath=yes
18119 freebsd3.[01]* | freebsdelf3.[01]*)
18120 shlibpath_overrides_runpath=yes
18121 hardcode_into_libs=yes
18123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18125 shlibpath_overrides_runpath=no
18126 hardcode_into_libs=yes
18128 freebsd*) # from 4.6 on
18129 shlibpath_overrides_runpath=yes
18130 hardcode_into_libs=yes
18139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18140 soname_spec='${libname}${release}${shared_ext}$major'
18141 shlibpath_var=LD_LIBRARY_PATH
18142 hardcode_into_libs=yes
18145 hpux9* | hpux10* | hpux11*)
18146 # Give a soname corresponding to the major version so that dld.sl refuses to
18147 # link against other versions.
18154 hardcode_into_libs=yes
18155 dynamic_linker="$host_os dld.so"
18156 shlibpath_var=LD_LIBRARY_PATH
18157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18160 if test "X$HPUX_IA64_MODE" = X32; then
18161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18169 hardcode_into_libs=yes
18170 dynamic_linker="$host_os dld.sl"
18171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18180 dynamic_linker="$host_os dld.sl"
18181 shlibpath_var=SHLIB_PATH
18182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 soname_spec='${libname}${release}${shared_ext}$major'
18187 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18188 postinstall_cmds='chmod 555 $lib'
18195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18196 soname_spec='${libname}${release}${shared_ext}$major'
18197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18198 shlibpath_var=LD_LIBRARY_PATH
18199 shlibpath_overrides_runpath=no
18200 hardcode_into_libs=yes
18203 irix5* | irix6* | nonstopux*)
18205 nonstopux*) version_type=nonstopux ;;
18207 if test "$lt_cv_prog_gnu_ld" = yes; then
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18218 irix5* | nonstopux*)
18219 libsuff= shlibsuff=
18222 case $LD in # libtool.m4 will add one of these switches to LD
18223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18224 libsuff= shlibsuff= libmagic=32-bit;;
18225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18226 libsuff=32 shlibsuff=N32 libmagic=N32;;
18227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18229 *) libsuff= shlibsuff= libmagic=never-match;;
18233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18234 shlibpath_overrides_runpath=no
18235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18237 hardcode_into_libs=yes
18240 # No shared lib support for Linux oldld, aout, or coff.
18241 linux*oldld* | linux*aout* | linux*coff*)
18245 # This must be Linux ELF.
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 shlibpath_overrides_runpath=no
18255 # This implies no fast_install, which is unacceptable.
18256 # Some rework will be needed to allow for fast_install
18257 # before this can be enabled.
18258 hardcode_into_libs=yes
18260 # Append ld.so.conf contents to the search path
18261 if test -f /etc/ld.so.conf; then
18262 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' ' '`
18263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18266 # We used to test for /lib/ld.so.1 and disable shared libraries on
18267 # powerpc, because MkLinux only supported shared libraries with the
18268 # GNU dynamic linker. Since this was broken with cross compilers,
18269 # most powerpc-linux boxes support dynamic linking these days and
18270 # people can always --disable-shared, the test was removed, and we
18271 # assume the GNU/Linux dynamic linker is in use.
18272 dynamic_linker='GNU/Linux ld.so'
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 shlibpath_overrides_runpath=no
18283 hardcode_into_libs=yes
18284 dynamic_linker='GNU ld.so'
18291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18294 dynamic_linker='NetBSD (a.out) ld.so'
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18297 soname_spec='${libname}${release}${shared_ext}$major'
18298 dynamic_linker='NetBSD ld.elf_so'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 shlibpath_overrides_runpath=yes
18302 hardcode_into_libs=yes
18307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 shlibpath_overrides_runpath=yes
18316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18317 soname_spec='${libname}${release}${shared_ext}$major'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 shlibpath_overrides_runpath=yes
18324 sys_lib_dlsearch_path_spec="/usr/lib"
18326 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18328 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18329 *) need_version=no ;;
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18336 openbsd2.[89] | openbsd2.[89].*)
18337 shlibpath_overrides_runpath=no
18340 shlibpath_overrides_runpath=yes
18344 shlibpath_overrides_runpath=yes
18349 libname_spec='$name'
18352 library_names_spec='$libname${shared_ext} $libname.a'
18353 dynamic_linker='OS/2 ld.exe'
18354 shlibpath_var=LIBPATH
18357 osf3* | osf4* | osf5*)
18361 soname_spec='${libname}${release}${shared_ext}$major'
18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363 shlibpath_var=LD_LIBRARY_PATH
18364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 shlibpath_var=LD_LIBRARY_PATH
18375 shlibpath_overrides_runpath=yes
18376 hardcode_into_libs=yes
18377 # ldd complains unless libraries are executable
18378 postinstall_cmds='chmod +x $lib'
18383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18385 shlibpath_var=LD_LIBRARY_PATH
18386 shlibpath_overrides_runpath=yes
18387 if test "$with_gnu_ld" = yes; then
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 case $host_vendor in
18400 shlibpath_overrides_runpath=no
18402 export_dynamic_flag_spec='${wl}-Blargedynsym'
18403 runpath_var=LD_RUN_PATH
18411 shlibpath_overrides_runpath=no
18412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18418 if test -d /usr/nec ;then
18420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18421 soname_spec='$libname${shared_ext}.$major'
18422 shlibpath_var=LD_LIBRARY_PATH
18426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18427 version_type=freebsd-elf
18430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18431 soname_spec='${libname}${release}${shared_ext}$major'
18432 shlibpath_var=LD_LIBRARY_PATH
18433 hardcode_into_libs=yes
18434 if test "$with_gnu_ld" = yes; then
18435 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18436 shlibpath_overrides_runpath=no
18438 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18439 shlibpath_overrides_runpath=yes
18442 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18446 sys_lib_dlsearch_path_spec='/usr/lib'
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 shlibpath_var=LD_LIBRARY_PATH
18460 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18461 echo "${ECHO_T}$dynamic_linker" >&6; }
18462 test "$dynamic_linker" = no && can_build_shared=no
18464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18465 if test "$GCC" = yes; then
18466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18469 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18470 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18471 hardcode_action_GCJ=
18472 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18473 test -n "$runpath_var_GCJ" || \
18474 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18476 # We can hardcode non-existant directories.
18477 if test "$hardcode_direct_GCJ" != no &&
18478 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18479 # have to relink, otherwise we might link with an installed library
18480 # when we should be linking with a yet-to-be-installed one
18481 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18482 test "$hardcode_minus_L_GCJ" != no; then
18483 # Linking always hardcodes the temporary library directory.
18484 hardcode_action_GCJ=relink
18486 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18487 hardcode_action_GCJ=immediate
18490 # We cannot hardcode anything, or else we can only hardcode existing
18492 hardcode_action_GCJ=unsupported
18494 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18495 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18497 if test "$hardcode_action_GCJ" = relink; then
18498 # Fast installation is not supported
18499 enable_fast_install=no
18500 elif test "$shlibpath_overrides_runpath" = yes ||
18501 test "$enable_shared" = no; then
18502 # Fast installation is not necessary
18503 enable_fast_install=needless
18507 # The else clause should only fire when bootstrapping the
18508 # libtool distribution, otherwise you forgot to ship ltmain.sh
18509 # with your package, and you will get complaints that there are
18510 # no rules to generate ltmain.sh.
18511 if test -f "$ltmain"; then
18512 # See if we are running on zsh, and set the options which allow our commands through
18513 # without removal of \ escapes.
18514 if test -n "${ZSH_VERSION+set}" ; then
18515 setopt NO_GLOB_SUBST
18517 # Now quote all the things that may contain metacharacters while being
18518 # careful not to overquote the AC_SUBSTed values. We take copies of the
18519 # variables and quote the copies for generation of the libtool script.
18520 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18524 deplibs_check_method reload_flag reload_cmds need_locks \
18525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18526 lt_cv_sys_global_symbol_to_c_name_address \
18527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18528 old_postinstall_cmds old_postuninstall_cmds \
18532 lt_prog_compiler_wl_GCJ \
18533 lt_prog_compiler_pic_GCJ \
18534 lt_prog_compiler_static_GCJ \
18535 lt_prog_compiler_no_builtin_flag_GCJ \
18536 export_dynamic_flag_spec_GCJ \
18537 thread_safe_flag_spec_GCJ \
18538 whole_archive_flag_spec_GCJ \
18539 enable_shared_with_static_runtimes_GCJ \
18540 old_archive_cmds_GCJ \
18541 old_archive_from_new_cmds_GCJ \
18542 predep_objects_GCJ \
18543 postdep_objects_GCJ \
18546 compiler_lib_search_path_GCJ \
18548 archive_expsym_cmds_GCJ \
18549 postinstall_cmds_GCJ \
18550 postuninstall_cmds_GCJ \
18551 old_archive_from_expsyms_cmds_GCJ \
18552 allow_undefined_flag_GCJ \
18553 no_undefined_flag_GCJ \
18554 export_symbols_cmds_GCJ \
18555 hardcode_libdir_flag_spec_GCJ \
18556 hardcode_libdir_flag_spec_ld_GCJ \
18557 hardcode_libdir_separator_GCJ \
18558 hardcode_automatic_GCJ \
18560 module_expsym_cmds_GCJ \
18561 lt_cv_prog_compiler_c_o_GCJ \
18562 exclude_expsyms_GCJ \
18563 include_expsyms_GCJ; do
18566 old_archive_cmds_GCJ | \
18567 old_archive_from_new_cmds_GCJ | \
18568 archive_cmds_GCJ | \
18569 archive_expsym_cmds_GCJ | \
18570 module_cmds_GCJ | \
18571 module_expsym_cmds_GCJ | \
18572 old_archive_from_expsyms_cmds_GCJ | \
18573 export_symbols_cmds_GCJ | \
18574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18575 postinstall_cmds | postuninstall_cmds | \
18576 old_postinstall_cmds | old_postuninstall_cmds | \
18577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18578 # Double-quote double-evaled strings.
18579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18588 *'\$0 --fallback-echo"')
18589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18595 cat <<__EOF__ >> "$cfgfile"
18596 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18598 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18600 # Shell to use when invoking shell scripts.
18603 # Whether or not to build shared libraries.
18604 build_libtool_libs=$enable_shared
18606 # Whether or not to build static libraries.
18607 build_old_libs=$enable_static
18609 # Whether or not to add -lc for building shared libraries.
18610 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18612 # Whether or not to disallow shared libs when runtime libs are static
18613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18615 # Whether or not to optimize for fast installation.
18616 fast_install=$enable_fast_install
18619 host_alias=$host_alias
18623 # The build system.
18624 build_alias=$build_alias
18628 # An echo program that does not interpret backslashes.
18633 AR_FLAGS=$lt_AR_FLAGS
18638 # LTCC compiler flags.
18639 LTCFLAGS=$lt_LTCFLAGS
18641 # A language-specific compiler.
18642 CC=$lt_compiler_GCJ
18644 # Is the compiler the GNU C compiler?
18650 # The linker used to build libraries.
18653 # Whether we need hard or soft links.
18656 # A BSD-compatible nm program.
18659 # A symbol stripping program
18662 # Used to examine libraries when file_magic_cmd begins "file"
18663 MAGIC_CMD=$MAGIC_CMD
18665 # Used on cygwin: DLL creation program.
18668 # Used on cygwin: object dumper.
18671 # Used on cygwin: assembler.
18674 # The name of the directory that contains temporary libtool files.
18677 # How to create reloadable object files.
18678 reload_flag=$lt_reload_flag
18679 reload_cmds=$lt_reload_cmds
18681 # How to pass a linker flag through the compiler.
18682 wl=$lt_lt_prog_compiler_wl_GCJ
18684 # Object file suffix (normally "o").
18685 objext="$ac_objext"
18687 # Old archive suffix (normally "a").
18690 # Shared library suffix (normally ".so").
18691 shrext_cmds='$shrext_cmds'
18693 # Executable file suffix (normally "").
18696 # Additional compiler flags for building library objects.
18697 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18700 # What is the maximum length of a command?
18701 max_cmd_len=$lt_cv_sys_max_cmd_len
18703 # Does compiler simultaneously support -c and -o options?
18704 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18706 # Must we lock files when doing compilation?
18707 need_locks=$lt_need_locks
18709 # Do we need the lib prefix for modules?
18710 need_lib_prefix=$need_lib_prefix
18712 # Do we need a version for libraries?
18713 need_version=$need_version
18715 # Whether dlopen is supported.
18716 dlopen_support=$enable_dlopen
18718 # Whether dlopen of programs is supported.
18719 dlopen_self=$enable_dlopen_self
18721 # Whether dlopen of statically linked programs is supported.
18722 dlopen_self_static=$enable_dlopen_self_static
18724 # Compiler flag to prevent dynamic linking.
18725 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18727 # Compiler flag to turn off builtin functions.
18728 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18730 # Compiler flag to allow reflexive dlopens.
18731 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18733 # Compiler flag to generate shared objects directly from archives.
18734 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18736 # Compiler flag to generate thread-safe objects.
18737 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18739 # Library versioning type.
18740 version_type=$version_type
18742 # Format of library name prefix.
18743 libname_spec=$lt_libname_spec
18745 # List of archive names. First name is the real one, the rest are links.
18746 # The last name is the one that the linker finds with -lNAME.
18747 library_names_spec=$lt_library_names_spec
18749 # The coded name of the library, if different from the real name.
18750 soname_spec=$lt_soname_spec
18752 # Commands used to build and install an old-style archive.
18754 old_archive_cmds=$lt_old_archive_cmds_GCJ
18755 old_postinstall_cmds=$lt_old_postinstall_cmds
18756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18758 # Create an old-style archive from a shared archive.
18759 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18761 # Create a temporary old-style archive to link instead of a shared archive.
18762 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18764 # Commands used to build and install a shared archive.
18765 archive_cmds=$lt_archive_cmds_GCJ
18766 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18767 postinstall_cmds=$lt_postinstall_cmds
18768 postuninstall_cmds=$lt_postuninstall_cmds
18770 # Commands used to build a loadable module (assumed same as above if empty)
18771 module_cmds=$lt_module_cmds_GCJ
18772 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18774 # Commands to strip libraries.
18775 old_striplib=$lt_old_striplib
18776 striplib=$lt_striplib
18778 # Dependencies to place before the objects being linked to create a
18780 predep_objects=$lt_predep_objects_GCJ
18782 # Dependencies to place after the objects being linked to create a
18784 postdep_objects=$lt_postdep_objects_GCJ
18786 # Dependencies to place before the objects being linked to create a
18788 predeps=$lt_predeps_GCJ
18790 # Dependencies to place after the objects being linked to create a
18792 postdeps=$lt_postdeps_GCJ
18794 # The library search path used internally by the compiler when linking
18795 # a shared library.
18796 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18798 # Method to check whether dependent libraries are shared objects.
18799 deplibs_check_method=$lt_deplibs_check_method
18801 # Command to use when deplibs_check_method == file_magic.
18802 file_magic_cmd=$lt_file_magic_cmd
18804 # Flag that allows shared libraries with undefined symbols to be built.
18805 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18807 # Flag that forces no undefined symbols.
18808 no_undefined_flag=$lt_no_undefined_flag_GCJ
18810 # Commands used to finish a libtool library installation in a directory.
18811 finish_cmds=$lt_finish_cmds
18813 # Same as above, but a single script fragment to be evaled but not shown.
18814 finish_eval=$lt_finish_eval
18816 # Take the output of nm and produce a listing of raw symbols and C names.
18817 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18819 # Transform the output of nm in a proper C declaration
18820 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18822 # Transform the output of nm in a C name address pair
18823 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18825 # This is the shared library runtime path variable.
18826 runpath_var=$runpath_var
18828 # This is the shared library path variable.
18829 shlibpath_var=$shlibpath_var
18831 # Is shlibpath searched before the hard-coded library search path?
18832 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18834 # How to hardcode a shared library path into an executable.
18835 hardcode_action=$hardcode_action_GCJ
18837 # Whether we should hardcode library paths into libraries.
18838 hardcode_into_libs=$hardcode_into_libs
18840 # Flag to hardcode \$libdir into a binary during linking.
18841 # This must work even if \$libdir does not exist.
18842 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18844 # If ld is used when linking, flag to hardcode \$libdir into
18845 # a binary during linking. This must work even if \$libdir does
18847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18849 # Whether we need a single -rpath flag with a separated argument.
18850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18852 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18853 # resulting binary.
18854 hardcode_direct=$hardcode_direct_GCJ
18856 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18857 # resulting binary.
18858 hardcode_minus_L=$hardcode_minus_L_GCJ
18860 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18861 # the resulting binary.
18862 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18864 # Set to yes if building a shared library automatically hardcodes DIR into the library
18865 # and all subsequent libraries and executables linked against it.
18866 hardcode_automatic=$hardcode_automatic_GCJ
18868 # Variables whose values should be saved in libtool wrapper scripts and
18869 # restored at relink time.
18870 variables_saved_for_relink="$variables_saved_for_relink"
18872 # Whether libtool must link a program against all its dependency libraries.
18873 link_all_deplibs=$link_all_deplibs_GCJ
18875 # Compile-time system search path for libraries
18876 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18878 # Run-time system search path for libraries
18879 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18881 # Fix the shell variable \$srcfile for the compiler.
18882 fix_srcfile_path="$fix_srcfile_path_GCJ"
18884 # Set to yes if exported symbols are required.
18885 always_export_symbols=$always_export_symbols_GCJ
18887 # The commands to list exported symbols.
18888 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18890 # The commands to extract the exported symbol list from a shared archive.
18891 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18893 # Symbols that should not be listed in the preloaded symbols.
18894 exclude_expsyms=$lt_exclude_expsyms_GCJ
18896 # Symbols that must always be exported.
18897 include_expsyms=$lt_include_expsyms_GCJ
18899 # ### END LIBTOOL TAG CONFIG: $tagname
18905 # If there is no Makefile yet, we rely on a make rule to execute
18906 # `config.status --recheck' to rerun these tests and create the
18907 # libtool script then.
18908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18909 if test -f "$ltmain_in"; then
18910 test -f Makefile && make "$ltmain"
18916 ac_cpp='$CPP $CPPFLAGS'
18917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18931 # Source file extension for RC test sources.
18934 # Object file extension for compiled RC test sources.
18938 # Code to be used in simple compile tests
18939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18941 # Code to be used in simple link tests
18942 lt_simple_link_test_code="$lt_simple_compile_test_code"
18944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18946 # If no C compiler was specified, use CC.
18949 # If no C compiler flags were specified, use CFLAGS.
18950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18952 # Allow CC to be a program name with arguments.
18956 # save warnings/boilerplate of simple test code
18957 ac_outfile=conftest.$ac_objext
18958 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18959 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18960 _lt_compiler_boilerplate=`cat conftest.err`
18963 ac_outfile=conftest.$ac_objext
18964 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18965 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18966 _lt_linker_boilerplate=`cat conftest.err`
18970 # Allow CC to be a program name with arguments.
18975 for cc_temp in $compiler""; do
18977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18985 lt_cv_prog_compiler_c_o_RC=yes
18987 # The else clause should only fire when bootstrapping the
18988 # libtool distribution, otherwise you forgot to ship ltmain.sh
18989 # with your package, and you will get complaints that there are
18990 # no rules to generate ltmain.sh.
18991 if test -f "$ltmain"; then
18992 # See if we are running on zsh, and set the options which allow our commands through
18993 # without removal of \ escapes.
18994 if test -n "${ZSH_VERSION+set}" ; then
18995 setopt NO_GLOB_SUBST
18997 # Now quote all the things that may contain metacharacters while being
18998 # careful not to overquote the AC_SUBSTed values. We take copies of the
18999 # variables and quote the copies for generation of the libtool script.
19000 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19002 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19003 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19004 deplibs_check_method reload_flag reload_cmds need_locks \
19005 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19006 lt_cv_sys_global_symbol_to_c_name_address \
19007 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19008 old_postinstall_cmds old_postuninstall_cmds \
19012 lt_prog_compiler_wl_RC \
19013 lt_prog_compiler_pic_RC \
19014 lt_prog_compiler_static_RC \
19015 lt_prog_compiler_no_builtin_flag_RC \
19016 export_dynamic_flag_spec_RC \
19017 thread_safe_flag_spec_RC \
19018 whole_archive_flag_spec_RC \
19019 enable_shared_with_static_runtimes_RC \
19020 old_archive_cmds_RC \
19021 old_archive_from_new_cmds_RC \
19022 predep_objects_RC \
19023 postdep_objects_RC \
19026 compiler_lib_search_path_RC \
19028 archive_expsym_cmds_RC \
19029 postinstall_cmds_RC \
19030 postuninstall_cmds_RC \
19031 old_archive_from_expsyms_cmds_RC \
19032 allow_undefined_flag_RC \
19033 no_undefined_flag_RC \
19034 export_symbols_cmds_RC \
19035 hardcode_libdir_flag_spec_RC \
19036 hardcode_libdir_flag_spec_ld_RC \
19037 hardcode_libdir_separator_RC \
19038 hardcode_automatic_RC \
19040 module_expsym_cmds_RC \
19041 lt_cv_prog_compiler_c_o_RC \
19042 exclude_expsyms_RC \
19043 include_expsyms_RC; do
19046 old_archive_cmds_RC | \
19047 old_archive_from_new_cmds_RC | \
19048 archive_cmds_RC | \
19049 archive_expsym_cmds_RC | \
19051 module_expsym_cmds_RC | \
19052 old_archive_from_expsyms_cmds_RC | \
19053 export_symbols_cmds_RC | \
19054 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19055 postinstall_cmds | postuninstall_cmds | \
19056 old_postinstall_cmds | old_postuninstall_cmds | \
19057 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19058 # Double-quote double-evaled strings.
19059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19068 *'\$0 --fallback-echo"')
19069 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19075 cat <<__EOF__ >> "$cfgfile"
19076 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19080 # Shell to use when invoking shell scripts.
19083 # Whether or not to build shared libraries.
19084 build_libtool_libs=$enable_shared
19086 # Whether or not to build static libraries.
19087 build_old_libs=$enable_static
19089 # Whether or not to add -lc for building shared libraries.
19090 build_libtool_need_lc=$archive_cmds_need_lc_RC
19092 # Whether or not to disallow shared libs when runtime libs are static
19093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19095 # Whether or not to optimize for fast installation.
19096 fast_install=$enable_fast_install
19099 host_alias=$host_alias
19103 # The build system.
19104 build_alias=$build_alias
19108 # An echo program that does not interpret backslashes.
19113 AR_FLAGS=$lt_AR_FLAGS
19118 # LTCC compiler flags.
19119 LTCFLAGS=$lt_LTCFLAGS
19121 # A language-specific compiler.
19124 # Is the compiler the GNU C compiler?
19130 # The linker used to build libraries.
19133 # Whether we need hard or soft links.
19136 # A BSD-compatible nm program.
19139 # A symbol stripping program
19142 # Used to examine libraries when file_magic_cmd begins "file"
19143 MAGIC_CMD=$MAGIC_CMD
19145 # Used on cygwin: DLL creation program.
19148 # Used on cygwin: object dumper.
19151 # Used on cygwin: assembler.
19154 # The name of the directory that contains temporary libtool files.
19157 # How to create reloadable object files.
19158 reload_flag=$lt_reload_flag
19159 reload_cmds=$lt_reload_cmds
19161 # How to pass a linker flag through the compiler.
19162 wl=$lt_lt_prog_compiler_wl_RC
19164 # Object file suffix (normally "o").
19165 objext="$ac_objext"
19167 # Old archive suffix (normally "a").
19170 # Shared library suffix (normally ".so").
19171 shrext_cmds='$shrext_cmds'
19173 # Executable file suffix (normally "").
19176 # Additional compiler flags for building library objects.
19177 pic_flag=$lt_lt_prog_compiler_pic_RC
19180 # What is the maximum length of a command?
19181 max_cmd_len=$lt_cv_sys_max_cmd_len
19183 # Does compiler simultaneously support -c and -o options?
19184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19186 # Must we lock files when doing compilation?
19187 need_locks=$lt_need_locks
19189 # Do we need the lib prefix for modules?
19190 need_lib_prefix=$need_lib_prefix
19192 # Do we need a version for libraries?
19193 need_version=$need_version
19195 # Whether dlopen is supported.
19196 dlopen_support=$enable_dlopen
19198 # Whether dlopen of programs is supported.
19199 dlopen_self=$enable_dlopen_self
19201 # Whether dlopen of statically linked programs is supported.
19202 dlopen_self_static=$enable_dlopen_self_static
19204 # Compiler flag to prevent dynamic linking.
19205 link_static_flag=$lt_lt_prog_compiler_static_RC
19207 # Compiler flag to turn off builtin functions.
19208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19210 # Compiler flag to allow reflexive dlopens.
19211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19213 # Compiler flag to generate shared objects directly from archives.
19214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19216 # Compiler flag to generate thread-safe objects.
19217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19219 # Library versioning type.
19220 version_type=$version_type
19222 # Format of library name prefix.
19223 libname_spec=$lt_libname_spec
19225 # List of archive names. First name is the real one, the rest are links.
19226 # The last name is the one that the linker finds with -lNAME.
19227 library_names_spec=$lt_library_names_spec
19229 # The coded name of the library, if different from the real name.
19230 soname_spec=$lt_soname_spec
19232 # Commands used to build and install an old-style archive.
19234 old_archive_cmds=$lt_old_archive_cmds_RC
19235 old_postinstall_cmds=$lt_old_postinstall_cmds
19236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19238 # Create an old-style archive from a shared archive.
19239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19241 # Create a temporary old-style archive to link instead of a shared archive.
19242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19244 # Commands used to build and install a shared archive.
19245 archive_cmds=$lt_archive_cmds_RC
19246 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19247 postinstall_cmds=$lt_postinstall_cmds
19248 postuninstall_cmds=$lt_postuninstall_cmds
19250 # Commands used to build a loadable module (assumed same as above if empty)
19251 module_cmds=$lt_module_cmds_RC
19252 module_expsym_cmds=$lt_module_expsym_cmds_RC
19254 # Commands to strip libraries.
19255 old_striplib=$lt_old_striplib
19256 striplib=$lt_striplib
19258 # Dependencies to place before the objects being linked to create a
19260 predep_objects=$lt_predep_objects_RC
19262 # Dependencies to place after the objects being linked to create a
19264 postdep_objects=$lt_postdep_objects_RC
19266 # Dependencies to place before the objects being linked to create a
19268 predeps=$lt_predeps_RC
19270 # Dependencies to place after the objects being linked to create a
19272 postdeps=$lt_postdeps_RC
19274 # The library search path used internally by the compiler when linking
19275 # a shared library.
19276 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19278 # Method to check whether dependent libraries are shared objects.
19279 deplibs_check_method=$lt_deplibs_check_method
19281 # Command to use when deplibs_check_method == file_magic.
19282 file_magic_cmd=$lt_file_magic_cmd
19284 # Flag that allows shared libraries with undefined symbols to be built.
19285 allow_undefined_flag=$lt_allow_undefined_flag_RC
19287 # Flag that forces no undefined symbols.
19288 no_undefined_flag=$lt_no_undefined_flag_RC
19290 # Commands used to finish a libtool library installation in a directory.
19291 finish_cmds=$lt_finish_cmds
19293 # Same as above, but a single script fragment to be evaled but not shown.
19294 finish_eval=$lt_finish_eval
19296 # Take the output of nm and produce a listing of raw symbols and C names.
19297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19299 # Transform the output of nm in a proper C declaration
19300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19302 # Transform the output of nm in a C name address pair
19303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19305 # This is the shared library runtime path variable.
19306 runpath_var=$runpath_var
19308 # This is the shared library path variable.
19309 shlibpath_var=$shlibpath_var
19311 # Is shlibpath searched before the hard-coded library search path?
19312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19314 # How to hardcode a shared library path into an executable.
19315 hardcode_action=$hardcode_action_RC
19317 # Whether we should hardcode library paths into libraries.
19318 hardcode_into_libs=$hardcode_into_libs
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist.
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19324 # If ld is used when linking, flag to hardcode \$libdir into
19325 # a binary during linking. This must work even if \$libdir does
19327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19329 # Whether we need a single -rpath flag with a separated argument.
19330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19333 # resulting binary.
19334 hardcode_direct=$hardcode_direct_RC
19336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19337 # resulting binary.
19338 hardcode_minus_L=$hardcode_minus_L_RC
19340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19341 # the resulting binary.
19342 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19344 # Set to yes if building a shared library automatically hardcodes DIR into the library
19345 # and all subsequent libraries and executables linked against it.
19346 hardcode_automatic=$hardcode_automatic_RC
19348 # Variables whose values should be saved in libtool wrapper scripts and
19349 # restored at relink time.
19350 variables_saved_for_relink="$variables_saved_for_relink"
19352 # Whether libtool must link a program against all its dependency libraries.
19353 link_all_deplibs=$link_all_deplibs_RC
19355 # Compile-time system search path for libraries
19356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19358 # Run-time system search path for libraries
19359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19361 # Fix the shell variable \$srcfile for the compiler.
19362 fix_srcfile_path="$fix_srcfile_path_RC"
19364 # Set to yes if exported symbols are required.
19365 always_export_symbols=$always_export_symbols_RC
19367 # The commands to list exported symbols.
19368 export_symbols_cmds=$lt_export_symbols_cmds_RC
19370 # The commands to extract the exported symbol list from a shared archive.
19371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19373 # Symbols that should not be listed in the preloaded symbols.
19374 exclude_expsyms=$lt_exclude_expsyms_RC
19376 # Symbols that must always be exported.
19377 include_expsyms=$lt_include_expsyms_RC
19379 # ### END LIBTOOL TAG CONFIG: $tagname
19385 # If there is no Makefile yet, we rely on a make rule to execute
19386 # `config.status --recheck' to rerun these tests and create the
19387 # libtool script then.
19388 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19389 if test -f "$ltmain_in"; then
19390 test -f Makefile && make "$ltmain"
19396 ac_cpp='$CPP $CPPFLAGS'
19397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19407 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19408 { (exit 1); exit 1; }; }
19412 # Append the new tag name to the list of available tags.
19413 if test -n "$tagname" ; then
19414 available_tags="$available_tags $tagname"
19420 # Now substitute the updated list of available tags.
19421 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19422 mv "${ofile}T" "$ofile"
19426 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19427 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19428 { (exit 1); exit 1; }; }
19434 # This can be used to rebuild libtool when needed
19435 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19437 # Always use our own libtool.
19438 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19440 # Prevent multiple expansion
19453 # Check whether --with-system-libtool was given.
19454 if test "${with_system_libtool+set}" = set; then
19455 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19456 set dummy libtool; ac_word=$2
19457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19459 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19468 as_dummy="$PATH:/usr/local/bin"
19469 for as_dir in $as_dummy
19472 test -z "$as_dir" && as_dir=.
19473 for ac_exec_ext in '' $ac_executable_extensions; do
19474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19486 LIBTOOL=$ac_cv_path_LIBTOOL
19487 if test -n "$LIBTOOL"; then
19488 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19489 echo "${ECHO_T}$LIBTOOL" >&6; }
19491 { echo "$as_me:$LINENO: result: no" >&5
19492 echo "${ECHO_T}no" >&6; }
19498 LIBTOOL="`pwd`/libtool"
19518 # Check whether --enable-strict-dependencies was given.
19519 if test "${enable_strict_dependencies+set}" = set; then
19520 enableval=$enable_strict_dependencies;
19524 docdir='${datadir}/doc/freeradius'
19525 { echo "$as_me:$LINENO: checking docdir" >&5
19526 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19528 # Check whether --with-docdir was given.
19529 if test "${with_docdir+set}" = set; then
19530 withval=$with_docdir; case "$withval" in
19536 [\\/$]* | ?:[\\/]* )
19540 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19541 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19542 { (exit 1); exit 1; }; }
19549 { echo "$as_me:$LINENO: result: $docdir" >&5
19550 echo "${ECHO_T}$docdir" >&6; }
19551 if test "x$docdir" = xno; then
19552 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19553 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19556 logdir='${localstatedir}/log/radius'
19557 { echo "$as_me:$LINENO: checking logdir" >&5
19558 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19560 # Check whether --with-logdir was given.
19561 if test "${with_logdir+set}" = set; then
19562 withval=$with_logdir; case "$withval" in
19564 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19565 echo "$as_me: error: Need logdir" >&2;}
19566 { (exit 1); exit 1; }; }
19570 [\\/$]* | ?:[\\/]* )
19574 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19575 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19576 { (exit 1); exit 1; }; }
19583 { echo "$as_me:$LINENO: result: $logdir" >&5
19584 echo "${ECHO_T}$logdir" >&6; }
19586 radacctdir='${logdir}/radacct'
19587 { echo "$as_me:$LINENO: checking radacctdir" >&5
19588 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19590 # Check whether --with-radacctdir was given.
19591 if test "${with_radacctdir+set}" = set; then
19592 withval=$with_radacctdir; case "$withval" in
19594 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19595 echo "$as_me: error: Need radacctdir" >&2;}
19596 { (exit 1); exit 1; }; }
19600 [\\/$]* | ?:[\\/]* )
19601 radacctdir="$withval"
19604 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19605 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19606 { (exit 1); exit 1; }; }
19613 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19614 echo "${ECHO_T}$radacctdir" >&6; }
19616 raddbdir='${sysconfdir}/raddb'
19617 { echo "$as_me:$LINENO: checking raddbdir" >&5
19618 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19620 # Check whether --with-raddbdir was given.
19621 if test "${with_raddbdir+set}" = set; then
19622 withval=$with_raddbdir; case "$withval" in
19624 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19625 echo "$as_me: error: Need raddbdir" >&2;}
19626 { (exit 1); exit 1; }; }
19630 [\\/$]* | ?:[\\/]* )
19631 raddbdir="$withval"
19634 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19635 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19636 { (exit 1); exit 1; }; }
19643 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19644 echo "${ECHO_T}$raddbdir" >&6; }
19648 # Check whether --with-ascend-binary was given.
19649 if test "${with_ascend_binary+set}" = set; then
19650 withval=$with_ascend_binary; case "$withval" in
19659 if test "X$ASCEND_BINARY" = "Xyes"; then
19661 cat >>confdefs.h <<\_ACEOF
19662 #define ASCEND_BINARY
19669 # Check whether --with-threads was given.
19670 if test "${with_threads+set}" = set; then
19671 withval=$with_threads; case "$withval" in
19683 # Check whether --with-snmp was given.
19684 if test "${with_snmp+set}" = set; then
19685 withval=$with_snmp; case "$withval" in
19696 # Check whether --with-snmp-include-dir was given.
19697 if test "${with_snmp_include_dir+set}" = set; then
19698 withval=$with_snmp_include_dir; case "$withval" in
19708 # Check whether --with-vmps was given.
19709 if test "${with_vmps+set}" = set; then
19710 withval=$with_vmps; case "$withval" in
19719 if test "x$WITH_VMPS" = "xyes"; then
19721 cat >>confdefs.h <<\_ACEOF
19730 # Check whether --with-static_modules was given.
19731 if test "${with_static_modules+set}" = set; then
19732 withval=$with_static_modules;
19733 for i in $withval; do
19734 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19742 # Check whether --with-modules was given.
19743 if test "${with_modules+set}" = set; then
19744 withval=$with_modules;
19745 for i in $withval; do
19746 MODULES="$MODULES $i"
19752 # Check whether --enable-developer was given.
19753 if test "${enable_developer+set}" = set; then
19754 enableval=$enable_developer; case "$enableval" in
19765 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19771 # Check whether --with-experimental-modules was given.
19772 if test "${with_experimental_modules+set}" = set; then
19773 withval=$with_experimental_modules; case "$withval" in
19785 # Check whether --with-openssl was given.
19786 if test "${with_openssl+set}" = set; then
19787 withval=$with_openssl; case "$withval" in
19799 OPENSSL_INCLUDE_DIR=
19801 # Check whether --with-openssl-includes was given.
19802 if test "${with_openssl_includes+set}" = set; then
19803 withval=$with_openssl_includes; case "$withval" in
19804 *) OPENSSL_INCLUDE_DIR="$withval"
19813 # Check whether --with-openssl-libraries was given.
19814 if test "${with_openssl_libraries+set}" = set; then
19815 withval=$with_openssl_libraries; case "$withval" in
19816 *) OPENSSL_LIB_DIR="$withval"
19825 # Check whether --with-rlm-FOO-lib-dir was given.
19826 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19827 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19836 # Check whether --with-rlm-FOO-include-dir was given.
19837 if test "${with_rlm_FOO_include_dir+set}" = set; then
19838 withval=$with_rlm_FOO_include_dir; case "$withval" in
19849 # Check whether --with-udpfromto was given.
19850 if test "${with_udpfromto+set}" = set; then
19851 withval=$with_udpfromto; case "$withval" in
19862 if test "x$WITH_UDPFROMTO" = "xyes"; then
19864 cat >>confdefs.h <<\_ACEOF
19865 #define WITH_UDPFROMTO
19871 CHECKRAD=checkrad.pl
19872 # Extract the first word of "perl", so it can be a program name with args.
19873 set dummy perl; ac_word=$2
19874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19876 if test "${ac_cv_path_PERL+set}" = set; then
19877 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19885 for as_dir in $PATH
19888 test -z "$as_dir" && as_dir=.
19889 for ac_exec_ext in '' $ac_executable_extensions; do
19890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19891 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19899 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19903 PERL=$ac_cv_path_PERL
19904 if test -n "$PERL"; then
19905 { echo "$as_me:$LINENO: result: $PERL" >&5
19906 echo "${ECHO_T}$PERL" >&6; }
19908 { echo "$as_me:$LINENO: result: no" >&5
19909 echo "${ECHO_T}no" >&6; }
19913 if test "x$ac_cv_path_PERL" = "x"; then
19914 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19915 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19917 # Extract the first word of "snmpget", so it can be a program name with args.
19918 set dummy snmpget; ac_word=$2
19919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19921 if test "${ac_cv_path_SNMPGET+set}" = set; then
19922 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19930 for as_dir in $PATH
19933 test -z "$as_dir" && as_dir=.
19934 for ac_exec_ext in '' $ac_executable_extensions; do
19935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19936 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19947 SNMPGET=$ac_cv_path_SNMPGET
19948 if test -n "$SNMPGET"; then
19949 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19950 echo "${ECHO_T}$SNMPGET" >&6; }
19952 { echo "$as_me:$LINENO: result: no" >&5
19953 echo "${ECHO_T}no" >&6; }
19957 if test "x$ac_cv_path_SNMPGET" = "x"; then
19958 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19959 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19962 # Extract the first word of "snmpwalk", so it can be a program name with args.
19963 set dummy snmpwalk; ac_word=$2
19964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19966 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19975 for as_dir in $PATH
19978 test -z "$as_dir" && as_dir=.
19979 for ac_exec_ext in '' $ac_executable_extensions; do
19980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19981 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19992 SNMPWALK=$ac_cv_path_SNMPWALK
19993 if test -n "$SNMPWALK"; then
19994 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19995 echo "${ECHO_T}$SNMPWALK" >&6; }
19997 { echo "$as_me:$LINENO: result: no" >&5
19998 echo "${ECHO_T}no" >&6; }
20002 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20003 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20004 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20007 # Extract the first word of "rusers", so it can be a program name with args.
20008 set dummy rusers; ac_word=$2
20009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20011 if test "${ac_cv_path_RUSERS+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020 for as_dir in $PATH
20023 test -z "$as_dir" && as_dir=.
20024 for ac_exec_ext in '' $ac_executable_extensions; do
20025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20026 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20034 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20038 RUSERS=$ac_cv_path_RUSERS
20039 if test -n "$RUSERS"; then
20040 { echo "$as_me:$LINENO: result: $RUSERS" >&5
20041 echo "${ECHO_T}$RUSERS" >&6; }
20043 { echo "$as_me:$LINENO: result: no" >&5
20044 echo "${ECHO_T}no" >&6; }
20049 missing_dir=`cd $ac_aux_dir && pwd`
20050 # expand $ac_aux_dir to an absolute path
20051 am_aux_dir=`cd $ac_aux_dir && pwd`
20053 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20054 # Use eval to expand $SHELL
20055 if eval "$MISSING --run true"; then
20056 am_missing_run="$MISSING --run "
20059 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20060 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20064 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20067 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20070 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20073 # Extract the first word of "locate", so it can be a program name with args.
20074 set dummy locate; ac_word=$2
20075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20077 if test "${ac_cv_path_LOCATE+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20086 for as_dir in $PATH
20089 test -z "$as_dir" && as_dir=.
20090 for ac_exec_ext in '' $ac_executable_extensions; do
20091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20092 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20103 LOCATE=$ac_cv_path_LOCATE
20104 if test -n "$LOCATE"; then
20105 { echo "$as_me:$LINENO: result: $LOCATE" >&5
20106 echo "${ECHO_T}$LOCATE" >&6; }
20108 { echo "$as_me:$LINENO: result: no" >&5
20109 echo "${ECHO_T}no" >&6; }
20113 # Extract the first word of "dirname", so it can be a program name with args.
20114 set dummy dirname; ac_word=$2
20115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20117 if test "${ac_cv_path_DIRNAME+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20126 for as_dir in $PATH
20129 test -z "$as_dir" && as_dir=.
20130 for ac_exec_ext in '' $ac_executable_extensions; do
20131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20132 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20143 DIRNAME=$ac_cv_path_DIRNAME
20144 if test -n "$DIRNAME"; then
20145 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20146 echo "${ECHO_T}$DIRNAME" >&6; }
20148 { echo "$as_me:$LINENO: result: no" >&5
20149 echo "${ECHO_T}no" >&6; }
20153 # Extract the first word of "grep", so it can be a program name with args.
20154 set dummy grep; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_GREP+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 for as_dir in $PATH
20169 test -z "$as_dir" && as_dir=.
20170 for ac_exec_ext in '' $ac_executable_extensions; do
20171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20172 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20183 GREP=$ac_cv_path_GREP
20184 if test -n "$GREP"; then
20185 { echo "$as_me:$LINENO: result: $GREP" >&5
20186 echo "${ECHO_T}$GREP" >&6; }
20188 { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20196 if test "x$WITH_THREADS" = "xyes"; then
20197 if test $ac_cv_prog_suncc = "yes"; then
20198 CFLAGS="$CFLAGS -mt"
20202 for ac_header in pthread.h
20204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20211 ac_res=`eval echo '${'$as_ac_Header'}'`
20212 { echo "$as_me:$LINENO: result: $ac_res" >&5
20213 echo "${ECHO_T}$ac_res" >&6; }
20215 # Is the header compilable?
20216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20225 #include <$ac_header>
20227 rm -f conftest.$ac_objext
20228 if { (ac_try="$ac_compile"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234 (eval "$ac_compile") 2>conftest.er1
20236 grep -v '^ *+' conftest.er1 >conftest.err
20238 cat conftest.err >&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && {
20241 test -z "$ac_c_werror_flag" ||
20242 test ! -s conftest.err
20243 } && test -s conftest.$ac_objext; then
20244 ac_header_compiler=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_header_compiler=no
20252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20254 echo "${ECHO_T}$ac_header_compiler" >&6; }
20256 # Is the header present?
20257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #include <$ac_header>
20267 if { (ac_try="$ac_cpp conftest.$ac_ext"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } >/dev/null && {
20280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20283 ac_header_preproc=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_header_preproc=no
20291 rm -f conftest.err conftest.$ac_ext
20292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6; }
20295 # So? What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20302 ac_header_preproc=yes
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 eval "$as_ac_Header=\$ac_header_preproc"
20327 ac_res=`eval echo '${'$as_ac_Header'}'`
20328 { echo "$as_me:$LINENO: result: $ac_res" >&5
20329 echo "${ECHO_T}$ac_res" >&6; }
20332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20333 cat >>confdefs.h <<_ACEOF
20334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20344 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20345 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20346 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 ac_check_lib_save_LIBS=$LIBS
20350 LIBS="-lpthread $LIBS"
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20358 /* Override any GCC internal prototype to avoid an error.
20359 Use char because int might match the return type of a GCC
20360 builtin and then its argument prototype would still apply. */
20364 char pthread_create ();
20368 return pthread_create ();
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>conftest.er1
20382 grep -v '^ *+' conftest.er1 >conftest.err
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } && {
20387 test -z "$ac_c_werror_flag" ||
20388 test ! -s conftest.err
20389 } && test -s conftest$ac_exeext &&
20390 $as_test_x conftest$ac_exeext; then
20391 ac_cv_lib_pthread_pthread_create=yes
20393 echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_cv_lib_pthread_pthread_create=no
20399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20400 conftest$ac_exeext conftest.$ac_ext
20401 LIBS=$ac_check_lib_save_LIBS
20403 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20404 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20405 if test $ac_cv_lib_pthread_pthread_create = yes; then
20406 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20407 LIBS="$LIBS -lpthread"
20409 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20410 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20411 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20414 ac_check_lib_save_LIBS=$LIBS
20416 cat >conftest.$ac_ext <<_ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20423 /* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20429 char pthread_create ();
20433 return pthread_create ();
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (ac_try="$ac_link"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_link") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest$ac_exeext &&
20455 $as_test_x conftest$ac_exeext; then
20456 ac_cv_lib_c_r_pthread_create=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_lib_c_r_pthread_create=no
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20468 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20469 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20470 if test $ac_cv_lib_c_r_pthread_create = yes; then
20471 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20482 if test "x$WITH_THREADS" != "xyes"; then
20484 ac_cv_header_pthread_h="no"
20488 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20489 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20490 if test "${ac_cv_search_sem_init+set}" = set; then
20491 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 ac_func_search_save_LIBS=$LIBS
20494 cat >conftest.$ac_ext <<_ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20501 /* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20511 return sem_init ();
20516 for ac_lib in '' pthread sem posix4 rt semaphore; do
20517 if test -z "$ac_lib"; then
20518 ac_res="none required"
20521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20523 rm -f conftest.$ac_objext conftest$ac_exeext
20524 if { (ac_try="$ac_link"
20525 case "(($ac_try" in
20526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20527 *) ac_try_echo=$ac_try;;
20529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20530 (eval "$ac_link") 2>conftest.er1
20532 grep -v '^ *+' conftest.er1 >conftest.err
20534 cat conftest.err >&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); } && {
20537 test -z "$ac_c_werror_flag" ||
20538 test ! -s conftest.err
20539 } && test -s conftest$ac_exeext &&
20540 $as_test_x conftest$ac_exeext; then
20541 ac_cv_search_sem_init=$ac_res
20543 echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20551 if test "${ac_cv_search_sem_init+set}" = set; then
20555 if test "${ac_cv_search_sem_init+set}" = set; then
20558 ac_cv_search_sem_init=no
20560 rm conftest.$ac_ext
20561 LIBS=$ac_func_search_save_LIBS
20563 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20564 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20565 ac_res=$ac_cv_search_sem_init
20566 if test "$ac_res" != no; then
20567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20570 { { 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
20571 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;}
20572 { (exit 1); exit 1; }; }
20579 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20580 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20581 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 ac_check_lib_save_LIBS=$LIBS
20585 LIBS="-lsocket $LIBS"
20586 cat >conftest.$ac_ext <<_ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h. */
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20599 char getsockname ();
20603 return getsockname ();
20608 rm -f conftest.$ac_objext conftest$ac_exeext
20609 if { (ac_try="$ac_link"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_link") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest$ac_exeext &&
20625 $as_test_x conftest$ac_exeext; then
20626 ac_cv_lib_socket_getsockname=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_lib_socket_getsockname=no
20634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20635 conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20639 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20640 if test $ac_cv_lib_socket_getsockname = yes; then
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_LIBSOCKET 1
20645 LIBS="-lsocket $LIBS"
20651 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20652 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20653 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 ac_check_lib_save_LIBS=$LIBS
20657 LIBS="-lresolv $LIBS"
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20665 /* Override any GCC internal prototype to avoid an error.
20666 Use char because int might match the return type of a GCC
20667 builtin and then its argument prototype would still apply. */
20675 return inet_aton ();
20680 rm -f conftest.$ac_objext conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_link") 2>conftest.er1
20689 grep -v '^ *+' conftest.er1 >conftest.err
20691 cat conftest.err >&5
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } && {
20694 test -z "$ac_c_werror_flag" ||
20695 test ! -s conftest.err
20696 } && test -s conftest$ac_exeext &&
20697 $as_test_x conftest$ac_exeext; then
20698 ac_cv_lib_resolv_inet_aton=yes
20700 echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20703 ac_cv_lib_resolv_inet_aton=no
20706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20707 conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20710 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20711 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20712 if test $ac_cv_lib_resolv_inet_aton = yes; then
20713 cat >>confdefs.h <<_ACEOF
20714 #define HAVE_LIBRESOLV 1
20717 LIBS="-lresolv $LIBS"
20723 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20724 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20725 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20726 echo $ECHO_N "(cached) $ECHO_C" >&6
20728 ac_check_lib_save_LIBS=$LIBS
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20737 /* Override any GCC internal prototype to avoid an error.
20738 Use char because int might match the return type of a GCC
20739 builtin and then its argument prototype would still apply. */
20747 return inet_ntoa ();
20752 rm -f conftest.$ac_objext conftest$ac_exeext
20753 if { (ac_try="$ac_link"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_link") 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } && {
20766 test -z "$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20768 } && test -s conftest$ac_exeext &&
20769 $as_test_x conftest$ac_exeext; then
20770 ac_cv_lib_nsl_inet_ntoa=yes
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_cv_lib_nsl_inet_ntoa=no
20778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20779 conftest$ac_exeext conftest.$ac_ext
20780 LIBS=$ac_check_lib_save_LIBS
20782 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20783 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20784 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20785 cat >>confdefs.h <<_ACEOF
20786 #define HAVE_LIBNSL 1
20795 if test "x$WITH_OPENSSL" = xyes; then
20797 if test "x$OPENSSL_LIB_DIR" != "x"; then
20798 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20800 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20801 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20802 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 ac_check_lib_save_LIBS=$LIBS
20806 LIBS="-lcrypto $LIBS"
20807 cat >conftest.$ac_ext <<_ACEOF
20810 cat confdefs.h >>conftest.$ac_ext
20811 cat >>conftest.$ac_ext <<_ACEOF
20812 /* end confdefs.h. */
20814 /* Override any GCC internal prototype to avoid an error.
20815 Use char because int might match the return type of a GCC
20816 builtin and then its argument prototype would still apply. */
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_link") 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest$ac_exeext &&
20846 $as_test_x conftest$ac_exeext; then
20847 ac_cv_lib_crypto_DH_new=yes
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ac_cv_lib_crypto_DH_new=no
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
20857 LIBS=$ac_check_lib_save_LIBS
20859 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20860 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20861 if test $ac_cv_lib_crypto_DH_new = yes; then
20863 LIBS="-lcrypto $LIBS"
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_LIBCRYPTO 1
20869 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20870 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20871 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 ac_check_lib_save_LIBS=$LIBS
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20883 /* Override any GCC internal prototype to avoid an error.
20884 Use char because int might match the return type of a GCC
20885 builtin and then its argument prototype would still apply. */
20898 rm -f conftest.$ac_objext conftest$ac_exeext
20899 if { (ac_try="$ac_link"
20900 case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_link") 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } && {
20912 test -z "$ac_c_werror_flag" ||
20913 test ! -s conftest.err
20914 } && test -s conftest$ac_exeext &&
20915 $as_test_x conftest$ac_exeext; then
20916 ac_cv_lib_ssl_SSL_new=yes
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ac_cv_lib_ssl_SSL_new=no
20924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20925 conftest$ac_exeext conftest.$ac_ext
20926 LIBS=$ac_check_lib_save_LIBS
20928 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20929 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20930 if test $ac_cv_lib_ssl_SSL_new = yes; then
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_LIBSSL 1
20937 if test "x$OPENSSL_LIB_DIR" != "x"; then
20938 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20940 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20951 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20952 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-lws2_32 $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987 (eval "$ac_link") 2>conftest.er1
20989 grep -v '^ *+' conftest.er1 >conftest.err
20991 cat conftest.err >&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); } && {
20994 test -z "$ac_c_werror_flag" ||
20995 test ! -s conftest.err
20996 } && test -s conftest$ac_exeext &&
20997 $as_test_x conftest$ac_exeext; then
20998 ac_cv_lib_ws2_32_htonl=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_cv_lib_ws2_32_htonl=no
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007 conftest$ac_exeext conftest.$ac_ext
21008 LIBS=$ac_check_lib_save_LIBS
21010 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21011 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21012 if test $ac_cv_lib_ws2_32_htonl = yes; then
21013 cat >>confdefs.h <<_ACEOF
21014 #define HAVE_LIBWS2_32 1
21017 LIBS="-lws2_32 $LIBS"
21023 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21024 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21025 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21028 ac_check_lib_save_LIBS=$LIBS
21029 LIBS="-lpcap $LIBS"
21030 cat >conftest.$ac_ext <<_ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21043 char pcap_open_live ();
21047 return pcap_open_live ();
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest$ac_exeext &&
21069 $as_test_x conftest$ac_exeext; then
21070 ac_cv_lib_pcap_pcap_open_live=yes
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_lib_pcap_pcap_open_live=no
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079 conftest$ac_exeext conftest.$ac_ext
21080 LIBS=$ac_check_lib_save_LIBS
21082 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21083 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21084 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21087 cat >>confdefs.h <<\_ACEOF
21088 #define HAVE_LIBPCAP 1
21093 { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21094 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21101 CFLAGS="$CFLAGS -D_ALL_SOURCE"
21104 CFLAGS="$CFLAGS -DDARWIN"
21105 LIBS="-framework DirectoryService $LIBS"
21114 ac_header_dirent=no
21115 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21116 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21117 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21118 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 cat >conftest.$ac_ext <<_ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <sys/types.h>
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_compile") 2>conftest.er1
21149 grep -v '^ *+' conftest.er1 >conftest.err
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } && {
21154 test -z "$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21156 } && test -s conftest.$ac_objext; then
21157 eval "$as_ac_Header=yes"
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21162 eval "$as_ac_Header=no"
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 ac_res=`eval echo '${'$as_ac_Header'}'`
21168 { echo "$as_me:$LINENO: result: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21175 ac_header_dirent=$ac_hdr; break
21179 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21180 if test $ac_header_dirent = dirent.h; then
21181 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21183 if test "${ac_cv_search_opendir+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 ac_func_search_save_LIBS=$LIBS
21187 cat >conftest.$ac_ext <<_ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21194 /* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21209 for ac_lib in '' dir; do
21210 if test -z "$ac_lib"; then
21211 ac_res="none required"
21214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_link") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest$ac_exeext &&
21233 $as_test_x conftest$ac_exeext; then
21234 ac_cv_search_opendir=$ac_res
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21244 if test "${ac_cv_search_opendir+set}" = set; then
21248 if test "${ac_cv_search_opendir+set}" = set; then
21251 ac_cv_search_opendir=no
21253 rm conftest.$ac_ext
21254 LIBS=$ac_func_search_save_LIBS
21256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21258 ac_res=$ac_cv_search_opendir
21259 if test "$ac_res" != no; then
21260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21265 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21266 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21267 if test "${ac_cv_search_opendir+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 ac_func_search_save_LIBS=$LIBS
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21278 /* Override any GCC internal prototype to avoid an error.
21279 Use char because int might match the return type of a GCC
21280 builtin and then its argument prototype would still apply. */
21293 for ac_lib in '' x; do
21294 if test -z "$ac_lib"; then
21295 ac_res="none required"
21298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21300 rm -f conftest.$ac_objext conftest$ac_exeext
21301 if { (ac_try="$ac_link"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_link") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } && {
21314 test -z "$ac_c_werror_flag" ||
21315 test ! -s conftest.err
21316 } && test -s conftest$ac_exeext &&
21317 $as_test_x conftest$ac_exeext; then
21318 ac_cv_search_opendir=$ac_res
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21328 if test "${ac_cv_search_opendir+set}" = set; then
21332 if test "${ac_cv_search_opendir+set}" = set; then
21335 ac_cv_search_opendir=no
21337 rm conftest.$ac_ext
21338 LIBS=$ac_func_search_save_LIBS
21340 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21341 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21342 ac_res=$ac_cv_search_opendir
21343 if test "$ac_res" != no; then
21344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21352 if test "${ac_cv_header_stdc+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 #include <stdlib.h>
21362 #include <stdarg.h>
21363 #include <string.h>
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21391 ac_cv_header_stdc=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_cv_header_stdc=no
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 if test $ac_cv_header_stdc = yes; then
21402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21403 cat >conftest.$ac_ext <<_ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 #include <string.h>
21412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21413 $EGREP "memchr" >/dev/null 2>&1; then
21416 ac_cv_header_stdc=no
21422 if test $ac_cv_header_stdc = yes; then
21423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21424 cat >conftest.$ac_ext <<_ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 #include <stdlib.h>
21433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21434 $EGREP "free" >/dev/null 2>&1; then
21437 ac_cv_header_stdc=no
21443 if test $ac_cv_header_stdc = yes; then
21444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21445 if test "$cross_compiling" = yes; then
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 #include <stdlib.h>
21456 #if ((' ' & 0x0FF) == 0x020)
21457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21460 # define ISLOWER(c) \
21461 (('a' <= (c) && (c) <= 'i') \
21462 || ('j' <= (c) && (c) <= 'r') \
21463 || ('s' <= (c) && (c) <= 'z'))
21464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21472 for (i = 0; i < 256; i++)
21473 if (XOR (islower (i), ISLOWER (i))
21474 || toupper (i) != TOUPPER (i))
21479 rm -f conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_link") 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21490 { (case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495 (eval "$ac_try") 2>&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21501 echo "$as_me: program exited with status $ac_status" >&5
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ( exit $ac_status )
21506 ac_cv_header_stdc=no
21508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21516 if test $ac_cv_header_stdc = yes; then
21518 cat >>confdefs.h <<\_ACEOF
21519 #define STDC_HEADERS 1
21524 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21525 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21526 if test "${ac_cv_header_time+set}" = set; then
21527 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 cat >conftest.$ac_ext <<_ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <sys/types.h>
21536 #include <sys/time.h>
21542 if ((struct tm *) 0)
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_compile") 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest.$ac_objext; then
21565 ac_cv_header_time=yes
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21570 ac_cv_header_time=no
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21576 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21577 if test $ac_cv_header_time = yes; then
21579 cat >>confdefs.h <<\_ACEOF
21580 #define TIME_WITH_SYS_TIME 1
21585 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21586 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21587 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21588 echo $ECHO_N "(cached) $ECHO_C" >&6
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <sys/types.h>
21597 #include <sys/wait.h>
21598 #ifndef WEXITSTATUS
21599 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21602 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21610 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21615 rm -f conftest.$ac_objext
21616 if { (ac_try="$ac_compile"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_compile") 2>conftest.er1
21624 grep -v '^ *+' conftest.er1 >conftest.err
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest.$ac_objext; then
21632 ac_cv_header_sys_wait_h=yes
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21637 ac_cv_header_sys_wait_h=no
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21643 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21644 if test $ac_cv_header_sys_wait_h = yes; then
21646 cat >>confdefs.h <<\_ACEOF
21647 #define HAVE_SYS_WAIT_H 1
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 crypt in -lcrypt" >&5
23928 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23929 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 ac_check_lib_save_LIBS=$LIBS
23933 LIBS="-lcrypt $LIBS"
23934 cat >conftest.$ac_ext <<_ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h. */
23941 /* Override any GCC internal prototype to avoid an error.
23942 Use char because int might match the return type of a GCC
23943 builtin and then its argument prototype would still apply. */
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_link") 2>conftest.er1
23965 grep -v '^ *+' conftest.er1 >conftest.err
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest$ac_exeext &&
23973 $as_test_x conftest$ac_exeext; then
23974 ac_cv_lib_crypt_crypt=yes
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.$ac_ext >&5
23979 ac_cv_lib_crypt_crypt=no
23982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23983 conftest$ac_exeext conftest.$ac_ext
23984 LIBS=$ac_check_lib_save_LIBS
23986 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23987 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23988 if test $ac_cv_lib_crypt_crypt = yes; then
23993 if test "$CRYPTLIB" != ""; then
23995 cat >>confdefs.h <<\_ACEOF
24000 { echo "$as_me:$LINENO: checking for crypt" >&5
24001 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
24002 if test "${ac_cv_func_crypt+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24005 cat >conftest.$ac_ext <<_ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h. */
24011 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24013 #define crypt innocuous_crypt
24015 /* System header to define __stub macros and hopefully few prototypes,
24016 which can conflict with char crypt (); below.
24017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24018 <limits.h> exists even on freestanding compilers. */
24021 # include <limits.h>
24023 # include <assert.h>
24028 /* Override any GCC internal prototype to avoid an error.
24029 Use char because int might match the return type of a GCC
24030 builtin and then its argument prototype would still apply. */
24035 /* The GNU C library defines this for functions which it implements
24036 to always fail with ENOSYS. Some functions are actually named
24037 something starting with __ and the normal name is an alias. */
24038 #if defined __stub_crypt || defined __stub___crypt
24050 rm -f conftest.$ac_objext conftest$ac_exeext
24051 if { (ac_try="$ac_link"
24052 case "(($ac_try" in
24053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054 *) ac_try_echo=$ac_try;;
24056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057 (eval "$ac_link") 2>conftest.er1
24059 grep -v '^ *+' conftest.er1 >conftest.err
24061 cat conftest.err >&5
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); } && {
24064 test -z "$ac_c_werror_flag" ||
24065 test ! -s conftest.err
24066 } && test -s conftest$ac_exeext &&
24067 $as_test_x conftest$ac_exeext; then
24068 ac_cv_func_crypt=yes
24070 echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24073 ac_cv_func_crypt=no
24076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24077 conftest$ac_exeext conftest.$ac_ext
24079 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24080 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24081 if test $ac_cv_func_crypt = yes; then
24083 cat >>confdefs.h <<\_ACEOF
24091 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24092 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24093 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24096 ac_check_lib_save_LIBS=$LIBS
24097 LIBS="-lcipher $LIBS"
24098 cat >conftest.$ac_ext <<_ACEOF
24101 cat confdefs.h >>conftest.$ac_ext
24102 cat >>conftest.$ac_ext <<_ACEOF
24103 /* end confdefs.h. */
24105 /* Override any GCC internal prototype to avoid an error.
24106 Use char because int might match the return type of a GCC
24107 builtin and then its argument prototype would still apply. */
24120 rm -f conftest.$ac_objext conftest$ac_exeext
24121 if { (ac_try="$ac_link"
24122 case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24127 (eval "$ac_link") 2>conftest.er1
24129 grep -v '^ *+' conftest.er1 >conftest.err
24131 cat conftest.err >&5
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); } && {
24134 test -z "$ac_c_werror_flag" ||
24135 test ! -s conftest.err
24136 } && test -s conftest$ac_exeext &&
24137 $as_test_x conftest$ac_exeext; then
24138 ac_cv_lib_cipher_setkey=yes
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24143 ac_cv_lib_cipher_setkey=no
24146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24147 conftest$ac_exeext conftest.$ac_ext
24148 LIBS=$ac_check_lib_save_LIBS
24150 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24151 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24152 if test $ac_cv_lib_cipher_setkey = yes; then
24153 CRYPTLIB="${CRYPTLIB} -lcipher"
24159 if test "x$WITH_SNMP" = "xyes"; then
24164 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
24165 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24174 #ifdef HAVE_SYS_TYPES_H
24175 #include <sys/types.h>
24177 #ifdef HAVE_STDINT_H
24178 #include <stdint.h>
24180 #ifdef HAVE_STDIO_H
24183 #ifdef HAVE_NETDB_H
24186 #ifdef HAVE_UNISTD_H
24187 #include <unistd.h>
24189 #include <ucd-snmp/ucd-snmp-config.h>
24190 #include <ucd-snmp/asn1.h>
24191 #include <ucd-snmp/snmp.h>
24192 #include <ucd-snmp/snmp_impl.h>
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205 *) ac_try_echo=$ac_try;;
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_compile") 2>conftest.er1
24210 grep -v '^ *+' conftest.er1 >conftest.err
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } && {
24215 test -z "$ac_c_werror_flag" ||
24216 test ! -s conftest.err
24217 } && test -s conftest.$ac_objext; then
24218 SNMP_INCLUDE="";ucdsnmp=yes
24220 echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 if test "x$ucdsnmp" = "x"; then
24229 old_CFLAGS="$CFLAGS"
24230 for try in /usr/include /usr/local/include $snmp_include_dir; do
24231 CFLAGS="$old_CFLAGS -I$try"
24232 cat >conftest.$ac_ext <<_ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24239 #ifdef HAVE_SYS_TYPES_H
24240 #include <sys/types.h>
24242 #ifdef HAVE_STDINT_H
24243 #include <stdint.h>
24245 #ifdef HAVE_STDIO_H
24248 #ifdef HAVE_NETDB_H
24251 #ifdef HAVE_UNISTD_H
24252 #include <unistd.h>
24254 #include <ucd-snmp/ucd-snmp-config.h>
24255 #include <ucd-snmp/asn1.h>
24256 #include <ucd-snmp/snmp.h>
24257 #include <ucd-snmp/snmp_impl.h>
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_compile") 2>conftest.er1
24275 grep -v '^ *+' conftest.er1 >conftest.err
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } && {
24280 test -z "$ac_c_werror_flag" ||
24281 test ! -s conftest.err
24282 } && test -s conftest.$ac_objext; then
24283 SNMP_INCLUDE="-I$try";ucdsnmp=yes
24285 echo "$as_me: failed program was:" >&5
24286 sed 's/^/| /' conftest.$ac_ext >&5
24291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292 if test "x$ucdsnmp" != "x"; then
24296 CFLAGS="$old_CFLAGS"
24299 if test "x$ucdsnmp" = "x"; then
24300 old_CFLAGS="$CFLAGS"
24301 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24302 CFLAGS="$old_CFLAGS -I$try"
24303 cat >conftest.$ac_ext <<_ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24310 #ifdef HAVE_SYS_TYPES_H
24311 #include <sys/types.h>
24313 #ifdef HAVE_STDINT_H
24314 #include <stdint.h>
24316 #ifdef HAVE_STDIO_H
24319 #ifdef HAVE_NETDB_H
24322 #ifdef HAVE_UNISTD_H
24323 #include <unistd.h>
24327 #include <snmp_impl.h>
24336 rm -f conftest.$ac_objext
24337 if { (ac_try="$ac_compile"
24338 case "(($ac_try" in
24339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340 *) ac_try_echo=$ac_try;;
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343 (eval "$ac_compile") 2>conftest.er1
24345 grep -v '^ *+' conftest.er1 >conftest.err
24347 cat conftest.err >&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } && {
24350 test -z "$ac_c_werror_flag" ||
24351 test ! -s conftest.err
24352 } && test -s conftest.$ac_objext; then
24353 SNMP_INCLUDE="";ucdsnmp=no
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24362 if test "x$ucdsnmp" != "x"; then
24366 CFLAGS="$old_CFLAGS"
24369 if test "x$ucdsnmp" = "x"; then
24370 old_CFLAGS="$CFLAGS"
24371 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24372 CFLAGS="$old_CFLAGS -I$try"
24373 cat >conftest.$ac_ext <<_ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24380 #ifdef HAVE_SYS_TYPES_H
24381 #include <sys/types.h>
24383 #ifdef HAVE_STDINT_H
24384 #include <stdint.h>
24386 #ifdef HAVE_STDIO_H
24389 #ifdef HAVE_NETDB_H
24392 #ifdef HAVE_UNISTD_H
24393 #include <unistd.h>
24397 #include <snmp_impl.h>
24406 rm -f conftest.$ac_objext
24407 if { (ac_try="$ac_compile"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_compile") 2>conftest.er1
24415 grep -v '^ *+' conftest.er1 >conftest.err
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest.$ac_objext; then
24423 SNMP_INCLUDE="-I$try";ucdsnmp=no
24425 echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 if test "x$ucdsnmp" != "x"; then
24436 CFLAGS="$old_CFLAGS"
24439 if test "x$ucdsnmp" = "x"; then
24440 { echo "$as_me:$LINENO: result: no" >&5
24441 echo "${ECHO_T}no" >&6; }
24443 if test "x$ucdsnmp" = "xyes"; then
24444 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24445 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
24447 cat >>confdefs.h <<\_ACEOF
24448 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24452 { echo "$as_me:$LINENO: result: yes" >&5
24453 echo "${ECHO_T}yes" >&6; }
24455 cat >>confdefs.h <<\_ACEOF
24456 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24460 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24461 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
24464 LIBS="$old_LIBS -lsnmp"
24465 cat >conftest.$ac_ext <<_ACEOF
24468 cat confdefs.h >>conftest.$ac_ext
24469 cat >>conftest.$ac_ext <<_ACEOF
24470 /* end confdefs.h. */
24471 extern char snmp_build_var_op();
24475 snmp_build_var_op()
24480 rm -f conftest.$ac_objext conftest$ac_exeext
24481 if { (ac_try="$ac_link"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487 (eval "$ac_link") 2>conftest.er1
24489 grep -v '^ *+' conftest.er1 >conftest.err
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest$ac_exeext &&
24497 $as_test_x conftest$ac_exeext; then
24500 echo "$as_me: failed program was:" >&5
24501 sed 's/^/| /' conftest.$ac_ext >&5
24506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24507 conftest$ac_exeext conftest.$ac_ext
24509 if test "x$SNMP_LIBS" = "x"; then
24510 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
24511 LIBS="$old_LIBS -L$try -lsnmp"
24512 cat >conftest.$ac_ext <<_ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h. */
24518 extern char snmp_build_var_op();
24522 snmp_build_var_op()
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (ac_try="$ac_link"
24529 case "(($ac_try" in
24530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531 *) ac_try_echo=$ac_try;;
24533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534 (eval "$ac_link") 2>conftest.er1
24536 grep -v '^ *+' conftest.er1 >conftest.err
24538 cat conftest.err >&5
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); } && {
24541 test -z "$ac_c_werror_flag" ||
24542 test ! -s conftest.err
24543 } && test -s conftest$ac_exeext &&
24544 $as_test_x conftest$ac_exeext; then
24545 SNMP_LIBS="-L$try -lsnmp"
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24554 conftest$ac_exeext conftest.$ac_ext
24555 if test "x$SNMP_LIBS" != "x"; then
24558 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24559 cat >conftest.$ac_ext <<_ACEOF
24562 cat confdefs.h >>conftest.$ac_ext
24563 cat >>conftest.$ac_ext <<_ACEOF
24564 /* end confdefs.h. */
24565 extern char snmp_build_var_op();
24569 snmp_build_var_op()
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (ac_try="$ac_link"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_link") 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && {
24588 test -z "$ac_c_werror_flag" ||
24589 test ! -s conftest.err
24590 } && test -s conftest$ac_exeext &&
24591 $as_test_x conftest$ac_exeext; then
24592 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24594 echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24601 conftest$ac_exeext conftest.$ac_ext
24602 if test "x$SNMP_LIBS" != "x"; then
24605 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
24606 cat >conftest.$ac_ext <<_ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 extern char snmp_build_var_op();
24616 snmp_build_var_op()
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_link") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest$ac_exeext &&
24638 $as_test_x conftest$ac_exeext; then
24639 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
24641 echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24648 conftest$ac_exeext conftest.$ac_ext
24649 if test "x$SNMP_LIBS" != "x"; then
24656 CFLAGS="$old_CFLAGS"
24657 if test "x$SNMP_LIBS" = "x"; then
24658 { echo "$as_me:$LINENO: result: no" >&5
24659 echo "${ECHO_T}no" >&6; }
24662 { echo "$as_me:$LINENO: result: yes" >&5
24663 echo "${ECHO_T}yes" >&6; }
24665 cat >>confdefs.h <<\_ACEOF
24670 cat >>confdefs.h <<\_ACEOF
24671 #define HAVE_LIBSNMP
24680 cat >>confdefs.h <<\_ACEOF
24685 cat >>confdefs.h <<\_ACEOF
24686 #define SYSVSTYLE 2
24690 cat >>confdefs.h <<\_ACEOF
24694 gethostbyaddrrstyle=""
24695 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24696 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24699 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24700 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24701 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24711 #ifdef HAVE_NETDB_H
24719 #ifndef gethostbyaddr_r
24720 (void) gethostbyaddr_r;
24727 rm -f conftest.$ac_objext
24728 if { (ac_try="$ac_compile"
24729 case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_compile") 2>conftest.er1
24736 grep -v '^ *+' conftest.er1 >conftest.err
24738 cat conftest.err >&5
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); } && {
24741 test -z "$ac_c_werror_flag" ||
24742 test ! -s conftest.err
24743 } && test -s conftest.$ac_objext; then
24744 ac_cv_have_decl_gethostbyaddr_r=yes
24746 echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24749 ac_cv_have_decl_gethostbyaddr_r=no
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24755 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24756 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24758 cat >>confdefs.h <<_ACEOF
24759 #define HAVE_DECL_GETHOSTBYADDR_R 1
24764 cat >>confdefs.h <<_ACEOF
24765 #define HAVE_DECL_GETHOSTBYADDR_R 0
24770 cat >>confdefs.h <<\_ACEOF
24771 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24774 gethostbyaddrrstyle=BSD
24775 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24776 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24783 if test "x$gethostbyaddrrstyle" = "x"; then
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24797 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_link") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest$ac_exeext &&
24819 $as_test_x conftest$ac_exeext; then
24822 cat >>confdefs.h <<\_ACEOF
24823 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24826 gethostbyaddrrstyle=GNU
24829 echo "$as_me: failed program was:" >&5
24830 sed 's/^/| /' conftest.$ac_ext >&5
24835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24836 conftest$ac_exeext conftest.$ac_ext
24838 if test "x$gethostbyaddrrstyle" = "x"; then
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24852 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24857 rm -f conftest.$ac_objext conftest$ac_exeext
24858 if { (ac_try="$ac_link"
24859 case "(($ac_try" in
24860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861 *) ac_try_echo=$ac_try;;
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864 (eval "$ac_link") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1 >conftest.err
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest$ac_exeext &&
24874 $as_test_x conftest$ac_exeext; then
24877 cat >>confdefs.h <<\_ACEOF
24878 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24881 gethostbyaddrrstyle=SYSV
24884 echo "$as_me: failed program was:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24891 conftest$ac_exeext conftest.$ac_ext
24893 if test "x$gethostbyaddrrstyle" = "x"; then
24894 cat >conftest.$ac_ext <<_ACEOF
24897 cat confdefs.h >>conftest.$ac_ext
24898 cat >>conftest.$ac_ext <<_ACEOF
24899 /* end confdefs.h. */
24907 gethostbyaddr(NULL, 0, 0)
24912 rm -f conftest.$ac_objext conftest$ac_exeext
24913 if { (ac_try="$ac_link"
24914 case "(($ac_try" in
24915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916 *) ac_try_echo=$ac_try;;
24918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24919 (eval "$ac_link") 2>conftest.er1
24921 grep -v '^ *+' conftest.er1 >conftest.err
24923 cat conftest.err >&5
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest$ac_exeext &&
24929 $as_test_x conftest$ac_exeext; then
24932 cat >>confdefs.h <<\_ACEOF
24933 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24936 gethostbyaddrrstyle=BSD
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24946 conftest$ac_exeext conftest.$ac_ext
24949 if test "x$gethostbyaddrrstyle" = "x"; then
24950 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24951 echo "${ECHO_T}none! It must not exist, here." >&6; }
24953 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24954 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24957 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24958 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24959 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24962 gethostbynamerstyle=""
24963 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24964 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24965 cat >conftest.$ac_ext <<_ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h. */
24978 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24983 rm -f conftest.$ac_objext conftest$ac_exeext
24984 if { (ac_try="$ac_link"
24985 case "(($ac_try" in
24986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987 *) ac_try_echo=$ac_try;;
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990 (eval "$ac_link") 2>conftest.er1
24992 grep -v '^ *+' conftest.er1 >conftest.err
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } && {
24997 test -z "$ac_c_werror_flag" ||
24998 test ! -s conftest.err
24999 } && test -s conftest$ac_exeext &&
25000 $as_test_x conftest$ac_exeext; then
25003 cat >>confdefs.h <<\_ACEOF
25004 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25007 gethostbynamerstyle=GNU
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25017 conftest$ac_exeext conftest.$ac_ext
25018 if test "x$gethostbynamerstyle" = "x"; then
25019 cat >conftest.$ac_ext <<_ACEOF
25022 cat confdefs.h >>conftest.$ac_ext
25023 cat >>conftest.$ac_ext <<_ACEOF
25024 /* end confdefs.h. */
25032 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_link") 2>conftest.er1
25046 grep -v '^ *+' conftest.er1 >conftest.err
25048 cat conftest.err >&5
25049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050 (exit $ac_status); } && {
25051 test -z "$ac_c_werror_flag" ||
25052 test ! -s conftest.err
25053 } && test -s conftest$ac_exeext &&
25054 $as_test_x conftest$ac_exeext; then
25057 cat >>confdefs.h <<\_ACEOF
25058 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25061 gethostbynamerstyle=SYSV
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25071 conftest$ac_exeext conftest.$ac_ext
25073 if test "x$gethostbynamerstyle" = "x"; then
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25087 gethostbyname(NULL)
25092 rm -f conftest.$ac_objext conftest$ac_exeext
25093 if { (ac_try="$ac_link"
25094 case "(($ac_try" in
25095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25096 *) ac_try_echo=$ac_try;;
25098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25099 (eval "$ac_link") 2>conftest.er1
25101 grep -v '^ *+' conftest.er1 >conftest.err
25103 cat conftest.err >&5
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); } && {
25106 test -z "$ac_c_werror_flag" ||
25107 test ! -s conftest.err
25108 } && test -s conftest$ac_exeext &&
25109 $as_test_x conftest$ac_exeext; then
25112 cat >>confdefs.h <<\_ACEOF
25113 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25116 gethostbynamerstyle=BSD
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25126 conftest$ac_exeext conftest.$ac_ext
25129 if test "x$gethostbynamerstyle" = "x"; then
25130 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25131 echo "${ECHO_T}none! It must not exist, here." >&6; }
25133 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25134 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25137 if test "x$gethostbynamerstyle" = "xBSD"; then
25138 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25139 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25143 cat >>confdefs.h <<\_ACEOF
25144 #define POSIXSTYLE 1
25148 cat >>confdefs.h <<\_ACEOF
25149 #define SOLARISSTYLE 2
25153 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25154 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25155 cat >conftest.$ac_ext <<_ACEOF
25158 cat confdefs.h >>conftest.$ac_ext
25159 cat >>conftest.$ac_ext <<_ACEOF
25160 /* end confdefs.h. */
25167 ctime_r(NULL, NULL, 0)
25172 rm -f conftest.$ac_objext conftest$ac_exeext
25173 if { (ac_try="$ac_link"
25174 case "(($ac_try" in
25175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25176 *) ac_try_echo=$ac_try;;
25178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25179 (eval "$ac_link") 2>conftest.er1
25181 grep -v '^ *+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest$ac_exeext &&
25189 $as_test_x conftest$ac_exeext; then
25192 cat >>confdefs.h <<\_ACEOF
25193 #define CTIMERSTYLE SOLARISSTYLE
25196 ctimerstyle="SOLARIS"
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25206 conftest$ac_exeext conftest.$ac_ext
25207 if test "x$ctimerstyle" = "x"; then
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25220 ctime_r(NULL, NULL)
25225 rm -f conftest.$ac_objext conftest$ac_exeext
25226 if { (ac_try="$ac_link"
25227 case "(($ac_try" in
25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229 *) ac_try_echo=$ac_try;;
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232 (eval "$ac_link") 2>conftest.er1
25234 grep -v '^ *+' conftest.er1 >conftest.err
25236 cat conftest.err >&5
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } && {
25239 test -z "$ac_c_werror_flag" ||
25240 test ! -s conftest.err
25241 } && test -s conftest$ac_exeext &&
25242 $as_test_x conftest$ac_exeext; then
25245 cat >>confdefs.h <<\_ACEOF
25246 #define CTIMERSTYLE POSIXSTYLE
25249 ctimerstyle="POSIX"
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25259 conftest$ac_exeext conftest.$ac_ext
25262 if test "x$ctimerstyle" = "x"; then
25263 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
25264 echo "${ECHO_T}none! It must not exist, here." >&6; }
25266 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25267 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25275 export top_builddir
25276 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25277 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25283 mysubdirs="$LIBLTDLPATH"
25284 if test "x$EXPERIMENTAL" = "xyes"; then
25285 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25286 mysubdirs=`echo $mysubdirs $bar`
25288 for bar in `cat "${srcdir}"/src/modules/stable`; do
25289 if test -f "${srcdir}"/src/modules/$bar/configure; then
25290 mysubdirs="$mysubdirs src/modules/$bar"
25295 if test "x$EXPERIMENTAL" = "xyes"; then
25296 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25297 MODULES="$MODULES $foo"
25300 for foo in `cat "${srcdir}"/src/modules/stable`; do
25301 MODULES="$MODULES $foo"
25305 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25310 ac_config_commands="$ac_config_commands stamp-h"
25312 ac_config_commands="$ac_config_commands build-radpaths-h"
25314 ac_config_commands="$ac_config_commands main-chmod"
25316 ac_config_commands="$ac_config_commands scripts-chmod"
25322 USE_SHARED_LIBS=$enable_shared
25324 USE_STATIC_LIBS=$enable_static
25332 unset ac_cv_env_LIBS_set
25333 unset ac_cv_env_LIBS_value
25335 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
25337 cat >confcache <<\_ACEOF
25338 # This file is a shell script that caches the results of configure
25339 # tests run on this system so they can be shared between configure
25340 # scripts and configure runs, see configure's option --config-cache.
25341 # It is not useful on other systems. If it contains results you don't
25342 # want to keep, you may remove or edit it.
25344 # config.status only pays attention to the cache file if you give it
25345 # the --recheck option to rerun configure.
25347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25349 # following values.
25353 # The following way of writing the cache mishandles newlines in values,
25354 # but we know of no workaround that is simple, portable, and efficient.
25355 # So, we kill variables containing newlines.
25356 # Ultrix sh set writes to stderr and can't be redirected directly,
25357 # and sets the high bit in the cache file unless we assign to the vars.
25359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25360 eval ac_val=\$$ac_var
25364 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25365 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25368 _ | IFS | as_nl) ;; #(
25369 *) $as_unset $ac_var ;;
25375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25376 *${as_nl}ac_space=\ *)
25377 # `set' does not quote correctly, so add quotes (double-quote
25378 # substitution turns \\\\ into \\, and sed turns \\ into \).
25381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25384 # `set' quotes correctly as required by POSIX, so do not add quotes.
25385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25399 if test -w "$cache_file"; then
25400 test "x$cache_file" != "x/dev/null" &&
25401 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25402 echo "$as_me: updating cache $cache_file" >&6;}
25403 cat confcache >$cache_file
25405 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25406 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25412 # Let make expand exec_prefix.
25413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25415 DEFS=-DHAVE_CONFIG_H
25419 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25420 # 1. Remove the extension, and $U if already installed.
25421 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25422 ac_i=`echo "$ac_i" | sed "$ac_script"`
25423 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25424 # will be set to the directory where LIBOBJS objects are built.
25425 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25426 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25428 LIBOBJS=$ac_libobjs
25430 LTLIBOBJS=$ac_ltlibobjs
25434 : ${CONFIG_STATUS=./config.status}
25435 ac_clean_files_save=$ac_clean_files
25436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25437 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25438 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25439 cat >$CONFIG_STATUS <<_ACEOF
25441 # Generated by $as_me.
25442 # Run this file to recreate the current configuration.
25443 # Compiler output produced by configure, useful for debugging
25444 # configure, is in config.log if it exists.
25447 ac_cs_recheck=false
25449 SHELL=\${CONFIG_SHELL-$SHELL}
25452 cat >>$CONFIG_STATUS <<\_ACEOF
25453 ## --------------------- ##
25454 ## M4sh Initialization. ##
25455 ## --------------------- ##
25457 # Be more Bourne compatible
25458 DUALCASE=1; export DUALCASE # for MKS sh
25459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25462 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25463 # is contrary to our usage. Disable this feature.
25464 alias -g '${1+"$@"}'='"$@"'
25465 setopt NO_GLOB_SUBST
25467 case `(set -o) 2>/dev/null` in
25468 *posix*) set -o posix ;;
25477 # Avoid depending upon Character Ranges.
25478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25481 as_cr_digits='0123456789'
25482 as_cr_alnum=$as_cr_Letters$as_cr_digits
25484 # The user is always right.
25485 if test "${PATH_SEPARATOR+set}" != set; then
25486 echo "#! /bin/sh" >conf$$.sh
25487 echo "exit 0" >>conf$$.sh
25489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25497 # Support unset when possible.
25498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25506 # We need space, tab and new line, in precisely that order. Quoting is
25507 # there to prevent editors from complaining about space-tab.
25508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25509 # splitting by setting IFS to empty value.)
25514 # Find who we are. Look in the path if we contain no directory separator.
25516 *[\\/]* ) as_myself=$0 ;;
25517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25518 for as_dir in $PATH
25521 test -z "$as_dir" && as_dir=.
25522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25528 # We did not find ourselves, most probably we were run as `sh COMMAND'
25529 # in which case we are not to be found in the path.
25530 if test "x$as_myself" = x; then
25533 if test ! -f "$as_myself"; then
25534 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25535 { (exit 1); exit 1; }
25538 # Work around bugs in pre-3.0 UWIN ksh.
25539 for as_var in ENV MAIL MAILPATH
25540 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25548 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25549 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25550 LC_TELEPHONE LC_TIME
25552 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25553 eval $as_var=C; export $as_var
25555 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25559 # Required to use basename.
25560 if expr a : '\(a\)' >/dev/null 2>&1 &&
25561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25568 as_basename=basename
25574 # Name of the executable.
25575 as_me=`$as_basename -- "$0" ||
25576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25577 X"$0" : 'X\(//\)$' \| \
25578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25580 sed '/^.*\/\([^/][^/]*\)\/*$/{
25599 as_lineno_1=$LINENO
25600 as_lineno_2=$LINENO
25601 test "x$as_lineno_1" != "x$as_lineno_2" &&
25602 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25604 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25605 # uniformly replaced by the line number. The first 'sed' inserts a
25606 # line-number line after each line using $LINENO; the second 'sed'
25607 # does the real work. The second script uses 'N' to pair each
25608 # line-number line with the line containing $LINENO, and appends
25609 # trailing '-' during substitution so that $LINENO is not a special
25610 # case at line end.
25611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25612 # scripts with optimization help from Paolo Bonzini. Blame Lee
25613 # E. McMahon (1931-1989) for sed's syntax. :-)
25625 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25628 ' >$as_me.lineno &&
25629 chmod +x "$as_me.lineno" ||
25630 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25631 { (exit 1); exit 1; }; }
25633 # Don't try to exec as it changes $[0], causing all sort of problems
25634 # (the dirname of $[0] is not the place where we might find the
25635 # original and so on. Autoconf is especially sensitive to this).
25636 . "./$as_me.lineno"
25637 # Exit status is that of the last command.
25642 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25648 ECHO_C= ECHO_N= ECHO_T=
25649 case `echo -n x` in
25651 case `echo 'x\c'` in
25652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25659 if expr a : '\(a\)' >/dev/null 2>&1 &&
25660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25666 rm -f conf$$ conf$$.exe conf$$.file
25667 if test -d conf$$.dir; then
25668 rm -f conf$$.dir/conf$$.file
25674 if ln -s conf$$.file conf$$ 2>/dev/null; then
25676 # ... but there are two gotchas:
25677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25679 # In both cases, we have to default to `cp -p'.
25680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25682 elif ln conf$$.file conf$$ 2>/dev/null; then
25687 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25688 rmdir conf$$.dir 2>/dev/null
25690 if mkdir -p . 2>/dev/null; then
25693 test -d ./-p && rmdir ./-p
25697 if test -x / >/dev/null 2>&1; then
25698 as_test_x='test -x'
25700 if ls -dL / >/dev/null 2>&1; then
25707 if test -d "$1"; then
25713 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25714 ???[sx]*):;;*)false;;esac;fi
25718 as_executable_p=$as_test_x
25720 # Sed expression to map a string onto a valid CPP name.
25721 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25723 # Sed expression to map a string onto a valid variable name.
25724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25729 # Save the log message, to keep $[0] and so on meaningful, and to
25730 # report actual input values of CONFIG_FILES etc. instead of their
25731 # values after options handling.
25733 This file was extended by $as_me, which was
25734 generated by GNU Autoconf 2.61. Invocation command line was
25736 CONFIG_FILES = $CONFIG_FILES
25737 CONFIG_HEADERS = $CONFIG_HEADERS
25738 CONFIG_LINKS = $CONFIG_LINKS
25739 CONFIG_COMMANDS = $CONFIG_COMMANDS
25742 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25747 cat >>$CONFIG_STATUS <<_ACEOF
25748 # Files that config.status was made for.
25749 config_files="$ac_config_files"
25750 config_headers="$ac_config_headers"
25751 config_commands="$ac_config_commands"
25755 cat >>$CONFIG_STATUS <<\_ACEOF
25757 \`$as_me' instantiates files from templates according to the
25758 current configuration.
25760 Usage: $0 [OPTIONS] [FILE]...
25762 -h, --help print this help, then exit
25763 -V, --version print version number and configuration settings, then exit
25764 -q, --quiet do not print progress messages
25765 -d, --debug don't remove temporary files
25766 --recheck update $as_me by reconfiguring in the same conditions
25767 --file=FILE[:TEMPLATE]
25768 instantiate the configuration file FILE
25769 --header=FILE[:TEMPLATE]
25770 instantiate the configuration header FILE
25772 Configuration files:
25775 Configuration headers:
25778 Configuration commands:
25781 Report bugs to <bug-autoconf@gnu.org>."
25784 cat >>$CONFIG_STATUS <<_ACEOF
25787 configured by $0, generated by GNU Autoconf 2.61,
25788 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25790 Copyright (C) 2006 Free Software Foundation, Inc.
25791 This config.status script is free software; the Free Software Foundation
25792 gives unlimited permission to copy, distribute and modify it."
25798 cat >>$CONFIG_STATUS <<\_ACEOF
25799 # If no file are specified by the user, then we need to provide default
25800 # value. By we need to know if files were specified by the user.
25806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25818 # Handling of the options.
25819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25822 echo "$ac_cs_version"; exit ;;
25823 --debug | --debu | --deb | --de | --d | -d )
25825 --file | --fil | --fi | --f )
25827 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25828 ac_need_defaults=false;;
25829 --header | --heade | --head | --hea )
25831 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25832 ac_need_defaults=false;;
25834 # Conflict between --help and --header
25835 { echo "$as_me: error: ambiguous option: $1
25836 Try \`$0 --help' for more information." >&2
25837 { (exit 1); exit 1; }; };;
25838 --help | --hel | -h )
25839 echo "$ac_cs_usage"; exit ;;
25840 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25841 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25844 # This is an error.
25845 -*) { echo "$as_me: error: unrecognized option: $1
25846 Try \`$0 --help' for more information." >&2
25847 { (exit 1); exit 1; }; } ;;
25849 *) ac_config_targets="$ac_config_targets $1"
25850 ac_need_defaults=false ;;
25856 ac_configure_extra_args=
25858 if $ac_cs_silent; then
25860 ac_configure_extra_args="$ac_configure_extra_args --silent"
25864 cat >>$CONFIG_STATUS <<_ACEOF
25865 if \$ac_cs_recheck; then
25866 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25867 CONFIG_SHELL=$SHELL
25868 export CONFIG_SHELL
25869 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25873 cat >>$CONFIG_STATUS <<\_ACEOF
25877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25878 ## Running $as_me. ##
25884 cat >>$CONFIG_STATUS <<_ACEOF
25887 cat >>$CONFIG_STATUS <<\_ACEOF
25889 # Handling of arguments.
25890 for ac_config_target in $ac_config_targets
25892 case $ac_config_target in
25893 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25894 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25895 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25896 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25897 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25898 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25899 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25900 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25901 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25902 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25903 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25904 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25905 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25906 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25907 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25908 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25909 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25910 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25911 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25915 { (exit 1); exit 1; }; };;
25920 # If the user did not use the arguments to specify the items to instantiate,
25921 # then the envvar interface is used. Set only those that are not.
25922 # We use the long form for the default assignment because of an extremely
25923 # bizarre bug on SunOS 4.1.3.
25924 if $ac_need_defaults; then
25925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25930 # Have a temporary directory for convenience. Make it in the build tree
25931 # simply because there is no reason against having it here, and in addition,
25932 # creating and moving files from /tmp can sometimes cause problems.
25933 # Hook for its removal unless debugging.
25934 # Note that there is a small window in which the directory will not be cleaned:
25935 # after its creation but before its name has been assigned to `$tmp'.
25939 trap 'exit_status=$?
25940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25942 trap '{ (exit 1); exit 1; }' 1 2 13 15
25944 # Create a (secure) tmp directory for tmp files.
25947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25948 test -n "$tmp" && test -d "$tmp"
25951 tmp=./conf$$-$RANDOM
25952 (umask 077 && mkdir "$tmp")
25955 echo "$me: cannot create a temporary directory in ." >&2
25956 { (exit 1); exit 1; }
25960 # Set up the sed scripts for CONFIG_FILES section.
25963 # No need to generate the scripts if there are no CONFIG_FILES.
25964 # This happens for instance when ./config.status config.h
25965 if test -n "$CONFIG_FILES"; then
25972 for ac_last_try in false false false false false :; do
25973 cat >conf$$subs.sed <<_ACEOF
25974 SHELL!$SHELL$ac_delim
25975 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25976 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25977 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25978 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25979 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25980 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25981 exec_prefix!$exec_prefix$ac_delim
25982 prefix!$prefix$ac_delim
25983 program_transform_name!$program_transform_name$ac_delim
25984 bindir!$bindir$ac_delim
25985 sbindir!$sbindir$ac_delim
25986 libexecdir!$libexecdir$ac_delim
25987 datarootdir!$datarootdir$ac_delim
25988 datadir!$datadir$ac_delim
25989 sysconfdir!$sysconfdir$ac_delim
25990 sharedstatedir!$sharedstatedir$ac_delim
25991 localstatedir!$localstatedir$ac_delim
25992 includedir!$includedir$ac_delim
25993 oldincludedir!$oldincludedir$ac_delim
25994 docdir!$docdir$ac_delim
25995 infodir!$infodir$ac_delim
25996 htmldir!$htmldir$ac_delim
25997 dvidir!$dvidir$ac_delim
25998 pdfdir!$pdfdir$ac_delim
25999 psdir!$psdir$ac_delim
26000 libdir!$libdir$ac_delim
26001 localedir!$localedir$ac_delim
26002 mandir!$mandir$ac_delim
26003 DEFS!$DEFS$ac_delim
26004 ECHO_C!$ECHO_C$ac_delim
26005 ECHO_N!$ECHO_N$ac_delim
26006 ECHO_T!$ECHO_T$ac_delim
26007 LIBS!$LIBS$ac_delim
26008 build_alias!$build_alias$ac_delim
26009 host_alias!$host_alias$ac_delim
26010 target_alias!$target_alias$ac_delim
26012 CFLAGS!$CFLAGS$ac_delim
26013 LDFLAGS!$LDFLAGS$ac_delim
26014 CPPFLAGS!$CPPFLAGS$ac_delim
26015 ac_ct_CC!$ac_ct_CC$ac_delim
26016 EXEEXT!$EXEEXT$ac_delim
26017 OBJEXT!$OBJEXT$ac_delim
26019 CXXFLAGS!$CXXFLAGS$ac_delim
26020 ac_ct_CXX!$ac_ct_CXX$ac_delim
26022 GREP!$GREP$ac_delim
26023 EGREP!$EGREP$ac_delim
26024 RANLIB!$RANLIB$ac_delim
26025 GMAKE!$GMAKE$ac_delim
26026 MAKE!$MAKE$ac_delim
26027 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26028 LIBTOOL!$LIBTOOL$ac_delim
26029 build!$build$ac_delim
26030 build_cpu!$build_cpu$ac_delim
26031 build_vendor!$build_vendor$ac_delim
26032 build_os!$build_os$ac_delim
26033 host!$host$ac_delim
26034 host_cpu!$host_cpu$ac_delim
26035 host_vendor!$host_vendor$ac_delim
26036 host_os!$host_os$ac_delim
26037 LN_S!$LN_S$ac_delim
26038 ECHO!$ECHO$ac_delim
26040 STRIP!$STRIP$ac_delim
26041 CXXCPP!$CXXCPP$ac_delim
26043 FFLAGS!$FFLAGS$ac_delim
26044 ac_ct_F77!$ac_ct_F77$ac_delim
26045 logdir!$logdir$ac_delim
26046 radacctdir!$radacctdir$ac_delim
26047 raddbdir!$raddbdir$ac_delim
26048 PERL!$PERL$ac_delim
26049 SNMPGET!$SNMPGET$ac_delim
26050 SNMPWALK!$SNMPWALK$ac_delim
26051 RUSERS!$RUSERS$ac_delim
26052 ACLOCAL!$ACLOCAL$ac_delim
26053 AUTOCONF!$AUTOCONF$ac_delim
26054 AUTOHEADER!$AUTOHEADER$ac_delim
26055 LOCATE!$LOCATE$ac_delim
26056 DIRNAME!$DIRNAME$ac_delim
26057 REGEX!$REGEX$ac_delim
26058 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26059 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26060 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26061 PCAP_LIBS!$PCAP_LIBS$ac_delim
26062 LIBPREFIX!$LIBPREFIX$ac_delim
26063 CRYPTLIB!$CRYPTLIB$ac_delim
26064 SNMP_LIBS!$SNMP_LIBS$ac_delim
26065 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
26066 HOSTINFO!$HOSTINFO$ac_delim
26067 LIBLTDL!$LIBLTDL$ac_delim
26068 INCLTDL!$INCLTDL$ac_delim
26069 subdirs!$subdirs$ac_delim
26070 MODULES!$MODULES$ac_delim
26073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26075 elif $ac_last_try; then
26076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26078 { (exit 1); exit 1; }; }
26080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26085 if test -n "$ac_eof"; then
26086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26087 ac_eof=`expr $ac_eof + 1`
26090 cat >>$CONFIG_STATUS <<_ACEOF
26091 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26096 s/^/s,@/; s/!/@,|#_!!_#|/
26099 s/'"$ac_delim"'$/,g/; t
26101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26102 ' >>$CONFIG_STATUS <conf$$subs.sed
26103 rm -f conf$$subs.sed
26104 cat >>$CONFIG_STATUS <<_ACEOF
26110 for ac_last_try in false false false false false :; do
26111 cat >conf$$subs.sed <<_ACEOF
26112 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26113 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26114 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26115 STATIC_MODULES!$STATIC_MODULES$ac_delim
26116 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26117 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26118 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26119 LIBOBJS!$LIBOBJS$ac_delim
26120 LTLIBOBJS!$LTLIBOBJS$ac_delim
26123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
26125 elif $ac_last_try; then
26126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26127 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26128 { (exit 1); exit 1; }; }
26130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26134 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26135 if test -n "$ac_eof"; then
26136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26137 ac_eof=`expr $ac_eof + 1`
26140 cat >>$CONFIG_STATUS <<_ACEOF
26141 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26145 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26146 s/^/s,@/; s/!/@,|#_!!_#|/
26149 s/'"$ac_delim"'$/,g/; t
26151 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26152 ' >>$CONFIG_STATUS <conf$$subs.sed
26153 rm -f conf$$subs.sed
26154 cat >>$CONFIG_STATUS <<_ACEOF
26161 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26162 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26163 # trailing colons and then remove the whole line if VPATH becomes empty
26164 # (actually we leave an empty line to preserve line numbers).
26165 if test "x$srcdir" = x.; then
26166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26167 s/:*\$(srcdir):*/:/
26168 s/:*\${srcdir}:*/:/
26170 s/^\([^=]*=[ ]*\):*/\1/
26176 cat >>$CONFIG_STATUS <<\_ACEOF
26177 fi # test -n "$CONFIG_FILES"
26180 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26183 :[FHLC]) ac_mode=$ac_tag; continue;;
26185 case $ac_mode$ac_tag in
26187 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26188 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26189 { (exit 1); exit 1; }; };;
26190 :[FH]-) ac_tag=-:-;;
26191 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26208 -) ac_f="$tmp/stdin";;
26209 *) # Look for the file first in the build tree, then in the source tree
26210 # (if the path is not absolute). The absolute path cannot be DOS-style,
26211 # because $ac_f cannot contain `:'.
26215 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26217 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26218 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26219 { (exit 1); exit 1; }; };;
26221 ac_file_inputs="$ac_file_inputs $ac_f"
26224 # Let's still pretend it is `configure' which instantiates (i.e., don't
26225 # use $as_me), people would be surprised to read:
26226 # /* config.h. Generated by config.status. */
26227 configure_input="Generated from "`IFS=:
26228 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26229 if test x"$ac_file" != x-; then
26230 configure_input="$ac_file. $configure_input"
26231 { echo "$as_me:$LINENO: creating $ac_file" >&5
26232 echo "$as_me: creating $ac_file" >&6;}
26236 *:-:* | *:-) cat >"$tmp/stdin";;
26241 ac_dir=`$as_dirname -- "$ac_file" ||
26242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$ac_file" : 'X\(//\)[^/]' \| \
26244 X"$ac_file" : 'X\(//\)$' \| \
26245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26251 /^X\(\/\/\)[^/].*/{
26266 -*) as_dir=./$as_dir;;
26268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26272 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26273 *) as_qdir=$as_dir;;
26275 as_dirs="'$as_qdir' $as_dirs"
26276 as_dir=`$as_dirname -- "$as_dir" ||
26277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26278 X"$as_dir" : 'X\(//\)[^/]' \| \
26279 X"$as_dir" : 'X\(//\)$' \| \
26280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26286 /^X\(\/\/\)[^/].*/{
26299 test -d "$as_dir" && break
26301 test -z "$as_dirs" || eval "mkdir $as_dirs"
26302 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26303 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26304 { (exit 1); exit 1; }; }; }
26308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26311 # A ".." for each directory in $ac_dir_suffix.
26312 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26313 case $ac_top_builddir_sub in
26314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26318 ac_abs_top_builddir=$ac_pwd
26319 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26320 # for backward compatibility:
26321 ac_top_builddir=$ac_top_build_prefix
26324 .) # We are building in place.
26326 ac_top_srcdir=$ac_top_builddir_sub
26327 ac_abs_top_srcdir=$ac_pwd ;;
26328 [\\/]* | ?:[\\/]* ) # Absolute name.
26329 ac_srcdir=$srcdir$ac_dir_suffix;
26330 ac_top_srcdir=$srcdir
26331 ac_abs_top_srcdir=$srcdir ;;
26332 *) # Relative name.
26333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26334 ac_top_srcdir=$ac_top_build_prefix$srcdir
26335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26348 cat >>$CONFIG_STATUS <<\_ACEOF
26349 # If the template does not know about datarootdir, expand it.
26350 # FIXME: This hack should be removed a few years after 2.60.
26351 ac_datarootdir_hack=; ac_datarootdir_seen=
26353 case `sed -n '/datarootdir/ {
26362 ' $ac_file_inputs` in
26363 *datarootdir*) ac_datarootdir_seen=yes;;
26364 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26365 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26366 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26368 cat >>$CONFIG_STATUS <<_ACEOF
26369 ac_datarootdir_hack='
26370 s&@datadir@&$datadir&g
26371 s&@docdir@&$docdir&g
26372 s&@infodir@&$infodir&g
26373 s&@localedir@&$localedir&g
26374 s&@mandir@&$mandir&g
26375 s&\\\${datarootdir}&$datarootdir&g' ;;
26379 # Neutralize VPATH when `$srcdir' = `.'.
26380 # Shell code in configure.ac might set extrasub.
26381 # FIXME: do we really want to maintain this feature?
26382 cat >>$CONFIG_STATUS <<_ACEOF
26386 cat >>$CONFIG_STATUS <<\_ACEOF
26388 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26389 s&@configure_input@&$configure_input&;t t
26390 s&@top_builddir@&$ac_top_builddir_sub&;t t
26391 s&@srcdir@&$ac_srcdir&;t t
26392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26393 s&@top_srcdir@&$ac_top_srcdir&;t t
26394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26395 s&@builddir@&$ac_builddir&;t t
26396 s&@abs_builddir@&$ac_abs_builddir&;t t
26397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26398 $ac_datarootdir_hack
26399 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26401 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26402 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26403 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26404 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26405 which seems to be undefined. Please make sure it is defined." >&5
26406 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26407 which seems to be undefined. Please make sure it is defined." >&2;}
26411 -) cat "$tmp/out"; rm -f "$tmp/out";;
26412 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26421 # Transform confdefs.h into a sed script `conftest.defines', that
26422 # substitutes the proper values into config.h.in to produce config.h.
26423 rm -f conftest.defines conftest.tail
26424 # First, append a space to every undef/define line, to ease matching.
26425 echo 's/$/ /' >conftest.defines
26426 # Then, protect against being on the right side of a sed subst, or in
26427 # an unquoted here document, in config.status. If some macros were
26428 # called several times there might be several #defines for the same
26429 # symbol, which is useless. But do not sort them, since the last
26430 # AC_DEFINE must be honored.
26431 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26432 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26433 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26434 # PARAMS is the parameter list in the macro definition--in most cases, it's
26435 # just an empty string.
26436 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26437 ac_dB='\\)[ (].*,\\1define\\2'
26445 s/^[ ]*#[ ]*define[ ][ ]*//
26450 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26451 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26452 ' >>conftest.defines
26454 # Remove the space that was appended to ease matching.
26455 # Then replace #undef with comments. This is necessary, for
26456 # example, in the case of _POSIX_SOURCE, which is predefined and required
26457 # on some systems where configure will not decide to define it.
26458 # (The regexp can be short, since the line contains either #define or #undef.)
26460 s,^[ #]*u.*,/* & */,' >>conftest.defines
26462 # Break up conftest.defines:
26463 ac_max_sed_lines=50
26465 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26466 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26467 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26469 ac_in='$ac_file_inputs'
26470 ac_out='"$tmp/out1"'
26471 ac_nxt='"$tmp/out2"'
26475 # Write a here document:
26476 cat >>$CONFIG_STATUS <<_ACEOF
26477 # First, check the format of the line:
26478 cat >"\$tmp/defines.sed" <<\\CEOF
26479 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26480 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26484 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26486 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26487 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26488 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26489 grep . conftest.tail >/dev/null || break
26490 rm -f conftest.defines
26491 mv conftest.tail conftest.defines
26493 rm -f conftest.defines conftest.tail
26495 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26496 cat >>$CONFIG_STATUS <<\_ACEOF
26497 if test x"$ac_file" != x-; then
26498 echo "/* $configure_input */" >"$tmp/config.h"
26499 cat "$ac_result" >>"$tmp/config.h"
26500 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26502 echo "$as_me: $ac_file is unchanged" >&6;}
26505 mv "$tmp/config.h" $ac_file
26508 echo "/* $configure_input */"
26514 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26515 echo "$as_me: executing $ac_file commands" >&6;}
26520 case $ac_file$ac_mode in
26521 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
26522 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26523 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26524 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26530 { (exit 0); exit 0; }
26532 chmod +x $CONFIG_STATUS
26533 ac_clean_files=$ac_clean_files_save
26536 # configure is writing to config.log, and then calls config.status.
26537 # config.status does its own redirection, appending to config.log.
26538 # Unfortunately, on DOS this fails, as config.log is still kept open
26539 # by configure, so config.status won't be able to write to it; its
26540 # output is simply discarded. So we exec the FD to /dev/null,
26541 # effectively closing config.log, so it can be properly (re)opened and
26542 # appended to by config.status. When coming back to configure, we
26543 # need to make the FD available again.
26544 if test "$no_create" != yes; then
26546 ac_config_status_args=
26547 test "$silent" = yes &&
26548 ac_config_status_args="$ac_config_status_args --quiet"
26550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26553 # would make configure fail if this is the last instruction.
26554 $ac_cs_success || { (exit 1); exit 1; }
26558 # CONFIG_SUBDIRS section.
26560 if test "$no_recursion" != yes; then
26562 # Remove --cache-file and --srcdir arguments so they do not pile up.
26563 ac_sub_configure_args=
26565 eval "set x $ac_configure_args"
26569 if test -n "$ac_prev"; then
26574 -cache-file | --cache-file | --cache-fil | --cache-fi \
26575 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26576 ac_prev=cache_file ;;
26577 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26578 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26581 --config-cache | -C)
26583 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26585 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26587 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26589 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26593 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26595 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26599 # Always prepend --prefix to ensure using the same prefix
26600 # in subdir configurations.
26601 ac_arg="--prefix=$prefix"
26603 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26605 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26608 if test "$silent" = yes; then
26609 ac_sub_configure_args="--silent $ac_sub_configure_args"
26613 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26615 # Do not complain, so a configure script can configure whichever
26616 # parts of a large source tree are present.
26617 test -d "$srcdir/$ac_dir" || continue
26619 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26620 echo "$as_me:$LINENO: $ac_msg" >&5
26624 -*) as_dir=./$as_dir;;
26626 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26630 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26631 *) as_qdir=$as_dir;;
26633 as_dirs="'$as_qdir' $as_dirs"
26634 as_dir=`$as_dirname -- "$as_dir" ||
26635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26636 X"$as_dir" : 'X\(//\)[^/]' \| \
26637 X"$as_dir" : 'X\(//\)$' \| \
26638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26644 /^X\(\/\/\)[^/].*/{
26657 test -d "$as_dir" && break
26659 test -z "$as_dirs" || eval "mkdir $as_dirs"
26660 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26661 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26662 { (exit 1); exit 1; }; }; }
26666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26669 # A ".." for each directory in $ac_dir_suffix.
26670 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26671 case $ac_top_builddir_sub in
26672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26676 ac_abs_top_builddir=$ac_pwd
26677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26678 # for backward compatibility:
26679 ac_top_builddir=$ac_top_build_prefix
26682 .) # We are building in place.
26684 ac_top_srcdir=$ac_top_builddir_sub
26685 ac_abs_top_srcdir=$ac_pwd ;;
26686 [\\/]* | ?:[\\/]* ) # Absolute name.
26687 ac_srcdir=$srcdir$ac_dir_suffix;
26688 ac_top_srcdir=$srcdir
26689 ac_abs_top_srcdir=$srcdir ;;
26690 *) # Relative name.
26691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26692 ac_top_srcdir=$ac_top_build_prefix$srcdir
26693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26700 # Check for guested configure; otherwise get Cygnus style configure.
26701 if test -f "$ac_srcdir/configure.gnu"; then
26702 ac_sub_configure=$ac_srcdir/configure.gnu
26703 elif test -f "$ac_srcdir/configure"; then
26704 ac_sub_configure=$ac_srcdir/configure
26705 elif test -f "$ac_srcdir/configure.in"; then
26706 # This should be Cygnus configure.
26707 ac_sub_configure=$ac_aux_dir/configure
26709 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26710 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26714 # The recursion is here.
26715 if test -n "$ac_sub_configure"; then
26716 # Make the cache file name correct relative to the subdirectory.
26717 case $cache_file in
26718 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26719 *) # Relative name.
26720 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26723 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26724 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26725 # The eval makes quoting arguments work.
26726 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26727 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26728 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26729 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26730 { (exit 1); exit 1; }; }