2 # From configure.in Revision: 1.198.2.15.2.18 .
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
876 RADIUSD_MAJOR_VERSION
877 RADIUSD_MINOR_VERSION
882 ac_precious_vars='build_alias
897 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
899 # Initialize some variables set by options.
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 if test -n "$ac_init_help"; then
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
1473 --disable-libtool-lock avoid locking (might break parallel builds)
1474 --enable-strict-dependencies Fail configure on lack of module dependancy.
1475 --enable-developer Enables features of interest to developers.
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-system-libtool try to use libtool installed in your system default=use our own
1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-tags[=TAGS] include additional configurations [automatic]
1485 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1486 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1487 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1488 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1489 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1490 --with-threads Use threads, if available. (default=yes)
1491 --with-snmp Compile in SNMP support. (default=yes)
1492 --with-snmp-include-dir=DIR Directory to look for include files used by SNMP
1493 --with-large-files Compile in large (2G+) file support. (default=no)
1494 --with-static-modules=QUOTED-MODULE-LIST
1495 --with-modules=QUOTED-MODULE-LIST
1496 --with-experimental-modules Use experimental and unstable modules. (default=no)
1497 --with-openssl Use OpenSSL. (default=yes)
1498 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1499 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1500 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1501 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1502 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1503 --with-edir Enable Novell eDirectory integration. (default=no)
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 CXXCPP C++ preprocessor
1517 F77 Fortran 77 compiler command
1518 FFLAGS Fortran 77 compiler flags
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" || continue
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.61
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1597 It was created by $as_me, which was
1598 generated by GNU Autoconf 2.61. Invocation command line was
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1619 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1620 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1623 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1624 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1625 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 test -z "$as_dir" && as_dir=.
1634 echo "PATH: $as_dir"
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_must_keep_next=false
1664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666 | -silent | --silent | --silen | --sile | --sil)
1669 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1674 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675 if test $ac_must_keep_next = true; then
1676 ac_must_keep_next=false # Got value, back to normal.
1679 *=* | --config-cache | -C | -disable-* | --disable-* \
1680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682 | -with-* | --with-* | -without-* | --without-* | --x)
1683 case "$ac_configure_args0 " in
1684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687 -* ) ac_must_keep_next=true ;;
1690 ac_configure_args="$ac_configure_args '$ac_arg'"
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log. We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704 # Save into config.log some information that might help in debugging.
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1714 # The following way of writing the cache mishandles newlines in values,
1716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717 eval ac_val=\$$ac_var
1721 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725 _ | IFS | as_nl) ;; #(
1726 *) $as_unset $ac_var ;;
1731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732 *${as_nl}ac_space=\ *)
1734 "s/'\''/'\''\\\\'\'''\''/g;
1735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1751 for ac_var in $ac_subst_vars
1753 eval ac_val=\$$ac_var
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757 echo "$ac_var='\''$ac_val'\''"
1761 if test -n "$ac_subst_files"; then
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1768 for ac_var in $ac_subst_files
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1779 if test -s confdefs.h; then
1789 test "$ac_signal" != 0 &&
1790 echo "$as_me: caught signal $ac_signal"
1791 echo "$as_me: exit $exit_status"
1793 rm -f core *.core core.conftest.* &&
1794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797 for ac_signal in 1 2 13 15; do
1798 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1805 # Predefined preprocessor variables.
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835 set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1839 set x "$ac_default_prefix/share/config.site" \
1840 "$ac_default_prefix/etc/config.site"
1845 if test -r "$ac_site_file"; then
1846 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848 sed 's/^/| /' "$ac_site_file" >&5
1853 if test -r "$cache_file"; then
1854 # Some versions of bash will fail to source /dev/null (special
1855 # files actually), so we avoid doing that.
1856 if test -f "$cache_file"; then
1857 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1860 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861 *) . "./$cache_file";;
1865 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1870 # Check that the precious variables saved in the cache have kept the same
1872 ac_cache_corrupted=false
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1875 eval ac_new_set=\$ac_env_${ac_var}_set
1876 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1877 eval ac_new_val=\$ac_env_${ac_var}_value
1878 case $ac_old_set,$ac_new_set in
1880 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1884 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1886 ac_cache_corrupted=: ;;
1889 if test "x$ac_old_val" != "x$ac_new_val"; then
1890 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1891 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1892 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1893 echo "$as_me: former value: $ac_old_val" >&2;}
1894 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1895 echo "$as_me: current value: $ac_new_val" >&2;}
1896 ac_cache_corrupted=:
1899 # Pass precious variables to config.status.
1900 if test "$ac_new_set" = set; then
1902 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1903 *) ac_arg=$ac_var=$ac_new_val ;;
1905 case " $ac_configure_args " in
1906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1907 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911 if $ac_cache_corrupted; then
1912 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1913 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1914 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1915 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1916 { (exit 1); exit 1; }; }
1936 ac_cpp='$CPP $CPPFLAGS'
1937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1946 RADIUSD_MAJOR_VERSION=1
1947 RADIUSD_MINOR_VERSION=1.7
1948 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test -n "$CC"; then
1986 { echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6; }
1989 { echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6; }
1995 if test -z "$ac_cv_prog_CC"; then
1997 # Extract the first word of "gcc", so it can be a program name with args.
1998 set dummy gcc; ac_word=$2
1999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$ac_ct_CC"; then
2005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 ac_cv_prog_ac_ct_CC="gcc"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 echo "${ECHO_T}$ac_ct_CC" >&6; }
2029 { echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6; }
2033 if test "x$ac_ct_CC" = x; then
2036 case $cross_compiling:$ac_tool_warned in
2038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet. If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&5
2041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2042 whose name does not start with the host triplet. If you think this
2043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2044 ac_tool_warned=yes ;;
2052 if test -z "$CC"; then
2053 if test -n "$ac_tool_prefix"; then
2054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2055 set dummy ${ac_tool_prefix}cc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_CC="${ac_tool_prefix}cc"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 if test -n "$CC"; then
2083 { echo "$as_me:$LINENO: result: $CC" >&5
2084 echo "${ECHO_T}$CC" >&6; }
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2093 if test -z "$CC"; then
2094 # Extract the first word of "cc", so it can be a program name with args.
2095 set dummy cc; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2113 ac_prog_rejected=yes
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 if test $ac_prog_rejected = yes; then
2125 # We found a bogon in the path, so make sure we never use it.
2126 set dummy $ac_cv_prog_CC
2128 if test $# != 0; then
2129 # We chose a different compiler from the bogus one.
2130 # However, it has the same basename, so the bogon will be chosen
2131 # first if we set CC to just the basename; use the full file name.
2133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2149 if test -z "$CC"; then
2150 if test -n "$ac_tool_prefix"; then
2151 for ac_prog in cl.exe
2153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 if test -n "$CC"; then
2161 ac_cv_prog_CC="$CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 if test -n "$CC"; then
2182 { echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6; }
2185 { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2190 test -n "$CC" && break
2193 if test -z "$CC"; then
2195 for ac_prog in cl.exe
2197 # Extract the first word of "$ac_prog", so it can be a program name with args.
2198 set dummy $ac_prog; ac_word=$2
2199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2214 ac_cv_prog_ac_ct_CC="$ac_prog"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6; }
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2234 test -n "$ac_ct_CC" && break
2237 if test "x$ac_ct_CC" = x; then
2240 case $cross_compiling:$ac_tool_warned in
2242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet. If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&5
2245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2246 whose name does not start with the host triplet. If you think this
2247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2248 ac_tool_warned=yes ;;
2257 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: no acceptable C compiler found in \$PATH
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2263 # Provide some information about the compiler.
2264 echo "$as_me:$LINENO: checking for C compiler version" >&5
2265 ac_compiler=`set X $ac_compile; echo $2`
2266 { (ac_try="$ac_compiler --version >&5"
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_compiler --version >&5") 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2276 { (ac_try="$ac_compiler -v >&5"
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2282 (eval "$ac_compiler -v >&5") 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }
2286 { (ac_try="$ac_compiler -V >&5"
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_compiler -V >&5") 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 ac_clean_files_save=$ac_clean_files
2313 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2314 # Try to create an executable without -o first, disregard a.out.
2315 # It will help us diagnose broken compilers, and finding out an intuition
2317 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2318 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2319 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2321 # List of possible output files, starting from the most likely.
2322 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2323 # only as a last resort. b.out is created by i960 compilers.
2324 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2326 # The IRIX 6 linker writes into existing files which may not be
2327 # executable, retaining their permissions. Remove them first so a
2328 # subsequent execution test works.
2330 for ac_file in $ac_files
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2339 if { (ac_try="$ac_link_default"
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_link_default") 2>&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; then
2349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2352 # so that the user can short-circuit this test for compilers unknown to
2354 for ac_file in $ac_files ''
2356 test -f "$ac_file" || continue
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2361 # We found the default executable, but exeext='' is most
2365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2369 # We set ac_cv_exeext here because the later test for it is not
2370 # safe: cross compilers may not add the suffix if given an `-o'
2371 # argument, so we may need to know it at that point already.
2372 # Even if this section looks crufty: it has the advantage of
2379 test "$ac_cv_exeext" = no && ac_cv_exeext=
2385 { echo "$as_me:$LINENO: result: $ac_file" >&5
2386 echo "${ECHO_T}$ac_file" >&6; }
2387 if test -z "$ac_file"; then
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2391 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: C compiler cannot create executables
2394 See \`config.log' for more details." >&2;}
2395 { (exit 77); exit 77; }; }
2398 ac_exeext=$ac_cv_exeext
2400 # Check that the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405 # If not cross compiling, check that we can run a simple program.
2406 if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file'
2408 { (case "(($ac_try" in
2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410 *) ac_try_echo=$ac_try;;
2412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413 (eval "$ac_try") 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2419 if test "$cross_compiling" = maybe; then
2422 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&2;}
2428 { (exit 1); exit 1; }; }
2432 { echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6; }
2435 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2436 ac_clean_files=$ac_clean_files_save
2437 # Check that the compiler produces executables we can run. If not, either
2438 # the compiler is broken, or we cross compile.
2439 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2440 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2441 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2442 echo "${ECHO_T}$cross_compiling" >&6; }
2444 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2445 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2446 if { (ac_try="$ac_link"
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_link") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2457 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2458 # work properly (i.e., refer to `conftest.exe'), while it won't with
2460 for ac_file in conftest.exe conftest conftest.*; do
2461 test -f "$ac_file" || continue
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }
2477 rm -f conftest$ac_cv_exeext
2478 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2479 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2481 rm -f conftest.$ac_ext
2482 EXEEXT=$ac_cv_exeext
2484 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2485 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2486 if test "${ac_cv_objext+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 cat >conftest.$ac_ext <<_ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2504 rm -f conftest.o conftest.obj
2505 if { (ac_try="$ac_compile"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2511 (eval "$ac_compile") 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in conftest.o conftest.obj conftest.*; do
2516 test -f "$ac_file" || continue;
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2536 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2537 echo "${ECHO_T}$ac_cv_objext" >&6; }
2538 OBJEXT=$ac_cv_objext
2540 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2541 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2542 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2545 cat >conftest.$ac_ext <<_ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2563 rm -f conftest.$ac_objext
2564 if { (ac_try="$ac_compile"
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compile") 2>conftest.er1
2572 grep -v '^ *+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } && {
2577 test -z "$ac_c_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest.$ac_objext; then
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2593 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2594 GCC=`test $ac_compiler_gnu = yes && echo yes`
2595 ac_test_CFLAGS=${CFLAGS+set}
2596 ac_save_CFLAGS=$CFLAGS
2597 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_cc_g+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 ac_save_c_werror_flag=$ac_c_werror_flag
2603 ac_c_werror_flag=yes
2606 cat >conftest.$ac_ext <<_ACEOF
2609 cat confdefs.h >>conftest.$ac_ext
2610 cat >>conftest.$ac_ext <<_ACEOF
2611 /* end confdefs.h. */
2621 rm -f conftest.$ac_objext
2622 if { (ac_try="$ac_compile"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compile") 2>conftest.er1
2630 grep -v '^ *+' conftest.er1 >conftest.err
2632 cat conftest.err >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); } && {
2635 test -z "$ac_c_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest.$ac_objext; then
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2659 rm -f conftest.$ac_objext
2660 if { (ac_try="$ac_compile"
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compile") 2>conftest.er1
2668 grep -v '^ *+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } && {
2673 test -z "$ac_c_werror_flag" ||
2674 test ! -s conftest.err
2675 } && test -s conftest.$ac_objext; then
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2681 ac_c_werror_flag=$ac_save_c_werror_flag
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 ac_c_werror_flag=$ac_save_c_werror_flag
2732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2733 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2734 if test "$ac_test_CFLAGS" = set; then
2735 CFLAGS=$ac_save_CFLAGS
2736 elif test $ac_cv_prog_cc_g = yes; then
2737 if test "$GCC" = yes; then
2743 if test "$GCC" = yes; then
2749 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2750 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2751 if test "${ac_cv_prog_cc_c89+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 ac_cv_prog_cc_c89=no
2756 cat >conftest.$ac_ext <<_ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2764 #include <sys/types.h>
2765 #include <sys/stat.h>
2766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2767 struct buf { int x; };
2768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2769 static char *e (p, i)
2775 static char *f (char * (*g) (char **, int), char **p, ...)
2780 s = g (p, va_arg (v,int));
2785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2786 function prototypes and stuff, but not '\xHH' hex character constants.
2787 These don't provoke an error unfortunately, instead are silently treated
2788 as 'x'. The following induces an error, until -std is added to get
2789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2790 array size at least. It's necessary to write '\x00'==0 to get something
2791 that's true only with -std. */
2792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2795 inside strings and character constants. */
2797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2799 int test (int i, double x);
2800 struct s1 {int (*f) (int a);};
2801 struct s2 {int (*f) (double a);};
2802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2816 CC="$ac_save_CC $ac_arg"
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
2826 grep -v '^ *+' conftest.er1 >conftest.err
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest.$ac_objext; then
2834 ac_cv_prog_cc_c89=$ac_arg
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2842 rm -f core conftest.err conftest.$ac_objext
2843 test "x$ac_cv_prog_cc_c89" != "xno" && break
2845 rm -f conftest.$ac_ext
2850 case "x$ac_cv_prog_cc_c89" in
2852 { echo "$as_me:$LINENO: result: none needed" >&5
2853 echo "${ECHO_T}none needed" >&6; } ;;
2855 { echo "$as_me:$LINENO: result: unsupported" >&5
2856 echo "${ECHO_T}unsupported" >&6; } ;;
2858 CC="$CC $ac_cv_prog_cc_c89"
2859 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2879 # On Suns, sometimes $CPP names a directory.
2880 if test -n "$CPP" && test -d "$CPP"; then
2883 if test -z "$CPP"; then
2884 if test "${ac_cv_prog_CPP+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 # Double quotes because CPP needs to be expanded
2888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2891 for ac_c_preproc_warn_flag in '' yes
2893 # Use a header file that comes with gcc, so configuring glibc
2894 # with a fresh cross-compiler works.
2895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896 # <limits.h> exists even on freestanding compilers.
2897 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 # not just through cpp. "Syntax error" is here to catch this case.
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2906 # include <limits.h>
2908 # include <assert.h>
2912 if { (ac_try="$ac_cpp conftest.$ac_ext"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2920 grep -v '^ *+' conftest.er1 >conftest.err
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null && {
2925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2926 test ! -s conftest.err
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2933 # Broken: fails on valid input.
2937 rm -f conftest.err conftest.$ac_ext
2939 # OK, works on sane cases. Now check whether nonexistent headers
2940 # can be detected and how.
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (ac_try="$ac_cpp conftest.$ac_ext"
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } >/dev/null && {
2962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963 test ! -s conftest.err
2965 # Broken: success on invalid input.
2968 echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2971 # Passes both tests.
2976 rm -f conftest.err conftest.$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.$ac_ext
2981 if $ac_preproc_ok; then
2993 { echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6; }
2996 for ac_c_preproc_warn_flag in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 # Broken: fails on valid input.
3042 rm -f conftest.err conftest.$ac_ext
3044 # OK, works on sane cases. Now check whether nonexistent headers
3045 # can be detected and how.
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 #include <ac_nonexistent.h>
3054 if { (ac_try="$ac_cpp conftest.$ac_ext"
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } >/dev/null && {
3067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3068 test ! -s conftest.err
3070 # Broken: success on invalid input.
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 # Passes both tests.
3081 rm -f conftest.err conftest.$ac_ext
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then
3089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3104 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3105 if test "${ac_cv_path_GREP+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 # Extract the first word of "grep ggrep" to use in msg output
3109 if test -z "$GREP"; then
3110 set dummy grep ggrep; ac_prog_name=$2
3111 if test "${ac_cv_path_GREP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 ac_path_GREP_found=false
3115 # Loop through the user's path and test for each of PROGNAME-LIST
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3120 test -z "$as_dir" && as_dir=.
3121 for ac_prog in grep ggrep; do
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3124 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3125 # Check for GNU ac_path_GREP and select it if it is found.
3126 # Check for GNU $ac_path_GREP
3127 case `"$ac_path_GREP" --version 2>&1` in
3129 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3132 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3135 cat "conftest.in" "conftest.in" >"conftest.tmp"
3136 mv "conftest.tmp" "conftest.in"
3137 cp "conftest.in" "conftest.nl"
3138 echo 'GREP' >> "conftest.nl"
3139 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3141 ac_count=`expr $ac_count + 1`
3142 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3143 # Best one so far, save it but keep looking for a better one
3144 ac_cv_path_GREP="$ac_path_GREP"
3145 ac_path_GREP_max=$ac_count
3147 # 10*(2^10) chars as input seems more than enough
3148 test $ac_count -gt 10 && break
3150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3154 $ac_path_GREP_found && break 3
3164 GREP="$ac_cv_path_GREP"
3165 if test -z "$GREP"; then
3166 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3167 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3168 { (exit 1); exit 1; }; }
3172 ac_cv_path_GREP=$GREP
3177 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3178 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3179 GREP="$ac_cv_path_GREP"
3182 { echo "$as_me:$LINENO: checking for egrep" >&5
3183 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3184 if test "${ac_cv_path_EGREP+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3188 then ac_cv_path_EGREP="$GREP -E"
3190 # Extract the first word of "egrep" to use in msg output
3191 if test -z "$EGREP"; then
3192 set dummy egrep; ac_prog_name=$2
3193 if test "${ac_cv_path_EGREP+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 ac_path_EGREP_found=false
3197 # Loop through the user's path and test for each of PROGNAME-LIST
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3202 test -z "$as_dir" && as_dir=.
3203 for ac_prog in egrep; do
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3206 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3207 # Check for GNU ac_path_EGREP and select it if it is found.
3208 # Check for GNU $ac_path_EGREP
3209 case `"$ac_path_EGREP" --version 2>&1` in
3211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3214 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3217 cat "conftest.in" "conftest.in" >"conftest.tmp"
3218 mv "conftest.tmp" "conftest.in"
3219 cp "conftest.in" "conftest.nl"
3220 echo 'EGREP' >> "conftest.nl"
3221 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3223 ac_count=`expr $ac_count + 1`
3224 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3225 # Best one so far, save it but keep looking for a better one
3226 ac_cv_path_EGREP="$ac_path_EGREP"
3227 ac_path_EGREP_max=$ac_count
3229 # 10*(2^10) chars as input seems more than enough
3230 test $ac_count -gt 10 && break
3232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3236 $ac_path_EGREP_found && break 3
3246 EGREP="$ac_cv_path_EGREP"
3247 if test -z "$EGREP"; then
3248 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3249 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3250 { (exit 1); exit 1; }; }
3254 ac_cv_path_EGREP=$EGREP
3260 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3261 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3262 EGREP="$ac_cv_path_EGREP"
3266 { echo "$as_me:$LINENO: checking for AIX" >&5
3267 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 $EGREP "yes" >/dev/null 2>&1; then
3281 { echo "$as_me:$LINENO: result: yes" >&5
3282 echo "${ECHO_T}yes" >&6; }
3283 cat >>confdefs.h <<\_ACEOF
3284 #define _ALL_SOURCE 1
3288 { echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6; }
3295 if test $ac_cv_c_compiler_gnu = yes; then
3296 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3297 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 ac_pattern="Autoconf.*'x'"
3302 cat >conftest.$ac_ext <<_ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3312 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3313 ac_cv_prog_gcc_traditional=yes
3315 ac_cv_prog_gcc_traditional=no
3320 if test $ac_cv_prog_gcc_traditional = no; then
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3331 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3332 ac_cv_prog_gcc_traditional=yes
3338 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3339 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3340 if test $ac_cv_prog_gcc_traditional = yes; then
3341 CC="$CC -traditional"
3345 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3346 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_suncc+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 cat > conftest.c <<EOF
3355 if { ac_try='${CC-cc} -E conftest.c'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3361 ac_cv_prog_suncc=yes
3366 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3367 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3373 if test "${ac_cv_prog_RANLIB+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 if test -n "$RANLIB"; then
3377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 RANLIB=$ac_cv_prog_RANLIB
3397 if test -n "$RANLIB"; then
3398 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3399 echo "${ECHO_T}$RANLIB" >&6; }
3401 { echo "$as_me:$LINENO: result: no" >&5
3402 echo "${ECHO_T}no" >&6; }
3407 if test -z "$ac_cv_prog_RANLIB"; then
3408 ac_ct_RANLIB=$RANLIB
3409 # Extract the first word of "ranlib", so it can be a program name with args.
3410 set dummy ranlib; ac_word=$2
3411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$ac_ct_RANLIB"; then
3417 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_ac_ct_RANLIB="ranlib"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3437 if test -n "$ac_ct_RANLIB"; then
3438 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3439 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3445 if test "x$ac_ct_RANLIB" = x; then
3448 case $cross_compiling:$ac_tool_warned in
3450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3451 whose name does not start with the host triplet. If you think this
3452 configuration is useful to you, please write to autoconf@gnu.org." >&5
3453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3454 whose name does not start with the host triplet. If you think this
3455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3456 ac_tool_warned=yes ;;
3458 RANLIB=$ac_ct_RANLIB
3461 RANLIB="$ac_cv_prog_RANLIB"
3465 abs_top_builddir=`pwd`
3471 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3473 if test "${ac_cv_header_stdc+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 cat >conftest.$ac_ext <<_ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3504 grep -v '^ *+' conftest.er1 >conftest.err
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3512 ac_cv_header_stdc=yes
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_cv_header_stdc=no
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 if test $ac_cv_header_stdc = yes; then
3523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 $EGREP "memchr" >/dev/null 2>&1; then
3537 ac_cv_header_stdc=no
3543 if test $ac_cv_header_stdc = yes; then
3544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "free" >/dev/null 2>&1; then
3558 ac_cv_header_stdc=no
3564 if test $ac_cv_header_stdc = yes; then
3565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3566 if test "$cross_compiling" = yes; then
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3577 #if ((' ' & 0x0FF) == 0x020)
3578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3581 # define ISLOWER(c) \
3582 (('a' <= (c) && (c) <= 'i') \
3583 || ('j' <= (c) && (c) <= 'r') \
3584 || ('s' <= (c) && (c) <= 'z'))
3585 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3593 for (i = 0; i < 256; i++)
3594 if (XOR (islower (i), ISLOWER (i))
3595 || toupper (i) != TOUPPER (i))
3600 rm -f conftest$ac_exeext
3601 if { (ac_try="$ac_link"
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_link") 2>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3611 { (case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_try") 2>&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3622 echo "$as_me: program exited with status $ac_status" >&5
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3627 ac_cv_header_stdc=no
3629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3635 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3636 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3637 if test $ac_cv_header_stdc = yes; then
3639 cat >>confdefs.h <<\_ACEOF
3640 #define STDC_HEADERS 1
3645 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3655 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3656 inttypes.h stdint.h unistd.h
3658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 cat >conftest.$ac_ext <<_ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3672 #include <$ac_header>
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 eval "$as_ac_Header=yes"
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 eval "$as_ac_Header=no"
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_res=`eval echo '${'$as_ac_Header'}'`
3702 { echo "$as_me:$LINENO: result: $ac_res" >&5
3703 echo "${ECHO_T}$ac_res" >&6; }
3704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3705 cat >>confdefs.h <<_ACEOF
3706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3714 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3715 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3716 if test "${ac_cv_c_bigendian+set}" = set; then
3717 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 # See if sys/param.h defines the BYTE_ORDER macro.
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <sys/types.h>
3727 #include <sys/param.h>
3732 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3733 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_compile") 2>conftest.er1
3750 grep -v '^ *+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } && {
3755 test -z "$ac_c_werror_flag" ||
3756 test ! -s conftest.err
3757 } && test -s conftest.$ac_objext; then
3758 # It does; now see whether it defined to BIG_ENDIAN or not.
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 #include <sys/types.h>
3766 #include <sys/param.h>
3771 #if BYTE_ORDER != BIG_ENDIAN
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_c_bigendian=yes
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 ac_cv_c_bigendian=no
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 # It does not; compile a test program.
3810 if test "$cross_compiling" = yes; then
3811 # try to guess the endianness by grepping values into an object file
3812 ac_cv_c_bigendian=unknown
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3819 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3820 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3821 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3822 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3823 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3824 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3828 _ascii (); _ebcdic ();
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && {
3847 test -z "$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 } && test -s conftest.$ac_objext; then
3850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3851 ac_cv_c_bigendian=yes
3853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3854 if test "$ac_cv_c_bigendian" = unknown; then
3855 ac_cv_c_bigendian=no
3857 # finding both strings is unlikely to happen, but who knows?
3858 ac_cv_c_bigendian=unknown
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 $ac_includes_default
3881 /* Are we little or big endian? From Harbison&Steele. */
3885 char c[sizeof (long int)];
3888 return u.c[sizeof (long int) - 1] == 1;
3894 rm -f conftest$ac_exeext
3895 if { (ac_try="$ac_link"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_link") 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_c_bigendian=no
3916 echo "$as_me: program exited with status $ac_status" >&5
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_cv_c_bigendian=yes
3923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3932 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3933 case $ac_cv_c_bigendian in
3936 cat >>confdefs.h <<\_ACEOF
3937 #define WORDS_BIGENDIAN 1
3943 { { echo "$as_me:$LINENO: error: unknown endianness
3944 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3945 echo "$as_me: error: unknown endianness
3946 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3947 { (exit 1); exit 1; }; } ;;
3951 # Extract the first word of "gmake", so it can be a program name with args.
3952 set dummy gmake; ac_word=$2
3953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3955 if test "${ac_cv_prog_GMAKE+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$GMAKE"; then
3959 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_GMAKE="yes"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3979 GMAKE=$ac_cv_prog_GMAKE
3980 if test -n "$GMAKE"; then
3981 { echo "$as_me:$LINENO: result: $GMAKE" >&5
3982 echo "${ECHO_T}$GMAKE" >&6; }
3984 { echo "$as_me:$LINENO: result: no" >&5
3985 echo "${ECHO_T}no" >&6; }
3989 if test $GMAKE = no; then
3990 # Extract the first word of "make", so it can be a program name with args.
3991 set dummy make; ac_word=$2
3992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_MAKE+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4021 MAKE=$ac_cv_path_MAKE
4022 if test -n "$MAKE"; then
4023 { echo "$as_me:$LINENO: result: $MAKE" >&5
4024 echo "${ECHO_T}$MAKE" >&6; }
4026 { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4032 # Extract the first word of "gmake", so it can be a program name with args.
4033 set dummy gmake; ac_word=$2
4034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4036 if test "${ac_cv_path_MAKE+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4063 MAKE=$ac_cv_path_MAKE
4064 if test -n "$MAKE"; then
4065 { echo "$as_me:$LINENO: result: $MAKE" >&5
4066 echo "${ECHO_T}$MAKE" >&6; }
4068 { echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6; }
4074 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4075 if test -z "$makever"; then
4076 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4077 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4078 echo "$as_me: error: GNU Make is not installed. Please download and install it
4079 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4080 { (exit 1); exit 1; }; }
4083 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4084 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4085 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_check_lib_save_LIBS=$LIBS
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4097 /* Override any GCC internal prototype to avoid an error.
4098 Use char because int might match the return type of a GCC
4099 builtin and then its argument prototype would still apply. */
4107 return lt_dlinit ();
4112 rm -f conftest.$ac_objext conftest$ac_exeext
4113 if { (ac_try="$ac_link"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_link") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } && {
4126 test -z "$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 } && test -s conftest$ac_exeext &&
4129 $as_test_x conftest$ac_exeext; then
4130 ac_cv_lib_ltdl_lt_dlinit=yes
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 ac_cv_lib_ltdl_lt_dlinit=no
4138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4139 conftest$ac_exeext conftest.$ac_ext
4140 LIBS=$ac_check_lib_save_LIBS
4142 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4143 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4144 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4145 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4147 if test x"$enable_ltdl_install" = xno; then
4148 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4149 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4151 enable_ltdl_install=yes
4156 if test x"$enable_ltdl_install" = x"yes"; then
4157 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4158 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4159 LTDLINCL='-I${top_srcdir}/''libltdl'
4161 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4165 # For backwards non-gettext consistent compatibility...
4169 if test x"$enable_ltdl_install" = x"yes"; then
4170 LTDL_SUBDIRS=libltdl
4174 # Check whether --enable-shared was given.
4175 if test "${enable_shared+set}" = set; then
4176 enableval=$enable_shared; p=${PACKAGE-default}
4178 yes) enable_shared=yes ;;
4179 no) enable_shared=no ;;
4182 # Look at the argument we got. We use all the common list separators.
4183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4184 for pkg in $enableval; do
4186 if test "X$pkg" = "X$p"; then
4198 # Check whether --enable-static was given.
4199 if test "${enable_static+set}" = set; then
4200 enableval=$enable_static; p=${PACKAGE-default}
4202 yes) enable_static=yes ;;
4203 no) enable_static=no ;;
4206 # Look at the argument we got. We use all the common list separators.
4207 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4208 for pkg in $enableval; do
4210 if test "X$pkg" = "X$p"; then
4222 # Check whether --enable-fast-install was given.
4223 if test "${enable_fast_install+set}" = set; then
4224 enableval=$enable_fast_install; p=${PACKAGE-default}
4226 yes) enable_fast_install=yes ;;
4227 no) enable_fast_install=no ;;
4229 enable_fast_install=no
4230 # Look at the argument we got. We use all the common list separators.
4231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4232 for pkg in $enableval; do
4234 if test "X$pkg" = "X$p"; then
4235 enable_fast_install=yes
4242 enable_fast_install=yes
4247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4248 if test -f "$ac_dir/install-sh"; then
4250 ac_install_sh="$ac_aux_dir/install-sh -c"
4252 elif test -f "$ac_dir/install.sh"; then
4254 ac_install_sh="$ac_aux_dir/install.sh -c"
4256 elif test -f "$ac_dir/shtool"; then
4258 ac_install_sh="$ac_aux_dir/shtool install -c"
4262 if test -z "$ac_aux_dir"; then
4263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4265 { (exit 1); exit 1; }; }
4268 # These three variables are undocumented and unsupported,
4269 # and are intended to be withdrawn in a future Autoconf release.
4270 # They can cause serious problems if a builder's source tree is in a directory
4271 # whose full name contains unusual characters.
4272 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4273 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4274 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4277 # Make sure we can run config.sub.
4278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4281 { (exit 1); exit 1; }; }
4283 { echo "$as_me:$LINENO: checking build system type" >&5
4284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4285 if test "${ac_cv_build+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 ac_build_alias=$build_alias
4289 test "x$ac_build_alias" = x &&
4290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4291 test "x$ac_build_alias" = x &&
4292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4294 { (exit 1); exit 1; }; }
4295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4298 { (exit 1); exit 1; }; }
4301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4302 echo "${ECHO_T}$ac_cv_build" >&6; }
4303 case $ac_cv_build in
4305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4306 echo "$as_me: error: invalid value of canonical build" >&2;}
4307 { (exit 1); exit 1; }; };;
4310 ac_save_IFS=$IFS; IFS='-'
4316 # Remember, the first character of IFS is used to create $*,
4317 # except with old shells:
4320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4323 { echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4325 if test "${ac_cv_host+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 if test "x$host_alias" = x; then
4329 ac_cv_host=$ac_cv_build
4331 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4334 { (exit 1); exit 1; }; }
4338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4339 echo "${ECHO_T}$ac_cv_host" >&6; }
4342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4343 echo "$as_me: error: invalid value of canonical host" >&2;}
4344 { (exit 1); exit 1; }; };;
4347 ac_save_IFS=$IFS; IFS='-'
4353 # Remember, the first character of IFS is used to create $*,
4354 # except with old shells:
4357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4360 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4361 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4362 if test "${lt_cv_path_SED+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 # Loop through the user's path and test for sed and gsed.
4366 # Then use that list of sed's as ones to test for truncation.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for lt_ac_prog in sed gsed; do
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4375 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4382 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4383 # along with /bin/sed that truncates output.
4384 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4385 test ! -f $lt_ac_sed && continue
4386 cat /dev/null > conftest.in
4388 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4389 # Check for GNU sed and select it if it is found.
4390 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4391 lt_cv_path_SED=$lt_ac_sed
4395 cat conftest.in conftest.in >conftest.tmp
4396 mv conftest.tmp conftest.in
4397 cp conftest.in conftest.nl
4399 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4400 cmp -s conftest.out conftest.nl || break
4401 # 10000 chars as input seems more than enough
4402 test $lt_ac_count -gt 10 && break
4403 lt_ac_count=`expr $lt_ac_count + 1`
4404 if test $lt_ac_count -gt $lt_ac_max; then
4405 lt_ac_max=$lt_ac_count
4406 lt_cv_path_SED=$lt_ac_sed
4414 { echo "$as_me:$LINENO: result: $SED" >&5
4415 echo "${ECHO_T}$SED" >&6; }
4418 # Check whether --with-gnu-ld was given.
4419 if test "${with_gnu_ld+set}" = set; then
4420 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4426 if test "$GCC" = yes; then
4427 # Check if gcc -print-prog-name=ld gives a path.
4428 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4429 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4432 # gcc leaves a trailing carriage return which upsets mingw
4433 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4435 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4438 # Accept absolute paths.
4440 re_direlt='/[^/][^/]*/\.\./'
4441 # Canonicalize the pathname of ld
4442 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4443 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4444 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4446 test -z "$LD" && LD="$ac_prog"
4449 # If it fails, then pretend we aren't using GCC.
4453 # If it is relative, then search for the first ld in PATH.
4457 elif test "$with_gnu_ld" = yes; then
4458 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4459 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4461 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4462 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4464 if test "${lt_cv_path_LD+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -z "$LD"; then
4468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469 for ac_dir in $PATH; do
4471 test -z "$ac_dir" && ac_dir=.
4472 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4473 lt_cv_path_LD="$ac_dir/$ac_prog"
4474 # Check to see if the program is GNU ld. I'd rather use --version,
4475 # but apparently some variants of GNU ld only accept -v.
4476 # Break only if it was the GNU/non-GNU ld that we prefer.
4477 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4478 *GNU* | *'with BFD'*)
4479 test "$with_gnu_ld" != no && break
4482 test "$with_gnu_ld" != yes && break
4489 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4494 if test -n "$LD"; then
4495 { echo "$as_me:$LINENO: result: $LD" >&5
4496 echo "${ECHO_T}$LD" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4501 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4502 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4503 { (exit 1); exit 1; }; }
4504 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4505 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4506 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4510 case `$LD -v 2>&1 </dev/null` in
4511 *GNU* | *'with BFD'*)
4512 lt_cv_prog_gnu_ld=yes
4515 lt_cv_prog_gnu_ld=no
4519 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4520 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4521 with_gnu_ld=$lt_cv_prog_gnu_ld
4524 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4525 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4526 if test "${lt_cv_ld_reload_flag+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 lt_cv_ld_reload_flag='-r'
4531 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4532 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4533 reload_flag=$lt_cv_ld_reload_flag
4534 case $reload_flag in
4536 *) reload_flag=" $reload_flag" ;;
4538 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4541 if test "$GCC" = yes; then
4542 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4549 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4550 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4551 if test "${lt_cv_path_NM+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test -n "$NM"; then
4555 # Let the user override the test.
4558 lt_nm_to_check="${ac_tool_prefix}nm"
4559 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4560 lt_nm_to_check="$lt_nm_to_check nm"
4562 for lt_tmp_nm in $lt_nm_to_check; do
4563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4566 test -z "$ac_dir" && ac_dir=.
4567 tmp_nm="$ac_dir/$lt_tmp_nm"
4568 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4569 # Check to see if the nm accepts a BSD-compat flag.
4570 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4571 # nm: unknown option "B" ignored
4572 # Tru64's nm complains that /dev/null is an invalid object file
4573 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4574 */dev/null* | *'Invalid file or object type'*)
4575 lt_cv_path_NM="$tmp_nm -B"
4579 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4581 lt_cv_path_NM="$tmp_nm -p"
4585 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4586 continue # so that we can try to find one that supports BSD flags
4595 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4598 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4599 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4602 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4603 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4605 if test "$LN_S" = "ln -s"; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4609 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4610 echo "${ECHO_T}no, using $LN_S" >&6; }
4613 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4614 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4615 if test "${lt_cv_deplibs_check_method+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 lt_cv_file_magic_cmd='$MAGIC_CMD'
4619 lt_cv_file_magic_test_file=
4620 lt_cv_deplibs_check_method='unknown'
4621 # Need to set the preceding variable on all platforms that support
4622 # interlibrary dependencies.
4623 # 'none' -- dependencies not supported.
4624 # `unknown' -- same as none, but documents that we really don't know.
4625 # 'pass_all' -- all dependencies passed with no checks.
4626 # 'test_compile' -- check by making test program.
4627 # 'file_magic [[regex]]' -- check by looking for files in library path
4628 # which responds to the $file_magic_cmd with a given extended regex.
4629 # If you have `file' or equivalent on your system and you're not sure
4630 # whether `pass_all' will *always* work, you probably want this one.
4634 lt_cv_deplibs_check_method=pass_all
4638 lt_cv_deplibs_check_method=pass_all
4642 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4643 lt_cv_file_magic_cmd='/usr/bin/file -L'
4644 lt_cv_file_magic_test_file=/shlib/libc.so
4648 # func_win32_libid is a shell function defined in ltmain.sh
4649 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4650 lt_cv_file_magic_cmd='func_win32_libid'
4654 # Base MSYS/MinGW do not provide the 'file' command needed by
4655 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4656 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4657 lt_cv_file_magic_cmd='$OBJDUMP -f'
4660 darwin* | rhapsody*)
4661 lt_cv_deplibs_check_method=pass_all
4664 freebsd* | kfreebsd*-gnu | dragonfly*)
4665 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4668 # Not sure whether the presence of OpenBSD here was a mistake.
4669 # Let's accept both of them until this is cleared up.
4670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4671 lt_cv_file_magic_cmd=/usr/bin/file
4672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4676 lt_cv_deplibs_check_method=pass_all
4681 lt_cv_deplibs_check_method=pass_all
4684 hpux10.20* | hpux11*)
4685 lt_cv_file_magic_cmd=/usr/bin/file
4688 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4689 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4692 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]'
4693 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4697 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4703 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4707 irix5* | irix6* | nonstopux*)
4709 *-32|*"-32 ") libmagic=32-bit;;
4710 *-n32|*"-n32 ") libmagic=N32;;
4711 *-64|*"-64 ") libmagic=64-bit;;
4712 *) libmagic=never-match;;
4714 lt_cv_deplibs_check_method=pass_all
4717 # This must be Linux ELF.
4719 lt_cv_deplibs_check_method=pass_all
4723 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4726 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4731 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4732 lt_cv_file_magic_cmd=/usr/bin/file
4733 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4737 lt_cv_deplibs_check_method=unknown
4741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4744 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4748 osf3* | osf4* | osf5*)
4749 lt_cv_deplibs_check_method=pass_all
4753 lt_cv_deplibs_check_method=pass_all
4757 case $host_vendor in
4759 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]'
4760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4763 lt_cv_deplibs_check_method=pass_all
4766 lt_cv_file_magic_cmd='/bin/file'
4767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4770 lt_cv_file_magic_cmd='/bin/file'
4771 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4772 lt_cv_file_magic_test_file=/lib/libc.so
4775 lt_cv_deplibs_check_method=pass_all
4778 lt_cv_deplibs_check_method=pass_all
4783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4784 lt_cv_deplibs_check_method=pass_all
4789 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4790 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4791 file_magic_cmd=$lt_cv_file_magic_cmd
4792 deplibs_check_method=$lt_cv_deplibs_check_method
4793 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4798 # If no C compiler was specified, use CC.
4801 # If no C compiler flags were specified, use CFLAGS.
4802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4804 # Allow CC to be a program name with arguments.
4807 # Check whether --enable-libtool-lock was given.
4808 if test "${enable_libtool_lock+set}" = set; then
4809 enableval=$enable_libtool_lock;
4812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4814 # Some flags need to be propagated to the compiler or linker for good
4818 # Find out which ABI we are using.
4819 echo 'int i;' > conftest.$ac_ext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; then
4825 case `/usr/bin/file conftest.$ac_objext` in
4837 # Find out which ABI we are using.
4838 echo '#line 4838 "configure"' > conftest.$ac_ext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
4844 if test "$lt_cv_prog_gnu_ld" = yes; then
4845 case `/usr/bin/file conftest.$ac_objext` in
4847 LD="${LD-ld} -melf32bsmip"
4850 LD="${LD-ld} -melf32bmipn32"
4853 LD="${LD-ld} -melf64bmip"
4857 case `/usr/bin/file conftest.$ac_objext` in
4873 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4874 # Find out which ABI we are using.
4875 echo 'int i;' > conftest.$ac_ext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; then
4881 case `/usr/bin/file conftest.o` in
4885 LD="${LD-ld} -m elf_i386"
4887 ppc64-*linux*|powerpc64-*linux*)
4888 LD="${LD-ld} -m elf32ppclinux"
4891 LD="${LD-ld} -m elf_s390"
4894 LD="${LD-ld} -m elf32_sparc"
4901 LD="${LD-ld} -m elf_x86_64"
4903 ppc*-*linux*|powerpc*-*linux*)
4904 LD="${LD-ld} -m elf64ppc"
4907 LD="${LD-ld} -m elf64_s390"
4910 LD="${LD-ld} -m elf64_sparc"
4920 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4921 SAVE_CFLAGS="$CFLAGS"
4922 CFLAGS="$CFLAGS -belf"
4923 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4924 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4925 if test "${lt_cv_cc_needs_belf+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4949 rm -f conftest.$ac_objext conftest$ac_exeext
4950 if { (ac_try="$ac_link"
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4956 (eval "$ac_link") 2>conftest.er1
4958 grep -v '^ *+' conftest.er1 >conftest.err
4960 cat conftest.err >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && {
4963 test -z "$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4965 } && test -s conftest$ac_exeext &&
4966 $as_test_x conftest$ac_exeext; then
4967 lt_cv_cc_needs_belf=yes
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 lt_cv_cc_needs_belf=no
4975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4976 conftest$ac_exeext conftest.$ac_ext
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4985 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4986 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4987 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4988 CFLAGS="$SAVE_CFLAGS"
4992 # Find out which ABI we are using.
4993 echo 'int i;' > conftest.$ac_ext
4994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4995 (eval $ac_compile) 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; then
4999 case `/usr/bin/file conftest.o` in
5001 case $lt_cv_prog_gnu_ld in
5002 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5003 *) LD="${LD-ld} -64" ;;
5014 need_locks="$enable_libtool_lock"
5018 for ac_header in dlfcn.h
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_res=`eval echo '${'$as_ac_Header'}'`
5028 { echo "$as_me:$LINENO: result: $ac_res" >&5
5029 echo "${ECHO_T}$ac_res" >&6; }
5031 # Is the header compilable?
5032 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 $ac_includes_default
5041 #include <$ac_header>
5043 rm -f conftest.$ac_objext
5044 if { (ac_try="$ac_compile"
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_compile") 2>conftest.er1
5052 grep -v '^ *+' conftest.er1 >conftest.err
5054 cat conftest.err >&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && {
5057 test -z "$ac_c_werror_flag" ||
5058 test ! -s conftest.err
5059 } && test -s conftest.$ac_objext; then
5060 ac_header_compiler=yes
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 ac_header_compiler=no
5068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5070 echo "${ECHO_T}$ac_header_compiler" >&6; }
5072 # Is the header present?
5073 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 #include <$ac_header>
5083 if { (ac_try="$ac_cpp conftest.$ac_ext"
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5091 grep -v '^ *+' conftest.er1 >conftest.err
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } >/dev/null && {
5096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5099 ac_header_preproc=yes
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 ac_header_preproc=no
5107 rm -f conftest.err conftest.$ac_ext
5108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5109 echo "${ECHO_T}$ac_header_preproc" >&6; }
5111 # So? What about this header?
5112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5118 ac_header_preproc=yes
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5128 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 eval "$as_ac_Header=\$ac_header_preproc"
5143 ac_res=`eval echo '${'$as_ac_Header'}'`
5144 { echo "$as_me:$LINENO: result: $ac_res" >&5
5145 echo "${ECHO_T}$ac_res" >&6; }
5148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149 cat >>confdefs.h <<_ACEOF
5150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5158 ac_cpp='$CXXCPP $CPPFLAGS'
5159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162 if test -z "$CXX"; then
5163 if test -n "$CCC"; then
5166 if test -n "$ac_tool_prefix"; then
5167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_CXX+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test -n "$CXX"; then
5177 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 if test -n "$CXX"; then
5198 { echo "$as_me:$LINENO: result: $CXX" >&5
5199 echo "${ECHO_T}$CXX" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5206 test -n "$CXX" && break
5209 if test -z "$CXX"; then
5211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5213 # Extract the first word of "$ac_prog", so it can be a program name with args.
5214 set dummy $ac_prog; ac_word=$2
5215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 if test -n "$ac_ct_CXX"; then
5221 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 test -z "$as_dir" && as_dir=.
5228 for ac_exec_ext in '' $ac_executable_extensions; do
5229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5230 ac_cv_prog_ac_ct_CXX="$ac_prog"
5231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5241 if test -n "$ac_ct_CXX"; then
5242 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5243 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5250 test -n "$ac_ct_CXX" && break
5253 if test "x$ac_ct_CXX" = x; then
5256 case $cross_compiling:$ac_tool_warned in
5258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5259 whose name does not start with the host triplet. If you think this
5260 configuration is useful to you, please write to autoconf@gnu.org." >&5
5261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5262 whose name does not start with the host triplet. If you think this
5263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5264 ac_tool_warned=yes ;;
5272 # Provide some information about the compiler.
5273 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5274 ac_compiler=`set X $ac_compile; echo $2`
5275 { (ac_try="$ac_compiler --version >&5"
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_compiler --version >&5") 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }
5285 { (ac_try="$ac_compiler -v >&5"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler -v >&5") 2>&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295 { (ac_try="$ac_compiler -V >&5"
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -V >&5") 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5306 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5307 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5308 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 cat >conftest.$ac_ext <<_ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5329 rm -f conftest.$ac_objext
5330 if { (ac_try="$ac_compile"
5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333 *) ac_try_echo=$ac_try;;
5335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5336 (eval "$ac_compile") 2>conftest.er1
5338 grep -v '^ *+' conftest.er1 >conftest.err
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } && {
5343 test -z "$ac_cxx_werror_flag" ||
5344 test ! -s conftest.err
5345 } && test -s conftest.$ac_objext; then
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5358 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5359 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5360 GXX=`test $ac_compiler_gnu = yes && echo yes`
5361 ac_test_CXXFLAGS=${CXXFLAGS+set}
5362 ac_save_CXXFLAGS=$CXXFLAGS
5363 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5364 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5365 if test "${ac_cv_prog_cxx_g+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5368 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5369 ac_cxx_werror_flag=yes
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5387 rm -f conftest.$ac_objext
5388 if { (ac_try="$ac_compile"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compile") 2>conftest.er1
5396 grep -v '^ *+' conftest.er1 >conftest.err
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_cxx_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest.$ac_objext; then
5404 ac_cv_prog_cxx_g=yes
5406 echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5425 rm -f conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_compile") 2>conftest.er1
5434 grep -v '^ *+' conftest.er1 >conftest.err
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_cxx_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest.$ac_objext; then
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5464 rm -f conftest.$ac_objext
5465 if { (ac_try="$ac_compile"
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_cv_prog_cxx_g=yes
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5499 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5500 if test "$ac_test_CXXFLAGS" = set; then
5501 CXXFLAGS=$ac_save_CXXFLAGS
5502 elif test $ac_cv_prog_cxx_g = yes; then
5503 if test "$GXX" = yes; then
5509 if test "$GXX" = yes; then
5516 ac_cpp='$CXXCPP $CPPFLAGS'
5517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5523 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5524 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5525 (test "X$CXX" != "Xg++"))) ; then
5527 ac_cpp='$CXXCPP $CPPFLAGS'
5528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5532 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5533 if test -z "$CXXCPP"; then
5534 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 # Double quotes because CXXCPP needs to be expanded
5538 for CXXCPP in "$CXX -E" "/lib/cpp"
5541 for ac_cxx_preproc_warn_flag in '' yes
5543 # Use a header file that comes with gcc, so configuring glibc
5544 # with a fresh cross-compiler works.
5545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5546 # <limits.h> exists even on freestanding compilers.
5547 # On the NeXT, cc -E runs the code through the compiler's parser,
5548 # not just through cpp. "Syntax error" is here to catch this case.
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5556 # include <limits.h>
5558 # include <assert.h>
5562 if { (ac_try="$ac_cpp conftest.$ac_ext"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } >/dev/null && {
5575 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5576 test ! -s conftest.err
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 # Broken: fails on valid input.
5587 rm -f conftest.err conftest.$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #include <ac_nonexistent.h>
5599 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1 >conftest.err
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } >/dev/null && {
5612 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5613 test ! -s conftest.err
5615 # Broken: success on invalid input.
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 # Passes both tests.
5626 rm -f conftest.err conftest.$ac_ext
5629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5630 rm -f conftest.err conftest.$ac_ext
5631 if $ac_preproc_ok; then
5636 ac_cv_prog_CXXCPP=$CXXCPP
5639 CXXCPP=$ac_cv_prog_CXXCPP
5641 ac_cv_prog_CXXCPP=$CXXCPP
5643 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5644 echo "${ECHO_T}$CXXCPP" >&6; }
5646 for ac_cxx_preproc_warn_flag in '' yes
5648 # Use a header file that comes with gcc, so configuring glibc
5649 # with a fresh cross-compiler works.
5650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 # <limits.h> exists even on freestanding compilers.
5652 # On the NeXT, cc -E runs the code through the compiler's parser,
5653 # not just through cpp. "Syntax error" is here to catch this case.
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 # include <limits.h>
5663 # include <assert.h>
5667 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev/null && {
5680 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5681 test ! -s conftest.err
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 # Broken: fails on valid input.
5692 rm -f conftest.err conftest.$ac_ext
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <ac_nonexistent.h>
5704 if { (ac_try="$ac_cpp conftest.$ac_ext"
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } >/dev/null && {
5717 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5718 test ! -s conftest.err
5720 # Broken: success on invalid input.
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 # Passes both tests.
5731 rm -f conftest.err conftest.$ac_ext
5734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5735 rm -f conftest.err conftest.$ac_ext
5736 if $ac_preproc_ok; then
5739 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5740 See \`config.log' for more details." >&5
5741 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5742 See \`config.log' for more details." >&2;}
5743 { (exit 1); exit 1; }; }
5747 ac_cpp='$CXXCPP $CPPFLAGS'
5748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5757 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5759 if test -n "$ac_tool_prefix"; then
5760 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
5762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5766 if test "${ac_cv_prog_F77+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 if test -n "$F77"; then
5770 ac_cv_prog_F77="$F77" # Let the user override the test.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 if test -n "$F77"; then
5791 { echo "$as_me:$LINENO: result: $F77" >&5
5792 echo "${ECHO_T}$F77" >&6; }
5794 { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5799 test -n "$F77" && break
5802 if test -z "$F77"; then
5804 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
5806 # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 if test -n "$ac_ct_F77"; then
5814 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_F77="$ac_prog"
5824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5834 if test -n "$ac_ct_F77"; then
5835 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5836 echo "${ECHO_T}$ac_ct_F77" >&6; }
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 test -n "$ac_ct_F77" && break
5846 if test "x$ac_ct_F77" = x; then
5849 case $cross_compiling:$ac_tool_warned in
5851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5852 whose name does not start with the host triplet. If you think this
5853 configuration is useful to you, please write to autoconf@gnu.org." >&5
5854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5855 whose name does not start with the host triplet. If you think this
5856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5857 ac_tool_warned=yes ;;
5864 # Provide some information about the compiler.
5865 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5866 ac_compiler=`set X $ac_compile; echo $2`
5867 { (ac_try="$ac_compiler --version >&5"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compiler --version >&5") 2>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }
5877 { (ac_try="$ac_compiler -v >&5"
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_compiler -v >&5") 2>&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }
5887 { (ac_try="$ac_compiler -V >&5"
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compiler -V >&5") 2>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }
5899 # If we don't use `.F' as extension, the preprocessor is not run on the
5900 # input file. (Note that this only needs to work for GNU compilers.)
5903 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5904 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5905 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_f77_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5945 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5946 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5948 ac_test_FFLAGS=${FFLAGS+set}
5949 ac_save_FFLAGS=$FFLAGS
5951 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5952 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5953 if test "${ac_cv_prog_f77_g+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5971 grep -v '^ *+' conftest.er1 >conftest.err
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_f77_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 ac_cv_prog_f77_g=yes
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5991 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5992 if test "$ac_test_FFLAGS" = set; then
5993 FFLAGS=$ac_save_FFLAGS
5994 elif test $ac_cv_prog_f77_g = yes; then
5995 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6001 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6008 G77=`test $ac_compiler_gnu = yes && echo yes`
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6019 # find the maximum length of command line arguments
6020 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6021 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6022 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 # On DJGPP, this test can blow up pretty badly due to problems in libc
6031 # (any single argument exceeding 2000 bytes causes a buffer overrun
6032 # during glob expansion). Even if it were fixed, the result of this
6033 # check would be larger than it should be.
6034 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6038 # Under GNU Hurd, this test is not required because there is
6039 # no limit to the length of command line arguments.
6040 # Libtool will interpret -1 as no limit whatsoever
6041 lt_cv_sys_max_cmd_len=-1;
6045 # On Win9x/ME, this test blows up -- it succeeds, but takes
6046 # about 5 minutes as the teststring grows exponentially.
6047 # Worse, since 9x/ME are not pre-emptively multitasking,
6048 # you end up with a "frozen" computer, even though with patience
6049 # the test eventually succeeds (with a max line length of 256k).
6050 # Instead, let's just punt: use the minimum linelength reported by
6051 # all of the supported platforms: 8192 (on NT/2K/XP).
6052 lt_cv_sys_max_cmd_len=8192;
6056 # On AmigaOS with pdksh, this test takes hours, literally.
6057 # So we just punt and use a minimum line length of 8192.
6058 lt_cv_sys_max_cmd_len=8192;
6061 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6062 # This has been around since 386BSD, at least. Likely further.
6063 if test -x /sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6065 elif test -x /usr/sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6068 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6070 # And add a safety zone
6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6076 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6077 lt_cv_sys_max_cmd_len=196608
6081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6083 # nice to cause kernel panics so lets avoid the loop below.
6084 # First set a reasonable default.
6085 lt_cv_sys_max_cmd_len=16384
6087 if test -x /sbin/sysconfig; then
6088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6094 lt_cv_sys_max_cmd_len=102400
6096 sysv5* | sco5v6* | sysv4.2uw2*)
6097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6098 if test -n "$kargmax"; then
6099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6101 lt_cv_sys_max_cmd_len=32768
6105 # If test is not a shell built-in, we'll probably end up computing a
6106 # maximum length that is only half of the actual maximum length, but
6108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6109 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6110 = "XX$teststring") >/dev/null 2>&1 &&
6111 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6112 lt_cv_sys_max_cmd_len=$new_result &&
6113 test $i != 17 # 1/2 MB should be enough
6116 teststring=$teststring$teststring
6119 # Add a significant safety factor because C++ compilers can tack on massive
6120 # amounts of additional arguments before passing them to the linker.
6121 # It appears as though 1/2 is a usable value.
6122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6128 if test -n $lt_cv_sys_max_cmd_len ; then
6129 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6130 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6132 { echo "$as_me:$LINENO: result: none" >&5
6133 echo "${ECHO_T}none" >&6; }
6139 # Check for command to grab the raw symbol name followed by C symbol from nm.
6140 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6141 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6142 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 # These are sane defaults that work on at least a few old systems.
6147 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6149 # Character class describing NM global symbol codes.
6150 symcode='[BCDEGRST]'
6152 # Regexp to match symbols that can be accessed directly from C.
6153 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6155 # Transform an extracted symbol line into a proper C declaration
6156 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6158 # Transform an extracted symbol line into symbol name and symbol address
6159 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'"
6161 # Define system-specific variables.
6166 cygwin* | mingw* | pw32*)
6167 symcode='[ABCDGISTW]'
6169 hpux*) # Its linker distinguishes data from code symbols
6170 if test "$host_cpu" = ia64; then
6171 symcode='[ABCDEGRST]'
6173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6174 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'"
6177 if test "$host_cpu" = ia64; then
6178 symcode='[ABCDGIRSTW]'
6179 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6180 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'"
6184 symcode='[BCDEGRST]'
6187 symcode='[BCDEGQRST]'
6198 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6206 # Handle CRLF in mingw tool chain
6210 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6214 # If we're using GNU nm, then use its standard symbol codes.
6215 case `$NM -V 2>&1` in
6216 *GNU* | *'with BFD'*)
6217 symcode='[ABCDGIRSTW]' ;;
6220 # Try without a prefix undercore, then with it.
6221 for ac_symprfx in "" "_"; do
6223 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6224 symxfrm="\\1 $ac_symprfx\\2 \\2"
6226 # Write the raw and C identifiers.
6227 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6229 # Check to see that the pipe works correctly.
6233 cat > conftest.$ac_ext <<EOF
6238 void nm_test_func(){}
6242 int main(){nm_test_var='a';nm_test_func();return(0);}
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; then
6250 # Now try to grab the symbols.
6252 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6253 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && test -s "$nlist"; then
6257 # Try sorting and uniquifying the output.
6258 if sort "$nlist" | uniq > "$nlist"T; then
6259 mv -f "$nlist"T "$nlist"
6264 # Make sure that we snagged all the symbols we need.
6265 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6266 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6267 cat <<EOF > conftest.$ac_ext
6273 # Now generate the symbol file.
6274 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6276 cat <<EOF >> conftest.$ac_ext
6277 #if defined (__STDC__) && __STDC__
6278 # define lt_ptr_t void *
6280 # define lt_ptr_t char *
6284 /* The mapping between symbol names and symbols. */
6289 lt_preloaded_symbols[] =
6292 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6293 cat <<\EOF >> conftest.$ac_ext
6301 # Now try linking the two files.
6302 mv conftest.$ac_objext conftstm.$ac_objext
6303 lt_save_LIBS="$LIBS"
6304 lt_save_CFLAGS="$CFLAGS"
6305 LIBS="conftstm.$ac_objext"
6306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308 (eval $ac_link) 2>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6314 LIBS="$lt_save_LIBS"
6315 CFLAGS="$lt_save_CFLAGS"
6317 echo "cannot find nm_test_func in $nlist" >&5
6320 echo "cannot find nm_test_var in $nlist" >&5
6323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6326 echo "$progname: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 rm -f conftest* conftst*
6331 # Do not use the global_symbol_pipe unless it works.
6332 if test "$pipe_works" = yes; then
6335 lt_cv_sys_global_symbol_pipe=
6341 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342 lt_cv_sys_global_symbol_to_cdecl=
6344 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6345 { echo "$as_me:$LINENO: result: failed" >&5
6346 echo "${ECHO_T}failed" >&6; }
6348 { echo "$as_me:$LINENO: result: ok" >&5
6349 echo "${ECHO_T}ok" >&6; }
6352 { echo "$as_me:$LINENO: checking for objdir" >&5
6353 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6354 if test "${lt_cv_objdir+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 rm -f .libs 2>/dev/null
6358 mkdir .libs 2>/dev/null
6359 if test -d .libs; then
6362 # MS-DOS does not allow filenames that begin with a dot.
6365 rmdir .libs 2>/dev/null
6367 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6368 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6369 objdir=$lt_cv_objdir
6377 # AIX sometimes has problems with the GCC collect2 program. For some
6378 # reason, if we set the COLLECT_NAMES environment variable, the problems
6379 # vanish in a puff of smoke.
6380 if test "X${COLLECT_NAMES+set}" != Xset; then
6382 export COLLECT_NAMES
6387 # Sed substitution that helps us do robust quoting. It backslashifies
6388 # metacharacters that are still active within double-quoted strings.
6389 Xsed='sed -e 1s/^X//'
6390 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6392 # Same as above, but do not quote variable references.
6393 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6395 # Sed substitution to delay expansion of an escaped shell variable in a
6396 # double_quote_subst'ed string.
6397 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6399 # Sed substitution to avoid accidental globbing in evaled expressions
6400 no_glob_subst='s/\*/\\\*/g'
6406 default_ofile=libtool
6407 can_build_shared=yes
6409 # All known linkers require a `.a' archive for static linking (except MSVC,
6410 # which needs '.lib').
6412 ltmain="$ac_aux_dir/ltmain.sh"
6413 ofile="$default_ofile"
6414 with_gnu_ld="$lt_cv_prog_gnu_ld"
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}ar; ac_word=$2
6419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6421 if test "${ac_cv_prog_AR+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 if test -n "$AR"; then
6425 ac_cv_prog_AR="$AR" # Let the user override the test.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_AR="${ac_tool_prefix}ar"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 if test -n "$AR"; then
6446 { echo "$as_me:$LINENO: result: $AR" >&5
6447 echo "${ECHO_T}$AR" >&6; }
6449 { echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6; }
6455 if test -z "$ac_cv_prog_AR"; then
6457 # Extract the first word of "ar", so it can be a program name with args.
6458 set dummy ar; ac_word=$2
6459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6461 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 if test -n "$ac_ct_AR"; then
6465 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_AR="ar"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6485 if test -n "$ac_ct_AR"; then
6486 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6487 echo "${ECHO_T}$ac_ct_AR" >&6; }
6489 { echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6; }
6493 if test "x$ac_ct_AR" = x; then
6496 case $cross_compiling:$ac_tool_warned in
6498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6499 whose name does not start with the host triplet. If you think this
6500 configuration is useful to you, please write to autoconf@gnu.org." >&5
6501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6502 whose name does not start with the host triplet. If you think this
6503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6504 ac_tool_warned=yes ;;
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_prog_RANLIB+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 if test -n "$RANLIB"; then
6521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 RANLIB=$ac_cv_prog_RANLIB
6541 if test -n "$RANLIB"; then
6542 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6543 echo "${ECHO_T}$RANLIB" >&6; }
6545 { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6551 if test -z "$ac_cv_prog_RANLIB"; then
6552 ac_ct_RANLIB=$RANLIB
6553 # Extract the first word of "ranlib", so it can be a program name with args.
6554 set dummy ranlib; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 if test -n "$ac_ct_RANLIB"; then
6561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_ac_ct_RANLIB="ranlib"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6581 if test -n "$ac_ct_RANLIB"; then
6582 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6583 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6589 if test "x$ac_ct_RANLIB" = x; then
6592 case $cross_compiling:$ac_tool_warned in
6594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6595 whose name does not start with the host triplet. If you think this
6596 configuration is useful to you, please write to autoconf@gnu.org." >&5
6597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6598 whose name does not start with the host triplet. If you think this
6599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6600 ac_tool_warned=yes ;;
6602 RANLIB=$ac_ct_RANLIB
6605 RANLIB="$ac_cv_prog_RANLIB"
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}strip; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_prog_STRIP+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 if test -n "$STRIP"; then
6617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 STRIP=$ac_cv_prog_STRIP
6637 if test -n "$STRIP"; then
6638 { echo "$as_me:$LINENO: result: $STRIP" >&5
6639 echo "${ECHO_T}$STRIP" >&6; }
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6647 if test -z "$ac_cv_prog_STRIP"; then
6649 # Extract the first word of "strip", so it can be a program name with args.
6650 set dummy strip; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 if test -n "$ac_ct_STRIP"; then
6657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_ac_ct_STRIP="strip"
6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6677 if test -n "$ac_ct_STRIP"; then
6678 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6679 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6685 if test "x$ac_ct_STRIP" = x; then
6688 case $cross_compiling:$ac_tool_warned in
6690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6691 whose name does not start with the host triplet. If you think this
6692 configuration is useful to you, please write to autoconf@gnu.org." >&5
6693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6694 whose name does not start with the host triplet. If you think this
6695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6696 ac_tool_warned=yes ;;
6701 STRIP="$ac_cv_prog_STRIP"
6706 old_CFLAGS="$CFLAGS"
6708 # Set sane defaults for various variables
6709 test -z "$AR" && AR=ar
6710 test -z "$AR_FLAGS" && AR_FLAGS=cru
6711 test -z "$AS" && AS=as
6712 test -z "$CC" && CC=cc
6713 test -z "$LTCC" && LTCC=$CC
6714 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6715 test -z "$DLLTOOL" && DLLTOOL=dlltool
6716 test -z "$LD" && LD=ld
6717 test -z "$LN_S" && LN_S="ln -s"
6718 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6719 test -z "$NM" && NM=nm
6720 test -z "$SED" && SED=sed
6721 test -z "$OBJDUMP" && OBJDUMP=objdump
6722 test -z "$RANLIB" && RANLIB=:
6723 test -z "$STRIP" && STRIP=:
6724 test -z "$ac_objext" && ac_objext=o
6726 # Determine commands to create old-style static archives.
6727 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6728 old_postinstall_cmds='chmod 644 $oldlib'
6729 old_postuninstall_cmds=
6731 if test -n "$RANLIB"; then
6734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6740 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6743 for cc_temp in $compiler""; do
6745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6754 # Only perform the check for file, if the check method requires it
6755 case $deplibs_check_method in
6757 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6758 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6759 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6760 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6768 lt_save_MAGIC_CMD="$MAGIC_CMD"
6769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6771 for ac_dir in $ac_dummy; do
6773 test -z "$ac_dir" && ac_dir=.
6774 if test -f $ac_dir/${ac_tool_prefix}file; then
6775 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6776 if test -n "$file_magic_test_file"; then
6777 case $deplibs_check_method in
6779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6782 $EGREP "$file_magic_regex" > /dev/null; then
6787 *** Warning: the command libtool uses to detect shared libraries,
6788 *** $file_magic_cmd, produces output that libtool cannot recognize.
6789 *** The result is that libtool may fail to recognize shared libraries
6790 *** as such. This will affect the creation of libtool libraries that
6791 *** depend on shared libraries, but programs linked with such libtool
6792 *** libraries will work regardless of this problem. Nevertheless, you
6793 *** may want to report the problem to your system manager and/or to
6794 *** bug-libtool@gnu.org
6804 MAGIC_CMD="$lt_save_MAGIC_CMD"
6809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6810 if test -n "$MAGIC_CMD"; then
6811 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6812 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6814 { echo "$as_me:$LINENO: result: no" >&5
6815 echo "${ECHO_T}no" >&6; }
6818 if test -z "$lt_cv_path_MAGIC_CMD"; then
6819 if test -n "$ac_tool_prefix"; then
6820 { echo "$as_me:$LINENO: checking for file" >&5
6821 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6822 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6830 lt_save_MAGIC_CMD="$MAGIC_CMD"
6831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6833 for ac_dir in $ac_dummy; do
6835 test -z "$ac_dir" && ac_dir=.
6836 if test -f $ac_dir/file; then
6837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6838 if test -n "$file_magic_test_file"; then
6839 case $deplibs_check_method in
6841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6844 $EGREP "$file_magic_regex" > /dev/null; then
6849 *** Warning: the command libtool uses to detect shared libraries,
6850 *** $file_magic_cmd, produces output that libtool cannot recognize.
6851 *** The result is that libtool may fail to recognize shared libraries
6852 *** as such. This will affect the creation of libtool libraries that
6853 *** depend on shared libraries, but programs linked with such libtool
6854 *** libraries will work regardless of this problem. Nevertheless, you
6855 *** may want to report the problem to your system manager and/or to
6856 *** bug-libtool@gnu.org
6866 MAGIC_CMD="$lt_save_MAGIC_CMD"
6871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6872 if test -n "$MAGIC_CMD"; then
6873 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6874 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6892 # Check whether --enable-libtool-lock was given.
6893 if test "${enable_libtool_lock+set}" = set; then
6894 enableval=$enable_libtool_lock;
6897 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6900 # Check whether --with-pic was given.
6901 if test "${with_pic+set}" = set; then
6902 withval=$with_pic; pic_mode="$withval"
6907 test -z "$pic_mode" && pic_mode=default
6909 # Use C for the default configuration in the libtool script
6913 ac_cpp='$CPP $CPPFLAGS'
6914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 # Source file extension for C test sources.
6922 # Object file extension for compiled C test sources.
6926 # Code to be used in simple compile tests
6927 lt_simple_compile_test_code="int some_variable = 0;\n"
6929 # Code to be used in simple link tests
6930 lt_simple_link_test_code='int main(){return(0);}\n'
6933 # If no C compiler was specified, use CC.
6936 # If no C compiler flags were specified, use CFLAGS.
6937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6939 # Allow CC to be a program name with arguments.
6943 # save warnings/boilerplate of simple test code
6944 ac_outfile=conftest.$ac_objext
6945 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6946 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6947 _lt_compiler_boilerplate=`cat conftest.err`
6950 ac_outfile=conftest.$ac_objext
6951 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6952 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6953 _lt_linker_boilerplate=`cat conftest.err`
6958 ## There is no encapsulation within the following macros, do not change
6959 ## the running order or otherwise move them around unless you know exactly
6960 ## what you are doing...
6962 lt_prog_compiler_no_builtin_flag=
6964 if test "$GCC" = yes; then
6965 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6968 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6969 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6970 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 lt_cv_prog_compiler_rtti_exceptions=no
6974 ac_outfile=conftest.$ac_objext
6975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6976 lt_compiler_flag="-fno-rtti -fno-exceptions"
6977 # Insert the option either (1) after the last *FLAGS variable, or
6978 # (2) before a word containing "conftest.", or (3) at the end.
6979 # Note that $ac_compile itself does not contain backslashes and begins
6980 # with a dollar sign (not a hyphen), so the echo should work correctly.
6981 # The option is referenced via a variable to avoid confusing sed.
6982 lt_compile=`echo "$ac_compile" | $SED \
6983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6985 -e 's:$: $lt_compiler_flag:'`
6986 (eval echo "\"\$as_me:6986: $lt_compile\"" >&5)
6987 (eval "$lt_compile" 2>conftest.err)
6989 cat conftest.err >&5
6990 echo "$as_me:6990: \$? = $ac_status" >&5
6991 if (exit $ac_status) && test -s "$ac_outfile"; then
6992 # The compiler can only warn and ignore the option if not recognized
6993 # So say no if there are warnings other than the usual output.
6994 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6997 lt_cv_prog_compiler_rtti_exceptions=yes
7003 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7004 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7006 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7007 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7014 lt_prog_compiler_wl=
7015 lt_prog_compiler_pic=
7016 lt_prog_compiler_static=
7018 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7019 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7021 if test "$GCC" = yes; then
7022 lt_prog_compiler_wl='-Wl,'
7023 lt_prog_compiler_static='-static'
7027 # All AIX code is PIC.
7028 if test "$host_cpu" = ia64; then
7029 # AIX 5 now supports IA64 processor
7030 lt_prog_compiler_static='-Bstatic'
7035 # FIXME: we need at least 68020 code to build shared libraries, but
7036 # adding the `-m68020' flag to GCC prevents building anything better,
7038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7041 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7042 # PIC is the default for these OSes.
7045 mingw* | pw32* | os2*)
7046 # This hack is so that the source file can tell whether it is being
7047 # built for inclusion in a dll (and should export symbols for example).
7048 lt_prog_compiler_pic='-DDLL_EXPORT'
7051 darwin* | rhapsody*)
7052 # PIC is the default on this platform
7053 # Common symbols not allowed in MH_DYLIB files
7054 lt_prog_compiler_pic='-fno-common'
7058 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7059 # Instead, we relocate shared libraries at runtime.
7063 # Just because we use GCC doesn't mean we suddenly get shared libraries
7064 # on systems that don't support them.
7065 lt_prog_compiler_can_build_shared=no
7070 if test -d /usr/nec; then
7071 lt_prog_compiler_pic=-Kconform_pic
7076 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7083 lt_prog_compiler_pic='-fPIC'
7089 lt_prog_compiler_pic='-fPIC'
7093 # PORTME Check for flag to pass linker flags through the system compiler.
7096 lt_prog_compiler_wl='-Wl,'
7097 if test "$host_cpu" = ia64; then
7098 # AIX 5 now supports IA64 processor
7099 lt_prog_compiler_static='-Bstatic'
7101 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7105 # PIC is the default on this platform
7106 # Common symbols not allowed in MH_DYLIB files
7107 case $cc_basename in
7109 lt_prog_compiler_pic='-qnocommon'
7110 lt_prog_compiler_wl='-Wl,'
7115 mingw* | pw32* | os2*)
7116 # This hack is so that the source file can tell whether it is being
7117 # built for inclusion in a dll (and should export symbols for example).
7118 lt_prog_compiler_pic='-DDLL_EXPORT'
7121 hpux9* | hpux10* | hpux11*)
7122 lt_prog_compiler_wl='-Wl,'
7123 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7130 lt_prog_compiler_pic='+Z'
7133 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7134 lt_prog_compiler_static='${wl}-a ${wl}archive'
7137 irix5* | irix6* | nonstopux*)
7138 lt_prog_compiler_wl='-Wl,'
7139 # PIC (with -KPIC) is the default.
7140 lt_prog_compiler_static='-non_shared'
7144 lt_prog_compiler_pic='-KPIC'
7145 lt_prog_compiler_static='-Bstatic'
7149 case $cc_basename in
7151 lt_prog_compiler_wl='-Wl,'
7152 lt_prog_compiler_pic='-KPIC'
7153 lt_prog_compiler_static='-static'
7155 pgcc* | pgf77* | pgf90* | pgf95*)
7156 # Portland Group compilers (*not* the Pentium gcc compiler,
7157 # which looks to be a dead project)
7158 lt_prog_compiler_wl='-Wl,'
7159 lt_prog_compiler_pic='-fpic'
7160 lt_prog_compiler_static='-Bstatic'
7163 lt_prog_compiler_wl='-Wl,'
7164 # All Alpha code is PIC.
7165 lt_prog_compiler_static='-non_shared'
7170 osf3* | osf4* | osf5*)
7171 lt_prog_compiler_wl='-Wl,'
7172 # All OSF/1 code is PIC.
7173 lt_prog_compiler_static='-non_shared'
7177 lt_prog_compiler_pic='-KPIC'
7178 lt_prog_compiler_static='-Bstatic'
7179 case $cc_basename in
7181 lt_prog_compiler_wl='-Qoption ld ';;
7183 lt_prog_compiler_wl='-Wl,';;
7188 lt_prog_compiler_wl='-Qoption ld '
7189 lt_prog_compiler_pic='-PIC'
7190 lt_prog_compiler_static='-Bstatic'
7193 sysv4 | sysv4.2uw2* | sysv4.3*)
7194 lt_prog_compiler_wl='-Wl,'
7195 lt_prog_compiler_pic='-KPIC'
7196 lt_prog_compiler_static='-Bstatic'
7200 if test -d /usr/nec ;then
7201 lt_prog_compiler_pic='-Kconform_pic'
7202 lt_prog_compiler_static='-Bstatic'
7206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7207 lt_prog_compiler_wl='-Wl,'
7208 lt_prog_compiler_pic='-KPIC'
7209 lt_prog_compiler_static='-Bstatic'
7213 lt_prog_compiler_wl='-Wl,'
7214 lt_prog_compiler_can_build_shared=no
7218 lt_prog_compiler_pic='-pic'
7219 lt_prog_compiler_static='-Bstatic'
7223 lt_prog_compiler_can_build_shared=no
7228 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7229 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7232 # Check to make sure the PIC flag actually works.
7234 if test -n "$lt_prog_compiler_pic"; then
7236 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7237 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7238 if test "${lt_prog_compiler_pic_works+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 lt_prog_compiler_pic_works=no
7242 ac_outfile=conftest.$ac_objext
7243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7245 # Insert the option either (1) after the last *FLAGS variable, or
7246 # (2) before a word containing "conftest.", or (3) at the end.
7247 # Note that $ac_compile itself does not contain backslashes and begins
7248 # with a dollar sign (not a hyphen), so the echo should work correctly.
7249 # The option is referenced via a variable to avoid confusing sed.
7250 lt_compile=`echo "$ac_compile" | $SED \
7251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7253 -e 's:$: $lt_compiler_flag:'`
7254 (eval echo "\"\$as_me:7254: $lt_compile\"" >&5)
7255 (eval "$lt_compile" 2>conftest.err)
7257 cat conftest.err >&5
7258 echo "$as_me:7258: \$? = $ac_status" >&5
7259 if (exit $ac_status) && test -s "$ac_outfile"; then
7260 # The compiler can only warn and ignore the option if not recognized
7261 # So say no if there are warnings other than the usual output.
7262 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7265 lt_prog_compiler_pic_works=yes
7271 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7272 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7274 if test x"$lt_prog_compiler_pic_works" = xyes; then
7275 case $lt_prog_compiler_pic in
7277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7280 lt_prog_compiler_pic=
7281 lt_prog_compiler_can_build_shared=no
7286 # For platforms which do not support PIC, -DPIC is meaningless:
7288 lt_prog_compiler_pic=
7291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7296 # Check to make sure the static flag actually works.
7298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7299 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7300 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7301 if test "${lt_prog_compiler_static_works+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 lt_prog_compiler_static_works=no
7305 save_LDFLAGS="$LDFLAGS"
7306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7307 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7309 # The linker can only warn and ignore the option if not recognized
7310 # So say no if there are warnings
7311 if test -s conftest.err; then
7312 # Append any errors to the config.log.
7313 cat conftest.err 1>&5
7314 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7316 if diff conftest.exp conftest.er2 >/dev/null; then
7317 lt_prog_compiler_static_works=yes
7320 lt_prog_compiler_static_works=yes
7324 LDFLAGS="$save_LDFLAGS"
7327 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7328 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7330 if test x"$lt_prog_compiler_static_works" = xyes; then
7333 lt_prog_compiler_static=
7337 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7338 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 lt_cv_prog_compiler_c_o=no
7343 $rm -r conftest 2>/dev/null
7347 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349 lt_compiler_flag="-o out/conftest2.$ac_objext"
7350 # Insert the option either (1) after the last *FLAGS variable, or
7351 # (2) before a word containing "conftest.", or (3) at the end.
7352 # Note that $ac_compile itself does not contain backslashes and begins
7353 # with a dollar sign (not a hyphen), so the echo should work correctly.
7354 lt_compile=`echo "$ac_compile" | $SED \
7355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7357 -e 's:$: $lt_compiler_flag:'`
7358 (eval echo "\"\$as_me:7358: $lt_compile\"" >&5)
7359 (eval "$lt_compile" 2>out/conftest.err)
7361 cat out/conftest.err >&5
7362 echo "$as_me:7362: \$? = $ac_status" >&5
7363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7365 # The compiler can only warn and ignore the option if not recognized
7366 # So say no if there are warnings
7367 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7370 lt_cv_prog_compiler_c_o=yes
7375 # SGI C++ compiler will create directory out/ii_files/ for
7376 # template instantiation
7377 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7378 $rm out/* && rmdir out
7384 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7385 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7388 hard_links="nottested"
7389 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7390 # do not overwrite the value of need_locks provided by the user
7391 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7392 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7397 ln conftest.a conftest.b 2>&5 || hard_links=no
7398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7399 { echo "$as_me:$LINENO: result: $hard_links" >&5
7400 echo "${ECHO_T}$hard_links" >&6; }
7401 if test "$hard_links" = no; then
7402 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7403 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7410 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7411 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7414 allow_undefined_flag=
7415 enable_shared_with_static_runtimes=no
7417 archive_expsym_cmds=
7418 old_archive_From_new_cmds=
7419 old_archive_from_expsyms_cmds=
7420 export_dynamic_flag_spec=
7421 whole_archive_flag_spec=
7422 thread_safe_flag_spec=
7423 hardcode_libdir_flag_spec=
7424 hardcode_libdir_flag_spec_ld=
7425 hardcode_libdir_separator=
7428 hardcode_shlibpath_var=unsupported
7429 link_all_deplibs=unknown
7430 hardcode_automatic=no
7433 always_export_symbols=no
7434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7435 # include_expsyms should be a list of space-separated symbols to be *always*
7436 # included in the symbol list
7438 # exclude_expsyms can be an extended regexp of symbols to exclude
7439 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7440 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7441 # as well as any symbol that contains `d'.
7442 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7443 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7444 # platforms (ab)use it in PIC code, but their linkers get confused if
7445 # the symbol is explicitly referenced. Since portable code cannot
7446 # rely on this symbol name, it's probably fine to never include it in
7447 # preloaded symbol tables.
7448 extract_expsyms_cmds=
7449 # Just being paranoid about ensuring that cc_basename is set.
7450 for cc_temp in $compiler""; do
7452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7458 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7461 cygwin* | mingw* | pw32*)
7462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7463 # When not using gcc, we currently assume that we are using
7464 # Microsoft Visual C++.
7465 if test "$GCC" != yes; then
7470 # we just hope/assume this is gcc and not c89 (= MSVC++)
7479 if test "$with_gnu_ld" = yes; then
7480 # If archive_cmds runs LD, not CC, wlarc should be empty
7483 # Set some defaults for GNU ld with shared library support. These
7484 # are reset later if shared libraries are not supported. Putting them
7485 # here allows them to be overridden if necessary.
7486 runpath_var=LD_RUN_PATH
7487 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7488 export_dynamic_flag_spec='${wl}--export-dynamic'
7489 # ancient GNU ld didn't support --whole-archive et. al.
7490 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7491 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7493 whole_archive_flag_spec=
7495 supports_anon_versioning=no
7496 case `$LD -v 2>/dev/null` in
7497 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7498 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7499 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7500 *\ 2.11.*) ;; # other 2.11 versions
7501 *) supports_anon_versioning=yes ;;
7504 # See if GNU ld supports shared libraries.
7506 aix3* | aix4* | aix5*)
7507 # On AIX/PPC, the GNU linker is very broken
7508 if test "$host_cpu" != ia64; then
7512 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7513 *** to be unable to reliably create shared libraries on AIX.
7514 *** Therefore, libtool is disabling shared libraries support. If you
7515 *** really care for shared libraries, you may want to modify your PATH
7516 *** so that a non-GNU linker is found, and then restart.
7523 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)'
7524 hardcode_libdir_flag_spec='-L$libdir'
7525 hardcode_minus_L=yes
7527 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7528 # that the semantics of dynamic libraries on AmigaOS, at least up
7529 # to version 4, is to share data among multiple programs linked
7530 # with the same dynamic library. Since this doesn't match the
7531 # behavior of shared libraries on other platforms, we can't use
7537 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7538 allow_undefined_flag=unsupported
7539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7540 # support --undefined. This deserves some investigation. FIXME
7541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7547 cygwin* | mingw* | pw32*)
7548 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7549 # as there is no search path for DLLs.
7550 hardcode_libdir_flag_spec='-L$libdir'
7551 allow_undefined_flag=unsupported
7552 always_export_symbols=no
7553 enable_shared_with_static_runtimes=yes
7554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7556 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7558 # If the export-symbols file already is a .def file (1st line
7559 # is EXPORTS), use it as is; otherwise, prepend...
7560 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7561 cp $export_symbols $output_objdir/$soname.def;
7563 echo EXPORTS > $output_objdir/$soname.def;
7564 cat $export_symbols >> $output_objdir/$soname.def;
7566 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7574 hardcode_shlibpath_var=no
7575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7576 export_dynamic_flag_spec='${wl}-E'
7577 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7578 # Instead, shared libraries are loaded at an image base (0x10000000 by
7579 # default) and relocated if they conflict, which is a slow very memory
7580 # consuming and fragmenting process. To avoid this, we pick a random,
7581 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7582 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7584 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'
7588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7590 case $cc_basename,$host_cpu in
7591 pgcc*) # Portland Group C compiler
7592 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'
7593 tmp_addflag=' $pic_flag'
7595 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7596 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'
7597 tmp_addflag=' $pic_flag -Mnomain' ;;
7598 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7599 tmp_addflag=' -i_dynamic' ;;
7600 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7601 tmp_addflag=' -i_dynamic -nofor_main' ;;
7602 ifc* | ifort*) # Intel Fortran compiler
7603 tmp_addflag=' -nofor_main' ;;
7605 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7607 if test $supports_anon_versioning = yes; then
7608 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7610 $echo "local: *; };" >> $output_objdir/$libname.ver~
7611 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7620 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7629 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7634 *** create shared libraries on Solaris systems. Therefore, libtool
7635 *** is disabling shared libraries support. We urge you to upgrade GNU
7636 *** binutils to release 2.9.1 or newer. Another option is to modify
7637 *** your PATH or compiler configuration so that the native linker is
7638 *** used, and then restart.
7641 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7650 case `$LD -v 2>&1` in
7651 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7655 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7656 *** reliably create shared libraries on SCO systems. Therefore, libtool
7657 *** is disabling shared libraries support. We urge you to upgrade GNU
7658 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7659 *** your PATH or compiler configuration so that the native linker is
7660 *** used, and then restart.
7665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7677 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7680 hardcode_shlibpath_var=no
7684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7693 if test "$ld_shlibs" = no; then
7695 hardcode_libdir_flag_spec=
7696 export_dynamic_flag_spec=
7697 whole_archive_flag_spec=
7700 # PORTME fill in a description of your system's linker (not GNU ld)
7703 allow_undefined_flag=unsupported
7704 always_export_symbols=yes
7705 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'
7706 # Note: this linker hardcodes the directories in LIBPATH if there
7707 # are no directories specified by -L.
7708 hardcode_minus_L=yes
7709 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7710 # Neither direct hardcoding nor static linking is supported with a
7712 hardcode_direct=unsupported
7717 if test "$host_cpu" = ia64; then
7718 # On IA64, the linker does run time linking by default, so we don't
7719 # have to do anything special.
7720 aix_use_runtimelinking=no
7721 exp_sym_flag='-Bexport'
7724 # If we're using GNU nm, then we don't want the "-C" option.
7725 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7726 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7727 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'
7729 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'
7731 aix_use_runtimelinking=no
7733 # Test if we are trying to use run time linking or normal
7734 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7735 # need to do runtime linking.
7736 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7737 for ld_flag in $LDFLAGS; do
7738 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7739 aix_use_runtimelinking=yes
7746 exp_sym_flag='-bexport'
7747 no_entry_flag='-bnoentry'
7750 # When large executables or shared objects are built, AIX ld can
7751 # have problems creating the table of contents. If linking a library
7752 # or program results in "error TOC overflow" add -mminimal-toc to
7753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7758 hardcode_libdir_separator=':'
7759 link_all_deplibs=yes
7761 if test "$GCC" = yes; then
7762 case $host_os in aix4.[012]|aix4.[012].*)
7763 # We only want to do this on AIX 4.2 and lower, the check
7764 # below for broken collect2 doesn't work under 4.3+
7765 collect2name=`${CC} -print-prog-name=collect2`
7766 if test -f "$collect2name" && \
7767 strings "$collect2name" | grep resolve_lib_name >/dev/null
7769 # We have reworked collect2
7772 # We have old collect2
7773 hardcode_direct=unsupported
7774 # It fails to find uninstalled libraries when the uninstalled
7775 # path is not listed in the libpath. Setting hardcode_minus_L
7776 # to unsupported forces relinking
7777 hardcode_minus_L=yes
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_libdir_separator=
7783 shared_flag='-shared'
7784 if test "$aix_use_runtimelinking" = yes; then
7785 shared_flag="$shared_flag "'${wl}-G'
7789 if test "$host_cpu" = ia64; then
7790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7791 # chokes on -Wl,-G. The following line is correct:
7794 if test "$aix_use_runtimelinking" = yes; then
7795 shared_flag='${wl}-G'
7797 shared_flag='${wl}-bM:SRE'
7802 # It seems that -bexpall does not export symbols beginning with
7803 # underscore (_), so it is better to generate a list of symbols to export.
7804 always_export_symbols=yes
7805 if test "$aix_use_runtimelinking" = yes; then
7806 # Warning - without using the other runtime loading flags (-brtl),
7807 # -berok will link without error, but may produce a broken library.
7808 allow_undefined_flag='-berok'
7809 # Determine the default libpath from the value encoded in an empty executable.
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (ac_try="$ac_link"
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832 (eval "$ac_link") 2>conftest.er1
7834 grep -v '^ *+' conftest.er1 >conftest.err
7836 cat conftest.err >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && {
7839 test -z "$ac_c_werror_flag" ||
7840 test ! -s conftest.err
7841 } && test -s conftest$ac_exeext &&
7842 $as_test_x conftest$ac_exeext; then
7844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7846 # Check for a 64-bit object if we didn't find anything.
7847 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; }
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7857 conftest$ac_exeext conftest.$ac_ext
7858 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7860 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7861 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"
7863 if test "$host_cpu" = ia64; then
7864 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7865 allow_undefined_flag="-z nodefs"
7866 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"
7868 # Determine the default libpath from the value encoded in an empty executable.
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7884 rm -f conftest.$ac_objext conftest$ac_exeext
7885 if { (ac_try="$ac_link"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_link") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext &&
7901 $as_test_x conftest$ac_exeext; then
7903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7905 # Check for a 64-bit object if we didn't find anything.
7906 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; }
7909 echo "$as_me: failed program was:" >&5
7910 sed 's/^/| /' conftest.$ac_ext >&5
7915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7916 conftest$ac_exeext conftest.$ac_ext
7917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7920 # Warning - without using the other run time loading flags,
7921 # -berok will link without error, but may produce a broken library.
7922 no_undefined_flag=' ${wl}-bernotok'
7923 allow_undefined_flag=' ${wl}-berok'
7924 # Exported symbols can be pulled into shared objects from archives
7925 whole_archive_flag_spec='$convenience'
7926 archive_cmds_need_lc=yes
7927 # This is similar to how AIX traditionally builds its shared libraries.
7928 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'
7934 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)'
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7937 # see comment about different semantics on the GNU ld section
7942 export_dynamic_flag_spec=-rdynamic
7945 cygwin* | mingw* | pw32*)
7946 # When not using gcc, we currently assume that we are using
7947 # Microsoft Visual C++.
7948 # hardcode_libdir_flag_spec is actually meaningless, as there is
7949 # no search path for DLLs.
7950 hardcode_libdir_flag_spec=' '
7951 allow_undefined_flag=unsupported
7952 # Tell ltmain to make .lib files, not .a files.
7954 # Tell ltmain to make .dll files, not .so files.
7956 # FIXME: Setting linknames here is a bad hack.
7957 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7958 # The linker will automatically build a .lib file if we build a DLL.
7959 old_archive_From_new_cmds='true'
7960 # FIXME: Should let the user specify the lib program.
7961 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7962 fix_srcfile_path='`cygpath -w "$srcfile"`'
7963 enable_shared_with_static_runtimes=yes
7966 darwin* | rhapsody*)
7968 rhapsody* | darwin1.[012])
7969 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7972 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7973 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7975 case ${MACOSX_DEPLOYMENT_TARGET} in
7977 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7980 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7986 archive_cmds_need_lc=no
7988 hardcode_automatic=yes
7989 hardcode_shlibpath_var=unsupported
7990 whole_archive_flag_spec=''
7991 link_all_deplibs=yes
7992 if test "$GCC" = yes ; then
7993 output_verbose_link_cmd='echo'
7994 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7995 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7996 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7997 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}'
7998 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}'
8000 case $cc_basename in
8002 output_verbose_link_cmd='echo'
8003 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8004 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8005 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8006 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}'
8007 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}'
8017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018 hardcode_libdir_flag_spec='-L$libdir'
8019 hardcode_shlibpath_var=no
8026 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8027 # support. Future versions do this automatically, but an explicit c++rt0.o
8028 # does not break anything, and helps significantly (at the cost of a little
8031 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8032 hardcode_libdir_flag_spec='-R$libdir'
8034 hardcode_shlibpath_var=no
8037 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8041 hardcode_minus_L=yes
8042 hardcode_shlibpath_var=no
8045 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8046 freebsd* | kfreebsd*-gnu | dragonfly*)
8047 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8048 hardcode_libdir_flag_spec='-R$libdir'
8050 hardcode_shlibpath_var=no
8054 if test "$GCC" = yes; then
8055 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'
8057 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'
8059 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8060 hardcode_libdir_separator=:
8063 # hardcode_minus_L: Not really in the search PATH,
8064 # but as the default location of the library.
8065 hardcode_minus_L=yes
8066 export_dynamic_flag_spec='${wl}-E'
8070 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8071 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8073 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8075 if test "$with_gnu_ld" = no; then
8076 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8077 hardcode_libdir_separator=:
8080 export_dynamic_flag_spec='${wl}-E'
8082 # hardcode_minus_L: Not really in the search PATH,
8083 # but as the default location of the library.
8084 hardcode_minus_L=yes
8089 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8092 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8095 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8098 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8104 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8107 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8114 if test "$with_gnu_ld" = no; then
8115 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8116 hardcode_libdir_separator=:
8120 hardcode_libdir_flag_spec_ld='+b $libdir'
8122 hardcode_shlibpath_var=no
8126 export_dynamic_flag_spec='${wl}-E'
8128 # hardcode_minus_L: Not really in the search PATH,
8129 # but as the default location of the library.
8130 hardcode_minus_L=yes
8136 irix5* | irix6* | nonstopux*)
8137 if test "$GCC" = yes; then
8138 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'
8140 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'
8141 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8144 hardcode_libdir_separator=:
8145 link_all_deplibs=yes
8149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8152 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8154 hardcode_libdir_flag_spec='-R$libdir'
8156 hardcode_shlibpath_var=no
8160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8162 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8163 hardcode_libdir_separator=:
8164 hardcode_shlibpath_var=no
8169 hardcode_shlibpath_var=no
8170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8172 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8174 export_dynamic_flag_spec='${wl}-E'
8177 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8179 hardcode_libdir_flag_spec='-R$libdir'
8182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8190 hardcode_libdir_flag_spec='-L$libdir'
8191 hardcode_minus_L=yes
8192 allow_undefined_flag=unsupported
8193 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'
8194 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8198 if test "$GCC" = yes; then
8199 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8200 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'
8202 allow_undefined_flag=' -expect_unresolved \*'
8203 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'
8205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8206 hardcode_libdir_separator=:
8209 osf4* | osf5*) # as osf3* with the addition of -msym flag
8210 if test "$GCC" = yes; then
8211 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8212 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'
8213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8215 allow_undefined_flag=' -expect_unresolved \*'
8216 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'
8217 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8218 $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'
8220 # Both c and cxx compiler support -rpath directly
8221 hardcode_libdir_flag_spec='-rpath $libdir'
8223 hardcode_libdir_separator=:
8227 no_undefined_flag=' -z text'
8228 if test "$GCC" = yes; then
8230 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8231 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8232 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8239 hardcode_libdir_flag_spec='-R$libdir'
8240 hardcode_shlibpath_var=no
8242 solaris2.[0-5] | solaris2.[0-5].*) ;;
8244 # The compiler driver will combine linker options so we
8245 # cannot just pass the convience library names through
8246 # without $wl, iff we do not link with $LD.
8247 # Luckily, gcc supports the same syntax we need for Sun Studio.
8248 # Supported since Solaris 2.6 (maybe 2.5.1?)
8251 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8253 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' ;;
8256 link_all_deplibs=yes
8260 if test "x$host_vendor" = xsequent; then
8261 # Use $CC to link under sequent, because it throws in some extra .o
8262 # files that make .init and .fini sections work.
8263 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8265 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8267 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_minus_L=yes
8270 hardcode_shlibpath_var=no
8274 case $host_vendor in
8276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8277 hardcode_direct=yes # is this really true???
8280 ## LD is ld it makes a PLAMLIB
8281 ## CC just makes a GrossModule.
8282 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8283 reload_cmds='$CC -r -o $output$reload_objs'
8287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8291 runpath_var='LD_RUN_PATH'
8292 hardcode_shlibpath_var=no
8296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297 hardcode_shlibpath_var=no
8298 export_dynamic_flag_spec='-Bexport'
8302 if test -d /usr/nec; then
8303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304 hardcode_shlibpath_var=no
8305 runpath_var=LD_RUN_PATH
8306 hardcode_runpath_var=yes
8311 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8312 no_undefined_flag='${wl}-z,text'
8313 archive_cmds_need_lc=no
8314 hardcode_shlibpath_var=no
8315 runpath_var='LD_RUN_PATH'
8317 if test "$GCC" = yes; then
8318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8326 sysv5* | sco3.2v5* | sco5v6*)
8327 # Note: We can NOT use -z defs as we might desire, because we do not
8328 # link with -lc, and that would cause any symbols used from libc to
8329 # always be unresolved, which means just about no library would
8330 # ever link correctly. If we're not using GNU ld we use -z text
8331 # though, which does catch some bad symbols but isn't as heavy-handed
8333 no_undefined_flag='${wl}-z,text'
8334 allow_undefined_flag='${wl}-z,nodefs'
8335 archive_cmds_need_lc=no
8336 hardcode_shlibpath_var=no
8337 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8338 hardcode_libdir_separator=':'
8339 link_all_deplibs=yes
8340 export_dynamic_flag_spec='${wl}-Bexport'
8341 runpath_var='LD_RUN_PATH'
8343 if test "$GCC" = yes; then
8344 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8347 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8348 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_shlibpath_var=no
8364 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8365 echo "${ECHO_T}$ld_shlibs" >&6; }
8366 test "$ld_shlibs" = no && can_build_shared=no
8369 # Do we need to explicitly link libc?
8371 case "x$archive_cmds_need_lc" in
8373 # Assume -lc should be added
8374 archive_cmds_need_lc=yes
8376 if test "$enable_shared" = yes && test "$GCC" = yes; then
8377 case $archive_cmds in
8379 # FIXME: we may have to deal with multi-command sequences.
8382 # Test whether the compiler implicitly links with -lc since on some
8383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8384 # to ld, don't add -lc before -lgcc.
8385 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8388 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } 2>conftest.err; then
8397 libobjs=conftest.$ac_objext
8399 wl=$lt_prog_compiler_wl
8400 pic_flag=$lt_prog_compiler_pic
8406 lt_save_allow_undefined_flag=$allow_undefined_flag
8407 allow_undefined_flag=
8408 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8409 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }
8414 archive_cmds_need_lc=no
8416 archive_cmds_need_lc=yes
8418 allow_undefined_flag=$lt_save_allow_undefined_flag
8420 cat conftest.err 1>&5
8423 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8424 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8431 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8432 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8434 libname_spec='lib$name'
8442 shlibpath_overrides_runpath=unknown
8444 dynamic_linker="$host_os ld.so"
8445 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8446 if test "$GCC" = yes; then
8447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8448 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8449 # if the path contains ";" then we assume it to be the separator
8450 # otherwise default to the standard path separator (i.e. ":") - it is
8451 # assumed that no part of a normal pathname contains ";" but that should
8452 # okay in the real world where ";" in dirpaths is itself problematic.
8453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8460 need_lib_prefix=unknown
8461 hardcode_into_libs=no
8463 # when you set need_version to no, make sure it does not cause -set_version
8464 # flags to be left without arguments
8465 need_version=unknown
8470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8471 shlibpath_var=LIBPATH
8473 # AIX 3 has no versioning support, so we append a major version to the name.
8474 soname_spec='${libname}${release}${shared_ext}$major'
8481 hardcode_into_libs=yes
8482 if test "$host_cpu" = ia64; then
8483 # AIX 5 supports IA64
8484 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8485 shlibpath_var=LD_LIBRARY_PATH
8487 # With GCC up to 2.95.x, collect2 would create an import file
8488 # for dependence libraries. The import file would start with
8489 # the line `#! .'. This would cause the generated library to
8490 # depend on `.', always an invalid library. This was fixed in
8491 # development snapshots of GCC prior to 3.0.
8493 aix4 | aix4.[01] | aix4.[01].*)
8494 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8496 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8503 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8504 # soname into executable. Probably we can add versioning support to
8505 # collect2, so additional links can be useful in future.
8506 if test "$aix_use_runtimelinking" = yes; then
8507 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8508 # instead of lib<name>.a to let people know that these are not
8509 # typical AIX shared libraries.
8510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 # We preserve .a as extension for shared libraries through AIX4.2
8513 # and later when we are not doing run time linking.
8514 library_names_spec='${libname}${release}.a $libname.a'
8515 soname_spec='${libname}${release}${shared_ext}$major'
8517 shlibpath_var=LIBPATH
8522 library_names_spec='$libname.ixlibrary $libname.a'
8523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8524 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'
8528 library_names_spec='${libname}${shared_ext}'
8529 dynamic_linker="$host_os ld.so"
8530 shlibpath_var=LIBRARY_PATH
8536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537 soname_spec='${libname}${release}${shared_ext}$major'
8538 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8539 shlibpath_var=LD_LIBRARY_PATH
8540 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8541 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8542 # the default ld.so.conf also contains /usr/contrib/lib and
8543 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8544 # libtool to hard-code these into programs
8547 cygwin* | mingw* | pw32*)
8548 version_type=windows
8553 case $GCC,$host_os in
8554 yes,cygwin* | yes,mingw* | yes,pw32*)
8555 library_names_spec='$libname.dll.a'
8556 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8557 postinstall_cmds='base_file=`basename \${file}`~
8558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8559 dldir=$destdir/`dirname \$dlpath`~
8560 test -d \$dldir || mkdir -p \$dldir~
8561 $install_prog $dir/$dlname \$dldir/$dlname~
8562 chmod a+x \$dldir/$dlname'
8563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8564 dlpath=$dir/\$dldll~
8566 shlibpath_overrides_runpath=yes
8570 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8571 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8572 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8575 # MinGW DLLs use traditional 'lib' prefix
8576 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8577 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8578 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8579 # It is most probably a Windows format PATH printed by
8580 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8581 # path with ; separators, and with drive letters. We can handle the
8582 # drive letters (cygwin fileutils understands them), so leave them,
8583 # especially as we might pass files found there to a mingw objdump,
8584 # which wouldn't understand a cygwinified path. Ahh.
8585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8591 # pw32 DLLs use 'pw' prefix rather than 'lib'
8592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8601 dynamic_linker='Win32 ld.exe'
8602 # FIXME: first we should search . and the directory the executable is in
8606 darwin* | rhapsody*)
8607 dynamic_linker="$host_os dyld"
8611 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8612 soname_spec='${libname}${release}${major}$shared_ext'
8613 shlibpath_overrides_runpath=yes
8614 shlibpath_var=DYLD_LIBRARY_PATH
8615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8616 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8617 if test "$GCC" = yes; then
8618 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"`
8620 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8630 soname_spec='${libname}${release}${shared_ext}$major'
8631 shlibpath_var=LD_LIBRARY_PATH
8642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8643 soname_spec='${libname}${release}${shared_ext}$major'
8644 shlibpath_var=LD_LIBRARY_PATH
8645 shlibpath_overrides_runpath=no
8646 hardcode_into_libs=yes
8647 dynamic_linker='GNU ld.so'
8650 freebsd* | dragonfly*)
8651 # DragonFly does not have aout. When/if they implement a new
8652 # versioning mechanism, adjust this.
8653 if test -x /usr/bin/objformat; then
8654 objformat=`/usr/bin/objformat`
8657 freebsd[123]*) objformat=aout ;;
8661 version_type=freebsd-$objformat
8662 case $version_type in
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8673 shlibpath_var=LD_LIBRARY_PATH
8676 shlibpath_overrides_runpath=yes
8678 freebsd3.[01]* | freebsdelf3.[01]*)
8679 shlibpath_overrides_runpath=yes
8680 hardcode_into_libs=yes
8682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8684 shlibpath_overrides_runpath=no
8685 hardcode_into_libs=yes
8687 freebsd*) # from 4.6 on
8688 shlibpath_overrides_runpath=yes
8689 hardcode_into_libs=yes
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
8701 hardcode_into_libs=yes
8704 hpux9* | hpux10* | hpux11*)
8705 # Give a soname corresponding to the major version so that dld.sl refuses to
8706 # link against other versions.
8713 hardcode_into_libs=yes
8714 dynamic_linker="$host_os dld.so"
8715 shlibpath_var=LD_LIBRARY_PATH
8716 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8719 if test "X$HPUX_IA64_MODE" = X32; then
8720 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8722 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8728 hardcode_into_libs=yes
8729 dynamic_linker="$host_os dld.sl"
8730 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8731 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8735 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8739 dynamic_linker="$host_os dld.sl"
8740 shlibpath_var=SHLIB_PATH
8741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8746 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8747 postinstall_cmds='chmod 555 $lib'
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8762 irix5* | irix6* | nonstopux*)
8764 nonstopux*) version_type=nonstopux ;;
8766 if test "$lt_cv_prog_gnu_ld" = yes; then
8774 soname_spec='${libname}${release}${shared_ext}$major'
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8777 irix5* | nonstopux*)
8781 case $LD in # libtool.m4 will add one of these switches to LD
8782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8783 libsuff= shlibsuff= libmagic=32-bit;;
8784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8785 libsuff=32 shlibsuff=N32 libmagic=N32;;
8786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8788 *) libsuff= shlibsuff= libmagic=never-match;;
8792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8793 shlibpath_overrides_runpath=no
8794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8796 hardcode_into_libs=yes
8799 # No shared lib support for Linux oldld, aout, or coff.
8800 linux*oldld* | linux*aout* | linux*coff*)
8804 # This must be Linux ELF.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 shlibpath_overrides_runpath=no
8814 # This implies no fast_install, which is unacceptable.
8815 # Some rework will be needed to allow for fast_install
8816 # before this can be enabled.
8817 hardcode_into_libs=yes
8819 # Append ld.so.conf contents to the search path
8820 if test -f /etc/ld.so.conf; then
8821 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' ' '`
8822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8825 # We used to test for /lib/ld.so.1 and disable shared libraries on
8826 # powerpc, because MkLinux only supported shared libraries with the
8827 # GNU dynamic linker. Since this was broken with cross compilers,
8828 # most powerpc-linux boxes support dynamic linking these days and
8829 # people can always --disable-shared, the test was removed, and we
8830 # assume the GNU/Linux dynamic linker is in use.
8831 dynamic_linker='GNU/Linux ld.so'
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 shlibpath_var=LD_LIBRARY_PATH
8841 shlibpath_overrides_runpath=no
8842 hardcode_into_libs=yes
8843 dynamic_linker='GNU ld.so'
8850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8853 dynamic_linker='NetBSD (a.out) ld.so'
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 dynamic_linker='NetBSD ld.elf_so'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 shlibpath_overrides_runpath=yes
8861 hardcode_into_libs=yes
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 shlibpath_var=LD_LIBRARY_PATH
8868 shlibpath_overrides_runpath=yes
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 shlibpath_var=LD_LIBRARY_PATH
8878 shlibpath_overrides_runpath=yes
8883 sys_lib_dlsearch_path_spec="/usr/lib"
8885 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8887 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8888 *) need_version=no ;;
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8895 openbsd2.[89] | openbsd2.[89].*)
8896 shlibpath_overrides_runpath=no
8899 shlibpath_overrides_runpath=yes
8903 shlibpath_overrides_runpath=yes
8908 libname_spec='$name'
8911 library_names_spec='$libname${shared_ext} $libname.a'
8912 dynamic_linker='OS/2 ld.exe'
8913 shlibpath_var=LIBPATH
8916 osf3* | osf4* | osf5*)
8920 soname_spec='${libname}${release}${shared_ext}$major'
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 shlibpath_var=LD_LIBRARY_PATH
8923 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8924 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=yes
8935 hardcode_into_libs=yes
8936 # ldd complains unless libraries are executable
8937 postinstall_cmds='chmod +x $lib'
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8943 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes
8946 if test "$with_gnu_ld" = yes; then
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 case $host_vendor in
8959 shlibpath_overrides_runpath=no
8961 export_dynamic_flag_spec='${wl}-Blargedynsym'
8962 runpath_var=LD_RUN_PATH
8970 shlibpath_overrides_runpath=no
8971 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8977 if test -d /usr/nec ;then
8979 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8980 soname_spec='$libname${shared_ext}.$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8986 version_type=freebsd-elf
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 hardcode_into_libs=yes
8993 if test "$with_gnu_ld" = yes; then
8994 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8995 shlibpath_overrides_runpath=no
8997 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8998 shlibpath_overrides_runpath=yes
9001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9005 sys_lib_dlsearch_path_spec='/usr/lib'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9019 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9020 echo "${ECHO_T}$dynamic_linker" >&6; }
9021 test "$dynamic_linker" = no && can_build_shared=no
9023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9024 if test "$GCC" = yes; then
9025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9028 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9029 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9031 if test -n "$hardcode_libdir_flag_spec" || \
9032 test -n "$runpath_var" || \
9033 test "X$hardcode_automatic" = "Xyes" ; then
9035 # We can hardcode non-existant directories.
9036 if test "$hardcode_direct" != no &&
9037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9038 # have to relink, otherwise we might link with an installed library
9039 # when we should be linking with a yet-to-be-installed one
9040 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9041 test "$hardcode_minus_L" != no; then
9042 # Linking always hardcodes the temporary library directory.
9043 hardcode_action=relink
9045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9046 hardcode_action=immediate
9049 # We cannot hardcode anything, or else we can only hardcode existing
9051 hardcode_action=unsupported
9053 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9054 echo "${ECHO_T}$hardcode_action" >&6; }
9056 if test "$hardcode_action" = relink; then
9057 # Fast installation is not supported
9058 enable_fast_install=no
9059 elif test "$shlibpath_overrides_runpath" = yes ||
9060 test "$enable_shared" = no; then
9061 # Fast installation is not necessary
9062 enable_fast_install=needless
9067 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9068 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9069 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9070 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9071 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9072 { echo "$as_me:$LINENO: result: yes" >&5
9073 echo "${ECHO_T}yes" >&6; }
9075 # FIXME - insert some real tests, host_os isn't really good enough
9078 if test -n "$STRIP" ; then
9079 striplib="$STRIP -x"
9080 { echo "$as_me:$LINENO: result: yes" >&5
9081 echo "${ECHO_T}yes" >&6; }
9083 { echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6; }
9088 { echo "$as_me:$LINENO: result: no" >&5
9089 echo "${ECHO_T}no" >&6; }
9094 if test "x$enable_dlopen" != xyes; then
9095 enable_dlopen=unknown
9096 enable_dlopen_self=unknown
9097 enable_dlopen_self_static=unknown
9104 lt_cv_dlopen="load_add_on"
9106 lt_cv_dlopen_self=yes
9110 lt_cv_dlopen="LoadLibrary"
9115 lt_cv_dlopen="dlopen"
9120 # if libdl is installed we need to link against it
9121 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9122 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9123 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 ac_check_lib_save_LIBS=$LIBS
9128 cat >conftest.$ac_ext <<_ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9135 /* Override any GCC internal prototype to avoid an error.
9136 Use char because int might match the return type of a GCC
9137 builtin and then its argument prototype would still apply. */
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_link") 2>conftest.er1
9159 grep -v '^ *+' conftest.er1 >conftest.err
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } && {
9164 test -z "$ac_c_werror_flag" ||
9165 test ! -s conftest.err
9166 } && test -s conftest$ac_exeext &&
9167 $as_test_x conftest$ac_exeext; then
9168 ac_cv_lib_dl_dlopen=yes
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 ac_cv_lib_dl_dlopen=no
9176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9177 conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9180 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9181 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9182 if test $ac_cv_lib_dl_dlopen = yes; then
9183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9188 lt_cv_dlopen_self=yes
9195 { echo "$as_me:$LINENO: checking for shl_load" >&5
9196 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9197 if test "${ac_cv_func_shl_load+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9208 #define shl_load innocuous_shl_load
9210 /* System header to define __stub macros and hopefully few prototypes,
9211 which can conflict with char shl_load (); below.
9212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9213 <limits.h> exists even on freestanding compilers. */
9216 # include <limits.h>
9218 # include <assert.h>
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9230 /* The GNU C library defines this for functions which it implements
9231 to always fail with ENOSYS. Some functions are actually named
9232 something starting with __ and the normal name is an alias. */
9233 #if defined __stub_shl_load || defined __stub___shl_load
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_link") 2>conftest.er1
9254 grep -v '^ *+' conftest.er1 >conftest.err
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_c_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest$ac_exeext &&
9262 $as_test_x conftest$ac_exeext; then
9263 ac_cv_func_shl_load=yes
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 ac_cv_func_shl_load=no
9271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9272 conftest$ac_exeext conftest.$ac_ext
9274 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9275 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9276 if test $ac_cv_func_shl_load = yes; then
9277 lt_cv_dlopen="shl_load"
9279 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9280 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9281 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 ac_check_lib_save_LIBS=$LIBS
9286 cat >conftest.$ac_ext <<_ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9308 rm -f conftest.$ac_objext conftest$ac_exeext
9309 if { (ac_try="$ac_link"
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_link") 2>conftest.er1
9317 grep -v '^ *+' conftest.er1 >conftest.err
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } && {
9322 test -z "$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9324 } && test -s conftest$ac_exeext &&
9325 $as_test_x conftest$ac_exeext; then
9326 ac_cv_lib_dld_shl_load=yes
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_lib_dld_shl_load=no
9334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9339 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9340 if test $ac_cv_lib_dld_shl_load = yes; then
9341 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9343 { echo "$as_me:$LINENO: checking for dlopen" >&5
9344 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9345 if test "${ac_cv_func_dlopen+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9354 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9356 #define dlopen innocuous_dlopen
9358 /* System header to define __stub macros and hopefully few prototypes,
9359 which can conflict with char dlopen (); below.
9360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361 <limits.h> exists even on freestanding compilers. */
9364 # include <limits.h>
9366 # include <assert.h>
9371 /* Override any GCC internal prototype to avoid an error.
9372 Use char because int might match the return type of a GCC
9373 builtin and then its argument prototype would still apply. */
9378 /* The GNU C library defines this for functions which it implements
9379 to always fail with ENOSYS. Some functions are actually named
9380 something starting with __ and the normal name is an alias. */
9381 #if defined __stub_dlopen || defined __stub___dlopen
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_link") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest$ac_exeext &&
9410 $as_test_x conftest$ac_exeext; then
9411 ac_cv_func_dlopen=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_cv_func_dlopen=no
9419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9420 conftest$ac_exeext conftest.$ac_ext
9422 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9423 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9424 if test $ac_cv_func_dlopen = yes; then
9425 lt_cv_dlopen="dlopen"
9427 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9428 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9429 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_check_lib_save_LIBS=$LIBS
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9441 /* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460 *) ac_try_echo=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_link") 2>conftest.er1
9465 grep -v '^ *+' conftest.er1 >conftest.err
9467 cat conftest.err >&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest$ac_exeext &&
9473 $as_test_x conftest$ac_exeext; then
9474 ac_cv_lib_dl_dlopen=yes
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_cv_lib_dl_dlopen=no
9482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483 conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_lib_save_LIBS
9486 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9487 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9488 if test $ac_cv_lib_dl_dlopen = yes; then
9489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9491 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9492 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9493 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 ac_check_lib_save_LIBS=$LIBS
9498 cat >conftest.$ac_ext <<_ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9505 /* Override any GCC internal prototype to avoid an error.
9506 Use char because int might match the return type of a GCC
9507 builtin and then its argument prototype would still apply. */
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (ac_try="$ac_link"
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_link") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } && {
9534 test -z "$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 } && test -s conftest$ac_exeext &&
9537 $as_test_x conftest$ac_exeext; then
9538 ac_cv_lib_svld_dlopen=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_lib_svld_dlopen=no
9546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9547 conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9550 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9551 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9552 if test $ac_cv_lib_svld_dlopen = yes; then
9553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9555 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9556 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9557 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 ac_check_lib_save_LIBS=$LIBS
9562 cat >conftest.$ac_ext <<_ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9569 /* Override any GCC internal prototype to avoid an error.
9570 Use char because int might match the return type of a GCC
9571 builtin and then its argument prototype would still apply. */
9584 rm -f conftest.$ac_objext conftest$ac_exeext
9585 if { (ac_try="$ac_link"
9587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588 *) ac_try_echo=$ac_try;;
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591 (eval "$ac_link") 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest$ac_exeext &&
9601 $as_test_x conftest$ac_exeext; then
9602 ac_cv_lib_dld_dld_link=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_cv_lib_dld_dld_link=no
9610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9611 conftest$ac_exeext conftest.$ac_ext
9612 LIBS=$ac_check_lib_save_LIBS
9614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9615 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9616 if test $ac_cv_lib_dld_dld_link = yes; then
9617 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9638 if test "x$lt_cv_dlopen" != xno; then
9644 case $lt_cv_dlopen in
9646 save_CPPFLAGS="$CPPFLAGS"
9647 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9649 save_LDFLAGS="$LDFLAGS"
9650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9653 LIBS="$lt_cv_dlopen_libs $LIBS"
9655 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9656 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9657 if test "${lt_cv_dlopen_self+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 if test "$cross_compiling" = yes; then :
9661 lt_cv_dlopen_self=cross
9663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9664 lt_status=$lt_dlunknown
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9676 # define LT_DLGLOBAL RTLD_GLOBAL
9679 # define LT_DLGLOBAL DL_GLOBAL
9681 # define LT_DLGLOBAL 0
9685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9686 find out it does not work in some platform. */
9687 #ifndef LT_DLLAZY_OR_NOW
9689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9692 # define LT_DLLAZY_OR_NOW DL_LAZY
9695 # define LT_DLLAZY_OR_NOW RTLD_NOW
9698 # define LT_DLLAZY_OR_NOW DL_NOW
9700 # define LT_DLLAZY_OR_NOW 0
9708 extern "C" void exit (int);
9711 void fnord() { int i=42;}
9714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9715 int status = $lt_dlunknown;
9719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9721 /* dlclose (self); */
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9734 (./conftest; exit; ) >&5 2>/dev/null
9737 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9738 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9739 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9742 # compilation failed
9743 lt_cv_dlopen_self=no
9750 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9751 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9753 if test "x$lt_cv_dlopen_self" = xyes; then
9754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9755 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9756 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9757 if test "${lt_cv_dlopen_self_static+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 if test "$cross_compiling" = yes; then :
9761 lt_cv_dlopen_self_static=cross
9763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9764 lt_status=$lt_dlunknown
9765 cat > conftest.$ac_ext <<EOF
9766 #line 9766 "configure"
9767 #include "confdefs.h"
9776 # define LT_DLGLOBAL RTLD_GLOBAL
9779 # define LT_DLGLOBAL DL_GLOBAL
9781 # define LT_DLGLOBAL 0
9785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9786 find out it does not work in some platform. */
9787 #ifndef LT_DLLAZY_OR_NOW
9789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9792 # define LT_DLLAZY_OR_NOW DL_LAZY
9795 # define LT_DLLAZY_OR_NOW RTLD_NOW
9798 # define LT_DLLAZY_OR_NOW DL_NOW
9800 # define LT_DLLAZY_OR_NOW 0
9808 extern "C" void exit (int);
9811 void fnord() { int i=42;}
9814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9815 int status = $lt_dlunknown;
9819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9820 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9821 /* dlclose (self); */
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9834 (./conftest; exit; ) >&5 2>/dev/null
9837 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9838 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9839 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9842 # compilation failed
9843 lt_cv_dlopen_self_static=no
9850 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9851 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9854 CPPFLAGS="$save_CPPFLAGS"
9855 LDFLAGS="$save_LDFLAGS"
9860 case $lt_cv_dlopen_self in
9861 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9862 *) enable_dlopen_self=unknown ;;
9865 case $lt_cv_dlopen_self_static in
9866 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9867 *) enable_dlopen_self_static=unknown ;;
9872 # Report which library types will actually be built
9873 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9874 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9875 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9876 echo "${ECHO_T}$can_build_shared" >&6; }
9878 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9879 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9880 test "$can_build_shared" = "no" && enable_shared=no
9882 # On AIX, shared libraries and static libraries use the same namespace, and
9883 # are all built from PIC.
9886 test "$enable_shared" = yes && enable_static=no
9887 if test -n "$RANLIB"; then
9888 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9889 postinstall_cmds='$RANLIB $lib'
9894 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9895 test "$enable_shared" = yes && enable_static=no
9899 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9900 echo "${ECHO_T}$enable_shared" >&6; }
9902 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9903 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9904 # Make sure either enable_shared or enable_static is yes.
9905 test "$enable_shared" = yes || enable_static=yes
9906 { echo "$as_me:$LINENO: result: $enable_static" >&5
9907 echo "${ECHO_T}$enable_static" >&6; }
9909 # The else clause should only fire when bootstrapping the
9910 # libtool distribution, otherwise you forgot to ship ltmain.sh
9911 # with your package, and you will get complaints that there are
9912 # no rules to generate ltmain.sh.
9913 if test -f "$ltmain"; then
9914 # See if we are running on zsh, and set the options which allow our commands through
9915 # without removal of \ escapes.
9916 if test -n "${ZSH_VERSION+set}" ; then
9917 setopt NO_GLOB_SUBST
9919 # Now quote all the things that may contain metacharacters while being
9920 # careful not to overquote the AC_SUBSTed values. We take copies of the
9921 # variables and quote the copies for generation of the libtool script.
9922 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9924 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9925 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9926 deplibs_check_method reload_flag reload_cmds need_locks \
9927 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9928 lt_cv_sys_global_symbol_to_c_name_address \
9929 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9930 old_postinstall_cmds old_postuninstall_cmds \
9934 lt_prog_compiler_wl \
9935 lt_prog_compiler_pic \
9936 lt_prog_compiler_static \
9937 lt_prog_compiler_no_builtin_flag \
9938 export_dynamic_flag_spec \
9939 thread_safe_flag_spec \
9940 whole_archive_flag_spec \
9941 enable_shared_with_static_runtimes \
9943 old_archive_from_new_cmds \
9948 compiler_lib_search_path \
9950 archive_expsym_cmds \
9952 postuninstall_cmds \
9953 old_archive_from_expsyms_cmds \
9954 allow_undefined_flag \
9956 export_symbols_cmds \
9957 hardcode_libdir_flag_spec \
9958 hardcode_libdir_flag_spec_ld \
9959 hardcode_libdir_separator \
9960 hardcode_automatic \
9962 module_expsym_cmds \
9963 lt_cv_prog_compiler_c_o \
9968 old_archive_cmds | \
9969 old_archive_from_new_cmds | \
9971 archive_expsym_cmds | \
9973 module_expsym_cmds | \
9974 old_archive_from_expsyms_cmds | \
9975 export_symbols_cmds | \
9976 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9977 postinstall_cmds | postuninstall_cmds | \
9978 old_postinstall_cmds | old_postuninstall_cmds | \
9979 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9980 # Double-quote double-evaled strings.
9981 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9984 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9990 *'\$0 --fallback-echo"')
9991 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9996 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9998 { echo "$as_me:$LINENO: creating $ofile" >&5
9999 echo "$as_me: creating $ofile" >&6;}
10001 cat <<__EOF__ >> "$cfgfile"
10004 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10005 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10006 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10009 # Free Software Foundation, Inc.
10011 # This file is part of GNU Libtool:
10012 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10014 # This program is free software; you can redistribute it and/or modify
10015 # it under the terms of the GNU General Public License as published by
10016 # the Free Software Foundation; either version 2 of the License, or
10017 # (at your option) any later version.
10019 # This program is distributed in the hope that it will be useful, but
10020 # WITHOUT ANY WARRANTY; without even the implied warranty of
10021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10022 # General Public License for more details.
10024 # You should have received a copy of the GNU General Public License
10025 # along with this program; if not, write to the Free Software
10026 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10028 # As a special exception to the GNU General Public License, if you
10029 # distribute this file as part of a program that contains a
10030 # configuration script generated by Autoconf, you may include it under
10031 # the same distribution terms that you use for the rest of that program.
10033 # A sed program that does not truncate output.
10036 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10037 Xsed="$SED -e 1s/^X//"
10039 # The HP-UX ksh and POSIX shell print the target directory to stdout
10040 # if CDPATH is set.
10041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10043 # The names of the tagged configurations supported by this script.
10046 # ### BEGIN LIBTOOL CONFIG
10048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10050 # Shell to use when invoking shell scripts.
10053 # Whether or not to build shared libraries.
10054 build_libtool_libs=$enable_shared
10056 # Whether or not to build static libraries.
10057 build_old_libs=$enable_static
10059 # Whether or not to add -lc for building shared libraries.
10060 build_libtool_need_lc=$archive_cmds_need_lc
10062 # Whether or not to disallow shared libs when runtime libs are static
10063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10065 # Whether or not to optimize for fast installation.
10066 fast_install=$enable_fast_install
10069 host_alias=$host_alias
10073 # The build system.
10074 build_alias=$build_alias
10078 # An echo program that does not interpret backslashes.
10083 AR_FLAGS=$lt_AR_FLAGS
10088 # LTCC compiler flags.
10089 LTCFLAGS=$lt_LTCFLAGS
10091 # A language-specific compiler.
10094 # Is the compiler the GNU C compiler?
10100 # The linker used to build libraries.
10103 # Whether we need hard or soft links.
10106 # A BSD-compatible nm program.
10109 # A symbol stripping program
10112 # Used to examine libraries when file_magic_cmd begins "file"
10113 MAGIC_CMD=$MAGIC_CMD
10115 # Used on cygwin: DLL creation program.
10118 # Used on cygwin: object dumper.
10121 # Used on cygwin: assembler.
10124 # The name of the directory that contains temporary libtool files.
10127 # How to create reloadable object files.
10128 reload_flag=$lt_reload_flag
10129 reload_cmds=$lt_reload_cmds
10131 # How to pass a linker flag through the compiler.
10132 wl=$lt_lt_prog_compiler_wl
10134 # Object file suffix (normally "o").
10135 objext="$ac_objext"
10137 # Old archive suffix (normally "a").
10140 # Shared library suffix (normally ".so").
10141 shrext_cmds='$shrext_cmds'
10143 # Executable file suffix (normally "").
10146 # Additional compiler flags for building library objects.
10147 pic_flag=$lt_lt_prog_compiler_pic
10150 # What is the maximum length of a command?
10151 max_cmd_len=$lt_cv_sys_max_cmd_len
10153 # Does compiler simultaneously support -c and -o options?
10154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10156 # Must we lock files when doing compilation?
10157 need_locks=$lt_need_locks
10159 # Do we need the lib prefix for modules?
10160 need_lib_prefix=$need_lib_prefix
10162 # Do we need a version for libraries?
10163 need_version=$need_version
10165 # Whether dlopen is supported.
10166 dlopen_support=$enable_dlopen
10168 # Whether dlopen of programs is supported.
10169 dlopen_self=$enable_dlopen_self
10171 # Whether dlopen of statically linked programs is supported.
10172 dlopen_self_static=$enable_dlopen_self_static
10174 # Compiler flag to prevent dynamic linking.
10175 link_static_flag=$lt_lt_prog_compiler_static
10177 # Compiler flag to turn off builtin functions.
10178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10180 # Compiler flag to allow reflexive dlopens.
10181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10183 # Compiler flag to generate shared objects directly from archives.
10184 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10186 # Compiler flag to generate thread-safe objects.
10187 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10189 # Library versioning type.
10190 version_type=$version_type
10192 # Format of library name prefix.
10193 libname_spec=$lt_libname_spec
10195 # List of archive names. First name is the real one, the rest are links.
10196 # The last name is the one that the linker finds with -lNAME.
10197 library_names_spec=$lt_library_names_spec
10199 # The coded name of the library, if different from the real name.
10200 soname_spec=$lt_soname_spec
10202 # Commands used to build and install an old-style archive.
10204 old_archive_cmds=$lt_old_archive_cmds
10205 old_postinstall_cmds=$lt_old_postinstall_cmds
10206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10208 # Create an old-style archive from a shared archive.
10209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10211 # Create a temporary old-style archive to link instead of a shared archive.
10212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10214 # Commands used to build and install a shared archive.
10215 archive_cmds=$lt_archive_cmds
10216 archive_expsym_cmds=$lt_archive_expsym_cmds
10217 postinstall_cmds=$lt_postinstall_cmds
10218 postuninstall_cmds=$lt_postuninstall_cmds
10220 # Commands used to build a loadable module (assumed same as above if empty)
10221 module_cmds=$lt_module_cmds
10222 module_expsym_cmds=$lt_module_expsym_cmds
10224 # Commands to strip libraries.
10225 old_striplib=$lt_old_striplib
10226 striplib=$lt_striplib
10228 # Dependencies to place before the objects being linked to create a
10230 predep_objects=$lt_predep_objects
10232 # Dependencies to place after the objects being linked to create a
10234 postdep_objects=$lt_postdep_objects
10236 # Dependencies to place before the objects being linked to create a
10238 predeps=$lt_predeps
10240 # Dependencies to place after the objects being linked to create a
10242 postdeps=$lt_postdeps
10244 # The library search path used internally by the compiler when linking
10245 # a shared library.
10246 compiler_lib_search_path=$lt_compiler_lib_search_path
10248 # Method to check whether dependent libraries are shared objects.
10249 deplibs_check_method=$lt_deplibs_check_method
10251 # Command to use when deplibs_check_method == file_magic.
10252 file_magic_cmd=$lt_file_magic_cmd
10254 # Flag that allows shared libraries with undefined symbols to be built.
10255 allow_undefined_flag=$lt_allow_undefined_flag
10257 # Flag that forces no undefined symbols.
10258 no_undefined_flag=$lt_no_undefined_flag
10260 # Commands used to finish a libtool library installation in a directory.
10261 finish_cmds=$lt_finish_cmds
10263 # Same as above, but a single script fragment to be evaled but not shown.
10264 finish_eval=$lt_finish_eval
10266 # Take the output of nm and produce a listing of raw symbols and C names.
10267 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10269 # Transform the output of nm in a proper C declaration
10270 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10272 # Transform the output of nm in a C name address pair
10273 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10275 # This is the shared library runtime path variable.
10276 runpath_var=$runpath_var
10278 # This is the shared library path variable.
10279 shlibpath_var=$shlibpath_var
10281 # Is shlibpath searched before the hard-coded library search path?
10282 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10284 # How to hardcode a shared library path into an executable.
10285 hardcode_action=$hardcode_action
10287 # Whether we should hardcode library paths into libraries.
10288 hardcode_into_libs=$hardcode_into_libs
10290 # Flag to hardcode \$libdir into a binary during linking.
10291 # This must work even if \$libdir does not exist.
10292 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10294 # If ld is used when linking, flag to hardcode \$libdir into
10295 # a binary during linking. This must work even if \$libdir does
10297 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10299 # Whether we need a single -rpath flag with a separated argument.
10300 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10302 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10303 # resulting binary.
10304 hardcode_direct=$hardcode_direct
10306 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10307 # resulting binary.
10308 hardcode_minus_L=$hardcode_minus_L
10310 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10311 # the resulting binary.
10312 hardcode_shlibpath_var=$hardcode_shlibpath_var
10314 # Set to yes if building a shared library automatically hardcodes DIR into the library
10315 # and all subsequent libraries and executables linked against it.
10316 hardcode_automatic=$hardcode_automatic
10318 # Variables whose values should be saved in libtool wrapper scripts and
10319 # restored at relink time.
10320 variables_saved_for_relink="$variables_saved_for_relink"
10322 # Whether libtool must link a program against all its dependency libraries.
10323 link_all_deplibs=$link_all_deplibs
10325 # Compile-time system search path for libraries
10326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10328 # Run-time system search path for libraries
10329 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10331 # Fix the shell variable \$srcfile for the compiler.
10332 fix_srcfile_path="$fix_srcfile_path"
10334 # Set to yes if exported symbols are required.
10335 always_export_symbols=$always_export_symbols
10337 # The commands to list exported symbols.
10338 export_symbols_cmds=$lt_export_symbols_cmds
10340 # The commands to extract the exported symbol list from a shared archive.
10341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10343 # Symbols that should not be listed in the preloaded symbols.
10344 exclude_expsyms=$lt_exclude_expsyms
10346 # Symbols that must always be exported.
10347 include_expsyms=$lt_include_expsyms
10349 # ### END LIBTOOL CONFIG
10356 cat <<\EOF >> "$cfgfile"
10358 # AIX sometimes has problems with the GCC collect2 program. For some
10359 # reason, if we set the COLLECT_NAMES environment variable, the problems
10360 # vanish in a puff of smoke.
10361 if test "X${COLLECT_NAMES+set}" != Xset; then
10363 export COLLECT_NAMES
10369 # We use sed instead of cat because bash on DJGPP gets confused if
10370 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10371 # text mode, it properly converts lines to CR/LF. This bash problem
10372 # is reportedly fixed, but why not run on old versions too?
10373 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10375 mv -f "$cfgfile" "$ofile" || \
10376 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10380 # If there is no Makefile yet, we rely on a make rule to execute
10381 # `config.status --recheck' to rerun these tests and create the
10382 # libtool script then.
10383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10384 if test -f "$ltmain_in"; then
10385 test -f Makefile && make "$ltmain"
10391 ac_cpp='$CPP $CPPFLAGS'
10392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399 # Check whether --with-tags was given.
10400 if test "${with_tags+set}" = set; then
10401 withval=$with_tags; tagnames="$withval"
10405 if test -f "$ltmain" && test -n "$tagnames"; then
10406 if test ! -f "${ofile}"; then
10407 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10408 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10411 if test -z "$LTCC"; then
10412 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10413 if test -z "$LTCC"; then
10414 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10415 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10418 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10421 if test -z "$LTCFLAGS"; then
10422 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10425 # Extract list of available tagged configurations in $ofile.
10426 # Note that this assumes the entire list is on one line.
10427 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10430 for tagname in $tagnames; do
10432 # Check whether tagname contains only valid characters
10433 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10435 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10436 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10437 { (exit 1); exit 1; }; }
10441 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10443 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10444 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10445 { (exit 1); exit 1; }; }
10448 # Update the list of available tags.
10449 if test -n "$tagname"; then
10450 echo appending configuration tag \"$tagname\" to $ofile
10454 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10455 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10456 (test "X$CXX" != "Xg++"))) ; then
10458 ac_cpp='$CXXCPP $CPPFLAGS'
10459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10466 archive_cmds_need_lc_CXX=no
10467 allow_undefined_flag_CXX=
10468 always_export_symbols_CXX=no
10469 archive_expsym_cmds_CXX=
10470 export_dynamic_flag_spec_CXX=
10471 hardcode_direct_CXX=no
10472 hardcode_libdir_flag_spec_CXX=
10473 hardcode_libdir_flag_spec_ld_CXX=
10474 hardcode_libdir_separator_CXX=
10475 hardcode_minus_L_CXX=no
10476 hardcode_shlibpath_var_CXX=unsupported
10477 hardcode_automatic_CXX=no
10479 module_expsym_cmds_CXX=
10480 link_all_deplibs_CXX=unknown
10481 old_archive_cmds_CXX=$old_archive_cmds
10482 no_undefined_flag_CXX=
10483 whole_archive_flag_spec_CXX=
10484 enable_shared_with_static_runtimes_CXX=no
10486 # Dependencies to place before and after the object being linked:
10487 predep_objects_CXX=
10488 postdep_objects_CXX=
10491 compiler_lib_search_path_CXX=
10493 # Source file extension for C++ test sources.
10496 # Object file extension for compiled C++ test sources.
10500 # Code to be used in simple compile tests
10501 lt_simple_compile_test_code="int some_variable = 0;\n"
10503 # Code to be used in simple link tests
10504 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10506 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10508 # If no C compiler was specified, use CC.
10511 # If no C compiler flags were specified, use CFLAGS.
10512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10514 # Allow CC to be a program name with arguments.
10518 # save warnings/boilerplate of simple test code
10519 ac_outfile=conftest.$ac_objext
10520 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10521 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10522 _lt_compiler_boilerplate=`cat conftest.err`
10525 ac_outfile=conftest.$ac_objext
10526 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10527 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10528 _lt_linker_boilerplate=`cat conftest.err`
10532 # Allow CC to be a program name with arguments.
10537 lt_save_with_gnu_ld=$with_gnu_ld
10538 lt_save_path_LD=$lt_cv_path_LD
10539 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10540 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10542 $as_unset lt_cv_prog_gnu_ld
10544 if test -n "${lt_cv_path_LDCXX+set}"; then
10545 lt_cv_path_LD=$lt_cv_path_LDCXX
10547 $as_unset lt_cv_path_LD
10549 test -z "${LDCXX+set}" || LD=$LDCXX
10553 for cc_temp in $compiler""; do
10555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10561 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10564 # We don't want -fno-exception wen compiling C++ code, so set the
10565 # no_builtin_flag separately
10566 if test "$GXX" = yes; then
10567 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10569 lt_prog_compiler_no_builtin_flag_CXX=
10572 if test "$GXX" = yes; then
10573 # Set up default GNU C++ configuration
10576 # Check whether --with-gnu-ld was given.
10577 if test "${with_gnu_ld+set}" = set; then
10578 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10584 if test "$GCC" = yes; then
10585 # Check if gcc -print-prog-name=ld gives a path.
10586 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10590 # gcc leaves a trailing carriage return which upsets mingw
10591 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10593 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10596 # Accept absolute paths.
10598 re_direlt='/[^/][^/]*/\.\./'
10599 # Canonicalize the pathname of ld
10600 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10601 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10602 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10604 test -z "$LD" && LD="$ac_prog"
10607 # If it fails, then pretend we aren't using GCC.
10611 # If it is relative, then search for the first ld in PATH.
10612 with_gnu_ld=unknown
10615 elif test "$with_gnu_ld" = yes; then
10616 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10619 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10622 if test "${lt_cv_path_LD+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 if test -z "$LD"; then
10626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10627 for ac_dir in $PATH; do
10629 test -z "$ac_dir" && ac_dir=.
10630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10631 lt_cv_path_LD="$ac_dir/$ac_prog"
10632 # Check to see if the program is GNU ld. I'd rather use --version,
10633 # but apparently some variants of GNU ld only accept -v.
10634 # Break only if it was the GNU/non-GNU ld that we prefer.
10635 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10636 *GNU* | *'with BFD'*)
10637 test "$with_gnu_ld" != no && break
10640 test "$with_gnu_ld" != yes && break
10647 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10651 LD="$lt_cv_path_LD"
10652 if test -n "$LD"; then
10653 { echo "$as_me:$LINENO: result: $LD" >&5
10654 echo "${ECHO_T}$LD" >&6; }
10656 { echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6; }
10659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10661 { (exit 1); exit 1; }; }
10662 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10668 case `$LD -v 2>&1 </dev/null` in
10669 *GNU* | *'with BFD'*)
10670 lt_cv_prog_gnu_ld=yes
10673 lt_cv_prog_gnu_ld=no
10677 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10679 with_gnu_ld=$lt_cv_prog_gnu_ld
10683 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10684 # archiving commands below assume that GNU ld is being used.
10685 if test "$with_gnu_ld" = yes; then
10686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687 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'
10689 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10690 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10692 # If archive_cmds runs LD, not CC, wlarc should be empty
10693 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10694 # investigate it a little bit more. (MM)
10697 # ancient GNU ld didn't support --whole-archive et. al.
10698 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10699 grep 'no-whole-archive' > /dev/null; then
10700 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10702 whole_archive_flag_spec_CXX=
10708 # A generic and very simple default shared library creation
10709 # command for GNU C++ for the case where it uses the native
10710 # linker, instead of GNU ld. If possible, this setting should
10711 # overridden to take advantage of the native linker features on
10712 # the platform it is being used on.
10713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10716 # Commands to make compiler produce verbose output that lists
10717 # what "hidden" libraries, object files and flags are used when
10718 # linking a shared library.
10719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10727 # PORTME: fill in a description of your system's C++ link characteristics
10728 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10729 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10733 # FIXME: insert proper C++ library support
10737 if test "$host_cpu" = ia64; then
10738 # On IA64, the linker does run time linking by default, so we don't
10739 # have to do anything special.
10740 aix_use_runtimelinking=no
10741 exp_sym_flag='-Bexport'
10744 aix_use_runtimelinking=no
10746 # Test if we are trying to use run time linking or normal
10747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10748 # need to do runtime linking.
10749 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10750 for ld_flag in $LDFLAGS; do
10753 aix_use_runtimelinking=yes
10761 exp_sym_flag='-bexport'
10762 no_entry_flag='-bnoentry'
10765 # When large executables or shared objects are built, AIX ld can
10766 # have problems creating the table of contents. If linking a library
10767 # or program results in "error TOC overflow" add -mminimal-toc to
10768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10771 archive_cmds_CXX=''
10772 hardcode_direct_CXX=yes
10773 hardcode_libdir_separator_CXX=':'
10774 link_all_deplibs_CXX=yes
10776 if test "$GXX" = yes; then
10777 case $host_os in aix4.[012]|aix4.[012].*)
10778 # We only want to do this on AIX 4.2 and lower, the check
10779 # below for broken collect2 doesn't work under 4.3+
10780 collect2name=`${CC} -print-prog-name=collect2`
10781 if test -f "$collect2name" && \
10782 strings "$collect2name" | grep resolve_lib_name >/dev/null
10784 # We have reworked collect2
10785 hardcode_direct_CXX=yes
10787 # We have old collect2
10788 hardcode_direct_CXX=unsupported
10789 # It fails to find uninstalled libraries when the uninstalled
10790 # path is not listed in the libpath. Setting hardcode_minus_L
10791 # to unsupported forces relinking
10792 hardcode_minus_L_CXX=yes
10793 hardcode_libdir_flag_spec_CXX='-L$libdir'
10794 hardcode_libdir_separator_CXX=
10798 shared_flag='-shared'
10799 if test "$aix_use_runtimelinking" = yes; then
10800 shared_flag="$shared_flag "'${wl}-G'
10804 if test "$host_cpu" = ia64; then
10805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10806 # chokes on -Wl,-G. The following line is correct:
10809 if test "$aix_use_runtimelinking" = yes; then
10810 shared_flag='${wl}-G'
10812 shared_flag='${wl}-bM:SRE'
10817 # It seems that -bexpall does not export symbols beginning with
10818 # underscore (_), so it is better to generate a list of symbols to export.
10819 always_export_symbols_CXX=yes
10820 if test "$aix_use_runtimelinking" = yes; then
10821 # Warning - without using the other runtime loading flags (-brtl),
10822 # -berok will link without error, but may produce a broken library.
10823 allow_undefined_flag_CXX='-berok'
10824 # Determine the default libpath from the value encoded in an empty executable.
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_cxx_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest$ac_exeext &&
10857 $as_test_x conftest$ac_exeext; then
10859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10861 # Check for a 64-bit object if we didn't find anything.
10862 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; }
10865 echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10872 conftest$ac_exeext conftest.$ac_ext
10873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10875 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10877 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"
10879 if test "$host_cpu" = ia64; then
10880 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10881 allow_undefined_flag_CXX="-z nodefs"
10882 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"
10884 # Determine the default libpath from the value encoded in an empty executable.
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_cxx_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10921 # Check for a 64-bit object if we didn't find anything.
10922 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; }
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10936 # Warning - without using the other run time loading flags,
10937 # -berok will link without error, but may produce a broken library.
10938 no_undefined_flag_CXX=' ${wl}-bernotok'
10939 allow_undefined_flag_CXX=' ${wl}-berok'
10940 # Exported symbols can be pulled into shared objects from archives
10941 whole_archive_flag_spec_CXX='$convenience'
10942 archive_cmds_need_lc_CXX=yes
10943 # This is similar to how AIX traditionally builds its shared libraries.
10944 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'
10950 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10951 allow_undefined_flag_CXX=unsupported
10952 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10953 # support --undefined. This deserves some investigation. FIXME
10954 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10961 case $cc_basename in
10963 # FIXME: insert proper C++ library support
10969 cygwin* | mingw* | pw32*)
10970 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10971 # as there is no search path for DLLs.
10972 hardcode_libdir_flag_spec_CXX='-L$libdir'
10973 allow_undefined_flag_CXX=unsupported
10974 always_export_symbols_CXX=no
10975 enable_shared_with_static_runtimes_CXX=yes
10977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10978 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'
10979 # If the export-symbols file already is a .def file (1st line
10980 # is EXPORTS), use it as is; otherwise, prepend...
10981 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10982 cp $export_symbols $output_objdir/$soname.def;
10984 echo EXPORTS > $output_objdir/$soname.def;
10985 cat $export_symbols >> $output_objdir/$soname.def;
10987 $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'
10992 darwin* | rhapsody*)
10994 rhapsody* | darwin1.[012])
10995 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10998 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10999 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11001 case ${MACOSX_DEPLOYMENT_TARGET} in
11003 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11006 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11012 archive_cmds_need_lc_CXX=no
11013 hardcode_direct_CXX=no
11014 hardcode_automatic_CXX=yes
11015 hardcode_shlibpath_var_CXX=unsupported
11016 whole_archive_flag_spec_CXX=''
11017 link_all_deplibs_CXX=yes
11019 if test "$GXX" = yes ; then
11020 lt_int_apple_cc_single_mod=no
11021 output_verbose_link_cmd='echo'
11022 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11023 lt_int_apple_cc_single_mod=yes
11025 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11026 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11028 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'
11030 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11032 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11033 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}'
11035 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}'
11037 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}'
11039 case $cc_basename in
11041 output_verbose_link_cmd='echo'
11042 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'
11043 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11045 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}'
11046 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}'
11056 case $cc_basename in
11058 # FIXME: insert proper C++ library support
11062 # Green Hills C++ Compiler
11063 # FIXME: insert proper C++ library support
11067 # FIXME: insert proper C++ library support
11073 # C++ shared libraries reported to be fairly broken before switch to ELF
11077 archive_cmds_need_lc_CXX=no
11079 freebsd* | kfreebsd*-gnu | dragonfly*)
11080 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11088 hardcode_libdir_separator_CXX=:
11089 export_dynamic_flag_spec_CXX='${wl}-E'
11090 hardcode_direct_CXX=yes
11091 hardcode_minus_L_CXX=yes # Not in the search PATH,
11092 # but as the default
11093 # location of the library.
11095 case $cc_basename in
11097 # FIXME: insert proper C++ library support
11101 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'
11102 # Commands to make compiler produce verbose output that lists
11103 # what "hidden" libraries, object files and flags are used when
11104 # linking a shared library.
11106 # There doesn't appear to be a way to prevent this compiler from
11107 # explicitly linking system object files so we need to strip them
11108 # from the output so that they don't get included in the library
11110 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'
11113 if test "$GXX" = yes; then
11114 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'
11116 # FIXME: insert proper C++ library support
11123 if test $with_gnu_ld = no; then
11124 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11125 hardcode_libdir_separator_CXX=:
11129 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11132 export_dynamic_flag_spec_CXX='${wl}-E'
11138 hardcode_direct_CXX=no
11139 hardcode_shlibpath_var_CXX=no
11142 hardcode_direct_CXX=yes
11143 hardcode_minus_L_CXX=yes # Not in the search PATH,
11144 # but as the default
11145 # location of the library.
11149 case $cc_basename in
11151 # FIXME: insert proper C++ library support
11157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11160 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11163 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11166 # Commands to make compiler produce verbose output that lists
11167 # what "hidden" libraries, object files and flags are used when
11168 # linking a shared library.
11170 # There doesn't appear to be a way to prevent this compiler from
11171 # explicitly linking system object files so we need to strip them
11172 # from the output so that they don't get included in the library
11174 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'
11177 if test "$GXX" = yes; then
11178 if test $with_gnu_ld = no; then
11181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11184 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11187 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'
11192 # FIXME: insert proper C++ library support
11199 hardcode_direct_CXX=no
11200 hardcode_shlibpath_var_CXX=no
11201 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11202 export_dynamic_flag_spec_CXX='${wl}-E'
11203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11204 # Instead, shared libraries are loaded at an image base (0x10000000 by
11205 # default) and relocated if they conflict, which is a slow very memory
11206 # consuming and fragmenting process. To avoid this, we pick a random,
11207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11209 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'
11210 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'
11213 case $cc_basename in
11216 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'
11218 # Archives containing C++ object files must be created using
11219 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11220 # necessary to make sure instantiated templates are included
11222 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11225 if test "$GXX" = yes; then
11226 if test "$with_gnu_ld" = no; then
11227 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'
11229 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'
11232 link_all_deplibs_CXX=yes
11235 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11236 hardcode_libdir_separator_CXX=:
11239 case $cc_basename in
11241 # Kuck and Associates, Inc. (KAI) C++ Compiler
11243 # KCC will only create a shared library if the output file
11244 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11245 # to its proper name (with version) after linking.
11246 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'
11247 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'
11248 # Commands to make compiler produce verbose output that lists
11249 # what "hidden" libraries, object files and flags are used when
11250 # linking a shared library.
11252 # There doesn't appear to be a way to prevent this compiler from
11253 # explicitly linking system object files so we need to strip them
11254 # from the output so that they don't get included in the library
11256 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'
11258 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11259 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11261 # Archives containing C++ object files must be created using
11262 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11263 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11268 # version 8.0 and above of icpc choke on multiply defined symbols
11269 # if we add $predep_objects and $postdep_objects, however 7.1 and
11270 # earlier do not add the objects themselves.
11271 case `$CC -V 2>&1` in
11273 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11274 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'
11276 *) # Version 8.0 or newer
11279 ia64*) tmp_idyn=' -i_dynamic';;
11281 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11282 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'
11285 archive_cmds_need_lc_CXX=no
11286 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11288 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11291 # Portland Group C++ compiler
11292 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11293 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'
11295 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11296 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11297 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'
11301 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11302 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'
11304 runpath_var=LD_RUN_PATH
11305 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11306 hardcode_libdir_separator_CXX=:
11308 # Commands to make compiler produce verbose output that lists
11309 # what "hidden" libraries, object files and flags are used when
11310 # linking a shared library.
11312 # There doesn't appear to be a way to prevent this compiler from
11313 # explicitly linking system object files so we need to strip them
11314 # from the output so that they don't get included in the library
11316 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'
11321 # FIXME: insert proper C++ library support
11325 # FIXME: insert proper C++ library support
11329 case $cc_basename in
11331 # FIXME: insert proper C++ library support
11335 # FIXME: insert proper C++ library support
11341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11342 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11344 hardcode_libdir_flag_spec_CXX='-R$libdir'
11345 hardcode_direct_CXX=yes
11346 hardcode_shlibpath_var_CXX=no
11348 # Workaround some broken pre-1.5 toolchains
11349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11352 # C++ shared libraries are fairly broken
11356 hardcode_direct_CXX=yes
11357 hardcode_shlibpath_var_CXX=no
11358 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11361 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11362 export_dynamic_flag_spec_CXX='${wl}-E'
11363 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11365 output_verbose_link_cmd='echo'
11368 case $cc_basename in
11370 # Kuck and Associates, Inc. (KAI) C++ Compiler
11372 # KCC will only create a shared library if the output file
11373 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11374 # to its proper name (with version) after linking.
11375 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'
11377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11378 hardcode_libdir_separator_CXX=:
11380 # Archives containing C++ object files must be created using
11381 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11382 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11386 # Rational C++ 2.4.1
11387 # FIXME: insert proper C++ library support
11391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11392 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'
11394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11395 hardcode_libdir_separator_CXX=:
11397 # Commands to make compiler produce verbose output that lists
11398 # what "hidden" libraries, object files and flags are used when
11399 # linking a shared library.
11401 # There doesn't appear to be a way to prevent this compiler from
11402 # explicitly linking system object files so we need to strip them
11403 # from the output so that they don't get included in the library
11405 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'
11408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11410 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'
11412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11413 hardcode_libdir_separator_CXX=:
11415 # Commands to make compiler produce verbose output that lists
11416 # what "hidden" libraries, object files and flags are used when
11417 # linking a shared library.
11418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11421 # FIXME: insert proper C++ library support
11428 case $cc_basename in
11430 # Kuck and Associates, Inc. (KAI) C++ Compiler
11432 # KCC will only create a shared library if the output file
11433 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11434 # to its proper name (with version) after linking.
11435 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'
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438 hardcode_libdir_separator_CXX=:
11440 # Archives containing C++ object files must be created using
11441 # the KAI C++ compiler.
11442 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11445 # Rational C++ 2.4.1
11446 # FIXME: insert proper C++ library support
11450 allow_undefined_flag_CXX=' -expect_unresolved \*'
11451 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'
11452 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11453 echo "-hidden">> $lib.exp~
11454 $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~
11457 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11458 hardcode_libdir_separator_CXX=:
11460 # Commands to make compiler produce verbose output that lists
11461 # what "hidden" libraries, object files and flags are used when
11462 # linking a shared library.
11464 # There doesn't appear to be a way to prevent this compiler from
11465 # explicitly linking system object files so we need to strip them
11466 # from the output so that they don't get included in the library
11468 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'
11471 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11472 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11473 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'
11475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11476 hardcode_libdir_separator_CXX=:
11478 # Commands to make compiler produce verbose output that lists
11479 # what "hidden" libraries, object files and flags are used when
11480 # linking a shared library.
11481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11484 # FIXME: insert proper C++ library support
11491 # FIXME: insert proper C++ library support
11495 case $cc_basename in
11498 # FIXME: insert proper C++ library support
11503 # FIXME: insert proper C++ library support
11507 # FIXME: insert proper C++ library support
11513 case $cc_basename in
11515 # Sun C++ 4.2, 5.x and Centerline C++
11516 archive_cmds_need_lc_CXX=yes
11517 no_undefined_flag_CXX=' -zdefs'
11518 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11520 $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'
11522 hardcode_libdir_flag_spec_CXX='-R$libdir'
11523 hardcode_shlibpath_var_CXX=no
11525 solaris2.[0-5] | solaris2.[0-5].*) ;;
11527 # The C++ compiler is used as linker so we must use $wl
11528 # flag to pass the commands to the underlying system
11529 # linker. We must also pass each convience library through
11530 # to the system linker between allextract/defaultextract.
11531 # The C++ compiler will combine linker options so we
11532 # cannot just pass the convience library names through
11534 # Supported since Solaris 2.6 (maybe 2.5.1?)
11535 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'
11538 link_all_deplibs_CXX=yes
11540 output_verbose_link_cmd='echo'
11542 # Archives containing C++ object files must be created using
11543 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11544 # necessary to make sure instantiated templates are included
11546 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11549 # Green Hills C++ Compiler
11550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11552 # The C++ compiler must be used to create the archive.
11553 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11556 # GNU C++ compiler with Solaris linker
11557 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11558 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11559 if $CC --version | grep -v '^2\.7' > /dev/null; then
11560 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11561 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11562 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11564 # Commands to make compiler produce verbose output that lists
11565 # what "hidden" libraries, object files and flags are used when
11566 # linking a shared library.
11567 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11569 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11571 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11572 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11573 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11575 # Commands to make compiler produce verbose output that lists
11576 # what "hidden" libraries, object files and flags are used when
11577 # linking a shared library.
11578 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11581 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11587 no_undefined_flag_CXX='${wl}-z,text'
11588 archive_cmds_need_lc_CXX=no
11589 hardcode_shlibpath_var_CXX=no
11590 runpath_var='LD_RUN_PATH'
11592 case $cc_basename in
11594 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11595 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11603 sysv5* | sco3.2v5* | sco5v6*)
11604 # Note: We can NOT use -z defs as we might desire, because we do not
11605 # link with -lc, and that would cause any symbols used from libc to
11606 # always be unresolved, which means just about no library would
11607 # ever link correctly. If we're not using GNU ld we use -z text
11608 # though, which does catch some bad symbols but isn't as heavy-handed
11610 # For security reasons, it is highly recommended that you always
11611 # use absolute paths for naming shared libraries, and exclude the
11612 # DT_RUNPATH tag from executables and libraries. But doing so
11613 # requires that you compile everything twice, which is a pain.
11614 # So that behaviour is only enabled if SCOABSPATH is set to a
11615 # non-empty value in the environment. Most likely only useful for
11616 # creating official distributions of packages.
11617 # This is a hack until libtool officially supports absolute path
11618 # names for shared libraries.
11619 no_undefined_flag_CXX='${wl}-z,text'
11620 allow_undefined_flag_CXX='${wl}-z,nodefs'
11621 archive_cmds_need_lc_CXX=no
11622 hardcode_shlibpath_var_CXX=no
11623 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11624 hardcode_libdir_separator_CXX=':'
11625 link_all_deplibs_CXX=yes
11626 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11627 runpath_var='LD_RUN_PATH'
11629 case $cc_basename in
11631 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11632 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11636 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11641 case $cc_basename in
11643 # NonStop-UX NCC 3.20
11644 # FIXME: insert proper C++ library support
11648 # FIXME: insert proper C++ library support
11654 # FIXME: insert proper C++ library support
11658 # FIXME: insert proper C++ library support
11662 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11663 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11664 test "$ld_shlibs_CXX" = no && can_build_shared=no
11670 ## There is no encapsulation within the following macros, do not change
11671 ## the running order or otherwise move them around unless you know exactly
11672 ## what you are doing...
11674 cat > conftest.$ac_ext <<EOF
11678 Foo (void) { a = 0; }
11684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; then
11689 # Parse the compiler output and extract the necessary
11690 # objects, libraries and library flags.
11692 # Sentinel used to keep track of whether or not we are before
11693 # the conftest object file.
11694 pre_test_object_deps_done=no
11696 # The `*' in the case matches for architectures that use `case' in
11697 # $output_verbose_cmd can trigger glob expansion during the loop
11698 # eval without this substitution.
11699 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11701 for p in `eval $output_verbose_link_cmd`; do
11705 # Some compilers place space between "-{L,R}" and the path.
11706 # Remove the space.
11707 if test $p = "-L" \
11708 || test $p = "-R"; then
11715 if test "$pre_test_object_deps_done" = no; then
11718 # Internal compiler library paths should come after those
11719 # provided the user. The postdeps already come after the
11720 # user supplied libs so there is no need to process them.
11721 if test -z "$compiler_lib_search_path_CXX"; then
11722 compiler_lib_search_path_CXX="${prev}${p}"
11724 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11727 # The "-l" case would never come before the object being
11728 # linked, so don't bother handling this case.
11731 if test -z "$postdeps_CXX"; then
11732 postdeps_CXX="${prev}${p}"
11734 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11740 # This assumes that the test object file only shows up
11741 # once in the compiler output.
11742 if test "$p" = "conftest.$objext"; then
11743 pre_test_object_deps_done=yes
11747 if test "$pre_test_object_deps_done" = no; then
11748 if test -z "$predep_objects_CXX"; then
11749 predep_objects_CXX="$p"
11751 predep_objects_CXX="$predep_objects_CXX $p"
11754 if test -z "$postdep_objects_CXX"; then
11755 postdep_objects_CXX="$p"
11757 postdep_objects_CXX="$postdep_objects_CXX $p"
11762 *) ;; # Ignore the rest.
11770 echo "libtool.m4: error: problem compiling CXX test program"
11773 $rm -f confest.$objext
11775 # PORTME: override above test on systems where it is broken
11778 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11779 # hack all around it, let's just trust "g++" to DTRT.
11780 predep_objects_CXX=
11781 postdep_objects_CXX=
11786 case $cc_basename in
11788 # Adding this requires a known-good setup of shared libraries for
11789 # Sun compiler versions before 5.6, else PIC objects from an old
11790 # archive will be linked into the output, leading to subtle bugs.
11791 postdeps_CXX='-lCstd -lCrun'
11798 case " $postdeps_CXX " in
11799 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11802 lt_prog_compiler_wl_CXX=
11803 lt_prog_compiler_pic_CXX=
11804 lt_prog_compiler_static_CXX=
11806 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11809 # C++ specific cases for pic, static, wl, etc.
11810 if test "$GXX" = yes; then
11811 lt_prog_compiler_wl_CXX='-Wl,'
11812 lt_prog_compiler_static_CXX='-static'
11816 # All AIX code is PIC.
11817 if test "$host_cpu" = ia64; then
11818 # AIX 5 now supports IA64 processor
11819 lt_prog_compiler_static_CXX='-Bstatic'
11823 # FIXME: we need at least 68020 code to build shared libraries, but
11824 # adding the `-m68020' flag to GCC prevents building anything better,
11826 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11828 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11829 # PIC is the default for these OSes.
11831 mingw* | os2* | pw32*)
11832 # This hack is so that the source file can tell whether it is being
11833 # built for inclusion in a dll (and should export symbols for example).
11834 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11836 darwin* | rhapsody*)
11837 # PIC is the default on this platform
11838 # Common symbols not allowed in MH_DYLIB files
11839 lt_prog_compiler_pic_CXX='-fno-common'
11842 # DJGPP does not support shared libraries at all
11843 lt_prog_compiler_pic_CXX=
11846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11847 # Instead, we relocate shared libraries at runtime.
11850 if test -d /usr/nec; then
11851 lt_prog_compiler_pic_CXX=-Kconform_pic
11855 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11856 # not for PA HP-UX.
11861 lt_prog_compiler_pic_CXX='-fPIC'
11866 lt_prog_compiler_pic_CXX='-fPIC'
11872 # All AIX code is PIC.
11873 if test "$host_cpu" = ia64; then
11874 # AIX 5 now supports IA64 processor
11875 lt_prog_compiler_static_CXX='-Bstatic'
11877 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11881 case $cc_basename in
11883 # Green Hills C++ Compiler
11884 # _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"
11889 # PIC is the default on this platform
11890 # Common symbols not allowed in MH_DYLIB files
11891 case $cc_basename in
11893 lt_prog_compiler_pic_CXX='-qnocommon'
11894 lt_prog_compiler_wl_CXX='-Wl,'
11899 case $cc_basename in
11901 lt_prog_compiler_pic_CXX='-KPIC'
11904 # Green Hills C++ Compiler
11905 lt_prog_compiler_pic_CXX='-pic'
11911 freebsd* | kfreebsd*-gnu | dragonfly*)
11912 # FreeBSD uses GNU C++
11914 hpux9* | hpux10* | hpux11*)
11915 case $cc_basename in
11917 lt_prog_compiler_wl_CXX='-Wl,'
11918 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11919 if test "$host_cpu" != ia64; then
11920 lt_prog_compiler_pic_CXX='+Z'
11924 lt_prog_compiler_wl_CXX='-Wl,'
11925 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11931 lt_prog_compiler_pic_CXX='+Z'
11940 # This is c89, which is MS Visual C++ (no shared libs)
11941 # Anyone wants to do a port?
11943 irix5* | irix6* | nonstopux*)
11944 case $cc_basename in
11946 lt_prog_compiler_wl_CXX='-Wl,'
11947 lt_prog_compiler_static_CXX='-non_shared'
11948 # CC pic flag -KPIC is the default.
11955 case $cc_basename in
11958 lt_prog_compiler_wl_CXX='--backend -Wl,'
11959 lt_prog_compiler_pic_CXX='-fPIC'
11963 lt_prog_compiler_wl_CXX='-Wl,'
11964 lt_prog_compiler_pic_CXX='-KPIC'
11965 lt_prog_compiler_static_CXX='-static'
11968 # Portland Group C++ compiler.
11969 lt_prog_compiler_wl_CXX='-Wl,'
11970 lt_prog_compiler_pic_CXX='-fpic'
11971 lt_prog_compiler_static_CXX='-Bstatic'
11975 # Make sure the PIC flag is empty. It appears that all Alpha
11976 # Linux and Compaq Tru64 Unix objects are PIC.
11977 lt_prog_compiler_pic_CXX=
11978 lt_prog_compiler_static_CXX='-non_shared'
11989 case $cc_basename in
11991 lt_prog_compiler_pic_CXX='-W c,exportall'
11999 osf3* | osf4* | osf5*)
12000 case $cc_basename in
12002 lt_prog_compiler_wl_CXX='--backend -Wl,'
12005 # Rational C++ 2.4.1
12006 lt_prog_compiler_pic_CXX='-pic'
12009 # Digital/Compaq C++
12010 lt_prog_compiler_wl_CXX='-Wl,'
12011 # Make sure the PIC flag is empty. It appears that all Alpha
12012 # Linux and Compaq Tru64 Unix objects are PIC.
12013 lt_prog_compiler_pic_CXX=
12014 lt_prog_compiler_static_CXX='-non_shared'
12023 case $cc_basename in
12025 # Sun C++ 4.2, 5.x and Centerline C++
12026 lt_prog_compiler_pic_CXX='-KPIC'
12027 lt_prog_compiler_static_CXX='-Bstatic'
12028 lt_prog_compiler_wl_CXX='-Qoption ld '
12031 # Green Hills C++ Compiler
12032 lt_prog_compiler_pic_CXX='-PIC'
12039 case $cc_basename in
12042 lt_prog_compiler_pic_CXX='-pic'
12043 lt_prog_compiler_static_CXX='-Bstatic'
12047 lt_prog_compiler_pic_CXX='-pic'
12054 case $cc_basename in
12056 # NonStop-UX NCC 3.20
12057 lt_prog_compiler_pic_CXX='-KPIC'
12063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12064 case $cc_basename in
12066 lt_prog_compiler_wl_CXX='-Wl,'
12067 lt_prog_compiler_pic_CXX='-KPIC'
12068 lt_prog_compiler_static_CXX='-Bstatic'
12075 lt_prog_compiler_can_build_shared_CXX=no
12080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12081 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12084 # Check to make sure the PIC flag actually works.
12086 if test -n "$lt_prog_compiler_pic_CXX"; then
12088 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12090 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 lt_prog_compiler_pic_works_CXX=no
12094 ac_outfile=conftest.$ac_objext
12095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12096 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12097 # Insert the option either (1) after the last *FLAGS variable, or
12098 # (2) before a word containing "conftest.", or (3) at the end.
12099 # Note that $ac_compile itself does not contain backslashes and begins
12100 # with a dollar sign (not a hyphen), so the echo should work correctly.
12101 # The option is referenced via a variable to avoid confusing sed.
12102 lt_compile=`echo "$ac_compile" | $SED \
12103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12105 -e 's:$: $lt_compiler_flag:'`
12106 (eval echo "\"\$as_me:12106: $lt_compile\"" >&5)
12107 (eval "$lt_compile" 2>conftest.err)
12109 cat conftest.err >&5
12110 echo "$as_me:12110: \$? = $ac_status" >&5
12111 if (exit $ac_status) && test -s "$ac_outfile"; then
12112 # The compiler can only warn and ignore the option if not recognized
12113 # So say no if there are warnings other than the usual output.
12114 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12117 lt_prog_compiler_pic_works_CXX=yes
12123 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12124 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12126 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12127 case $lt_prog_compiler_pic_CXX in
12129 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12132 lt_prog_compiler_pic_CXX=
12133 lt_prog_compiler_can_build_shared_CXX=no
12138 # For platforms which do not support PIC, -DPIC is meaningless:
12140 lt_prog_compiler_pic_CXX=
12143 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12148 # Check to make sure the static flag actually works.
12150 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12151 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12152 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12153 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12156 lt_prog_compiler_static_works_CXX=no
12157 save_LDFLAGS="$LDFLAGS"
12158 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12159 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12161 # The linker can only warn and ignore the option if not recognized
12162 # So say no if there are warnings
12163 if test -s conftest.err; then
12164 # Append any errors to the config.log.
12165 cat conftest.err 1>&5
12166 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12168 if diff conftest.exp conftest.er2 >/dev/null; then
12169 lt_prog_compiler_static_works_CXX=yes
12172 lt_prog_compiler_static_works_CXX=yes
12176 LDFLAGS="$save_LDFLAGS"
12179 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12180 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12182 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12185 lt_prog_compiler_static_CXX=
12189 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12190 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12191 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 lt_cv_prog_compiler_c_o_CXX=no
12195 $rm -r conftest 2>/dev/null
12199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12201 lt_compiler_flag="-o out/conftest2.$ac_objext"
12202 # Insert the option either (1) after the last *FLAGS variable, or
12203 # (2) before a word containing "conftest.", or (3) at the end.
12204 # Note that $ac_compile itself does not contain backslashes and begins
12205 # with a dollar sign (not a hyphen), so the echo should work correctly.
12206 lt_compile=`echo "$ac_compile" | $SED \
12207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12209 -e 's:$: $lt_compiler_flag:'`
12210 (eval echo "\"\$as_me:12210: $lt_compile\"" >&5)
12211 (eval "$lt_compile" 2>out/conftest.err)
12213 cat out/conftest.err >&5
12214 echo "$as_me:12214: \$? = $ac_status" >&5
12215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12217 # The compiler can only warn and ignore the option if not recognized
12218 # So say no if there are warnings
12219 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12222 lt_cv_prog_compiler_c_o_CXX=yes
12227 # SGI C++ compiler will create directory out/ii_files/ for
12228 # template instantiation
12229 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12230 $rm out/* && rmdir out
12236 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12237 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12240 hard_links="nottested"
12241 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12242 # do not overwrite the value of need_locks provided by the user
12243 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12244 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12249 ln conftest.a conftest.b 2>&5 || hard_links=no
12250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12251 { echo "$as_me:$LINENO: result: $hard_links" >&5
12252 echo "${ECHO_T}$hard_links" >&6; }
12253 if test "$hard_links" = no; then
12254 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12255 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12268 # If we're using GNU nm, then we don't want the "-C" option.
12269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12270 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12271 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'
12273 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'
12277 export_symbols_cmds_CXX="$ltdll_cmds"
12280 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'
12283 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12287 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12288 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12289 test "$ld_shlibs_CXX" = no && can_build_shared=no
12292 # Do we need to explicitly link libc?
12294 case "x$archive_cmds_need_lc_CXX" in
12296 # Assume -lc should be added
12297 archive_cmds_need_lc_CXX=yes
12299 if test "$enable_shared" = yes && test "$GCC" = yes; then
12300 case $archive_cmds_CXX in
12302 # FIXME: we may have to deal with multi-command sequences.
12305 # Test whether the compiler implicitly links with -lc since on some
12306 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12307 # to ld, don't add -lc before -lgcc.
12308 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12309 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } 2>conftest.err; then
12320 libobjs=conftest.$ac_objext
12322 wl=$lt_prog_compiler_wl_CXX
12323 pic_flag=$lt_prog_compiler_pic_CXX
12329 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12330 allow_undefined_flag_CXX=
12331 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12332 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }
12337 archive_cmds_need_lc_CXX=no
12339 archive_cmds_need_lc_CXX=yes
12341 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12343 cat conftest.err 1>&5
12346 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12347 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12354 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12355 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12356 library_names_spec=
12357 libname_spec='lib$name'
12361 postuninstall_cmds=
12365 shlibpath_overrides_runpath=unknown
12367 dynamic_linker="$host_os ld.so"
12368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12369 if test "$GCC" = yes; then
12370 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12371 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12372 # if the path contains ";" then we assume it to be the separator
12373 # otherwise default to the standard path separator (i.e. ":") - it is
12374 # assumed that no part of a normal pathname contains ";" but that should
12375 # okay in the real world where ";" in dirpaths is itself problematic.
12376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12383 need_lib_prefix=unknown
12384 hardcode_into_libs=no
12386 # when you set need_version to no, make sure it does not cause -set_version
12387 # flags to be left without arguments
12388 need_version=unknown
12393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12394 shlibpath_var=LIBPATH
12396 # AIX 3 has no versioning support, so we append a major version to the name.
12397 soname_spec='${libname}${release}${shared_ext}$major'
12404 hardcode_into_libs=yes
12405 if test "$host_cpu" = ia64; then
12406 # AIX 5 supports IA64
12407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12408 shlibpath_var=LD_LIBRARY_PATH
12410 # With GCC up to 2.95.x, collect2 would create an import file
12411 # for dependence libraries. The import file would start with
12412 # the line `#! .'. This would cause the generated library to
12413 # depend on `.', always an invalid library. This was fixed in
12414 # development snapshots of GCC prior to 3.0.
12416 aix4 | aix4.[01] | aix4.[01].*)
12417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12419 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12422 can_build_shared=no
12426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12427 # soname into executable. Probably we can add versioning support to
12428 # collect2, so additional links can be useful in future.
12429 if test "$aix_use_runtimelinking" = yes; then
12430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12431 # instead of lib<name>.a to let people know that these are not
12432 # typical AIX shared libraries.
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12435 # We preserve .a as extension for shared libraries through AIX4.2
12436 # and later when we are not doing run time linking.
12437 library_names_spec='${libname}${release}.a $libname.a'
12438 soname_spec='${libname}${release}${shared_ext}$major'
12440 shlibpath_var=LIBPATH
12445 library_names_spec='$libname.ixlibrary $libname.a'
12446 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12447 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'
12451 library_names_spec='${libname}${shared_ext}'
12452 dynamic_linker="$host_os ld.so"
12453 shlibpath_var=LIBRARY_PATH
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12465 # the default ld.so.conf also contains /usr/contrib/lib and
12466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12467 # libtool to hard-code these into programs
12470 cygwin* | mingw* | pw32*)
12471 version_type=windows
12476 case $GCC,$host_os in
12477 yes,cygwin* | yes,mingw* | yes,pw32*)
12478 library_names_spec='$libname.dll.a'
12479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12480 postinstall_cmds='base_file=`basename \${file}`~
12481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12482 dldir=$destdir/`dirname \$dlpath`~
12483 test -d \$dldir || mkdir -p \$dldir~
12484 $install_prog $dir/$dlname \$dldir/$dlname~
12485 chmod a+x \$dldir/$dlname'
12486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12487 dlpath=$dir/\$dldll~
12489 shlibpath_overrides_runpath=yes
12493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12495 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12498 # MinGW DLLs use traditional 'lib' prefix
12499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12500 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12501 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12502 # It is most probably a Windows format PATH printed by
12503 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12504 # path with ; separators, and with drive letters. We can handle the
12505 # drive letters (cygwin fileutils understands them), so leave them,
12506 # especially as we might pass files found there to a mingw objdump,
12507 # which wouldn't understand a cygwinified path. Ahh.
12508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12514 # pw32 DLLs use 'pw' prefix rather than 'lib'
12515 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12521 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12524 dynamic_linker='Win32 ld.exe'
12525 # FIXME: first we should search . and the directory the executable is in
12529 darwin* | rhapsody*)
12530 dynamic_linker="$host_os dyld"
12531 version_type=darwin
12534 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12535 soname_spec='${libname}${release}${major}$shared_ext'
12536 shlibpath_overrides_runpath=yes
12537 shlibpath_var=DYLD_LIBRARY_PATH
12538 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12539 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12540 if test "$GCC" = yes; then
12541 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"`
12543 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12545 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12553 soname_spec='${libname}${release}${shared_ext}$major'
12554 shlibpath_var=LD_LIBRARY_PATH
12565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12566 soname_spec='${libname}${release}${shared_ext}$major'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 shlibpath_overrides_runpath=no
12569 hardcode_into_libs=yes
12570 dynamic_linker='GNU ld.so'
12573 freebsd* | dragonfly*)
12574 # DragonFly does not have aout. When/if they implement a new
12575 # versioning mechanism, adjust this.
12576 if test -x /usr/bin/objformat; then
12577 objformat=`/usr/bin/objformat`
12580 freebsd[123]*) objformat=aout ;;
12581 *) objformat=elf ;;
12584 version_type=freebsd-$objformat
12585 case $version_type in
12587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12596 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=yes
12601 freebsd3.[01]* | freebsdelf3.[01]*)
12602 shlibpath_overrides_runpath=yes
12603 hardcode_into_libs=yes
12605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12607 shlibpath_overrides_runpath=no
12608 hardcode_into_libs=yes
12610 freebsd*) # from 4.6 on
12611 shlibpath_overrides_runpath=yes
12612 hardcode_into_libs=yes
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 hardcode_into_libs=yes
12627 hpux9* | hpux10* | hpux11*)
12628 # Give a soname corresponding to the major version so that dld.sl refuses to
12629 # link against other versions.
12636 hardcode_into_libs=yes
12637 dynamic_linker="$host_os dld.so"
12638 shlibpath_var=LD_LIBRARY_PATH
12639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12641 soname_spec='${libname}${release}${shared_ext}$major'
12642 if test "X$HPUX_IA64_MODE" = X32; then
12643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12651 hardcode_into_libs=yes
12652 dynamic_linker="$host_os dld.sl"
12653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 soname_spec='${libname}${release}${shared_ext}$major'
12657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12662 dynamic_linker="$host_os dld.sl"
12663 shlibpath_var=SHLIB_PATH
12664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12666 soname_spec='${libname}${release}${shared_ext}$major'
12669 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12670 postinstall_cmds='chmod 555 $lib'
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12678 soname_spec='${libname}${release}${shared_ext}$major'
12679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12680 shlibpath_var=LD_LIBRARY_PATH
12681 shlibpath_overrides_runpath=no
12682 hardcode_into_libs=yes
12685 irix5* | irix6* | nonstopux*)
12687 nonstopux*) version_type=nonstopux ;;
12689 if test "$lt_cv_prog_gnu_ld" = yes; then
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12700 irix5* | nonstopux*)
12701 libsuff= shlibsuff=
12704 case $LD in # libtool.m4 will add one of these switches to LD
12705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12706 libsuff= shlibsuff= libmagic=32-bit;;
12707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12708 libsuff=32 shlibsuff=N32 libmagic=N32;;
12709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12711 *) libsuff= shlibsuff= libmagic=never-match;;
12715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12716 shlibpath_overrides_runpath=no
12717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12719 hardcode_into_libs=yes
12722 # No shared lib support for Linux oldld, aout, or coff.
12723 linux*oldld* | linux*aout* | linux*coff*)
12727 # This must be Linux ELF.
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733 soname_spec='${libname}${release}${shared_ext}$major'
12734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12735 shlibpath_var=LD_LIBRARY_PATH
12736 shlibpath_overrides_runpath=no
12737 # This implies no fast_install, which is unacceptable.
12738 # Some rework will be needed to allow for fast_install
12739 # before this can be enabled.
12740 hardcode_into_libs=yes
12742 # Append ld.so.conf contents to the search path
12743 if test -f /etc/ld.so.conf; then
12744 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' ' '`
12745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12748 # We used to test for /lib/ld.so.1 and disable shared libraries on
12749 # powerpc, because MkLinux only supported shared libraries with the
12750 # GNU dynamic linker. Since this was broken with cross compilers,
12751 # most powerpc-linux boxes support dynamic linking these days and
12752 # people can always --disable-shared, the test was removed, and we
12753 # assume the GNU/Linux dynamic linker is in use.
12754 dynamic_linker='GNU/Linux ld.so'
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 shlibpath_var=LD_LIBRARY_PATH
12764 shlibpath_overrides_runpath=no
12765 hardcode_into_libs=yes
12766 dynamic_linker='GNU ld.so'
12773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12776 dynamic_linker='NetBSD (a.out) ld.so'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12779 soname_spec='${libname}${release}${shared_ext}$major'
12780 dynamic_linker='NetBSD ld.elf_so'
12782 shlibpath_var=LD_LIBRARY_PATH
12783 shlibpath_overrides_runpath=yes
12784 hardcode_into_libs=yes
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 shlibpath_overrides_runpath=yes
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=yes
12806 sys_lib_dlsearch_path_spec="/usr/lib"
12808 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12810 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12811 *) need_version=no ;;
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12818 openbsd2.[89] | openbsd2.[89].*)
12819 shlibpath_overrides_runpath=no
12822 shlibpath_overrides_runpath=yes
12826 shlibpath_overrides_runpath=yes
12831 libname_spec='$name'
12834 library_names_spec='$libname${shared_ext} $libname.a'
12835 dynamic_linker='OS/2 ld.exe'
12836 shlibpath_var=LIBPATH
12839 osf3* | osf4* | osf5*)
12843 soname_spec='${libname}${release}${shared_ext}$major'
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 shlibpath_overrides_runpath=yes
12858 hardcode_into_libs=yes
12859 # ldd complains unless libraries are executable
12860 postinstall_cmds='chmod +x $lib'
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12866 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=yes
12869 if test "$with_gnu_ld" = yes; then
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 shlibpath_var=LD_LIBRARY_PATH
12880 case $host_vendor in
12882 shlibpath_overrides_runpath=no
12884 export_dynamic_flag_spec='${wl}-Blargedynsym'
12885 runpath_var=LD_RUN_PATH
12893 shlibpath_overrides_runpath=no
12894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12900 if test -d /usr/nec ;then
12902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12903 soname_spec='$libname${shared_ext}.$major'
12904 shlibpath_var=LD_LIBRARY_PATH
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909 version_type=freebsd-elf
12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12913 soname_spec='${libname}${release}${shared_ext}$major'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 hardcode_into_libs=yes
12916 if test "$with_gnu_ld" = yes; then
12917 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12918 shlibpath_overrides_runpath=no
12920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12921 shlibpath_overrides_runpath=yes
12924 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12928 sys_lib_dlsearch_path_spec='/usr/lib'
12933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934 soname_spec='${libname}${release}${shared_ext}$major'
12935 shlibpath_var=LD_LIBRARY_PATH
12942 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12943 echo "${ECHO_T}$dynamic_linker" >&6; }
12944 test "$dynamic_linker" = no && can_build_shared=no
12946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12947 if test "$GCC" = yes; then
12948 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12951 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12952 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12953 hardcode_action_CXX=
12954 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12955 test -n "$runpath_var_CXX" || \
12956 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12958 # We can hardcode non-existant directories.
12959 if test "$hardcode_direct_CXX" != no &&
12960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12961 # have to relink, otherwise we might link with an installed library
12962 # when we should be linking with a yet-to-be-installed one
12963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12964 test "$hardcode_minus_L_CXX" != no; then
12965 # Linking always hardcodes the temporary library directory.
12966 hardcode_action_CXX=relink
12968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12969 hardcode_action_CXX=immediate
12972 # We cannot hardcode anything, or else we can only hardcode existing
12974 hardcode_action_CXX=unsupported
12976 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12977 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12979 if test "$hardcode_action_CXX" = relink; then
12980 # Fast installation is not supported
12981 enable_fast_install=no
12982 elif test "$shlibpath_overrides_runpath" = yes ||
12983 test "$enable_shared" = no; then
12984 # Fast installation is not necessary
12985 enable_fast_install=needless
12989 # The else clause should only fire when bootstrapping the
12990 # libtool distribution, otherwise you forgot to ship ltmain.sh
12991 # with your package, and you will get complaints that there are
12992 # no rules to generate ltmain.sh.
12993 if test -f "$ltmain"; then
12994 # See if we are running on zsh, and set the options which allow our commands through
12995 # without removal of \ escapes.
12996 if test -n "${ZSH_VERSION+set}" ; then
12997 setopt NO_GLOB_SUBST
12999 # Now quote all the things that may contain metacharacters while being
13000 # careful not to overquote the AC_SUBSTed values. We take copies of the
13001 # variables and quote the copies for generation of the libtool script.
13002 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13004 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13005 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13006 deplibs_check_method reload_flag reload_cmds need_locks \
13007 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13008 lt_cv_sys_global_symbol_to_c_name_address \
13009 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13010 old_postinstall_cmds old_postuninstall_cmds \
13014 lt_prog_compiler_wl_CXX \
13015 lt_prog_compiler_pic_CXX \
13016 lt_prog_compiler_static_CXX \
13017 lt_prog_compiler_no_builtin_flag_CXX \
13018 export_dynamic_flag_spec_CXX \
13019 thread_safe_flag_spec_CXX \
13020 whole_archive_flag_spec_CXX \
13021 enable_shared_with_static_runtimes_CXX \
13022 old_archive_cmds_CXX \
13023 old_archive_from_new_cmds_CXX \
13024 predep_objects_CXX \
13025 postdep_objects_CXX \
13028 compiler_lib_search_path_CXX \
13030 archive_expsym_cmds_CXX \
13031 postinstall_cmds_CXX \
13032 postuninstall_cmds_CXX \
13033 old_archive_from_expsyms_cmds_CXX \
13034 allow_undefined_flag_CXX \
13035 no_undefined_flag_CXX \
13036 export_symbols_cmds_CXX \
13037 hardcode_libdir_flag_spec_CXX \
13038 hardcode_libdir_flag_spec_ld_CXX \
13039 hardcode_libdir_separator_CXX \
13040 hardcode_automatic_CXX \
13042 module_expsym_cmds_CXX \
13043 lt_cv_prog_compiler_c_o_CXX \
13044 exclude_expsyms_CXX \
13045 include_expsyms_CXX; do
13048 old_archive_cmds_CXX | \
13049 old_archive_from_new_cmds_CXX | \
13050 archive_cmds_CXX | \
13051 archive_expsym_cmds_CXX | \
13052 module_cmds_CXX | \
13053 module_expsym_cmds_CXX | \
13054 old_archive_from_expsyms_cmds_CXX | \
13055 export_symbols_cmds_CXX | \
13056 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13057 postinstall_cmds | postuninstall_cmds | \
13058 old_postinstall_cmds | old_postuninstall_cmds | \
13059 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13060 # Double-quote double-evaled strings.
13061 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13064 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13070 *'\$0 --fallback-echo"')
13071 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13077 cat <<__EOF__ >> "$cfgfile"
13078 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13082 # Shell to use when invoking shell scripts.
13085 # Whether or not to build shared libraries.
13086 build_libtool_libs=$enable_shared
13088 # Whether or not to build static libraries.
13089 build_old_libs=$enable_static
13091 # Whether or not to add -lc for building shared libraries.
13092 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13094 # Whether or not to disallow shared libs when runtime libs are static
13095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13097 # Whether or not to optimize for fast installation.
13098 fast_install=$enable_fast_install
13101 host_alias=$host_alias
13105 # The build system.
13106 build_alias=$build_alias
13110 # An echo program that does not interpret backslashes.
13115 AR_FLAGS=$lt_AR_FLAGS
13120 # LTCC compiler flags.
13121 LTCFLAGS=$lt_LTCFLAGS
13123 # A language-specific compiler.
13124 CC=$lt_compiler_CXX
13126 # Is the compiler the GNU C compiler?
13132 # The linker used to build libraries.
13135 # Whether we need hard or soft links.
13138 # A BSD-compatible nm program.
13141 # A symbol stripping program
13144 # Used to examine libraries when file_magic_cmd begins "file"
13145 MAGIC_CMD=$MAGIC_CMD
13147 # Used on cygwin: DLL creation program.
13150 # Used on cygwin: object dumper.
13153 # Used on cygwin: assembler.
13156 # The name of the directory that contains temporary libtool files.
13159 # How to create reloadable object files.
13160 reload_flag=$lt_reload_flag
13161 reload_cmds=$lt_reload_cmds
13163 # How to pass a linker flag through the compiler.
13164 wl=$lt_lt_prog_compiler_wl_CXX
13166 # Object file suffix (normally "o").
13167 objext="$ac_objext"
13169 # Old archive suffix (normally "a").
13172 # Shared library suffix (normally ".so").
13173 shrext_cmds='$shrext_cmds'
13175 # Executable file suffix (normally "").
13178 # Additional compiler flags for building library objects.
13179 pic_flag=$lt_lt_prog_compiler_pic_CXX
13182 # What is the maximum length of a command?
13183 max_cmd_len=$lt_cv_sys_max_cmd_len
13185 # Does compiler simultaneously support -c and -o options?
13186 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13188 # Must we lock files when doing compilation?
13189 need_locks=$lt_need_locks
13191 # Do we need the lib prefix for modules?
13192 need_lib_prefix=$need_lib_prefix
13194 # Do we need a version for libraries?
13195 need_version=$need_version
13197 # Whether dlopen is supported.
13198 dlopen_support=$enable_dlopen
13200 # Whether dlopen of programs is supported.
13201 dlopen_self=$enable_dlopen_self
13203 # Whether dlopen of statically linked programs is supported.
13204 dlopen_self_static=$enable_dlopen_self_static
13206 # Compiler flag to prevent dynamic linking.
13207 link_static_flag=$lt_lt_prog_compiler_static_CXX
13209 # Compiler flag to turn off builtin functions.
13210 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13212 # Compiler flag to allow reflexive dlopens.
13213 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13215 # Compiler flag to generate shared objects directly from archives.
13216 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13218 # Compiler flag to generate thread-safe objects.
13219 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13221 # Library versioning type.
13222 version_type=$version_type
13224 # Format of library name prefix.
13225 libname_spec=$lt_libname_spec
13227 # List of archive names. First name is the real one, the rest are links.
13228 # The last name is the one that the linker finds with -lNAME.
13229 library_names_spec=$lt_library_names_spec
13231 # The coded name of the library, if different from the real name.
13232 soname_spec=$lt_soname_spec
13234 # Commands used to build and install an old-style archive.
13236 old_archive_cmds=$lt_old_archive_cmds_CXX
13237 old_postinstall_cmds=$lt_old_postinstall_cmds
13238 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13240 # Create an old-style archive from a shared archive.
13241 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13243 # Create a temporary old-style archive to link instead of a shared archive.
13244 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13246 # Commands used to build and install a shared archive.
13247 archive_cmds=$lt_archive_cmds_CXX
13248 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13249 postinstall_cmds=$lt_postinstall_cmds
13250 postuninstall_cmds=$lt_postuninstall_cmds
13252 # Commands used to build a loadable module (assumed same as above if empty)
13253 module_cmds=$lt_module_cmds_CXX
13254 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13256 # Commands to strip libraries.
13257 old_striplib=$lt_old_striplib
13258 striplib=$lt_striplib
13260 # Dependencies to place before the objects being linked to create a
13262 predep_objects=$lt_predep_objects_CXX
13264 # Dependencies to place after the objects being linked to create a
13266 postdep_objects=$lt_postdep_objects_CXX
13268 # Dependencies to place before the objects being linked to create a
13270 predeps=$lt_predeps_CXX
13272 # Dependencies to place after the objects being linked to create a
13274 postdeps=$lt_postdeps_CXX
13276 # The library search path used internally by the compiler when linking
13277 # a shared library.
13278 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13280 # Method to check whether dependent libraries are shared objects.
13281 deplibs_check_method=$lt_deplibs_check_method
13283 # Command to use when deplibs_check_method == file_magic.
13284 file_magic_cmd=$lt_file_magic_cmd
13286 # Flag that allows shared libraries with undefined symbols to be built.
13287 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13289 # Flag that forces no undefined symbols.
13290 no_undefined_flag=$lt_no_undefined_flag_CXX
13292 # Commands used to finish a libtool library installation in a directory.
13293 finish_cmds=$lt_finish_cmds
13295 # Same as above, but a single script fragment to be evaled but not shown.
13296 finish_eval=$lt_finish_eval
13298 # Take the output of nm and produce a listing of raw symbols and C names.
13299 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13301 # Transform the output of nm in a proper C declaration
13302 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13304 # Transform the output of nm in a C name address pair
13305 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13307 # This is the shared library runtime path variable.
13308 runpath_var=$runpath_var
13310 # This is the shared library path variable.
13311 shlibpath_var=$shlibpath_var
13313 # Is shlibpath searched before the hard-coded library search path?
13314 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13316 # How to hardcode a shared library path into an executable.
13317 hardcode_action=$hardcode_action_CXX
13319 # Whether we should hardcode library paths into libraries.
13320 hardcode_into_libs=$hardcode_into_libs
13322 # Flag to hardcode \$libdir into a binary during linking.
13323 # This must work even if \$libdir does not exist.
13324 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13326 # If ld is used when linking, flag to hardcode \$libdir into
13327 # a binary during linking. This must work even if \$libdir does
13329 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13331 # Whether we need a single -rpath flag with a separated argument.
13332 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13334 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13335 # resulting binary.
13336 hardcode_direct=$hardcode_direct_CXX
13338 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13339 # resulting binary.
13340 hardcode_minus_L=$hardcode_minus_L_CXX
13342 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13343 # the resulting binary.
13344 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13346 # Set to yes if building a shared library automatically hardcodes DIR into the library
13347 # and all subsequent libraries and executables linked against it.
13348 hardcode_automatic=$hardcode_automatic_CXX
13350 # Variables whose values should be saved in libtool wrapper scripts and
13351 # restored at relink time.
13352 variables_saved_for_relink="$variables_saved_for_relink"
13354 # Whether libtool must link a program against all its dependency libraries.
13355 link_all_deplibs=$link_all_deplibs_CXX
13357 # Compile-time system search path for libraries
13358 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13360 # Run-time system search path for libraries
13361 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13363 # Fix the shell variable \$srcfile for the compiler.
13364 fix_srcfile_path="$fix_srcfile_path_CXX"
13366 # Set to yes if exported symbols are required.
13367 always_export_symbols=$always_export_symbols_CXX
13369 # The commands to list exported symbols.
13370 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13372 # The commands to extract the exported symbol list from a shared archive.
13373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13375 # Symbols that should not be listed in the preloaded symbols.
13376 exclude_expsyms=$lt_exclude_expsyms_CXX
13378 # Symbols that must always be exported.
13379 include_expsyms=$lt_include_expsyms_CXX
13381 # ### END LIBTOOL TAG CONFIG: $tagname
13387 # If there is no Makefile yet, we rely on a make rule to execute
13388 # `config.status --recheck' to rerun these tests and create the
13389 # libtool script then.
13390 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13391 if test -f "$ltmain_in"; then
13392 test -f Makefile && make "$ltmain"
13398 ac_cpp='$CPP $CPPFLAGS'
13399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13407 with_gnu_ldcxx=$with_gnu_ld
13408 with_gnu_ld=$lt_save_with_gnu_ld
13409 lt_cv_path_LDCXX=$lt_cv_path_LD
13410 lt_cv_path_LD=$lt_save_path_LD
13411 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13412 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13420 if test -n "$F77" && test "X$F77" != "Xno"; then
13423 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13424 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13428 archive_cmds_need_lc_F77=no
13429 allow_undefined_flag_F77=
13430 always_export_symbols_F77=no
13431 archive_expsym_cmds_F77=
13432 export_dynamic_flag_spec_F77=
13433 hardcode_direct_F77=no
13434 hardcode_libdir_flag_spec_F77=
13435 hardcode_libdir_flag_spec_ld_F77=
13436 hardcode_libdir_separator_F77=
13437 hardcode_minus_L_F77=no
13438 hardcode_automatic_F77=no
13440 module_expsym_cmds_F77=
13441 link_all_deplibs_F77=unknown
13442 old_archive_cmds_F77=$old_archive_cmds
13443 no_undefined_flag_F77=
13444 whole_archive_flag_spec_F77=
13445 enable_shared_with_static_runtimes_F77=no
13447 # Source file extension for f77 test sources.
13450 # Object file extension for compiled f77 test sources.
13454 # Code to be used in simple compile tests
13455 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13457 # Code to be used in simple link tests
13458 lt_simple_link_test_code=" program t\n end\n"
13460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13462 # If no C compiler was specified, use CC.
13465 # If no C compiler flags were specified, use CFLAGS.
13466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13468 # Allow CC to be a program name with arguments.
13472 # save warnings/boilerplate of simple test code
13473 ac_outfile=conftest.$ac_objext
13474 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13476 _lt_compiler_boilerplate=`cat conftest.err`
13479 ac_outfile=conftest.$ac_objext
13480 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13482 _lt_linker_boilerplate=`cat conftest.err`
13486 # Allow CC to be a program name with arguments.
13491 for cc_temp in $compiler""; do
13493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13502 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13503 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13504 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13505 echo "${ECHO_T}$can_build_shared" >&6; }
13507 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13508 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13509 test "$can_build_shared" = "no" && enable_shared=no
13511 # On AIX, shared libraries and static libraries use the same namespace, and
13512 # are all built from PIC.
13515 test "$enable_shared" = yes && enable_static=no
13516 if test -n "$RANLIB"; then
13517 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13518 postinstall_cmds='$RANLIB $lib'
13522 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13523 test "$enable_shared" = yes && enable_static=no
13527 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13528 echo "${ECHO_T}$enable_shared" >&6; }
13530 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13531 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13532 # Make sure either enable_shared or enable_static is yes.
13533 test "$enable_shared" = yes || enable_static=yes
13534 { echo "$as_me:$LINENO: result: $enable_static" >&5
13535 echo "${ECHO_T}$enable_static" >&6; }
13540 lt_prog_compiler_wl_F77=
13541 lt_prog_compiler_pic_F77=
13542 lt_prog_compiler_static_F77=
13544 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13547 if test "$GCC" = yes; then
13548 lt_prog_compiler_wl_F77='-Wl,'
13549 lt_prog_compiler_static_F77='-static'
13553 # All AIX code is PIC.
13554 if test "$host_cpu" = ia64; then
13555 # AIX 5 now supports IA64 processor
13556 lt_prog_compiler_static_F77='-Bstatic'
13561 # FIXME: we need at least 68020 code to build shared libraries, but
13562 # adding the `-m68020' flag to GCC prevents building anything better,
13564 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13567 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13568 # PIC is the default for these OSes.
13571 mingw* | pw32* | os2*)
13572 # This hack is so that the source file can tell whether it is being
13573 # built for inclusion in a dll (and should export symbols for example).
13574 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13577 darwin* | rhapsody*)
13578 # PIC is the default on this platform
13579 # Common symbols not allowed in MH_DYLIB files
13580 lt_prog_compiler_pic_F77='-fno-common'
13584 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13585 # Instead, we relocate shared libraries at runtime.
13589 # Just because we use GCC doesn't mean we suddenly get shared libraries
13590 # on systems that don't support them.
13591 lt_prog_compiler_can_build_shared_F77=no
13596 if test -d /usr/nec; then
13597 lt_prog_compiler_pic_F77=-Kconform_pic
13602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13603 # not for PA HP-UX.
13609 lt_prog_compiler_pic_F77='-fPIC'
13615 lt_prog_compiler_pic_F77='-fPIC'
13619 # PORTME Check for flag to pass linker flags through the system compiler.
13622 lt_prog_compiler_wl_F77='-Wl,'
13623 if test "$host_cpu" = ia64; then
13624 # AIX 5 now supports IA64 processor
13625 lt_prog_compiler_static_F77='-Bstatic'
13627 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13631 # PIC is the default on this platform
13632 # Common symbols not allowed in MH_DYLIB files
13633 case $cc_basename in
13635 lt_prog_compiler_pic_F77='-qnocommon'
13636 lt_prog_compiler_wl_F77='-Wl,'
13641 mingw* | pw32* | os2*)
13642 # This hack is so that the source file can tell whether it is being
13643 # built for inclusion in a dll (and should export symbols for example).
13644 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13647 hpux9* | hpux10* | hpux11*)
13648 lt_prog_compiler_wl_F77='-Wl,'
13649 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13650 # not for PA HP-UX.
13656 lt_prog_compiler_pic_F77='+Z'
13659 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13660 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13663 irix5* | irix6* | nonstopux*)
13664 lt_prog_compiler_wl_F77='-Wl,'
13665 # PIC (with -KPIC) is the default.
13666 lt_prog_compiler_static_F77='-non_shared'
13670 lt_prog_compiler_pic_F77='-KPIC'
13671 lt_prog_compiler_static_F77='-Bstatic'
13675 case $cc_basename in
13677 lt_prog_compiler_wl_F77='-Wl,'
13678 lt_prog_compiler_pic_F77='-KPIC'
13679 lt_prog_compiler_static_F77='-static'
13681 pgcc* | pgf77* | pgf90* | pgf95*)
13682 # Portland Group compilers (*not* the Pentium gcc compiler,
13683 # which looks to be a dead project)
13684 lt_prog_compiler_wl_F77='-Wl,'
13685 lt_prog_compiler_pic_F77='-fpic'
13686 lt_prog_compiler_static_F77='-Bstatic'
13689 lt_prog_compiler_wl_F77='-Wl,'
13690 # All Alpha code is PIC.
13691 lt_prog_compiler_static_F77='-non_shared'
13696 osf3* | osf4* | osf5*)
13697 lt_prog_compiler_wl_F77='-Wl,'
13698 # All OSF/1 code is PIC.
13699 lt_prog_compiler_static_F77='-non_shared'
13703 lt_prog_compiler_pic_F77='-KPIC'
13704 lt_prog_compiler_static_F77='-Bstatic'
13705 case $cc_basename in
13706 f77* | f90* | f95*)
13707 lt_prog_compiler_wl_F77='-Qoption ld ';;
13709 lt_prog_compiler_wl_F77='-Wl,';;
13714 lt_prog_compiler_wl_F77='-Qoption ld '
13715 lt_prog_compiler_pic_F77='-PIC'
13716 lt_prog_compiler_static_F77='-Bstatic'
13719 sysv4 | sysv4.2uw2* | sysv4.3*)
13720 lt_prog_compiler_wl_F77='-Wl,'
13721 lt_prog_compiler_pic_F77='-KPIC'
13722 lt_prog_compiler_static_F77='-Bstatic'
13726 if test -d /usr/nec ;then
13727 lt_prog_compiler_pic_F77='-Kconform_pic'
13728 lt_prog_compiler_static_F77='-Bstatic'
13732 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13733 lt_prog_compiler_wl_F77='-Wl,'
13734 lt_prog_compiler_pic_F77='-KPIC'
13735 lt_prog_compiler_static_F77='-Bstatic'
13739 lt_prog_compiler_wl_F77='-Wl,'
13740 lt_prog_compiler_can_build_shared_F77=no
13744 lt_prog_compiler_pic_F77='-pic'
13745 lt_prog_compiler_static_F77='-Bstatic'
13749 lt_prog_compiler_can_build_shared_F77=no
13754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13755 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13758 # Check to make sure the PIC flag actually works.
13760 if test -n "$lt_prog_compiler_pic_F77"; then
13762 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13764 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 lt_prog_compiler_pic_works_F77=no
13768 ac_outfile=conftest.$ac_objext
13769 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13770 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13771 # Insert the option either (1) after the last *FLAGS variable, or
13772 # (2) before a word containing "conftest.", or (3) at the end.
13773 # Note that $ac_compile itself does not contain backslashes and begins
13774 # with a dollar sign (not a hyphen), so the echo should work correctly.
13775 # The option is referenced via a variable to avoid confusing sed.
13776 lt_compile=`echo "$ac_compile" | $SED \
13777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13779 -e 's:$: $lt_compiler_flag:'`
13780 (eval echo "\"\$as_me:13780: $lt_compile\"" >&5)
13781 (eval "$lt_compile" 2>conftest.err)
13783 cat conftest.err >&5
13784 echo "$as_me:13784: \$? = $ac_status" >&5
13785 if (exit $ac_status) && test -s "$ac_outfile"; then
13786 # The compiler can only warn and ignore the option if not recognized
13787 # So say no if there are warnings other than the usual output.
13788 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13791 lt_prog_compiler_pic_works_F77=yes
13797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13798 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13800 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13801 case $lt_prog_compiler_pic_F77 in
13803 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13806 lt_prog_compiler_pic_F77=
13807 lt_prog_compiler_can_build_shared_F77=no
13812 # For platforms which do not support PIC, -DPIC is meaningless:
13814 lt_prog_compiler_pic_F77=
13817 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13822 # Check to make sure the static flag actually works.
13824 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13825 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13826 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13827 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 lt_prog_compiler_static_works_F77=no
13831 save_LDFLAGS="$LDFLAGS"
13832 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13835 # The linker can only warn and ignore the option if not recognized
13836 # So say no if there are warnings
13837 if test -s conftest.err; then
13838 # Append any errors to the config.log.
13839 cat conftest.err 1>&5
13840 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13842 if diff conftest.exp conftest.er2 >/dev/null; then
13843 lt_prog_compiler_static_works_F77=yes
13846 lt_prog_compiler_static_works_F77=yes
13850 LDFLAGS="$save_LDFLAGS"
13853 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13854 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13856 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13859 lt_prog_compiler_static_F77=
13863 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13865 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 lt_cv_prog_compiler_c_o_F77=no
13869 $rm -r conftest 2>/dev/null
13873 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13875 lt_compiler_flag="-o out/conftest2.$ac_objext"
13876 # Insert the option either (1) after the last *FLAGS variable, or
13877 # (2) before a word containing "conftest.", or (3) at the end.
13878 # Note that $ac_compile itself does not contain backslashes and begins
13879 # with a dollar sign (not a hyphen), so the echo should work correctly.
13880 lt_compile=`echo "$ac_compile" | $SED \
13881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13883 -e 's:$: $lt_compiler_flag:'`
13884 (eval echo "\"\$as_me:13884: $lt_compile\"" >&5)
13885 (eval "$lt_compile" 2>out/conftest.err)
13887 cat out/conftest.err >&5
13888 echo "$as_me:13888: \$? = $ac_status" >&5
13889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13891 # The compiler can only warn and ignore the option if not recognized
13892 # So say no if there are warnings
13893 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13896 lt_cv_prog_compiler_c_o_F77=yes
13901 # SGI C++ compiler will create directory out/ii_files/ for
13902 # template instantiation
13903 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13904 $rm out/* && rmdir out
13910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13914 hard_links="nottested"
13915 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13916 # do not overwrite the value of need_locks provided by the user
13917 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13918 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923 ln conftest.a conftest.b 2>&5 || hard_links=no
13924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13925 { echo "$as_me:$LINENO: result: $hard_links" >&5
13926 echo "${ECHO_T}$hard_links" >&6; }
13927 if test "$hard_links" = no; then
13928 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13929 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13936 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13937 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13940 allow_undefined_flag_F77=
13941 enable_shared_with_static_runtimes_F77=no
13943 archive_expsym_cmds_F77=
13944 old_archive_From_new_cmds_F77=
13945 old_archive_from_expsyms_cmds_F77=
13946 export_dynamic_flag_spec_F77=
13947 whole_archive_flag_spec_F77=
13948 thread_safe_flag_spec_F77=
13949 hardcode_libdir_flag_spec_F77=
13950 hardcode_libdir_flag_spec_ld_F77=
13951 hardcode_libdir_separator_F77=
13952 hardcode_direct_F77=no
13953 hardcode_minus_L_F77=no
13954 hardcode_shlibpath_var_F77=unsupported
13955 link_all_deplibs_F77=unknown
13956 hardcode_automatic_F77=no
13958 module_expsym_cmds_F77=
13959 always_export_symbols_F77=no
13960 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13961 # include_expsyms should be a list of space-separated symbols to be *always*
13962 # included in the symbol list
13963 include_expsyms_F77=
13964 # exclude_expsyms can be an extended regexp of symbols to exclude
13965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13967 # as well as any symbol that contains `d'.
13968 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13970 # platforms (ab)use it in PIC code, but their linkers get confused if
13971 # the symbol is explicitly referenced. Since portable code cannot
13972 # rely on this symbol name, it's probably fine to never include it in
13973 # preloaded symbol tables.
13974 extract_expsyms_cmds=
13975 # Just being paranoid about ensuring that cc_basename is set.
13976 for cc_temp in $compiler""; do
13978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13987 cygwin* | mingw* | pw32*)
13988 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13989 # When not using gcc, we currently assume that we are using
13990 # Microsoft Visual C++.
13991 if test "$GCC" != yes; then
13996 # we just hope/assume this is gcc and not c89 (= MSVC++)
14005 if test "$with_gnu_ld" = yes; then
14006 # If archive_cmds runs LD, not CC, wlarc should be empty
14009 # Set some defaults for GNU ld with shared library support. These
14010 # are reset later if shared libraries are not supported. Putting them
14011 # here allows them to be overridden if necessary.
14012 runpath_var=LD_RUN_PATH
14013 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14014 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14015 # ancient GNU ld didn't support --whole-archive et. al.
14016 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14017 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14019 whole_archive_flag_spec_F77=
14021 supports_anon_versioning=no
14022 case `$LD -v 2>/dev/null` in
14023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14026 *\ 2.11.*) ;; # other 2.11 versions
14027 *) supports_anon_versioning=yes ;;
14030 # See if GNU ld supports shared libraries.
14032 aix3* | aix4* | aix5*)
14033 # On AIX/PPC, the GNU linker is very broken
14034 if test "$host_cpu" != ia64; then
14038 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14039 *** to be unable to reliably create shared libraries on AIX.
14040 *** Therefore, libtool is disabling shared libraries support. If you
14041 *** really care for shared libraries, you may want to modify your PATH
14042 *** so that a non-GNU linker is found, and then restart.
14049 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)'
14050 hardcode_libdir_flag_spec_F77='-L$libdir'
14051 hardcode_minus_L_F77=yes
14053 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14054 # that the semantics of dynamic libraries on AmigaOS, at least up
14055 # to version 4, is to share data among multiple programs linked
14056 # with the same dynamic library. Since this doesn't match the
14057 # behavior of shared libraries on other platforms, we can't use
14063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14064 allow_undefined_flag_F77=unsupported
14065 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14066 # support --undefined. This deserves some investigation. FIXME
14067 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14073 cygwin* | mingw* | pw32*)
14074 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14075 # as there is no search path for DLLs.
14076 hardcode_libdir_flag_spec_F77='-L$libdir'
14077 allow_undefined_flag_F77=unsupported
14078 always_export_symbols_F77=no
14079 enable_shared_with_static_runtimes_F77=yes
14080 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14082 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14084 # If the export-symbols file already is a .def file (1st line
14085 # is EXPORTS), use it as is; otherwise, prepend...
14086 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14087 cp $export_symbols $output_objdir/$soname.def;
14089 echo EXPORTS > $output_objdir/$soname.def;
14090 cat $export_symbols >> $output_objdir/$soname.def;
14092 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14099 hardcode_direct_F77=no
14100 hardcode_shlibpath_var_F77=no
14101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14102 export_dynamic_flag_spec_F77='${wl}-E'
14103 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14104 # Instead, shared libraries are loaded at an image base (0x10000000 by
14105 # default) and relocated if they conflict, which is a slow very memory
14106 # consuming and fragmenting process. To avoid this, we pick a random,
14107 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14108 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14109 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'
14110 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'
14114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14116 case $cc_basename,$host_cpu in
14117 pgcc*) # Portland Group C compiler
14118 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'
14119 tmp_addflag=' $pic_flag'
14121 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14122 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'
14123 tmp_addflag=' $pic_flag -Mnomain' ;;
14124 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14125 tmp_addflag=' -i_dynamic' ;;
14126 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14127 tmp_addflag=' -i_dynamic -nofor_main' ;;
14128 ifc* | ifort*) # Intel Fortran compiler
14129 tmp_addflag=' -nofor_main' ;;
14131 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133 if test $supports_anon_versioning = yes; then
14134 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14136 $echo "local: *; };" >> $output_objdir/$libname.ver~
14137 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14149 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14155 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14160 *** create shared libraries on Solaris systems. Therefore, libtool
14161 *** is disabling shared libraries support. We urge you to upgrade GNU
14162 *** binutils to release 2.9.1 or newer. Another option is to modify
14163 *** your PATH or compiler configuration so that the native linker is
14164 *** used, and then restart.
14167 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14168 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14176 case `$LD -v 2>&1` in
14177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14182 *** reliably create shared libraries on SCO systems. Therefore, libtool
14183 *** is disabling shared libraries support. We urge you to upgrade GNU
14184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14185 *** your PATH or compiler configuration so that the native linker is
14186 *** used, and then restart.
14191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14192 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14203 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14205 hardcode_direct_F77=yes
14206 hardcode_shlibpath_var_F77=no
14210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14211 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14219 if test "$ld_shlibs_F77" = no; then
14221 hardcode_libdir_flag_spec_F77=
14222 export_dynamic_flag_spec_F77=
14223 whole_archive_flag_spec_F77=
14226 # PORTME fill in a description of your system's linker (not GNU ld)
14229 allow_undefined_flag_F77=unsupported
14230 always_export_symbols_F77=yes
14231 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'
14232 # Note: this linker hardcodes the directories in LIBPATH if there
14233 # are no directories specified by -L.
14234 hardcode_minus_L_F77=yes
14235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14236 # Neither direct hardcoding nor static linking is supported with a
14238 hardcode_direct_F77=unsupported
14243 if test "$host_cpu" = ia64; then
14244 # On IA64, the linker does run time linking by default, so we don't
14245 # have to do anything special.
14246 aix_use_runtimelinking=no
14247 exp_sym_flag='-Bexport'
14250 # If we're using GNU nm, then we don't want the "-C" option.
14251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14253 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'
14255 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'
14257 aix_use_runtimelinking=no
14259 # Test if we are trying to use run time linking or normal
14260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14261 # need to do runtime linking.
14262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14263 for ld_flag in $LDFLAGS; do
14264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14265 aix_use_runtimelinking=yes
14272 exp_sym_flag='-bexport'
14273 no_entry_flag='-bnoentry'
14276 # When large executables or shared objects are built, AIX ld can
14277 # have problems creating the table of contents. If linking a library
14278 # or program results in "error TOC overflow" add -mminimal-toc to
14279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14282 archive_cmds_F77=''
14283 hardcode_direct_F77=yes
14284 hardcode_libdir_separator_F77=':'
14285 link_all_deplibs_F77=yes
14287 if test "$GCC" = yes; then
14288 case $host_os in aix4.[012]|aix4.[012].*)
14289 # We only want to do this on AIX 4.2 and lower, the check
14290 # below for broken collect2 doesn't work under 4.3+
14291 collect2name=`${CC} -print-prog-name=collect2`
14292 if test -f "$collect2name" && \
14293 strings "$collect2name" | grep resolve_lib_name >/dev/null
14295 # We have reworked collect2
14296 hardcode_direct_F77=yes
14298 # We have old collect2
14299 hardcode_direct_F77=unsupported
14300 # It fails to find uninstalled libraries when the uninstalled
14301 # path is not listed in the libpath. Setting hardcode_minus_L
14302 # to unsupported forces relinking
14303 hardcode_minus_L_F77=yes
14304 hardcode_libdir_flag_spec_F77='-L$libdir'
14305 hardcode_libdir_separator_F77=
14309 shared_flag='-shared'
14310 if test "$aix_use_runtimelinking" = yes; then
14311 shared_flag="$shared_flag "'${wl}-G'
14315 if test "$host_cpu" = ia64; then
14316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14317 # chokes on -Wl,-G. The following line is correct:
14320 if test "$aix_use_runtimelinking" = yes; then
14321 shared_flag='${wl}-G'
14323 shared_flag='${wl}-bM:SRE'
14328 # It seems that -bexpall does not export symbols beginning with
14329 # underscore (_), so it is better to generate a list of symbols to export.
14330 always_export_symbols_F77=yes
14331 if test "$aix_use_runtimelinking" = yes; then
14332 # Warning - without using the other runtime loading flags (-brtl),
14333 # -berok will link without error, but may produce a broken library.
14334 allow_undefined_flag_F77='-berok'
14335 # Determine the default libpath from the value encoded in an empty executable.
14336 cat >conftest.$ac_ext <<_ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_f77_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14362 # Check for a 64-bit object if we didn't find anything.
14363 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; }
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14373 conftest$ac_exeext conftest.$ac_ext
14374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14376 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14377 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"
14379 if test "$host_cpu" = ia64; then
14380 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14381 allow_undefined_flag_F77="-z nodefs"
14382 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"
14384 # Determine the default libpath from the value encoded in an empty executable.
14385 cat >conftest.$ac_ext <<_ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>conftest.er1
14399 grep -v '^ *+' conftest.er1 >conftest.err
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_f77_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext &&
14407 $as_test_x conftest$ac_exeext; then
14409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14411 # Check for a 64-bit object if we didn't find anything.
14412 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; }
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422 conftest$ac_exeext conftest.$ac_ext
14423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14425 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14426 # Warning - without using the other run time loading flags,
14427 # -berok will link without error, but may produce a broken library.
14428 no_undefined_flag_F77=' ${wl}-bernotok'
14429 allow_undefined_flag_F77=' ${wl}-berok'
14430 # Exported symbols can be pulled into shared objects from archives
14431 whole_archive_flag_spec_F77='$convenience'
14432 archive_cmds_need_lc_F77=yes
14433 # This is similar to how AIX traditionally builds its shared libraries.
14434 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'
14440 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)'
14441 hardcode_libdir_flag_spec_F77='-L$libdir'
14442 hardcode_minus_L_F77=yes
14443 # see comment about different semantics on the GNU ld section
14448 export_dynamic_flag_spec_F77=-rdynamic
14451 cygwin* | mingw* | pw32*)
14452 # When not using gcc, we currently assume that we are using
14453 # Microsoft Visual C++.
14454 # hardcode_libdir_flag_spec is actually meaningless, as there is
14455 # no search path for DLLs.
14456 hardcode_libdir_flag_spec_F77=' '
14457 allow_undefined_flag_F77=unsupported
14458 # Tell ltmain to make .lib files, not .a files.
14460 # Tell ltmain to make .dll files, not .so files.
14462 # FIXME: Setting linknames here is a bad hack.
14463 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14464 # The linker will automatically build a .lib file if we build a DLL.
14465 old_archive_From_new_cmds_F77='true'
14466 # FIXME: Should let the user specify the lib program.
14467 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14468 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14469 enable_shared_with_static_runtimes_F77=yes
14472 darwin* | rhapsody*)
14474 rhapsody* | darwin1.[012])
14475 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14478 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14481 case ${MACOSX_DEPLOYMENT_TARGET} in
14483 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14486 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14492 archive_cmds_need_lc_F77=no
14493 hardcode_direct_F77=no
14494 hardcode_automatic_F77=yes
14495 hardcode_shlibpath_var_F77=unsupported
14496 whole_archive_flag_spec_F77=''
14497 link_all_deplibs_F77=yes
14498 if test "$GCC" = yes ; then
14499 output_verbose_link_cmd='echo'
14500 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14503 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}'
14504 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}'
14506 case $cc_basename in
14508 output_verbose_link_cmd='echo'
14509 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14510 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14512 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}'
14513 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}'
14523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_libdir_flag_spec_F77='-L$libdir'
14525 hardcode_shlibpath_var_F77=no
14532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14533 # support. Future versions do this automatically, but an explicit c++rt0.o
14534 # does not break anything, and helps significantly (at the cost of a little
14537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14538 hardcode_libdir_flag_spec_F77='-R$libdir'
14539 hardcode_direct_F77=yes
14540 hardcode_shlibpath_var_F77=no
14543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14545 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546 hardcode_direct_F77=yes
14547 hardcode_minus_L_F77=yes
14548 hardcode_shlibpath_var_F77=no
14551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14552 freebsd* | kfreebsd*-gnu | dragonfly*)
14553 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14554 hardcode_libdir_flag_spec_F77='-R$libdir'
14555 hardcode_direct_F77=yes
14556 hardcode_shlibpath_var_F77=no
14560 if test "$GCC" = yes; then
14561 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'
14563 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'
14565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14566 hardcode_libdir_separator_F77=:
14567 hardcode_direct_F77=yes
14569 # hardcode_minus_L: Not really in the search PATH,
14570 # but as the default location of the library.
14571 hardcode_minus_L_F77=yes
14572 export_dynamic_flag_spec_F77='${wl}-E'
14576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14577 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14581 if test "$with_gnu_ld" = no; then
14582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583 hardcode_libdir_separator_F77=:
14585 hardcode_direct_F77=yes
14586 export_dynamic_flag_spec_F77='${wl}-E'
14588 # hardcode_minus_L: Not really in the search PATH,
14589 # but as the default location of the library.
14590 hardcode_minus_L_F77=yes
14595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14598 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14601 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14604 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14610 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14613 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14616 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14620 if test "$with_gnu_ld" = no; then
14621 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14622 hardcode_libdir_separator_F77=:
14626 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14627 hardcode_direct_F77=no
14628 hardcode_shlibpath_var_F77=no
14631 hardcode_direct_F77=yes
14632 export_dynamic_flag_spec_F77='${wl}-E'
14634 # hardcode_minus_L: Not really in the search PATH,
14635 # but as the default location of the library.
14636 hardcode_minus_L_F77=yes
14642 irix5* | irix6* | nonstopux*)
14643 if test "$GCC" = yes; then
14644 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'
14646 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'
14647 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14649 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14650 hardcode_libdir_separator_F77=:
14651 link_all_deplibs_F77=yes
14655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14656 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14658 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667 hardcode_direct_F77=yes
14668 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14669 hardcode_libdir_separator_F77=:
14670 hardcode_shlibpath_var_F77=no
14674 hardcode_direct_F77=yes
14675 hardcode_shlibpath_var_F77=no
14676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14677 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14679 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14680 export_dynamic_flag_spec_F77='${wl}-E'
14683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14684 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14685 hardcode_libdir_flag_spec_F77='-R$libdir'
14688 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14696 hardcode_libdir_flag_spec_F77='-L$libdir'
14697 hardcode_minus_L_F77=yes
14698 allow_undefined_flag_F77=unsupported
14699 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'
14700 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14704 if test "$GCC" = yes; then
14705 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14706 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'
14708 allow_undefined_flag_F77=' -expect_unresolved \*'
14709 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'
14711 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14712 hardcode_libdir_separator_F77=:
14715 osf4* | osf5*) # as osf3* with the addition of -msym flag
14716 if test "$GCC" = yes; then
14717 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14718 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'
14719 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14721 allow_undefined_flag_F77=' -expect_unresolved \*'
14722 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'
14723 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~
14724 $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'
14726 # Both c and cxx compiler support -rpath directly
14727 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14729 hardcode_libdir_separator_F77=:
14733 no_undefined_flag_F77=' -z text'
14734 if test "$GCC" = yes; then
14736 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14738 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14741 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14745 hardcode_libdir_flag_spec_F77='-R$libdir'
14746 hardcode_shlibpath_var_F77=no
14748 solaris2.[0-5] | solaris2.[0-5].*) ;;
14750 # The compiler driver will combine linker options so we
14751 # cannot just pass the convience library names through
14752 # without $wl, iff we do not link with $LD.
14753 # Luckily, gcc supports the same syntax we need for Sun Studio.
14754 # Supported since Solaris 2.6 (maybe 2.5.1?)
14757 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14759 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' ;;
14762 link_all_deplibs_F77=yes
14766 if test "x$host_vendor" = xsequent; then
14767 # Use $CC to link under sequent, because it throws in some extra .o
14768 # files that make .init and .fini sections work.
14769 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14771 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_libdir_flag_spec_F77='-L$libdir'
14774 hardcode_direct_F77=yes
14775 hardcode_minus_L_F77=yes
14776 hardcode_shlibpath_var_F77=no
14780 case $host_vendor in
14782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=yes # is this really true???
14786 ## LD is ld it makes a PLAMLIB
14787 ## CC just makes a GrossModule.
14788 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789 reload_cmds_F77='$CC -r -o $output$reload_objs'
14790 hardcode_direct_F77=no
14793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14797 runpath_var='LD_RUN_PATH'
14798 hardcode_shlibpath_var_F77=no
14802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_shlibpath_var_F77=no
14804 export_dynamic_flag_spec_F77='-Bexport'
14808 if test -d /usr/nec; then
14809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_shlibpath_var_F77=no
14811 runpath_var=LD_RUN_PATH
14812 hardcode_runpath_var=yes
14817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14818 no_undefined_flag_F77='${wl}-z,text'
14819 archive_cmds_need_lc_F77=no
14820 hardcode_shlibpath_var_F77=no
14821 runpath_var='LD_RUN_PATH'
14823 if test "$GCC" = yes; then
14824 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14832 sysv5* | sco3.2v5* | sco5v6*)
14833 # Note: We can NOT use -z defs as we might desire, because we do not
14834 # link with -lc, and that would cause any symbols used from libc to
14835 # always be unresolved, which means just about no library would
14836 # ever link correctly. If we're not using GNU ld we use -z text
14837 # though, which does catch some bad symbols but isn't as heavy-handed
14839 no_undefined_flag_F77='${wl}-z,text'
14840 allow_undefined_flag_F77='${wl}-z,nodefs'
14841 archive_cmds_need_lc_F77=no
14842 hardcode_shlibpath_var_F77=no
14843 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14844 hardcode_libdir_separator_F77=':'
14845 link_all_deplibs_F77=yes
14846 export_dynamic_flag_spec_F77='${wl}-Bexport'
14847 runpath_var='LD_RUN_PATH'
14849 if test "$GCC" = yes; then
14850 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860 hardcode_libdir_flag_spec_F77='-L$libdir'
14861 hardcode_shlibpath_var_F77=no
14870 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14871 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14872 test "$ld_shlibs_F77" = no && can_build_shared=no
14875 # Do we need to explicitly link libc?
14877 case "x$archive_cmds_need_lc_F77" in
14879 # Assume -lc should be added
14880 archive_cmds_need_lc_F77=yes
14882 if test "$enable_shared" = yes && test "$GCC" = yes; then
14883 case $archive_cmds_F77 in
14885 # FIXME: we may have to deal with multi-command sequences.
14888 # Test whether the compiler implicitly links with -lc since on some
14889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14890 # to ld, don't add -lc before -lgcc.
14891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } 2>conftest.err; then
14903 libobjs=conftest.$ac_objext
14905 wl=$lt_prog_compiler_wl_F77
14906 pic_flag=$lt_prog_compiler_pic_F77
14912 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14913 allow_undefined_flag_F77=
14914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14915 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }
14920 archive_cmds_need_lc_F77=no
14922 archive_cmds_need_lc_F77=yes
14924 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14926 cat conftest.err 1>&5
14929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14930 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14939 library_names_spec=
14940 libname_spec='lib$name'
14944 postuninstall_cmds=
14948 shlibpath_overrides_runpath=unknown
14950 dynamic_linker="$host_os ld.so"
14951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14952 if test "$GCC" = yes; then
14953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14955 # if the path contains ";" then we assume it to be the separator
14956 # otherwise default to the standard path separator (i.e. ":") - it is
14957 # assumed that no part of a normal pathname contains ";" but that should
14958 # okay in the real world where ";" in dirpaths is itself problematic.
14959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14966 need_lib_prefix=unknown
14967 hardcode_into_libs=no
14969 # when you set need_version to no, make sure it does not cause -set_version
14970 # flags to be left without arguments
14971 need_version=unknown
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14977 shlibpath_var=LIBPATH
14979 # AIX 3 has no versioning support, so we append a major version to the name.
14980 soname_spec='${libname}${release}${shared_ext}$major'
14987 hardcode_into_libs=yes
14988 if test "$host_cpu" = ia64; then
14989 # AIX 5 supports IA64
14990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14991 shlibpath_var=LD_LIBRARY_PATH
14993 # With GCC up to 2.95.x, collect2 would create an import file
14994 # for dependence libraries. The import file would start with
14995 # the line `#! .'. This would cause the generated library to
14996 # depend on `.', always an invalid library. This was fixed in
14997 # development snapshots of GCC prior to 3.0.
14999 aix4 | aix4.[01] | aix4.[01].*)
15000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15005 can_build_shared=no
15009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15010 # soname into executable. Probably we can add versioning support to
15011 # collect2, so additional links can be useful in future.
15012 if test "$aix_use_runtimelinking" = yes; then
15013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15014 # instead of lib<name>.a to let people know that these are not
15015 # typical AIX shared libraries.
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018 # We preserve .a as extension for shared libraries through AIX4.2
15019 # and later when we are not doing run time linking.
15020 library_names_spec='${libname}${release}.a $libname.a'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15023 shlibpath_var=LIBPATH
15028 library_names_spec='$libname.ixlibrary $libname.a'
15029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15030 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'
15034 library_names_spec='${libname}${shared_ext}'
15035 dynamic_linker="$host_os ld.so"
15036 shlibpath_var=LIBRARY_PATH
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15048 # the default ld.so.conf also contains /usr/contrib/lib and
15049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15050 # libtool to hard-code these into programs
15053 cygwin* | mingw* | pw32*)
15054 version_type=windows
15059 case $GCC,$host_os in
15060 yes,cygwin* | yes,mingw* | yes,pw32*)
15061 library_names_spec='$libname.dll.a'
15062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15063 postinstall_cmds='base_file=`basename \${file}`~
15064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15065 dldir=$destdir/`dirname \$dlpath`~
15066 test -d \$dldir || mkdir -p \$dldir~
15067 $install_prog $dir/$dlname \$dldir/$dlname~
15068 chmod a+x \$dldir/$dlname'
15069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15070 dlpath=$dir/\$dldll~
15072 shlibpath_overrides_runpath=yes
15076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15078 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15081 # MinGW DLLs use traditional 'lib' prefix
15082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15084 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15085 # It is most probably a Windows format PATH printed by
15086 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15087 # path with ; separators, and with drive letters. We can handle the
15088 # drive letters (cygwin fileutils understands them), so leave them,
15089 # especially as we might pass files found there to a mingw objdump,
15090 # which wouldn't understand a cygwinified path. Ahh.
15091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15097 # pw32 DLLs use 'pw' prefix rather than 'lib'
15098 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15107 dynamic_linker='Win32 ld.exe'
15108 # FIXME: first we should search . and the directory the executable is in
15112 darwin* | rhapsody*)
15113 dynamic_linker="$host_os dyld"
15114 version_type=darwin
15117 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15118 soname_spec='${libname}${release}${major}$shared_ext'
15119 shlibpath_overrides_runpath=yes
15120 shlibpath_var=DYLD_LIBRARY_PATH
15121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15122 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15123 if test "$GCC" = yes; then
15124 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"`
15126 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=no
15152 hardcode_into_libs=yes
15153 dynamic_linker='GNU ld.so'
15156 freebsd* | dragonfly*)
15157 # DragonFly does not have aout. When/if they implement a new
15158 # versioning mechanism, adjust this.
15159 if test -x /usr/bin/objformat; then
15160 objformat=`/usr/bin/objformat`
15163 freebsd[123]*) objformat=aout ;;
15164 *) objformat=elf ;;
15167 version_type=freebsd-$objformat
15168 case $version_type in
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15179 shlibpath_var=LD_LIBRARY_PATH
15182 shlibpath_overrides_runpath=yes
15184 freebsd3.[01]* | freebsdelf3.[01]*)
15185 shlibpath_overrides_runpath=yes
15186 hardcode_into_libs=yes
15188 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15189 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15190 shlibpath_overrides_runpath=no
15191 hardcode_into_libs=yes
15193 freebsd*) # from 4.6 on
15194 shlibpath_overrides_runpath=yes
15195 hardcode_into_libs=yes
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 hardcode_into_libs=yes
15210 hpux9* | hpux10* | hpux11*)
15211 # Give a soname corresponding to the major version so that dld.sl refuses to
15212 # link against other versions.
15219 hardcode_into_libs=yes
15220 dynamic_linker="$host_os dld.so"
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15225 if test "X$HPUX_IA64_MODE" = X32; then
15226 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15234 hardcode_into_libs=yes
15235 dynamic_linker="$host_os dld.sl"
15236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15245 dynamic_linker="$host_os dld.sl"
15246 shlibpath_var=SHLIB_PATH
15247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15252 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15253 postinstall_cmds='chmod 555 $lib'
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=no
15265 hardcode_into_libs=yes
15268 irix5* | irix6* | nonstopux*)
15270 nonstopux*) version_type=nonstopux ;;
15272 if test "$lt_cv_prog_gnu_ld" = yes; then
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15283 irix5* | nonstopux*)
15284 libsuff= shlibsuff=
15287 case $LD in # libtool.m4 will add one of these switches to LD
15288 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15289 libsuff= shlibsuff= libmagic=32-bit;;
15290 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15291 libsuff=32 shlibsuff=N32 libmagic=N32;;
15292 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15293 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15294 *) libsuff= shlibsuff= libmagic=never-match;;
15298 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15299 shlibpath_overrides_runpath=no
15300 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15301 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15302 hardcode_into_libs=yes
15305 # No shared lib support for Linux oldld, aout, or coff.
15306 linux*oldld* | linux*aout* | linux*coff*)
15310 # This must be Linux ELF.
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15316 soname_spec='${libname}${release}${shared_ext}$major'
15317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=no
15320 # This implies no fast_install, which is unacceptable.
15321 # Some rework will be needed to allow for fast_install
15322 # before this can be enabled.
15323 hardcode_into_libs=yes
15325 # Append ld.so.conf contents to the search path
15326 if test -f /etc/ld.so.conf; then
15327 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' ' '`
15328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15331 # We used to test for /lib/ld.so.1 and disable shared libraries on
15332 # powerpc, because MkLinux only supported shared libraries with the
15333 # GNU dynamic linker. Since this was broken with cross compilers,
15334 # most powerpc-linux boxes support dynamic linking these days and
15335 # people can always --disable-shared, the test was removed, and we
15336 # assume the GNU/Linux dynamic linker is in use.
15337 dynamic_linker='GNU/Linux ld.so'
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=no
15348 hardcode_into_libs=yes
15349 dynamic_linker='GNU ld.so'
15356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15359 dynamic_linker='NetBSD (a.out) ld.so'
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 dynamic_linker='NetBSD ld.elf_so'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 shlibpath_overrides_runpath=yes
15367 hardcode_into_libs=yes
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 shlibpath_overrides_runpath=yes
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 shlibpath_overrides_runpath=yes
15389 sys_lib_dlsearch_path_spec="/usr/lib"
15391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15394 *) need_version=no ;;
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15398 shlibpath_var=LD_LIBRARY_PATH
15399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15401 openbsd2.[89] | openbsd2.[89].*)
15402 shlibpath_overrides_runpath=no
15405 shlibpath_overrides_runpath=yes
15409 shlibpath_overrides_runpath=yes
15414 libname_spec='$name'
15417 library_names_spec='$libname${shared_ext} $libname.a'
15418 dynamic_linker='OS/2 ld.exe'
15419 shlibpath_var=LIBPATH
15422 osf3* | osf4* | osf5*)
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes
15441 hardcode_into_libs=yes
15442 # ldd complains unless libraries are executable
15443 postinstall_cmds='chmod +x $lib'
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 shlibpath_overrides_runpath=yes
15452 if test "$with_gnu_ld" = yes; then
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 case $host_vendor in
15465 shlibpath_overrides_runpath=no
15467 export_dynamic_flag_spec='${wl}-Blargedynsym'
15468 runpath_var=LD_RUN_PATH
15476 shlibpath_overrides_runpath=no
15477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15483 if test -d /usr/nec ;then
15485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15486 soname_spec='$libname${shared_ext}.$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15492 version_type=freebsd-elf
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15496 soname_spec='${libname}${release}${shared_ext}$major'
15497 shlibpath_var=LD_LIBRARY_PATH
15498 hardcode_into_libs=yes
15499 if test "$with_gnu_ld" = yes; then
15500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15501 shlibpath_overrides_runpath=no
15503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15504 shlibpath_overrides_runpath=yes
15507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15511 sys_lib_dlsearch_path_spec='/usr/lib'
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 shlibpath_var=LD_LIBRARY_PATH
15525 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15526 echo "${ECHO_T}$dynamic_linker" >&6; }
15527 test "$dynamic_linker" = no && can_build_shared=no
15529 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15530 if test "$GCC" = yes; then
15531 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15534 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15535 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15536 hardcode_action_F77=
15537 if test -n "$hardcode_libdir_flag_spec_F77" || \
15538 test -n "$runpath_var_F77" || \
15539 test "X$hardcode_automatic_F77" = "Xyes" ; then
15541 # We can hardcode non-existant directories.
15542 if test "$hardcode_direct_F77" != no &&
15543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15544 # have to relink, otherwise we might link with an installed library
15545 # when we should be linking with a yet-to-be-installed one
15546 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15547 test "$hardcode_minus_L_F77" != no; then
15548 # Linking always hardcodes the temporary library directory.
15549 hardcode_action_F77=relink
15551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15552 hardcode_action_F77=immediate
15555 # We cannot hardcode anything, or else we can only hardcode existing
15557 hardcode_action_F77=unsupported
15559 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15560 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15562 if test "$hardcode_action_F77" = relink; then
15563 # Fast installation is not supported
15564 enable_fast_install=no
15565 elif test "$shlibpath_overrides_runpath" = yes ||
15566 test "$enable_shared" = no; then
15567 # Fast installation is not necessary
15568 enable_fast_install=needless
15572 # The else clause should only fire when bootstrapping the
15573 # libtool distribution, otherwise you forgot to ship ltmain.sh
15574 # with your package, and you will get complaints that there are
15575 # no rules to generate ltmain.sh.
15576 if test -f "$ltmain"; then
15577 # See if we are running on zsh, and set the options which allow our commands through
15578 # without removal of \ escapes.
15579 if test -n "${ZSH_VERSION+set}" ; then
15580 setopt NO_GLOB_SUBST
15582 # Now quote all the things that may contain metacharacters while being
15583 # careful not to overquote the AC_SUBSTed values. We take copies of the
15584 # variables and quote the copies for generation of the libtool script.
15585 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15587 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15588 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15589 deplibs_check_method reload_flag reload_cmds need_locks \
15590 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15591 lt_cv_sys_global_symbol_to_c_name_address \
15592 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15593 old_postinstall_cmds old_postuninstall_cmds \
15597 lt_prog_compiler_wl_F77 \
15598 lt_prog_compiler_pic_F77 \
15599 lt_prog_compiler_static_F77 \
15600 lt_prog_compiler_no_builtin_flag_F77 \
15601 export_dynamic_flag_spec_F77 \
15602 thread_safe_flag_spec_F77 \
15603 whole_archive_flag_spec_F77 \
15604 enable_shared_with_static_runtimes_F77 \
15605 old_archive_cmds_F77 \
15606 old_archive_from_new_cmds_F77 \
15607 predep_objects_F77 \
15608 postdep_objects_F77 \
15611 compiler_lib_search_path_F77 \
15613 archive_expsym_cmds_F77 \
15614 postinstall_cmds_F77 \
15615 postuninstall_cmds_F77 \
15616 old_archive_from_expsyms_cmds_F77 \
15617 allow_undefined_flag_F77 \
15618 no_undefined_flag_F77 \
15619 export_symbols_cmds_F77 \
15620 hardcode_libdir_flag_spec_F77 \
15621 hardcode_libdir_flag_spec_ld_F77 \
15622 hardcode_libdir_separator_F77 \
15623 hardcode_automatic_F77 \
15625 module_expsym_cmds_F77 \
15626 lt_cv_prog_compiler_c_o_F77 \
15627 exclude_expsyms_F77 \
15628 include_expsyms_F77; do
15631 old_archive_cmds_F77 | \
15632 old_archive_from_new_cmds_F77 | \
15633 archive_cmds_F77 | \
15634 archive_expsym_cmds_F77 | \
15635 module_cmds_F77 | \
15636 module_expsym_cmds_F77 | \
15637 old_archive_from_expsyms_cmds_F77 | \
15638 export_symbols_cmds_F77 | \
15639 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15640 postinstall_cmds | postuninstall_cmds | \
15641 old_postinstall_cmds | old_postuninstall_cmds | \
15642 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15643 # Double-quote double-evaled strings.
15644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15653 *'\$0 --fallback-echo"')
15654 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15660 cat <<__EOF__ >> "$cfgfile"
15661 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15663 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15665 # Shell to use when invoking shell scripts.
15668 # Whether or not to build shared libraries.
15669 build_libtool_libs=$enable_shared
15671 # Whether or not to build static libraries.
15672 build_old_libs=$enable_static
15674 # Whether or not to add -lc for building shared libraries.
15675 build_libtool_need_lc=$archive_cmds_need_lc_F77
15677 # Whether or not to disallow shared libs when runtime libs are static
15678 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15680 # Whether or not to optimize for fast installation.
15681 fast_install=$enable_fast_install
15684 host_alias=$host_alias
15688 # The build system.
15689 build_alias=$build_alias
15693 # An echo program that does not interpret backslashes.
15698 AR_FLAGS=$lt_AR_FLAGS
15703 # LTCC compiler flags.
15704 LTCFLAGS=$lt_LTCFLAGS
15706 # A language-specific compiler.
15707 CC=$lt_compiler_F77
15709 # Is the compiler the GNU C compiler?
15715 # The linker used to build libraries.
15718 # Whether we need hard or soft links.
15721 # A BSD-compatible nm program.
15724 # A symbol stripping program
15727 # Used to examine libraries when file_magic_cmd begins "file"
15728 MAGIC_CMD=$MAGIC_CMD
15730 # Used on cygwin: DLL creation program.
15733 # Used on cygwin: object dumper.
15736 # Used on cygwin: assembler.
15739 # The name of the directory that contains temporary libtool files.
15742 # How to create reloadable object files.
15743 reload_flag=$lt_reload_flag
15744 reload_cmds=$lt_reload_cmds
15746 # How to pass a linker flag through the compiler.
15747 wl=$lt_lt_prog_compiler_wl_F77
15749 # Object file suffix (normally "o").
15750 objext="$ac_objext"
15752 # Old archive suffix (normally "a").
15755 # Shared library suffix (normally ".so").
15756 shrext_cmds='$shrext_cmds'
15758 # Executable file suffix (normally "").
15761 # Additional compiler flags for building library objects.
15762 pic_flag=$lt_lt_prog_compiler_pic_F77
15765 # What is the maximum length of a command?
15766 max_cmd_len=$lt_cv_sys_max_cmd_len
15768 # Does compiler simultaneously support -c and -o options?
15769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15771 # Must we lock files when doing compilation?
15772 need_locks=$lt_need_locks
15774 # Do we need the lib prefix for modules?
15775 need_lib_prefix=$need_lib_prefix
15777 # Do we need a version for libraries?
15778 need_version=$need_version
15780 # Whether dlopen is supported.
15781 dlopen_support=$enable_dlopen
15783 # Whether dlopen of programs is supported.
15784 dlopen_self=$enable_dlopen_self
15786 # Whether dlopen of statically linked programs is supported.
15787 dlopen_self_static=$enable_dlopen_self_static
15789 # Compiler flag to prevent dynamic linking.
15790 link_static_flag=$lt_lt_prog_compiler_static_F77
15792 # Compiler flag to turn off builtin functions.
15793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15795 # Compiler flag to allow reflexive dlopens.
15796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15798 # Compiler flag to generate shared objects directly from archives.
15799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15801 # Compiler flag to generate thread-safe objects.
15802 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15804 # Library versioning type.
15805 version_type=$version_type
15807 # Format of library name prefix.
15808 libname_spec=$lt_libname_spec
15810 # List of archive names. First name is the real one, the rest are links.
15811 # The last name is the one that the linker finds with -lNAME.
15812 library_names_spec=$lt_library_names_spec
15814 # The coded name of the library, if different from the real name.
15815 soname_spec=$lt_soname_spec
15817 # Commands used to build and install an old-style archive.
15819 old_archive_cmds=$lt_old_archive_cmds_F77
15820 old_postinstall_cmds=$lt_old_postinstall_cmds
15821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15823 # Create an old-style archive from a shared archive.
15824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15826 # Create a temporary old-style archive to link instead of a shared archive.
15827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15829 # Commands used to build and install a shared archive.
15830 archive_cmds=$lt_archive_cmds_F77
15831 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15832 postinstall_cmds=$lt_postinstall_cmds
15833 postuninstall_cmds=$lt_postuninstall_cmds
15835 # Commands used to build a loadable module (assumed same as above if empty)
15836 module_cmds=$lt_module_cmds_F77
15837 module_expsym_cmds=$lt_module_expsym_cmds_F77
15839 # Commands to strip libraries.
15840 old_striplib=$lt_old_striplib
15841 striplib=$lt_striplib
15843 # Dependencies to place before the objects being linked to create a
15845 predep_objects=$lt_predep_objects_F77
15847 # Dependencies to place after the objects being linked to create a
15849 postdep_objects=$lt_postdep_objects_F77
15851 # Dependencies to place before the objects being linked to create a
15853 predeps=$lt_predeps_F77
15855 # Dependencies to place after the objects being linked to create a
15857 postdeps=$lt_postdeps_F77
15859 # The library search path used internally by the compiler when linking
15860 # a shared library.
15861 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15863 # Method to check whether dependent libraries are shared objects.
15864 deplibs_check_method=$lt_deplibs_check_method
15866 # Command to use when deplibs_check_method == file_magic.
15867 file_magic_cmd=$lt_file_magic_cmd
15869 # Flag that allows shared libraries with undefined symbols to be built.
15870 allow_undefined_flag=$lt_allow_undefined_flag_F77
15872 # Flag that forces no undefined symbols.
15873 no_undefined_flag=$lt_no_undefined_flag_F77
15875 # Commands used to finish a libtool library installation in a directory.
15876 finish_cmds=$lt_finish_cmds
15878 # Same as above, but a single script fragment to be evaled but not shown.
15879 finish_eval=$lt_finish_eval
15881 # Take the output of nm and produce a listing of raw symbols and C names.
15882 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15884 # Transform the output of nm in a proper C declaration
15885 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15887 # Transform the output of nm in a C name address pair
15888 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15890 # This is the shared library runtime path variable.
15891 runpath_var=$runpath_var
15893 # This is the shared library path variable.
15894 shlibpath_var=$shlibpath_var
15896 # Is shlibpath searched before the hard-coded library search path?
15897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15899 # How to hardcode a shared library path into an executable.
15900 hardcode_action=$hardcode_action_F77
15902 # Whether we should hardcode library paths into libraries.
15903 hardcode_into_libs=$hardcode_into_libs
15905 # Flag to hardcode \$libdir into a binary during linking.
15906 # This must work even if \$libdir does not exist.
15907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15909 # If ld is used when linking, flag to hardcode \$libdir into
15910 # a binary during linking. This must work even if \$libdir does
15912 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15914 # Whether we need a single -rpath flag with a separated argument.
15915 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15917 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15918 # resulting binary.
15919 hardcode_direct=$hardcode_direct_F77
15921 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15922 # resulting binary.
15923 hardcode_minus_L=$hardcode_minus_L_F77
15925 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15926 # the resulting binary.
15927 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15929 # Set to yes if building a shared library automatically hardcodes DIR into the library
15930 # and all subsequent libraries and executables linked against it.
15931 hardcode_automatic=$hardcode_automatic_F77
15933 # Variables whose values should be saved in libtool wrapper scripts and
15934 # restored at relink time.
15935 variables_saved_for_relink="$variables_saved_for_relink"
15937 # Whether libtool must link a program against all its dependency libraries.
15938 link_all_deplibs=$link_all_deplibs_F77
15940 # Compile-time system search path for libraries
15941 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15943 # Run-time system search path for libraries
15944 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15946 # Fix the shell variable \$srcfile for the compiler.
15947 fix_srcfile_path="$fix_srcfile_path_F77"
15949 # Set to yes if exported symbols are required.
15950 always_export_symbols=$always_export_symbols_F77
15952 # The commands to list exported symbols.
15953 export_symbols_cmds=$lt_export_symbols_cmds_F77
15955 # The commands to extract the exported symbol list from a shared archive.
15956 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15958 # Symbols that should not be listed in the preloaded symbols.
15959 exclude_expsyms=$lt_exclude_expsyms_F77
15961 # Symbols that must always be exported.
15962 include_expsyms=$lt_include_expsyms_F77
15964 # ### END LIBTOOL TAG CONFIG: $tagname
15970 # If there is no Makefile yet, we rely on a make rule to execute
15971 # `config.status --recheck' to rerun these tests and create the
15972 # libtool script then.
15973 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15974 if test -f "$ltmain_in"; then
15975 test -f Makefile && make "$ltmain"
15981 ac_cpp='$CPP $CPPFLAGS'
15982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15997 # Source file extension for Java test sources.
16000 # Object file extension for compiled Java test sources.
16004 # Code to be used in simple compile tests
16005 lt_simple_compile_test_code="class foo {}\n"
16007 # Code to be used in simple link tests
16008 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16010 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16012 # If no C compiler was specified, use CC.
16015 # If no C compiler flags were specified, use CFLAGS.
16016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16018 # Allow CC to be a program name with arguments.
16022 # save warnings/boilerplate of simple test code
16023 ac_outfile=conftest.$ac_objext
16024 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16025 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16026 _lt_compiler_boilerplate=`cat conftest.err`
16029 ac_outfile=conftest.$ac_objext
16030 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16031 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16032 _lt_linker_boilerplate=`cat conftest.err`
16036 # Allow CC to be a program name with arguments.
16041 for cc_temp in $compiler""; do
16043 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16044 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16049 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16052 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16053 archive_cmds_need_lc_GCJ=no
16055 old_archive_cmds_GCJ=$old_archive_cmds
16058 ## There is no encapsulation within the following macros, do not change
16059 ## the running order or otherwise move them around unless you know exactly
16060 ## what you are doing...
16062 lt_prog_compiler_no_builtin_flag_GCJ=
16064 if test "$GCC" = yes; then
16065 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16068 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16069 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16070 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 lt_cv_prog_compiler_rtti_exceptions=no
16074 ac_outfile=conftest.$ac_objext
16075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16076 lt_compiler_flag="-fno-rtti -fno-exceptions"
16077 # Insert the option either (1) after the last *FLAGS variable, or
16078 # (2) before a word containing "conftest.", or (3) at the end.
16079 # Note that $ac_compile itself does not contain backslashes and begins
16080 # with a dollar sign (not a hyphen), so the echo should work correctly.
16081 # The option is referenced via a variable to avoid confusing sed.
16082 lt_compile=`echo "$ac_compile" | $SED \
16083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16085 -e 's:$: $lt_compiler_flag:'`
16086 (eval echo "\"\$as_me:16086: $lt_compile\"" >&5)
16087 (eval "$lt_compile" 2>conftest.err)
16089 cat conftest.err >&5
16090 echo "$as_me:16090: \$? = $ac_status" >&5
16091 if (exit $ac_status) && test -s "$ac_outfile"; then
16092 # The compiler can only warn and ignore the option if not recognized
16093 # So say no if there are warnings other than the usual output.
16094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16097 lt_cv_prog_compiler_rtti_exceptions=yes
16103 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16104 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16106 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16107 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16114 lt_prog_compiler_wl_GCJ=
16115 lt_prog_compiler_pic_GCJ=
16116 lt_prog_compiler_static_GCJ=
16118 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16119 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16121 if test "$GCC" = yes; then
16122 lt_prog_compiler_wl_GCJ='-Wl,'
16123 lt_prog_compiler_static_GCJ='-static'
16127 # All AIX code is PIC.
16128 if test "$host_cpu" = ia64; then
16129 # AIX 5 now supports IA64 processor
16130 lt_prog_compiler_static_GCJ='-Bstatic'
16135 # FIXME: we need at least 68020 code to build shared libraries, but
16136 # adding the `-m68020' flag to GCC prevents building anything better,
16138 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16141 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16142 # PIC is the default for these OSes.
16145 mingw* | pw32* | os2*)
16146 # This hack is so that the source file can tell whether it is being
16147 # built for inclusion in a dll (and should export symbols for example).
16148 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16151 darwin* | rhapsody*)
16152 # PIC is the default on this platform
16153 # Common symbols not allowed in MH_DYLIB files
16154 lt_prog_compiler_pic_GCJ='-fno-common'
16158 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16159 # Instead, we relocate shared libraries at runtime.
16163 # Just because we use GCC doesn't mean we suddenly get shared libraries
16164 # on systems that don't support them.
16165 lt_prog_compiler_can_build_shared_GCJ=no
16170 if test -d /usr/nec; then
16171 lt_prog_compiler_pic_GCJ=-Kconform_pic
16176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16177 # not for PA HP-UX.
16183 lt_prog_compiler_pic_GCJ='-fPIC'
16189 lt_prog_compiler_pic_GCJ='-fPIC'
16193 # PORTME Check for flag to pass linker flags through the system compiler.
16196 lt_prog_compiler_wl_GCJ='-Wl,'
16197 if test "$host_cpu" = ia64; then
16198 # AIX 5 now supports IA64 processor
16199 lt_prog_compiler_static_GCJ='-Bstatic'
16201 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16205 # PIC is the default on this platform
16206 # Common symbols not allowed in MH_DYLIB files
16207 case $cc_basename in
16209 lt_prog_compiler_pic_GCJ='-qnocommon'
16210 lt_prog_compiler_wl_GCJ='-Wl,'
16215 mingw* | pw32* | os2*)
16216 # This hack is so that the source file can tell whether it is being
16217 # built for inclusion in a dll (and should export symbols for example).
16218 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16221 hpux9* | hpux10* | hpux11*)
16222 lt_prog_compiler_wl_GCJ='-Wl,'
16223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16224 # not for PA HP-UX.
16230 lt_prog_compiler_pic_GCJ='+Z'
16233 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16234 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16237 irix5* | irix6* | nonstopux*)
16238 lt_prog_compiler_wl_GCJ='-Wl,'
16239 # PIC (with -KPIC) is the default.
16240 lt_prog_compiler_static_GCJ='-non_shared'
16244 lt_prog_compiler_pic_GCJ='-KPIC'
16245 lt_prog_compiler_static_GCJ='-Bstatic'
16249 case $cc_basename in
16251 lt_prog_compiler_wl_GCJ='-Wl,'
16252 lt_prog_compiler_pic_GCJ='-KPIC'
16253 lt_prog_compiler_static_GCJ='-static'
16255 pgcc* | pgf77* | pgf90* | pgf95*)
16256 # Portland Group compilers (*not* the Pentium gcc compiler,
16257 # which looks to be a dead project)
16258 lt_prog_compiler_wl_GCJ='-Wl,'
16259 lt_prog_compiler_pic_GCJ='-fpic'
16260 lt_prog_compiler_static_GCJ='-Bstatic'
16263 lt_prog_compiler_wl_GCJ='-Wl,'
16264 # All Alpha code is PIC.
16265 lt_prog_compiler_static_GCJ='-non_shared'
16270 osf3* | osf4* | osf5*)
16271 lt_prog_compiler_wl_GCJ='-Wl,'
16272 # All OSF/1 code is PIC.
16273 lt_prog_compiler_static_GCJ='-non_shared'
16277 lt_prog_compiler_pic_GCJ='-KPIC'
16278 lt_prog_compiler_static_GCJ='-Bstatic'
16279 case $cc_basename in
16280 f77* | f90* | f95*)
16281 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16283 lt_prog_compiler_wl_GCJ='-Wl,';;
16288 lt_prog_compiler_wl_GCJ='-Qoption ld '
16289 lt_prog_compiler_pic_GCJ='-PIC'
16290 lt_prog_compiler_static_GCJ='-Bstatic'
16293 sysv4 | sysv4.2uw2* | sysv4.3*)
16294 lt_prog_compiler_wl_GCJ='-Wl,'
16295 lt_prog_compiler_pic_GCJ='-KPIC'
16296 lt_prog_compiler_static_GCJ='-Bstatic'
16300 if test -d /usr/nec ;then
16301 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16302 lt_prog_compiler_static_GCJ='-Bstatic'
16306 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16307 lt_prog_compiler_wl_GCJ='-Wl,'
16308 lt_prog_compiler_pic_GCJ='-KPIC'
16309 lt_prog_compiler_static_GCJ='-Bstatic'
16313 lt_prog_compiler_wl_GCJ='-Wl,'
16314 lt_prog_compiler_can_build_shared_GCJ=no
16318 lt_prog_compiler_pic_GCJ='-pic'
16319 lt_prog_compiler_static_GCJ='-Bstatic'
16323 lt_prog_compiler_can_build_shared_GCJ=no
16328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16329 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16332 # Check to make sure the PIC flag actually works.
16334 if test -n "$lt_prog_compiler_pic_GCJ"; then
16336 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16337 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16338 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 lt_prog_compiler_pic_works_GCJ=no
16342 ac_outfile=conftest.$ac_objext
16343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16344 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16345 # Insert the option either (1) after the last *FLAGS variable, or
16346 # (2) before a word containing "conftest.", or (3) at the end.
16347 # Note that $ac_compile itself does not contain backslashes and begins
16348 # with a dollar sign (not a hyphen), so the echo should work correctly.
16349 # The option is referenced via a variable to avoid confusing sed.
16350 lt_compile=`echo "$ac_compile" | $SED \
16351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16353 -e 's:$: $lt_compiler_flag:'`
16354 (eval echo "\"\$as_me:16354: $lt_compile\"" >&5)
16355 (eval "$lt_compile" 2>conftest.err)
16357 cat conftest.err >&5
16358 echo "$as_me:16358: \$? = $ac_status" >&5
16359 if (exit $ac_status) && test -s "$ac_outfile"; then
16360 # The compiler can only warn and ignore the option if not recognized
16361 # So say no if there are warnings other than the usual output.
16362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16365 lt_prog_compiler_pic_works_GCJ=yes
16371 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16372 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16374 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16375 case $lt_prog_compiler_pic_GCJ in
16377 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16380 lt_prog_compiler_pic_GCJ=
16381 lt_prog_compiler_can_build_shared_GCJ=no
16386 # For platforms which do not support PIC, -DPIC is meaningless:
16388 lt_prog_compiler_pic_GCJ=
16391 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16396 # Check to make sure the static flag actually works.
16398 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16399 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16400 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16401 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16402 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 lt_prog_compiler_static_works_GCJ=no
16405 save_LDFLAGS="$LDFLAGS"
16406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16407 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16409 # The linker can only warn and ignore the option if not recognized
16410 # So say no if there are warnings
16411 if test -s conftest.err; then
16412 # Append any errors to the config.log.
16413 cat conftest.err 1>&5
16414 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16416 if diff conftest.exp conftest.er2 >/dev/null; then
16417 lt_prog_compiler_static_works_GCJ=yes
16420 lt_prog_compiler_static_works_GCJ=yes
16424 LDFLAGS="$save_LDFLAGS"
16427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16428 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16430 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16433 lt_prog_compiler_static_GCJ=
16437 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16439 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 lt_cv_prog_compiler_c_o_GCJ=no
16443 $rm -r conftest 2>/dev/null
16447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16449 lt_compiler_flag="-o out/conftest2.$ac_objext"
16450 # Insert the option either (1) after the last *FLAGS variable, or
16451 # (2) before a word containing "conftest.", or (3) at the end.
16452 # Note that $ac_compile itself does not contain backslashes and begins
16453 # with a dollar sign (not a hyphen), so the echo should work correctly.
16454 lt_compile=`echo "$ac_compile" | $SED \
16455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16457 -e 's:$: $lt_compiler_flag:'`
16458 (eval echo "\"\$as_me:16458: $lt_compile\"" >&5)
16459 (eval "$lt_compile" 2>out/conftest.err)
16461 cat out/conftest.err >&5
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16465 # The compiler can only warn and ignore the option if not recognized
16466 # So say no if there are warnings
16467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16470 lt_cv_prog_compiler_c_o_GCJ=yes
16475 # SGI C++ compiler will create directory out/ii_files/ for
16476 # template instantiation
16477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16478 $rm out/* && rmdir out
16484 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16488 hard_links="nottested"
16489 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16490 # do not overwrite the value of need_locks provided by the user
16491 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16492 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16497 ln conftest.a conftest.b 2>&5 || hard_links=no
16498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16499 { echo "$as_me:$LINENO: result: $hard_links" >&5
16500 echo "${ECHO_T}$hard_links" >&6; }
16501 if test "$hard_links" = no; then
16502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16503 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16510 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16514 allow_undefined_flag_GCJ=
16515 enable_shared_with_static_runtimes_GCJ=no
16517 archive_expsym_cmds_GCJ=
16518 old_archive_From_new_cmds_GCJ=
16519 old_archive_from_expsyms_cmds_GCJ=
16520 export_dynamic_flag_spec_GCJ=
16521 whole_archive_flag_spec_GCJ=
16522 thread_safe_flag_spec_GCJ=
16523 hardcode_libdir_flag_spec_GCJ=
16524 hardcode_libdir_flag_spec_ld_GCJ=
16525 hardcode_libdir_separator_GCJ=
16526 hardcode_direct_GCJ=no
16527 hardcode_minus_L_GCJ=no
16528 hardcode_shlibpath_var_GCJ=unsupported
16529 link_all_deplibs_GCJ=unknown
16530 hardcode_automatic_GCJ=no
16532 module_expsym_cmds_GCJ=
16533 always_export_symbols_GCJ=no
16534 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16535 # include_expsyms should be a list of space-separated symbols to be *always*
16536 # included in the symbol list
16537 include_expsyms_GCJ=
16538 # exclude_expsyms can be an extended regexp of symbols to exclude
16539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16541 # as well as any symbol that contains `d'.
16542 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16544 # platforms (ab)use it in PIC code, but their linkers get confused if
16545 # the symbol is explicitly referenced. Since portable code cannot
16546 # rely on this symbol name, it's probably fine to never include it in
16547 # preloaded symbol tables.
16548 extract_expsyms_cmds=
16549 # Just being paranoid about ensuring that cc_basename is set.
16550 for cc_temp in $compiler""; do
16552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16558 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16561 cygwin* | mingw* | pw32*)
16562 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16563 # When not using gcc, we currently assume that we are using
16564 # Microsoft Visual C++.
16565 if test "$GCC" != yes; then
16570 # we just hope/assume this is gcc and not c89 (= MSVC++)
16579 if test "$with_gnu_ld" = yes; then
16580 # If archive_cmds runs LD, not CC, wlarc should be empty
16583 # Set some defaults for GNU ld with shared library support. These
16584 # are reset later if shared libraries are not supported. Putting them
16585 # here allows them to be overridden if necessary.
16586 runpath_var=LD_RUN_PATH
16587 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16588 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16589 # ancient GNU ld didn't support --whole-archive et. al.
16590 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16591 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16593 whole_archive_flag_spec_GCJ=
16595 supports_anon_versioning=no
16596 case `$LD -v 2>/dev/null` in
16597 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16598 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16599 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16600 *\ 2.11.*) ;; # other 2.11 versions
16601 *) supports_anon_versioning=yes ;;
16604 # See if GNU ld supports shared libraries.
16606 aix3* | aix4* | aix5*)
16607 # On AIX/PPC, the GNU linker is very broken
16608 if test "$host_cpu" != ia64; then
16612 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16613 *** to be unable to reliably create shared libraries on AIX.
16614 *** Therefore, libtool is disabling shared libraries support. If you
16615 *** really care for shared libraries, you may want to modify your PATH
16616 *** so that a non-GNU linker is found, and then restart.
16623 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)'
16624 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16625 hardcode_minus_L_GCJ=yes
16627 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16628 # that the semantics of dynamic libraries on AmigaOS, at least up
16629 # to version 4, is to share data among multiple programs linked
16630 # with the same dynamic library. Since this doesn't match the
16631 # behavior of shared libraries on other platforms, we can't use
16637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16638 allow_undefined_flag_GCJ=unsupported
16639 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16640 # support --undefined. This deserves some investigation. FIXME
16641 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16647 cygwin* | mingw* | pw32*)
16648 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16649 # as there is no search path for DLLs.
16650 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16651 allow_undefined_flag_GCJ=unsupported
16652 always_export_symbols_GCJ=no
16653 enable_shared_with_static_runtimes_GCJ=yes
16654 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16656 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16657 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16658 # If the export-symbols file already is a .def file (1st line
16659 # is EXPORTS), use it as is; otherwise, prepend...
16660 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16661 cp $export_symbols $output_objdir/$soname.def;
16663 echo EXPORTS > $output_objdir/$soname.def;
16664 cat $export_symbols >> $output_objdir/$soname.def;
16666 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16673 hardcode_direct_GCJ=no
16674 hardcode_shlibpath_var_GCJ=no
16675 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16676 export_dynamic_flag_spec_GCJ='${wl}-E'
16677 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16678 # Instead, shared libraries are loaded at an image base (0x10000000 by
16679 # default) and relocated if they conflict, which is a slow very memory
16680 # consuming and fragmenting process. To avoid this, we pick a random,
16681 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16682 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16683 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'
16684 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'
16688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16690 case $cc_basename,$host_cpu in
16691 pgcc*) # Portland Group C compiler
16692 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'
16693 tmp_addflag=' $pic_flag'
16695 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16696 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'
16697 tmp_addflag=' $pic_flag -Mnomain' ;;
16698 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16699 tmp_addflag=' -i_dynamic' ;;
16700 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16701 tmp_addflag=' -i_dynamic -nofor_main' ;;
16702 ifc* | ifort*) # Intel Fortran compiler
16703 tmp_addflag=' -nofor_main' ;;
16705 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16707 if test $supports_anon_versioning = yes; then
16708 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16710 $echo "local: *; };" >> $output_objdir/$libname.ver~
16711 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16720 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16723 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16729 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16734 *** create shared libraries on Solaris systems. Therefore, libtool
16735 *** is disabling shared libraries support. We urge you to upgrade GNU
16736 *** binutils to release 2.9.1 or newer. Another option is to modify
16737 *** your PATH or compiler configuration so that the native linker is
16738 *** used, and then restart.
16741 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16742 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16743 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16750 case `$LD -v 2>&1` in
16751 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16755 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16756 *** reliably create shared libraries on SCO systems. Therefore, libtool
16757 *** is disabling shared libraries support. We urge you to upgrade GNU
16758 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16759 *** your PATH or compiler configuration so that the native linker is
16760 *** used, and then restart.
16765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16766 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16767 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16768 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16777 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16779 hardcode_direct_GCJ=yes
16780 hardcode_shlibpath_var_GCJ=no
16784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16793 if test "$ld_shlibs_GCJ" = no; then
16795 hardcode_libdir_flag_spec_GCJ=
16796 export_dynamic_flag_spec_GCJ=
16797 whole_archive_flag_spec_GCJ=
16800 # PORTME fill in a description of your system's linker (not GNU ld)
16803 allow_undefined_flag_GCJ=unsupported
16804 always_export_symbols_GCJ=yes
16805 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'
16806 # Note: this linker hardcodes the directories in LIBPATH if there
16807 # are no directories specified by -L.
16808 hardcode_minus_L_GCJ=yes
16809 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16810 # Neither direct hardcoding nor static linking is supported with a
16812 hardcode_direct_GCJ=unsupported
16817 if test "$host_cpu" = ia64; then
16818 # On IA64, the linker does run time linking by default, so we don't
16819 # have to do anything special.
16820 aix_use_runtimelinking=no
16821 exp_sym_flag='-Bexport'
16824 # If we're using GNU nm, then we don't want the "-C" option.
16825 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16826 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16827 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'
16829 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'
16831 aix_use_runtimelinking=no
16833 # Test if we are trying to use run time linking or normal
16834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16835 # need to do runtime linking.
16836 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16837 for ld_flag in $LDFLAGS; do
16838 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16839 aix_use_runtimelinking=yes
16846 exp_sym_flag='-bexport'
16847 no_entry_flag='-bnoentry'
16850 # When large executables or shared objects are built, AIX ld can
16851 # have problems creating the table of contents. If linking a library
16852 # or program results in "error TOC overflow" add -mminimal-toc to
16853 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16854 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16856 archive_cmds_GCJ=''
16857 hardcode_direct_GCJ=yes
16858 hardcode_libdir_separator_GCJ=':'
16859 link_all_deplibs_GCJ=yes
16861 if test "$GCC" = yes; then
16862 case $host_os in aix4.[012]|aix4.[012].*)
16863 # We only want to do this on AIX 4.2 and lower, the check
16864 # below for broken collect2 doesn't work under 4.3+
16865 collect2name=`${CC} -print-prog-name=collect2`
16866 if test -f "$collect2name" && \
16867 strings "$collect2name" | grep resolve_lib_name >/dev/null
16869 # We have reworked collect2
16870 hardcode_direct_GCJ=yes
16872 # We have old collect2
16873 hardcode_direct_GCJ=unsupported
16874 # It fails to find uninstalled libraries when the uninstalled
16875 # path is not listed in the libpath. Setting hardcode_minus_L
16876 # to unsupported forces relinking
16877 hardcode_minus_L_GCJ=yes
16878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16879 hardcode_libdir_separator_GCJ=
16883 shared_flag='-shared'
16884 if test "$aix_use_runtimelinking" = yes; then
16885 shared_flag="$shared_flag "'${wl}-G'
16889 if test "$host_cpu" = ia64; then
16890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16891 # chokes on -Wl,-G. The following line is correct:
16894 if test "$aix_use_runtimelinking" = yes; then
16895 shared_flag='${wl}-G'
16897 shared_flag='${wl}-bM:SRE'
16902 # It seems that -bexpall does not export symbols beginning with
16903 # underscore (_), so it is better to generate a list of symbols to export.
16904 always_export_symbols_GCJ=yes
16905 if test "$aix_use_runtimelinking" = yes; then
16906 # Warning - without using the other runtime loading flags (-brtl),
16907 # -berok will link without error, but may produce a broken library.
16908 allow_undefined_flag_GCJ='-berok'
16909 # Determine the default libpath from the value encoded in an empty executable.
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16925 rm -f conftest.$ac_objext conftest$ac_exeext
16926 if { (ac_try="$ac_link"
16927 case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_link") 2>conftest.er1
16934 grep -v '^ *+' conftest.er1 >conftest.err
16936 cat conftest.err >&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } && {
16939 test -z "$ac_c_werror_flag" ||
16940 test ! -s conftest.err
16941 } && test -s conftest$ac_exeext &&
16942 $as_test_x conftest$ac_exeext; then
16944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16946 # Check for a 64-bit object if we didn't find anything.
16947 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; }
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957 conftest$ac_exeext conftest.$ac_ext
16958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16960 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16961 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"
16963 if test "$host_cpu" = ia64; then
16964 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16965 allow_undefined_flag_GCJ="-z nodefs"
16966 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"
16968 # Determine the default libpath from the value encoded in an empty executable.
16969 cat >conftest.$ac_ext <<_ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16984 rm -f conftest.$ac_objext conftest$ac_exeext
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest$ac_exeext &&
17001 $as_test_x conftest$ac_exeext; then
17003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17005 # Check for a 64-bit object if we didn't find anything.
17006 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; }
17009 echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016 conftest$ac_exeext conftest.$ac_ext
17017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17019 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17020 # Warning - without using the other run time loading flags,
17021 # -berok will link without error, but may produce a broken library.
17022 no_undefined_flag_GCJ=' ${wl}-bernotok'
17023 allow_undefined_flag_GCJ=' ${wl}-berok'
17024 # Exported symbols can be pulled into shared objects from archives
17025 whole_archive_flag_spec_GCJ='$convenience'
17026 archive_cmds_need_lc_GCJ=yes
17027 # This is similar to how AIX traditionally builds its shared libraries.
17028 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'
17034 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)'
17035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17036 hardcode_minus_L_GCJ=yes
17037 # see comment about different semantics on the GNU ld section
17042 export_dynamic_flag_spec_GCJ=-rdynamic
17045 cygwin* | mingw* | pw32*)
17046 # When not using gcc, we currently assume that we are using
17047 # Microsoft Visual C++.
17048 # hardcode_libdir_flag_spec is actually meaningless, as there is
17049 # no search path for DLLs.
17050 hardcode_libdir_flag_spec_GCJ=' '
17051 allow_undefined_flag_GCJ=unsupported
17052 # Tell ltmain to make .lib files, not .a files.
17054 # Tell ltmain to make .dll files, not .so files.
17056 # FIXME: Setting linknames here is a bad hack.
17057 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17058 # The linker will automatically build a .lib file if we build a DLL.
17059 old_archive_From_new_cmds_GCJ='true'
17060 # FIXME: Should let the user specify the lib program.
17061 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17062 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17063 enable_shared_with_static_runtimes_GCJ=yes
17066 darwin* | rhapsody*)
17068 rhapsody* | darwin1.[012])
17069 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17073 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17075 case ${MACOSX_DEPLOYMENT_TARGET} in
17077 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17080 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17086 archive_cmds_need_lc_GCJ=no
17087 hardcode_direct_GCJ=no
17088 hardcode_automatic_GCJ=yes
17089 hardcode_shlibpath_var_GCJ=unsupported
17090 whole_archive_flag_spec_GCJ=''
17091 link_all_deplibs_GCJ=yes
17092 if test "$GCC" = yes ; then
17093 output_verbose_link_cmd='echo'
17094 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17095 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17096 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17097 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}'
17098 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}'
17100 case $cc_basename in
17102 output_verbose_link_cmd='echo'
17103 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17104 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17105 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17106 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}'
17107 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}'
17117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17119 hardcode_shlibpath_var_GCJ=no
17126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17127 # support. Future versions do this automatically, but an explicit c++rt0.o
17128 # does not break anything, and helps significantly (at the cost of a little
17131 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17132 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17133 hardcode_direct_GCJ=yes
17134 hardcode_shlibpath_var_GCJ=no
17137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17139 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17140 hardcode_direct_GCJ=yes
17141 hardcode_minus_L_GCJ=yes
17142 hardcode_shlibpath_var_GCJ=no
17145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17146 freebsd* | kfreebsd*-gnu | dragonfly*)
17147 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17149 hardcode_direct_GCJ=yes
17150 hardcode_shlibpath_var_GCJ=no
17154 if test "$GCC" = yes; then
17155 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'
17157 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'
17159 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17160 hardcode_libdir_separator_GCJ=:
17161 hardcode_direct_GCJ=yes
17163 # hardcode_minus_L: Not really in the search PATH,
17164 # but as the default location of the library.
17165 hardcode_minus_L_GCJ=yes
17166 export_dynamic_flag_spec_GCJ='${wl}-E'
17170 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17171 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17173 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17175 if test "$with_gnu_ld" = no; then
17176 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17177 hardcode_libdir_separator_GCJ=:
17179 hardcode_direct_GCJ=yes
17180 export_dynamic_flag_spec_GCJ='${wl}-E'
17182 # hardcode_minus_L: Not really in the search PATH,
17183 # but as the default location of the library.
17184 hardcode_minus_L_GCJ=yes
17189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17192 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17195 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17204 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17207 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17210 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17214 if test "$with_gnu_ld" = no; then
17215 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17216 hardcode_libdir_separator_GCJ=:
17220 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17221 hardcode_direct_GCJ=no
17222 hardcode_shlibpath_var_GCJ=no
17225 hardcode_direct_GCJ=yes
17226 export_dynamic_flag_spec_GCJ='${wl}-E'
17228 # hardcode_minus_L: Not really in the search PATH,
17229 # but as the default location of the library.
17230 hardcode_minus_L_GCJ=yes
17236 irix5* | irix6* | nonstopux*)
17237 if test "$GCC" = yes; then
17238 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'
17240 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'
17241 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17244 hardcode_libdir_separator_GCJ=:
17245 link_all_deplibs_GCJ=yes
17249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17250 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17252 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17255 hardcode_direct_GCJ=yes
17256 hardcode_shlibpath_var_GCJ=no
17260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261 hardcode_direct_GCJ=yes
17262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17263 hardcode_libdir_separator_GCJ=:
17264 hardcode_shlibpath_var_GCJ=no
17268 hardcode_direct_GCJ=yes
17269 hardcode_shlibpath_var_GCJ=no
17270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17271 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17272 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17274 export_dynamic_flag_spec_GCJ='${wl}-E'
17277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17278 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17279 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17282 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17283 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291 hardcode_minus_L_GCJ=yes
17292 allow_undefined_flag_GCJ=unsupported
17293 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'
17294 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17298 if test "$GCC" = yes; then
17299 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17300 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'
17302 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17303 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'
17305 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17306 hardcode_libdir_separator_GCJ=:
17309 osf4* | osf5*) # as osf3* with the addition of -msym flag
17310 if test "$GCC" = yes; then
17311 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17312 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'
17313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17315 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17316 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'
17317 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~
17318 $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'
17320 # Both c and cxx compiler support -rpath directly
17321 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17323 hardcode_libdir_separator_GCJ=:
17327 no_undefined_flag_GCJ=' -z text'
17328 if test "$GCC" = yes; then
17330 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17332 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17335 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17336 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17337 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17339 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17340 hardcode_shlibpath_var_GCJ=no
17342 solaris2.[0-5] | solaris2.[0-5].*) ;;
17344 # The compiler driver will combine linker options so we
17345 # cannot just pass the convience library names through
17346 # without $wl, iff we do not link with $LD.
17347 # Luckily, gcc supports the same syntax we need for Sun Studio.
17348 # Supported since Solaris 2.6 (maybe 2.5.1?)
17351 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17353 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' ;;
17356 link_all_deplibs_GCJ=yes
17360 if test "x$host_vendor" = xsequent; then
17361 # Use $CC to link under sequent, because it throws in some extra .o
17362 # files that make .init and .fini sections work.
17363 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17365 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17368 hardcode_direct_GCJ=yes
17369 hardcode_minus_L_GCJ=yes
17370 hardcode_shlibpath_var_GCJ=no
17374 case $host_vendor in
17376 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17377 hardcode_direct_GCJ=yes # is this really true???
17380 ## LD is ld it makes a PLAMLIB
17381 ## CC just makes a GrossModule.
17382 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17383 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17384 hardcode_direct_GCJ=no
17387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17391 runpath_var='LD_RUN_PATH'
17392 hardcode_shlibpath_var_GCJ=no
17396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397 hardcode_shlibpath_var_GCJ=no
17398 export_dynamic_flag_spec_GCJ='-Bexport'
17402 if test -d /usr/nec; then
17403 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17404 hardcode_shlibpath_var_GCJ=no
17405 runpath_var=LD_RUN_PATH
17406 hardcode_runpath_var=yes
17411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17412 no_undefined_flag_GCJ='${wl}-z,text'
17413 archive_cmds_need_lc_GCJ=no
17414 hardcode_shlibpath_var_GCJ=no
17415 runpath_var='LD_RUN_PATH'
17417 if test "$GCC" = yes; then
17418 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17426 sysv5* | sco3.2v5* | sco5v6*)
17427 # Note: We can NOT use -z defs as we might desire, because we do not
17428 # link with -lc, and that would cause any symbols used from libc to
17429 # always be unresolved, which means just about no library would
17430 # ever link correctly. If we're not using GNU ld we use -z text
17431 # though, which does catch some bad symbols but isn't as heavy-handed
17433 no_undefined_flag_GCJ='${wl}-z,text'
17434 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17435 archive_cmds_need_lc_GCJ=no
17436 hardcode_shlibpath_var_GCJ=no
17437 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17438 hardcode_libdir_separator_GCJ=':'
17439 link_all_deplibs_GCJ=yes
17440 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17441 runpath_var='LD_RUN_PATH'
17443 if test "$GCC" = yes; then
17444 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17453 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455 hardcode_shlibpath_var_GCJ=no
17464 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17465 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17466 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17469 # Do we need to explicitly link libc?
17471 case "x$archive_cmds_need_lc_GCJ" in
17473 # Assume -lc should be added
17474 archive_cmds_need_lc_GCJ=yes
17476 if test "$enable_shared" = yes && test "$GCC" = yes; then
17477 case $archive_cmds_GCJ in
17479 # FIXME: we may have to deal with multi-command sequences.
17482 # Test whether the compiler implicitly links with -lc since on some
17483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17484 # to ld, don't add -lc before -lgcc.
17485 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17486 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491 (eval $ac_compile) 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } 2>conftest.err; then
17497 libobjs=conftest.$ac_objext
17499 wl=$lt_prog_compiler_wl_GCJ
17500 pic_flag=$lt_prog_compiler_pic_GCJ
17506 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17507 allow_undefined_flag_GCJ=
17508 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17509 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }
17514 archive_cmds_need_lc_GCJ=no
17516 archive_cmds_need_lc_GCJ=yes
17518 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17520 cat conftest.err 1>&5
17523 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17524 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17531 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17532 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17533 library_names_spec=
17534 libname_spec='lib$name'
17538 postuninstall_cmds=
17542 shlibpath_overrides_runpath=unknown
17544 dynamic_linker="$host_os ld.so"
17545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17546 if test "$GCC" = yes; then
17547 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17548 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17549 # if the path contains ";" then we assume it to be the separator
17550 # otherwise default to the standard path separator (i.e. ":") - it is
17551 # assumed that no part of a normal pathname contains ";" but that should
17552 # okay in the real world where ";" in dirpaths is itself problematic.
17553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17558 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17560 need_lib_prefix=unknown
17561 hardcode_into_libs=no
17563 # when you set need_version to no, make sure it does not cause -set_version
17564 # flags to be left without arguments
17565 need_version=unknown
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17571 shlibpath_var=LIBPATH
17573 # AIX 3 has no versioning support, so we append a major version to the name.
17574 soname_spec='${libname}${release}${shared_ext}$major'
17581 hardcode_into_libs=yes
17582 if test "$host_cpu" = ia64; then
17583 # AIX 5 supports IA64
17584 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17585 shlibpath_var=LD_LIBRARY_PATH
17587 # With GCC up to 2.95.x, collect2 would create an import file
17588 # for dependence libraries. The import file would start with
17589 # the line `#! .'. This would cause the generated library to
17590 # depend on `.', always an invalid library. This was fixed in
17591 # development snapshots of GCC prior to 3.0.
17593 aix4 | aix4.[01] | aix4.[01].*)
17594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17596 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17599 can_build_shared=no
17603 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17604 # soname into executable. Probably we can add versioning support to
17605 # collect2, so additional links can be useful in future.
17606 if test "$aix_use_runtimelinking" = yes; then
17607 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17608 # instead of lib<name>.a to let people know that these are not
17609 # typical AIX shared libraries.
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 # We preserve .a as extension for shared libraries through AIX4.2
17613 # and later when we are not doing run time linking.
17614 library_names_spec='${libname}${release}.a $libname.a'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17617 shlibpath_var=LIBPATH
17622 library_names_spec='$libname.ixlibrary $libname.a'
17623 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17624 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'
17628 library_names_spec='${libname}${shared_ext}'
17629 dynamic_linker="$host_os ld.so"
17630 shlibpath_var=LIBRARY_PATH
17636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17637 soname_spec='${libname}${release}${shared_ext}$major'
17638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17639 shlibpath_var=LD_LIBRARY_PATH
17640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17642 # the default ld.so.conf also contains /usr/contrib/lib and
17643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17644 # libtool to hard-code these into programs
17647 cygwin* | mingw* | pw32*)
17648 version_type=windows
17653 case $GCC,$host_os in
17654 yes,cygwin* | yes,mingw* | yes,pw32*)
17655 library_names_spec='$libname.dll.a'
17656 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17657 postinstall_cmds='base_file=`basename \${file}`~
17658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17659 dldir=$destdir/`dirname \$dlpath`~
17660 test -d \$dldir || mkdir -p \$dldir~
17661 $install_prog $dir/$dlname \$dldir/$dlname~
17662 chmod a+x \$dldir/$dlname'
17663 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17664 dlpath=$dir/\$dldll~
17666 shlibpath_overrides_runpath=yes
17670 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17671 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17672 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17675 # MinGW DLLs use traditional 'lib' prefix
17676 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17678 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17679 # It is most probably a Windows format PATH printed by
17680 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17681 # path with ; separators, and with drive letters. We can handle the
17682 # drive letters (cygwin fileutils understands them), so leave them,
17683 # especially as we might pass files found there to a mingw objdump,
17684 # which wouldn't understand a cygwinified path. Ahh.
17685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17691 # pw32 DLLs use 'pw' prefix rather than 'lib'
17692 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17698 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17701 dynamic_linker='Win32 ld.exe'
17702 # FIXME: first we should search . and the directory the executable is in
17706 darwin* | rhapsody*)
17707 dynamic_linker="$host_os dyld"
17708 version_type=darwin
17711 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17712 soname_spec='${libname}${release}${major}$shared_ext'
17713 shlibpath_overrides_runpath=yes
17714 shlibpath_var=DYLD_LIBRARY_PATH
17715 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17716 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17717 if test "$GCC" = yes; then
17718 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"`
17720 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=no
17746 hardcode_into_libs=yes
17747 dynamic_linker='GNU ld.so'
17750 freebsd* | dragonfly*)
17751 # DragonFly does not have aout. When/if they implement a new
17752 # versioning mechanism, adjust this.
17753 if test -x /usr/bin/objformat; then
17754 objformat=`/usr/bin/objformat`
17757 freebsd[123]*) objformat=aout ;;
17758 *) objformat=elf ;;
17761 version_type=freebsd-$objformat
17762 case $version_type in
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17773 shlibpath_var=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath=yes
17778 freebsd3.[01]* | freebsdelf3.[01]*)
17779 shlibpath_overrides_runpath=yes
17780 hardcode_into_libs=yes
17782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17784 shlibpath_overrides_runpath=no
17785 hardcode_into_libs=yes
17787 freebsd*) # from 4.6 on
17788 shlibpath_overrides_runpath=yes
17789 hardcode_into_libs=yes
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17799 soname_spec='${libname}${release}${shared_ext}$major'
17800 shlibpath_var=LD_LIBRARY_PATH
17801 hardcode_into_libs=yes
17804 hpux9* | hpux10* | hpux11*)
17805 # Give a soname corresponding to the major version so that dld.sl refuses to
17806 # link against other versions.
17813 hardcode_into_libs=yes
17814 dynamic_linker="$host_os dld.so"
17815 shlibpath_var=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 if test "X$HPUX_IA64_MODE" = X32; then
17820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17828 hardcode_into_libs=yes
17829 dynamic_linker="$host_os dld.sl"
17830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833 soname_spec='${libname}${release}${shared_ext}$major'
17834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17839 dynamic_linker="$host_os dld.sl"
17840 shlibpath_var=SHLIB_PATH
17841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 soname_spec='${libname}${release}${shared_ext}$major'
17846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17847 postinstall_cmds='chmod 555 $lib'
17854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17855 soname_spec='${libname}${release}${shared_ext}$major'
17856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=no
17859 hardcode_into_libs=yes
17862 irix5* | irix6* | nonstopux*)
17864 nonstopux*) version_type=nonstopux ;;
17866 if test "$lt_cv_prog_gnu_ld" = yes; then
17874 soname_spec='${libname}${release}${shared_ext}$major'
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17877 irix5* | nonstopux*)
17878 libsuff= shlibsuff=
17881 case $LD in # libtool.m4 will add one of these switches to LD
17882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17883 libsuff= shlibsuff= libmagic=32-bit;;
17884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17885 libsuff=32 shlibsuff=N32 libmagic=N32;;
17886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17888 *) libsuff= shlibsuff= libmagic=never-match;;
17892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17893 shlibpath_overrides_runpath=no
17894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17896 hardcode_into_libs=yes
17899 # No shared lib support for Linux oldld, aout, or coff.
17900 linux*oldld* | linux*aout* | linux*coff*)
17904 # This must be Linux ELF.
17909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17910 soname_spec='${libname}${release}${shared_ext}$major'
17911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17912 shlibpath_var=LD_LIBRARY_PATH
17913 shlibpath_overrides_runpath=no
17914 # This implies no fast_install, which is unacceptable.
17915 # Some rework will be needed to allow for fast_install
17916 # before this can be enabled.
17917 hardcode_into_libs=yes
17919 # Append ld.so.conf contents to the search path
17920 if test -f /etc/ld.so.conf; then
17921 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' ' '`
17922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17925 # We used to test for /lib/ld.so.1 and disable shared libraries on
17926 # powerpc, because MkLinux only supported shared libraries with the
17927 # GNU dynamic linker. Since this was broken with cross compilers,
17928 # most powerpc-linux boxes support dynamic linking these days and
17929 # people can always --disable-shared, the test was removed, and we
17930 # assume the GNU/Linux dynamic linker is in use.
17931 dynamic_linker='GNU/Linux ld.so'
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17939 soname_spec='${libname}${release}${shared_ext}$major'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath=no
17942 hardcode_into_libs=yes
17943 dynamic_linker='GNU ld.so'
17950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17953 dynamic_linker='NetBSD (a.out) ld.so'
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17956 soname_spec='${libname}${release}${shared_ext}$major'
17957 dynamic_linker='NetBSD ld.elf_so'
17959 shlibpath_var=LD_LIBRARY_PATH
17960 shlibpath_overrides_runpath=yes
17961 hardcode_into_libs=yes
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 shlibpath_overrides_runpath=yes
17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976 soname_spec='${libname}${release}${shared_ext}$major'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes
17983 sys_lib_dlsearch_path_spec="/usr/lib"
17985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17988 *) need_version=no ;;
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17995 openbsd2.[89] | openbsd2.[89].*)
17996 shlibpath_overrides_runpath=no
17999 shlibpath_overrides_runpath=yes
18003 shlibpath_overrides_runpath=yes
18008 libname_spec='$name'
18011 library_names_spec='$libname${shared_ext} $libname.a'
18012 dynamic_linker='OS/2 ld.exe'
18013 shlibpath_var=LIBPATH
18016 osf3* | osf4* | osf5*)
18020 soname_spec='${libname}${release}${shared_ext}$major'
18021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 shlibpath_var=LD_LIBRARY_PATH
18023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=yes
18035 hardcode_into_libs=yes
18036 # ldd complains unless libraries are executable
18037 postinstall_cmds='chmod +x $lib'
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 shlibpath_overrides_runpath=yes
18046 if test "$with_gnu_ld" = yes; then
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18055 soname_spec='${libname}${release}${shared_ext}$major'
18056 shlibpath_var=LD_LIBRARY_PATH
18057 case $host_vendor in
18059 shlibpath_overrides_runpath=no
18061 export_dynamic_flag_spec='${wl}-Blargedynsym'
18062 runpath_var=LD_RUN_PATH
18070 shlibpath_overrides_runpath=no
18071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18077 if test -d /usr/nec ;then
18079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18080 soname_spec='$libname${shared_ext}.$major'
18081 shlibpath_var=LD_LIBRARY_PATH
18085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18086 version_type=freebsd-elf
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 hardcode_into_libs=yes
18093 if test "$with_gnu_ld" = yes; then
18094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18095 shlibpath_overrides_runpath=no
18097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18098 shlibpath_overrides_runpath=yes
18101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18105 sys_lib_dlsearch_path_spec='/usr/lib'
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 soname_spec='${libname}${release}${shared_ext}$major'
18112 shlibpath_var=LD_LIBRARY_PATH
18119 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18120 echo "${ECHO_T}$dynamic_linker" >&6; }
18121 test "$dynamic_linker" = no && can_build_shared=no
18123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18124 if test "$GCC" = yes; then
18125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18128 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18130 hardcode_action_GCJ=
18131 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18132 test -n "$runpath_var_GCJ" || \
18133 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18135 # We can hardcode non-existant directories.
18136 if test "$hardcode_direct_GCJ" != no &&
18137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18138 # have to relink, otherwise we might link with an installed library
18139 # when we should be linking with a yet-to-be-installed one
18140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18141 test "$hardcode_minus_L_GCJ" != no; then
18142 # Linking always hardcodes the temporary library directory.
18143 hardcode_action_GCJ=relink
18145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18146 hardcode_action_GCJ=immediate
18149 # We cannot hardcode anything, or else we can only hardcode existing
18151 hardcode_action_GCJ=unsupported
18153 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18154 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18156 if test "$hardcode_action_GCJ" = relink; then
18157 # Fast installation is not supported
18158 enable_fast_install=no
18159 elif test "$shlibpath_overrides_runpath" = yes ||
18160 test "$enable_shared" = no; then
18161 # Fast installation is not necessary
18162 enable_fast_install=needless
18166 # The else clause should only fire when bootstrapping the
18167 # libtool distribution, otherwise you forgot to ship ltmain.sh
18168 # with your package, and you will get complaints that there are
18169 # no rules to generate ltmain.sh.
18170 if test -f "$ltmain"; then
18171 # See if we are running on zsh, and set the options which allow our commands through
18172 # without removal of \ escapes.
18173 if test -n "${ZSH_VERSION+set}" ; then
18174 setopt NO_GLOB_SUBST
18176 # Now quote all the things that may contain metacharacters while being
18177 # careful not to overquote the AC_SUBSTed values. We take copies of the
18178 # variables and quote the copies for generation of the libtool script.
18179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18183 deplibs_check_method reload_flag reload_cmds need_locks \
18184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18185 lt_cv_sys_global_symbol_to_c_name_address \
18186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18187 old_postinstall_cmds old_postuninstall_cmds \
18191 lt_prog_compiler_wl_GCJ \
18192 lt_prog_compiler_pic_GCJ \
18193 lt_prog_compiler_static_GCJ \
18194 lt_prog_compiler_no_builtin_flag_GCJ \
18195 export_dynamic_flag_spec_GCJ \
18196 thread_safe_flag_spec_GCJ \
18197 whole_archive_flag_spec_GCJ \
18198 enable_shared_with_static_runtimes_GCJ \
18199 old_archive_cmds_GCJ \
18200 old_archive_from_new_cmds_GCJ \
18201 predep_objects_GCJ \
18202 postdep_objects_GCJ \
18205 compiler_lib_search_path_GCJ \
18207 archive_expsym_cmds_GCJ \
18208 postinstall_cmds_GCJ \
18209 postuninstall_cmds_GCJ \
18210 old_archive_from_expsyms_cmds_GCJ \
18211 allow_undefined_flag_GCJ \
18212 no_undefined_flag_GCJ \
18213 export_symbols_cmds_GCJ \
18214 hardcode_libdir_flag_spec_GCJ \
18215 hardcode_libdir_flag_spec_ld_GCJ \
18216 hardcode_libdir_separator_GCJ \
18217 hardcode_automatic_GCJ \
18219 module_expsym_cmds_GCJ \
18220 lt_cv_prog_compiler_c_o_GCJ \
18221 exclude_expsyms_GCJ \
18222 include_expsyms_GCJ; do
18225 old_archive_cmds_GCJ | \
18226 old_archive_from_new_cmds_GCJ | \
18227 archive_cmds_GCJ | \
18228 archive_expsym_cmds_GCJ | \
18229 module_cmds_GCJ | \
18230 module_expsym_cmds_GCJ | \
18231 old_archive_from_expsyms_cmds_GCJ | \
18232 export_symbols_cmds_GCJ | \
18233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18234 postinstall_cmds | postuninstall_cmds | \
18235 old_postinstall_cmds | old_postuninstall_cmds | \
18236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18237 # Double-quote double-evaled strings.
18238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18247 *'\$0 --fallback-echo"')
18248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18254 cat <<__EOF__ >> "$cfgfile"
18255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18259 # Shell to use when invoking shell scripts.
18262 # Whether or not to build shared libraries.
18263 build_libtool_libs=$enable_shared
18265 # Whether or not to build static libraries.
18266 build_old_libs=$enable_static
18268 # Whether or not to add -lc for building shared libraries.
18269 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18271 # Whether or not to disallow shared libs when runtime libs are static
18272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18274 # Whether or not to optimize for fast installation.
18275 fast_install=$enable_fast_install
18278 host_alias=$host_alias
18282 # The build system.
18283 build_alias=$build_alias
18287 # An echo program that does not interpret backslashes.
18292 AR_FLAGS=$lt_AR_FLAGS
18297 # LTCC compiler flags.
18298 LTCFLAGS=$lt_LTCFLAGS
18300 # A language-specific compiler.
18301 CC=$lt_compiler_GCJ
18303 # Is the compiler the GNU C compiler?
18309 # The linker used to build libraries.
18312 # Whether we need hard or soft links.
18315 # A BSD-compatible nm program.
18318 # A symbol stripping program
18321 # Used to examine libraries when file_magic_cmd begins "file"
18322 MAGIC_CMD=$MAGIC_CMD
18324 # Used on cygwin: DLL creation program.
18327 # Used on cygwin: object dumper.
18330 # Used on cygwin: assembler.
18333 # The name of the directory that contains temporary libtool files.
18336 # How to create reloadable object files.
18337 reload_flag=$lt_reload_flag
18338 reload_cmds=$lt_reload_cmds
18340 # How to pass a linker flag through the compiler.
18341 wl=$lt_lt_prog_compiler_wl_GCJ
18343 # Object file suffix (normally "o").
18344 objext="$ac_objext"
18346 # Old archive suffix (normally "a").
18349 # Shared library suffix (normally ".so").
18350 shrext_cmds='$shrext_cmds'
18352 # Executable file suffix (normally "").
18355 # Additional compiler flags for building library objects.
18356 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18359 # What is the maximum length of a command?
18360 max_cmd_len=$lt_cv_sys_max_cmd_len
18362 # Does compiler simultaneously support -c and -o options?
18363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18365 # Must we lock files when doing compilation?
18366 need_locks=$lt_need_locks
18368 # Do we need the lib prefix for modules?
18369 need_lib_prefix=$need_lib_prefix
18371 # Do we need a version for libraries?
18372 need_version=$need_version
18374 # Whether dlopen is supported.
18375 dlopen_support=$enable_dlopen
18377 # Whether dlopen of programs is supported.
18378 dlopen_self=$enable_dlopen_self
18380 # Whether dlopen of statically linked programs is supported.
18381 dlopen_self_static=$enable_dlopen_self_static
18383 # Compiler flag to prevent dynamic linking.
18384 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18386 # Compiler flag to turn off builtin functions.
18387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18389 # Compiler flag to allow reflexive dlopens.
18390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18392 # Compiler flag to generate shared objects directly from archives.
18393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18395 # Compiler flag to generate thread-safe objects.
18396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18398 # Library versioning type.
18399 version_type=$version_type
18401 # Format of library name prefix.
18402 libname_spec=$lt_libname_spec
18404 # List of archive names. First name is the real one, the rest are links.
18405 # The last name is the one that the linker finds with -lNAME.
18406 library_names_spec=$lt_library_names_spec
18408 # The coded name of the library, if different from the real name.
18409 soname_spec=$lt_soname_spec
18411 # Commands used to build and install an old-style archive.
18413 old_archive_cmds=$lt_old_archive_cmds_GCJ
18414 old_postinstall_cmds=$lt_old_postinstall_cmds
18415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18417 # Create an old-style archive from a shared archive.
18418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18420 # Create a temporary old-style archive to link instead of a shared archive.
18421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18423 # Commands used to build and install a shared archive.
18424 archive_cmds=$lt_archive_cmds_GCJ
18425 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18426 postinstall_cmds=$lt_postinstall_cmds
18427 postuninstall_cmds=$lt_postuninstall_cmds
18429 # Commands used to build a loadable module (assumed same as above if empty)
18430 module_cmds=$lt_module_cmds_GCJ
18431 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18433 # Commands to strip libraries.
18434 old_striplib=$lt_old_striplib
18435 striplib=$lt_striplib
18437 # Dependencies to place before the objects being linked to create a
18439 predep_objects=$lt_predep_objects_GCJ
18441 # Dependencies to place after the objects being linked to create a
18443 postdep_objects=$lt_postdep_objects_GCJ
18445 # Dependencies to place before the objects being linked to create a
18447 predeps=$lt_predeps_GCJ
18449 # Dependencies to place after the objects being linked to create a
18451 postdeps=$lt_postdeps_GCJ
18453 # The library search path used internally by the compiler when linking
18454 # a shared library.
18455 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18457 # Method to check whether dependent libraries are shared objects.
18458 deplibs_check_method=$lt_deplibs_check_method
18460 # Command to use when deplibs_check_method == file_magic.
18461 file_magic_cmd=$lt_file_magic_cmd
18463 # Flag that allows shared libraries with undefined symbols to be built.
18464 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18466 # Flag that forces no undefined symbols.
18467 no_undefined_flag=$lt_no_undefined_flag_GCJ
18469 # Commands used to finish a libtool library installation in a directory.
18470 finish_cmds=$lt_finish_cmds
18472 # Same as above, but a single script fragment to be evaled but not shown.
18473 finish_eval=$lt_finish_eval
18475 # Take the output of nm and produce a listing of raw symbols and C names.
18476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18478 # Transform the output of nm in a proper C declaration
18479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18481 # Transform the output of nm in a C name address pair
18482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18484 # This is the shared library runtime path variable.
18485 runpath_var=$runpath_var
18487 # This is the shared library path variable.
18488 shlibpath_var=$shlibpath_var
18490 # Is shlibpath searched before the hard-coded library search path?
18491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18493 # How to hardcode a shared library path into an executable.
18494 hardcode_action=$hardcode_action_GCJ
18496 # Whether we should hardcode library paths into libraries.
18497 hardcode_into_libs=$hardcode_into_libs
18499 # Flag to hardcode \$libdir into a binary during linking.
18500 # This must work even if \$libdir does not exist.
18501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18503 # If ld is used when linking, flag to hardcode \$libdir into
18504 # a binary during linking. This must work even if \$libdir does
18506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18508 # Whether we need a single -rpath flag with a separated argument.
18509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18512 # resulting binary.
18513 hardcode_direct=$hardcode_direct_GCJ
18515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18516 # resulting binary.
18517 hardcode_minus_L=$hardcode_minus_L_GCJ
18519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18520 # the resulting binary.
18521 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18523 # Set to yes if building a shared library automatically hardcodes DIR into the library
18524 # and all subsequent libraries and executables linked against it.
18525 hardcode_automatic=$hardcode_automatic_GCJ
18527 # Variables whose values should be saved in libtool wrapper scripts and
18528 # restored at relink time.
18529 variables_saved_for_relink="$variables_saved_for_relink"
18531 # Whether libtool must link a program against all its dependency libraries.
18532 link_all_deplibs=$link_all_deplibs_GCJ
18534 # Compile-time system search path for libraries
18535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18537 # Run-time system search path for libraries
18538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18540 # Fix the shell variable \$srcfile for the compiler.
18541 fix_srcfile_path="$fix_srcfile_path_GCJ"
18543 # Set to yes if exported symbols are required.
18544 always_export_symbols=$always_export_symbols_GCJ
18546 # The commands to list exported symbols.
18547 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18549 # The commands to extract the exported symbol list from a shared archive.
18550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18552 # Symbols that should not be listed in the preloaded symbols.
18553 exclude_expsyms=$lt_exclude_expsyms_GCJ
18555 # Symbols that must always be exported.
18556 include_expsyms=$lt_include_expsyms_GCJ
18558 # ### END LIBTOOL TAG CONFIG: $tagname
18564 # If there is no Makefile yet, we rely on a make rule to execute
18565 # `config.status --recheck' to rerun these tests and create the
18566 # libtool script then.
18567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18568 if test -f "$ltmain_in"; then
18569 test -f Makefile && make "$ltmain"
18575 ac_cpp='$CPP $CPPFLAGS'
18576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18590 # Source file extension for RC test sources.
18593 # Object file extension for compiled RC test sources.
18597 # Code to be used in simple compile tests
18598 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18600 # Code to be used in simple link tests
18601 lt_simple_link_test_code="$lt_simple_compile_test_code"
18603 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18605 # If no C compiler was specified, use CC.
18608 # If no C compiler flags were specified, use CFLAGS.
18609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18611 # Allow CC to be a program name with arguments.
18615 # save warnings/boilerplate of simple test code
18616 ac_outfile=conftest.$ac_objext
18617 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18618 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18619 _lt_compiler_boilerplate=`cat conftest.err`
18622 ac_outfile=conftest.$ac_objext
18623 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18624 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18625 _lt_linker_boilerplate=`cat conftest.err`
18629 # Allow CC to be a program name with arguments.
18634 for cc_temp in $compiler""; do
18636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18644 lt_cv_prog_compiler_c_o_RC=yes
18646 # The else clause should only fire when bootstrapping the
18647 # libtool distribution, otherwise you forgot to ship ltmain.sh
18648 # with your package, and you will get complaints that there are
18649 # no rules to generate ltmain.sh.
18650 if test -f "$ltmain"; then
18651 # See if we are running on zsh, and set the options which allow our commands through
18652 # without removal of \ escapes.
18653 if test -n "${ZSH_VERSION+set}" ; then
18654 setopt NO_GLOB_SUBST
18656 # Now quote all the things that may contain metacharacters while being
18657 # careful not to overquote the AC_SUBSTed values. We take copies of the
18658 # variables and quote the copies for generation of the libtool script.
18659 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18661 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18662 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18663 deplibs_check_method reload_flag reload_cmds need_locks \
18664 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18665 lt_cv_sys_global_symbol_to_c_name_address \
18666 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18667 old_postinstall_cmds old_postuninstall_cmds \
18671 lt_prog_compiler_wl_RC \
18672 lt_prog_compiler_pic_RC \
18673 lt_prog_compiler_static_RC \
18674 lt_prog_compiler_no_builtin_flag_RC \
18675 export_dynamic_flag_spec_RC \
18676 thread_safe_flag_spec_RC \
18677 whole_archive_flag_spec_RC \
18678 enable_shared_with_static_runtimes_RC \
18679 old_archive_cmds_RC \
18680 old_archive_from_new_cmds_RC \
18681 predep_objects_RC \
18682 postdep_objects_RC \
18685 compiler_lib_search_path_RC \
18687 archive_expsym_cmds_RC \
18688 postinstall_cmds_RC \
18689 postuninstall_cmds_RC \
18690 old_archive_from_expsyms_cmds_RC \
18691 allow_undefined_flag_RC \
18692 no_undefined_flag_RC \
18693 export_symbols_cmds_RC \
18694 hardcode_libdir_flag_spec_RC \
18695 hardcode_libdir_flag_spec_ld_RC \
18696 hardcode_libdir_separator_RC \
18697 hardcode_automatic_RC \
18699 module_expsym_cmds_RC \
18700 lt_cv_prog_compiler_c_o_RC \
18701 exclude_expsyms_RC \
18702 include_expsyms_RC; do
18705 old_archive_cmds_RC | \
18706 old_archive_from_new_cmds_RC | \
18707 archive_cmds_RC | \
18708 archive_expsym_cmds_RC | \
18710 module_expsym_cmds_RC | \
18711 old_archive_from_expsyms_cmds_RC | \
18712 export_symbols_cmds_RC | \
18713 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18714 postinstall_cmds | postuninstall_cmds | \
18715 old_postinstall_cmds | old_postuninstall_cmds | \
18716 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18717 # Double-quote double-evaled strings.
18718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18727 *'\$0 --fallback-echo"')
18728 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18734 cat <<__EOF__ >> "$cfgfile"
18735 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18737 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18739 # Shell to use when invoking shell scripts.
18742 # Whether or not to build shared libraries.
18743 build_libtool_libs=$enable_shared
18745 # Whether or not to build static libraries.
18746 build_old_libs=$enable_static
18748 # Whether or not to add -lc for building shared libraries.
18749 build_libtool_need_lc=$archive_cmds_need_lc_RC
18751 # Whether or not to disallow shared libs when runtime libs are static
18752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18754 # Whether or not to optimize for fast installation.
18755 fast_install=$enable_fast_install
18758 host_alias=$host_alias
18762 # The build system.
18763 build_alias=$build_alias
18767 # An echo program that does not interpret backslashes.
18772 AR_FLAGS=$lt_AR_FLAGS
18777 # LTCC compiler flags.
18778 LTCFLAGS=$lt_LTCFLAGS
18780 # A language-specific compiler.
18783 # Is the compiler the GNU C compiler?
18789 # The linker used to build libraries.
18792 # Whether we need hard or soft links.
18795 # A BSD-compatible nm program.
18798 # A symbol stripping program
18801 # Used to examine libraries when file_magic_cmd begins "file"
18802 MAGIC_CMD=$MAGIC_CMD
18804 # Used on cygwin: DLL creation program.
18807 # Used on cygwin: object dumper.
18810 # Used on cygwin: assembler.
18813 # The name of the directory that contains temporary libtool files.
18816 # How to create reloadable object files.
18817 reload_flag=$lt_reload_flag
18818 reload_cmds=$lt_reload_cmds
18820 # How to pass a linker flag through the compiler.
18821 wl=$lt_lt_prog_compiler_wl_RC
18823 # Object file suffix (normally "o").
18824 objext="$ac_objext"
18826 # Old archive suffix (normally "a").
18829 # Shared library suffix (normally ".so").
18830 shrext_cmds='$shrext_cmds'
18832 # Executable file suffix (normally "").
18835 # Additional compiler flags for building library objects.
18836 pic_flag=$lt_lt_prog_compiler_pic_RC
18839 # What is the maximum length of a command?
18840 max_cmd_len=$lt_cv_sys_max_cmd_len
18842 # Does compiler simultaneously support -c and -o options?
18843 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18845 # Must we lock files when doing compilation?
18846 need_locks=$lt_need_locks
18848 # Do we need the lib prefix for modules?
18849 need_lib_prefix=$need_lib_prefix
18851 # Do we need a version for libraries?
18852 need_version=$need_version
18854 # Whether dlopen is supported.
18855 dlopen_support=$enable_dlopen
18857 # Whether dlopen of programs is supported.
18858 dlopen_self=$enable_dlopen_self
18860 # Whether dlopen of statically linked programs is supported.
18861 dlopen_self_static=$enable_dlopen_self_static
18863 # Compiler flag to prevent dynamic linking.
18864 link_static_flag=$lt_lt_prog_compiler_static_RC
18866 # Compiler flag to turn off builtin functions.
18867 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18869 # Compiler flag to allow reflexive dlopens.
18870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18872 # Compiler flag to generate shared objects directly from archives.
18873 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18875 # Compiler flag to generate thread-safe objects.
18876 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18878 # Library versioning type.
18879 version_type=$version_type
18881 # Format of library name prefix.
18882 libname_spec=$lt_libname_spec
18884 # List of archive names. First name is the real one, the rest are links.
18885 # The last name is the one that the linker finds with -lNAME.
18886 library_names_spec=$lt_library_names_spec
18888 # The coded name of the library, if different from the real name.
18889 soname_spec=$lt_soname_spec
18891 # Commands used to build and install an old-style archive.
18893 old_archive_cmds=$lt_old_archive_cmds_RC
18894 old_postinstall_cmds=$lt_old_postinstall_cmds
18895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18897 # Create an old-style archive from a shared archive.
18898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18900 # Create a temporary old-style archive to link instead of a shared archive.
18901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18903 # Commands used to build and install a shared archive.
18904 archive_cmds=$lt_archive_cmds_RC
18905 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18906 postinstall_cmds=$lt_postinstall_cmds
18907 postuninstall_cmds=$lt_postuninstall_cmds
18909 # Commands used to build a loadable module (assumed same as above if empty)
18910 module_cmds=$lt_module_cmds_RC
18911 module_expsym_cmds=$lt_module_expsym_cmds_RC
18913 # Commands to strip libraries.
18914 old_striplib=$lt_old_striplib
18915 striplib=$lt_striplib
18917 # Dependencies to place before the objects being linked to create a
18919 predep_objects=$lt_predep_objects_RC
18921 # Dependencies to place after the objects being linked to create a
18923 postdep_objects=$lt_postdep_objects_RC
18925 # Dependencies to place before the objects being linked to create a
18927 predeps=$lt_predeps_RC
18929 # Dependencies to place after the objects being linked to create a
18931 postdeps=$lt_postdeps_RC
18933 # The library search path used internally by the compiler when linking
18934 # a shared library.
18935 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18937 # Method to check whether dependent libraries are shared objects.
18938 deplibs_check_method=$lt_deplibs_check_method
18940 # Command to use when deplibs_check_method == file_magic.
18941 file_magic_cmd=$lt_file_magic_cmd
18943 # Flag that allows shared libraries with undefined symbols to be built.
18944 allow_undefined_flag=$lt_allow_undefined_flag_RC
18946 # Flag that forces no undefined symbols.
18947 no_undefined_flag=$lt_no_undefined_flag_RC
18949 # Commands used to finish a libtool library installation in a directory.
18950 finish_cmds=$lt_finish_cmds
18952 # Same as above, but a single script fragment to be evaled but not shown.
18953 finish_eval=$lt_finish_eval
18955 # Take the output of nm and produce a listing of raw symbols and C names.
18956 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18958 # Transform the output of nm in a proper C declaration
18959 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18961 # Transform the output of nm in a C name address pair
18962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18964 # This is the shared library runtime path variable.
18965 runpath_var=$runpath_var
18967 # This is the shared library path variable.
18968 shlibpath_var=$shlibpath_var
18970 # Is shlibpath searched before the hard-coded library search path?
18971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18973 # How to hardcode a shared library path into an executable.
18974 hardcode_action=$hardcode_action_RC
18976 # Whether we should hardcode library paths into libraries.
18977 hardcode_into_libs=$hardcode_into_libs
18979 # Flag to hardcode \$libdir into a binary during linking.
18980 # This must work even if \$libdir does not exist.
18981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18983 # If ld is used when linking, flag to hardcode \$libdir into
18984 # a binary during linking. This must work even if \$libdir does
18986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18988 # Whether we need a single -rpath flag with a separated argument.
18989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18991 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18992 # resulting binary.
18993 hardcode_direct=$hardcode_direct_RC
18995 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18996 # resulting binary.
18997 hardcode_minus_L=$hardcode_minus_L_RC
18999 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19000 # the resulting binary.
19001 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19003 # Set to yes if building a shared library automatically hardcodes DIR into the library
19004 # and all subsequent libraries and executables linked against it.
19005 hardcode_automatic=$hardcode_automatic_RC
19007 # Variables whose values should be saved in libtool wrapper scripts and
19008 # restored at relink time.
19009 variables_saved_for_relink="$variables_saved_for_relink"
19011 # Whether libtool must link a program against all its dependency libraries.
19012 link_all_deplibs=$link_all_deplibs_RC
19014 # Compile-time system search path for libraries
19015 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19017 # Run-time system search path for libraries
19018 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19020 # Fix the shell variable \$srcfile for the compiler.
19021 fix_srcfile_path="$fix_srcfile_path_RC"
19023 # Set to yes if exported symbols are required.
19024 always_export_symbols=$always_export_symbols_RC
19026 # The commands to list exported symbols.
19027 export_symbols_cmds=$lt_export_symbols_cmds_RC
19029 # The commands to extract the exported symbol list from a shared archive.
19030 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19032 # Symbols that should not be listed in the preloaded symbols.
19033 exclude_expsyms=$lt_exclude_expsyms_RC
19035 # Symbols that must always be exported.
19036 include_expsyms=$lt_include_expsyms_RC
19038 # ### END LIBTOOL TAG CONFIG: $tagname
19044 # If there is no Makefile yet, we rely on a make rule to execute
19045 # `config.status --recheck' to rerun these tests and create the
19046 # libtool script then.
19047 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19048 if test -f "$ltmain_in"; then
19049 test -f Makefile && make "$ltmain"
19055 ac_cpp='$CPP $CPPFLAGS'
19056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19066 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19067 { (exit 1); exit 1; }; }
19071 # Append the new tag name to the list of available tags.
19072 if test -n "$tagname" ; then
19073 available_tags="$available_tags $tagname"
19079 # Now substitute the updated list of available tags.
19080 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19081 mv "${ofile}T" "$ofile"
19085 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19086 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19087 { (exit 1); exit 1; }; }
19093 # This can be used to rebuild libtool when needed
19094 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19096 # Always use our own libtool.
19097 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19099 # Prevent multiple expansion
19112 # Check whether --with-system-libtool was given.
19113 if test "${with_system_libtool+set}" = set; then
19114 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19115 set dummy libtool; ac_word=$2
19116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19118 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 as_dummy="$PATH:/usr/local/bin"
19128 for as_dir in $as_dummy
19131 test -z "$as_dir" && as_dir=.
19132 for ac_exec_ext in '' $ac_executable_extensions; do
19133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19134 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19145 LIBTOOL=$ac_cv_path_LIBTOOL
19146 if test -n "$LIBTOOL"; then
19147 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19148 echo "${ECHO_T}$LIBTOOL" >&6; }
19150 { echo "$as_me:$LINENO: result: no" >&5
19151 echo "${ECHO_T}no" >&6; }
19157 LIBTOOL="`pwd`/libtool"
19177 # Check whether --enable-strict-dependencies was given.
19178 if test "${enable_strict_dependencies+set}" = set; then
19179 enableval=$enable_strict_dependencies;
19183 docdir='${datadir}/doc/freeradius'
19184 { echo "$as_me:$LINENO: checking docdir" >&5
19185 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19187 # Check whether --with-docdir was given.
19188 if test "${with_docdir+set}" = set; then
19189 withval=$with_docdir; case "$withval" in
19195 [\\/$]* | ?:[\\/]* )
19199 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19200 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19201 { (exit 1); exit 1; }; }
19208 { echo "$as_me:$LINENO: result: $docdir" >&5
19209 echo "${ECHO_T}$docdir" >&6; }
19210 if test "x$docdir" = xno; then
19211 { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19212 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19215 logdir='${localstatedir}/log/radius'
19216 { echo "$as_me:$LINENO: checking logdir" >&5
19217 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19219 # Check whether --with-logdir was given.
19220 if test "${with_logdir+set}" = set; then
19221 withval=$with_logdir; case "$withval" in
19223 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19224 echo "$as_me: error: Need logdir" >&2;}
19225 { (exit 1); exit 1; }; }
19229 [\\/$]* | ?:[\\/]* )
19233 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19234 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19235 { (exit 1); exit 1; }; }
19242 { echo "$as_me:$LINENO: result: $logdir" >&5
19243 echo "${ECHO_T}$logdir" >&6; }
19245 radacctdir='${logdir}/radacct'
19246 { echo "$as_me:$LINENO: checking radacctdir" >&5
19247 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19249 # Check whether --with-radacctdir was given.
19250 if test "${with_radacctdir+set}" = set; then
19251 withval=$with_radacctdir; case "$withval" in
19253 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19254 echo "$as_me: error: Need radacctdir" >&2;}
19255 { (exit 1); exit 1; }; }
19259 [\\/$]* | ?:[\\/]* )
19260 radacctdir="$withval"
19263 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19264 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19265 { (exit 1); exit 1; }; }
19272 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19273 echo "${ECHO_T}$radacctdir" >&6; }
19275 raddbdir='${sysconfdir}/raddb'
19276 { echo "$as_me:$LINENO: checking raddbdir" >&5
19277 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19279 # Check whether --with-raddbdir was given.
19280 if test "${with_raddbdir+set}" = set; then
19281 withval=$with_raddbdir; case "$withval" in
19283 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19284 echo "$as_me: error: Need raddbdir" >&2;}
19285 { (exit 1); exit 1; }; }
19289 [\\/$]* | ?:[\\/]* )
19290 raddbdir="$withval"
19293 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19294 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19295 { (exit 1); exit 1; }; }
19302 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19303 echo "${ECHO_T}$raddbdir" >&6; }
19307 # Check whether --with-ascend-binary was given.
19308 if test "${with_ascend_binary+set}" = set; then
19309 withval=$with_ascend_binary; case "$withval" in
19318 if test "X$ASCEND_BINARY" = "Xyes"; then
19319 cat >>confdefs.h <<\_ACEOF
19320 #define ASCEND_BINARY 1
19327 # Check whether --with-threads was given.
19328 if test "${with_threads+set}" = set; then
19329 withval=$with_threads; case "$withval" in
19341 # Check whether --with-snmp was given.
19342 if test "${with_snmp+set}" = set; then
19343 withval=$with_snmp; case "$withval" in
19354 # Check whether --with-snmp-include-dir was given.
19355 if test "${with_snmp_include_dir+set}" = set; then
19356 withval=$with_snmp_include_dir; case "$withval" in
19364 rad_enable_largefiles=no
19366 # Check whether --with-large-files was given.
19367 if test "${with_large_files+set}" = set; then
19368 withval=$with_large_files; case "$withval" in
19370 rad_enable_largefiles=yes
19382 # Check whether --with-static_modules was given.
19383 if test "${with_static_modules+set}" = set; then
19384 withval=$with_static_modules;
19385 for i in $withval; do
19386 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19394 # Check whether --with-modules was given.
19395 if test "${with_modules+set}" = set; then
19396 withval=$with_modules;
19397 for i in $withval; do
19398 MODULES="$MODULES $i"
19404 # Check whether --enable-developer was given.
19405 if test "${enable_developer+set}" = set; then
19406 enableval=$enable_developer; case "$enableval" in
19417 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19423 # Check whether --with-experimental-modules was given.
19424 if test "${with_experimental_modules+set}" = set; then
19425 withval=$with_experimental_modules; case "$withval" in
19437 # Check whether --with-openssl was given.
19438 if test "${with_openssl+set}" = set; then
19439 withval=$with_openssl; case "$withval" in
19451 OPENSSL_INCLUDE_DIR=
19453 # Check whether --with-openssl-includes was given.
19454 if test "${with_openssl_includes+set}" = set; then
19455 withval=$with_openssl_includes; case "$withval" in
19456 *) OPENSSL_INCLUDE_DIR="$withval"
19465 # Check whether --with-openssl-libraries was given.
19466 if test "${with_openssl_libraries+set}" = set; then
19467 withval=$with_openssl_libraries; case "$withval" in
19468 *) OPENSSL_LIB_DIR="$withval"
19477 # Check whether --with-rlm-FOO-lib-dir was given.
19478 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19479 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19488 # Check whether --with-rlm-FOO-include-dir was given.
19489 if test "${with_rlm_FOO_include_dir+set}" = set; then
19490 withval=$with_rlm_FOO_include_dir; case "$withval" in
19501 # Check whether --with-udpfromto was given.
19502 if test "${with_udpfromto+set}" = set; then
19503 withval=$with_udpfromto; case "$withval" in
19514 if test "x$WITH_UDPFROMTO" = "xyes"; then
19515 cat >>confdefs.h <<\_ACEOF
19516 #define WITH_UDPFROMTO 1
19522 # Check whether --with-edir was given.
19523 if test "${with_edir+set}" = set; then
19524 withval=$with_edir;
19529 CHECKRAD=checkrad.pl
19530 # Extract the first word of "perl", so it can be a program name with args.
19531 set dummy perl; ac_word=$2
19532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19534 if test "${ac_cv_path_PERL+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19539 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19543 for as_dir in $PATH
19546 test -z "$as_dir" && as_dir=.
19547 for ac_exec_ext in '' $ac_executable_extensions; do
19548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19549 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19557 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19561 PERL=$ac_cv_path_PERL
19562 if test -n "$PERL"; then
19563 { echo "$as_me:$LINENO: result: $PERL" >&5
19564 echo "${ECHO_T}$PERL" >&6; }
19566 { echo "$as_me:$LINENO: result: no" >&5
19567 echo "${ECHO_T}no" >&6; }
19571 if test "x$ac_cv_path_PERL" = "x"; then
19572 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19573 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19575 # Extract the first word of "snmpget", so it can be a program name with args.
19576 set dummy snmpget; ac_word=$2
19577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19579 if test "${ac_cv_path_SNMPGET+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19588 for as_dir in $PATH
19591 test -z "$as_dir" && as_dir=.
19592 for ac_exec_ext in '' $ac_executable_extensions; do
19593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19594 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19605 SNMPGET=$ac_cv_path_SNMPGET
19606 if test -n "$SNMPGET"; then
19607 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19608 echo "${ECHO_T}$SNMPGET" >&6; }
19610 { echo "$as_me:$LINENO: result: no" >&5
19611 echo "${ECHO_T}no" >&6; }
19615 if test "x$ac_cv_path_SNMPGET" = "x"; then
19616 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19617 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19620 # Extract the first word of "snmpwalk", so it can be a program name with args.
19621 set dummy snmpwalk; ac_word=$2
19622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19624 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19633 for as_dir in $PATH
19636 test -z "$as_dir" && as_dir=.
19637 for ac_exec_ext in '' $ac_executable_extensions; do
19638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19639 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19650 SNMPWALK=$ac_cv_path_SNMPWALK
19651 if test -n "$SNMPWALK"; then
19652 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19653 echo "${ECHO_T}$SNMPWALK" >&6; }
19655 { echo "$as_me:$LINENO: result: no" >&5
19656 echo "${ECHO_T}no" >&6; }
19660 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19661 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19662 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19665 # Extract the first word of "rusers", so it can be a program name with args.
19666 set dummy rusers; ac_word=$2
19667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19669 if test "${ac_cv_path_RUSERS+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678 for as_dir in $PATH
19681 test -z "$as_dir" && as_dir=.
19682 for ac_exec_ext in '' $ac_executable_extensions; do
19683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19684 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19692 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19696 RUSERS=$ac_cv_path_RUSERS
19697 if test -n "$RUSERS"; then
19698 { echo "$as_me:$LINENO: result: $RUSERS" >&5
19699 echo "${ECHO_T}$RUSERS" >&6; }
19701 { echo "$as_me:$LINENO: result: no" >&5
19702 echo "${ECHO_T}no" >&6; }
19707 missing_dir=`cd $ac_aux_dir && pwd`
19708 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19709 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19710 # Run test in a subshell; some versions of sh will print an error if
19711 # an executable is not found, even if stderr is redirected.
19712 # Redirect stdin to placate older versions of autoconf. Sigh.
19713 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19715 { echo "$as_me:$LINENO: result: found" >&5
19716 echo "${ECHO_T}found" >&6; }
19718 ACLOCAL="$missing_dir/missing aclocal"
19719 { echo "$as_me:$LINENO: result: missing" >&5
19720 echo "${ECHO_T}missing" >&6; }
19723 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19724 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19725 # Run test in a subshell; some versions of sh will print an error if
19726 # an executable is not found, even if stderr is redirected.
19727 # Redirect stdin to placate older versions of autoconf. Sigh.
19728 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19730 { echo "$as_me:$LINENO: result: found" >&5
19731 echo "${ECHO_T}found" >&6; }
19733 AUTOCONF="$missing_dir/missing autoconf"
19734 { echo "$as_me:$LINENO: result: missing" >&5
19735 echo "${ECHO_T}missing" >&6; }
19738 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19739 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19740 # Run test in a subshell; some versions of sh will print an error if
19741 # an executable is not found, even if stderr is redirected.
19742 # Redirect stdin to placate older versions of autoconf. Sigh.
19743 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19744 AUTOHEADER=autoheader
19745 { echo "$as_me:$LINENO: result: found" >&5
19746 echo "${ECHO_T}found" >&6; }
19748 AUTOHEADER="$missing_dir/missing autoheader"
19749 { echo "$as_me:$LINENO: result: missing" >&5
19750 echo "${ECHO_T}missing" >&6; }
19754 # Extract the first word of "locate", so it can be a program name with args.
19755 set dummy locate; ac_word=$2
19756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19758 if test "${ac_cv_path_LOCATE+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19770 test -z "$as_dir" && as_dir=.
19771 for ac_exec_ext in '' $ac_executable_extensions; do
19772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19784 LOCATE=$ac_cv_path_LOCATE
19785 if test -n "$LOCATE"; then
19786 { echo "$as_me:$LINENO: result: $LOCATE" >&5
19787 echo "${ECHO_T}$LOCATE" >&6; }
19789 { echo "$as_me:$LINENO: result: no" >&5
19790 echo "${ECHO_T}no" >&6; }
19794 # Extract the first word of "dirname", so it can be a program name with args.
19795 set dummy dirname; ac_word=$2
19796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798 if test "${ac_cv_path_DIRNAME+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19807 for as_dir in $PATH
19810 test -z "$as_dir" && as_dir=.
19811 for ac_exec_ext in '' $ac_executable_extensions; do
19812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19813 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19824 DIRNAME=$ac_cv_path_DIRNAME
19825 if test -n "$DIRNAME"; then
19826 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19827 echo "${ECHO_T}$DIRNAME" >&6; }
19829 { echo "$as_me:$LINENO: result: no" >&5
19830 echo "${ECHO_T}no" >&6; }
19834 # Extract the first word of "grep", so it can be a program name with args.
19835 set dummy grep; ac_word=$2
19836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19838 if test "${ac_cv_path_GREP+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19843 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19847 for as_dir in $PATH
19850 test -z "$as_dir" && as_dir=.
19851 for ac_exec_ext in '' $ac_executable_extensions; do
19852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19853 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19864 GREP=$ac_cv_path_GREP
19865 if test -n "$GREP"; then
19866 { echo "$as_me:$LINENO: result: $GREP" >&5
19867 echo "${ECHO_T}$GREP" >&6; }
19869 { echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6; }
19877 if test "x$WITH_THREADS" = "xyes"; then
19878 if test $ac_cv_prog_suncc = "yes"; then
19879 CFLAGS="$CFLAGS -mt"
19883 for ac_header in pthread.h
19885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 ac_res=`eval echo '${'$as_ac_Header'}'`
19893 { echo "$as_me:$LINENO: result: $ac_res" >&5
19894 echo "${ECHO_T}$ac_res" >&6; }
19896 # Is the header compilable?
19897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19905 $ac_includes_default
19906 #include <$ac_header>
19908 rm -f conftest.$ac_objext
19909 if { (ac_try="$ac_compile"
19910 case "(($ac_try" in
19911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19912 *) ac_try_echo=$ac_try;;
19914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1 >conftest.err
19919 cat conftest.err >&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.$ac_objext; then
19925 ac_header_compiler=yes
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19930 ac_header_compiler=no
19933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 echo "${ECHO_T}$ac_header_compiler" >&6; }
19937 # Is the header present?
19938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <$ac_header>
19948 if { (ac_try="$ac_cpp conftest.$ac_ext"
19949 case "(($ac_try" in
19950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19956 grep -v '^ *+' conftest.er1 >conftest.err
19958 cat conftest.err >&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); } >/dev/null && {
19961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19962 test ! -s conftest.err
19964 ac_header_preproc=yes
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_header_preproc=no
19972 rm -f conftest.err conftest.$ac_ext
19973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19974 echo "${ECHO_T}$ac_header_preproc" >&6; }
19976 # So? What about this header?
19977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19983 ac_header_preproc=yes
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20006 eval "$as_ac_Header=\$ac_header_preproc"
20008 ac_res=`eval echo '${'$as_ac_Header'}'`
20009 { echo "$as_me:$LINENO: result: $ac_res" >&5
20010 echo "${ECHO_T}$ac_res" >&6; }
20013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20025 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20026 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20027 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20030 ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lpthread $LIBS"
20032 cat >conftest.$ac_ext <<_ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 /* Override any GCC internal prototype to avoid an error.
20040 Use char because int might match the return type of a GCC
20041 builtin and then its argument prototype would still apply. */
20045 char pthread_create ();
20049 return pthread_create ();
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>conftest.er1
20063 grep -v '^ *+' conftest.er1 >conftest.err
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest$ac_exeext &&
20071 $as_test_x conftest$ac_exeext; then
20072 ac_cv_lib_pthread_pthread_create=yes
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_lib_pthread_pthread_create=no
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081 conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20084 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20085 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20086 if test $ac_cv_lib_pthread_pthread_create = yes; then
20087 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20088 LIBS="$LIBS -lpthread"
20090 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20091 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20092 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 ac_check_lib_save_LIBS=$LIBS
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20104 /* Override any GCC internal prototype to avoid an error.
20105 Use char because int might match the return type of a GCC
20106 builtin and then its argument prototype would still apply. */
20110 char pthread_create ();
20114 return pthread_create ();
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && {
20133 test -z "$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20135 } && test -s conftest$ac_exeext &&
20136 $as_test_x conftest$ac_exeext; then
20137 ac_cv_lib_c_r_pthread_create=yes
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 ac_cv_lib_c_r_pthread_create=no
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146 conftest$ac_exeext conftest.$ac_ext
20147 LIBS=$ac_check_lib_save_LIBS
20149 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20150 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20151 if test $ac_cv_lib_c_r_pthread_create = yes; then
20152 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20163 if test "x$WITH_THREADS" != "xyes"; then
20165 ac_cv_header_pthread_h="no"
20169 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20170 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20171 if test "${ac_cv_search_sem_init+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 ac_func_search_save_LIBS=$LIBS
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20182 /* Override any GCC internal prototype to avoid an error.
20183 Use char because int might match the return type of a GCC
20184 builtin and then its argument prototype would still apply. */
20192 return sem_init ();
20197 for ac_lib in '' pthread sem posix4 rt; do
20198 if test -z "$ac_lib"; then
20199 ac_res="none required"
20202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest$ac_exeext &&
20221 $as_test_x conftest$ac_exeext; then
20222 ac_cv_search_sem_init=$ac_res
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 if test "${ac_cv_search_sem_init+set}" = set; then
20236 if test "${ac_cv_search_sem_init+set}" = set; then
20239 ac_cv_search_sem_init=no
20241 rm conftest.$ac_ext
20242 LIBS=$ac_func_search_save_LIBS
20244 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20245 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20246 ac_res=$ac_cv_search_sem_init
20247 if test "$ac_res" != no; then
20248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20251 { { 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
20252 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;}
20253 { (exit 1); exit 1; }; }
20260 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20261 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20262 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lsocket $LIBS"
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20274 /* Override any GCC internal prototype to avoid an error.
20275 Use char because int might match the return type of a GCC
20276 builtin and then its argument prototype would still apply. */
20280 char getsockname ();
20284 return getsockname ();
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_link") 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && {
20303 test -z "$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 } && test -s conftest$ac_exeext &&
20306 $as_test_x conftest$ac_exeext; then
20307 ac_cv_lib_socket_getsockname=yes
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_cv_lib_socket_getsockname=no
20315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20316 conftest$ac_exeext conftest.$ac_ext
20317 LIBS=$ac_check_lib_save_LIBS
20319 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20320 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20321 if test $ac_cv_lib_socket_getsockname = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323 #define HAVE_LIBSOCKET 1
20326 LIBS="-lsocket $LIBS"
20332 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20333 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20334 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20337 ac_check_lib_save_LIBS=$LIBS
20338 LIBS="-lresolv $LIBS"
20339 cat >conftest.$ac_ext <<_ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h. */
20346 /* Override any GCC internal prototype to avoid an error.
20347 Use char because int might match the return type of a GCC
20348 builtin and then its argument prototype would still apply. */
20356 return inet_aton ();
20361 rm -f conftest.$ac_objext conftest$ac_exeext
20362 if { (ac_try="$ac_link"
20363 case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_link") 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } && {
20375 test -z "$ac_c_werror_flag" ||
20376 test ! -s conftest.err
20377 } && test -s conftest$ac_exeext &&
20378 $as_test_x conftest$ac_exeext; then
20379 ac_cv_lib_resolv_inet_aton=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_lib_resolv_inet_aton=no
20387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20388 conftest$ac_exeext conftest.$ac_ext
20389 LIBS=$ac_check_lib_save_LIBS
20391 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20392 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20393 if test $ac_cv_lib_resolv_inet_aton = yes; then
20394 cat >>confdefs.h <<_ACEOF
20395 #define HAVE_LIBRESOLV 1
20398 LIBS="-lresolv $LIBS"
20404 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20405 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20406 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 ac_check_lib_save_LIBS=$LIBS
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20428 return inet_ntoa ();
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 ac_cv_lib_nsl_inet_ntoa=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_lib_nsl_inet_ntoa=no
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20464 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20465 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_LIBNSL 1
20476 if test "x$WITH_OPENSSL" = xyes; then
20478 if test "x$OPENSSL_LIB_DIR" != "x"; then
20479 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20481 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20482 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20483 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20484 echo $ECHO_N "(cached) $ECHO_C" >&6
20486 ac_check_lib_save_LIBS=$LIBS
20487 LIBS="-lcrypto $LIBS"
20488 cat >conftest.$ac_ext <<_ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20495 /* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (ac_try="$ac_link"
20512 case "(($ac_try" in
20513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514 *) ac_try_echo=$ac_try;;
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517 (eval "$ac_link") 2>conftest.er1
20519 grep -v '^ *+' conftest.er1 >conftest.err
20521 cat conftest.err >&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest$ac_exeext &&
20527 $as_test_x conftest$ac_exeext; then
20528 ac_cv_lib_crypto_DH_new=yes
20530 echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20533 ac_cv_lib_crypto_DH_new=no
20536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20537 conftest$ac_exeext conftest.$ac_ext
20538 LIBS=$ac_check_lib_save_LIBS
20540 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20541 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20542 if test $ac_cv_lib_crypto_DH_new = yes; then
20545 cat >>confdefs.h <<\_ACEOF
20546 #define HAVE_LIBCRYPTO 1
20549 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20550 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20551 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 ac_check_lib_save_LIBS=$LIBS
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest$ac_exeext &&
20595 $as_test_x conftest$ac_exeext; then
20596 ac_cv_lib_ssl_SSL_new=yes
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_lib_ssl_SSL_new=no
20604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20605 conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20608 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20609 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20610 if test $ac_cv_lib_ssl_SSL_new = yes; then
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_LIBSSL 1
20617 if test "x$OPENSSL_LIB_DIR" != "x"; then
20618 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20620 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20633 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20636 CFLAGS="$CFLAGS -DDARWIN"
20645 ac_header_dirent=no
20646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20647 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20648 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20649 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20659 #include <sys/types.h>
20671 rm -f conftest.$ac_objext
20672 if { (ac_try="$ac_compile"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_compile") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest.$ac_objext; then
20688 eval "$as_ac_Header=yes"
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 eval "$as_ac_Header=no"
20696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20698 ac_res=`eval echo '${'$as_ac_Header'}'`
20699 { echo "$as_me:$LINENO: result: $ac_res" >&5
20700 echo "${ECHO_T}$ac_res" >&6; }
20701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20702 cat >>confdefs.h <<_ACEOF
20703 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20706 ac_header_dirent=$ac_hdr; break
20710 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20711 if test $ac_header_dirent = dirent.h; then
20712 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20713 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20714 if test "${ac_cv_search_opendir+set}" = set; then
20715 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 ac_func_search_save_LIBS=$LIBS
20718 cat >conftest.$ac_ext <<_ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h. */
20725 /* Override any GCC internal prototype to avoid an error.
20726 Use char because int might match the return type of a GCC
20727 builtin and then its argument prototype would still apply. */
20740 for ac_lib in '' dir; do
20741 if test -z "$ac_lib"; then
20742 ac_res="none required"
20745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20747 rm -f conftest.$ac_objext conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_link") 2>conftest.er1
20756 grep -v '^ *+' conftest.er1 >conftest.err
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } && {
20761 test -z "$ac_c_werror_flag" ||
20762 test ! -s conftest.err
20763 } && test -s conftest$ac_exeext &&
20764 $as_test_x conftest$ac_exeext; then
20765 ac_cv_search_opendir=$ac_res
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20775 if test "${ac_cv_search_opendir+set}" = set; then
20779 if test "${ac_cv_search_opendir+set}" = set; then
20782 ac_cv_search_opendir=no
20784 rm conftest.$ac_ext
20785 LIBS=$ac_func_search_save_LIBS
20787 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20788 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20789 ac_res=$ac_cv_search_opendir
20790 if test "$ac_res" != no; then
20791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20796 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20797 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20798 if test "${ac_cv_search_opendir+set}" = set; then
20799 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 ac_func_search_save_LIBS=$LIBS
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20824 for ac_lib in '' x; do
20825 if test -z "$ac_lib"; then
20826 ac_res="none required"
20829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_link") 2>conftest.er1
20840 grep -v '^ *+' conftest.er1 >conftest.err
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest$ac_exeext &&
20848 $as_test_x conftest$ac_exeext; then
20849 ac_cv_search_opendir=$ac_res
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20859 if test "${ac_cv_search_opendir+set}" = set; then
20863 if test "${ac_cv_search_opendir+set}" = set; then
20866 ac_cv_search_opendir=no
20868 rm conftest.$ac_ext
20869 LIBS=$ac_func_search_save_LIBS
20871 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20872 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20873 ac_res=$ac_cv_search_opendir
20874 if test "$ac_res" != no; then
20875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20881 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20882 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20883 if test "${ac_cv_header_stdc+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <stdlib.h>
20893 #include <stdarg.h>
20894 #include <string.h>
20905 rm -f conftest.$ac_objext
20906 if { (ac_try="$ac_compile"
20907 case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
20914 grep -v '^ *+' conftest.er1 >conftest.err
20916 cat conftest.err >&5
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && {
20919 test -z "$ac_c_werror_flag" ||
20920 test ! -s conftest.err
20921 } && test -s conftest.$ac_objext; then
20922 ac_cv_header_stdc=yes
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20927 ac_cv_header_stdc=no
20930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 if test $ac_cv_header_stdc = yes; then
20933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 #include <string.h>
20943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20944 $EGREP "memchr" >/dev/null 2>&1; then
20947 ac_cv_header_stdc=no
20953 if test $ac_cv_header_stdc = yes; then
20954 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20955 cat >conftest.$ac_ext <<_ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <stdlib.h>
20964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20965 $EGREP "free" >/dev/null 2>&1; then
20968 ac_cv_header_stdc=no
20974 if test $ac_cv_header_stdc = yes; then
20975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20976 if test "$cross_compiling" = yes; then
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20986 #include <stdlib.h>
20987 #if ((' ' & 0x0FF) == 0x020)
20988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20991 # define ISLOWER(c) \
20992 (('a' <= (c) && (c) <= 'i') \
20993 || ('j' <= (c) && (c) <= 'r') \
20994 || ('s' <= (c) && (c) <= 'z'))
20995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21003 for (i = 0; i < 256; i++)
21004 if (XOR (islower (i), ISLOWER (i))
21005 || toupper (i) != TOUPPER (i))
21010 rm -f conftest$ac_exeext
21011 if { (ac_try="$ac_link"
21012 case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017 (eval "$ac_link") 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21021 { (case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_try") 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21032 echo "$as_me: program exited with status $ac_status" >&5
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ( exit $ac_status )
21037 ac_cv_header_stdc=no
21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21045 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21046 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21047 if test $ac_cv_header_stdc = yes; then
21049 cat >>confdefs.h <<\_ACEOF
21050 #define STDC_HEADERS 1
21055 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21056 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21057 if test "${ac_cv_header_time+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <sys/types.h>
21067 #include <sys/time.h>
21073 if ((struct tm *) 0)
21079 rm -f conftest.$ac_objext
21080 if { (ac_try="$ac_compile"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_compile") 2>conftest.er1
21088 grep -v '^ *+' conftest.er1 >conftest.err
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest.$ac_objext; then
21096 ac_cv_header_time=yes
21098 echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21101 ac_cv_header_time=no
21104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21107 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21108 if test $ac_cv_header_time = yes; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define TIME_WITH_SYS_TIME 1
21116 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21117 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21118 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include <sys/types.h>
21128 #include <sys/wait.h>
21129 #ifndef WEXITSTATUS
21130 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21133 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21141 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_compile") 2>conftest.er1
21155 grep -v '^ *+' conftest.er1 >conftest.err
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest.$ac_objext; then
21163 ac_cv_header_sys_wait_h=yes
21165 echo "$as_me: failed program was:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 ac_cv_header_sys_wait_h=no
21171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21174 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21175 if test $ac_cv_header_sys_wait_h = yes; then
21177 cat >>confdefs.h <<\_ACEOF
21178 #define HAVE_SYS_WAIT_H 1
21247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21254 ac_res=`eval echo '${'$as_ac_Header'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21258 # Is the header compilable?
21259 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21261 cat >conftest.$ac_ext <<_ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h. */
21267 $ac_includes_default
21268 #include <$ac_header>
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_compile") 2>conftest.er1
21279 grep -v '^ *+' conftest.er1 >conftest.err
21281 cat conftest.err >&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest.$ac_objext; then
21287 ac_header_compiler=yes
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_header_compiler=no
21295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21297 echo "${ECHO_T}$ac_header_compiler" >&6; }
21299 # Is the header present?
21300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21302 cat >conftest.$ac_ext <<_ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 #include <$ac_header>
21310 if { (ac_try="$ac_cpp conftest.$ac_ext"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } >/dev/null && {
21323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21326 ac_header_preproc=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_header_preproc=no
21334 rm -f conftest.err conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21336 echo "${ECHO_T}$ac_header_preproc" >&6; }
21338 # So? What about this header?
21339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21345 ac_header_preproc=yes
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21355 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 eval "$as_ac_Header=\$ac_header_preproc"
21370 ac_res=`eval echo '${'$as_ac_Header'}'`
21371 { echo "$as_me:$LINENO: result: $ac_res" >&5
21372 echo "${ECHO_T}$ac_res" >&6; }
21375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386 if test "${ac_cv_header_regex_h+set}" = set; then
21387 { echo "$as_me:$LINENO: checking for regex.h" >&5
21388 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21389 if test "${ac_cv_header_regex_h+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21393 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21395 # Is the header compilable?
21396 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21397 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 $ac_includes_default
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_header_compiler=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_header_compiler=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21438 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } >/dev/null && {
21460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21463 ac_header_preproc=yes
21465 echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 ac_header_preproc=no
21471 rm -f conftest.err conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21473 echo "${ECHO_T}$ac_header_preproc" >&6; }
21475 # So? What about this header?
21476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21478 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21479 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21481 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21482 ac_header_preproc=yes
21485 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21486 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21488 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21490 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21492 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21494 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21495 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21496 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21500 { echo "$as_me:$LINENO: checking for regex.h" >&5
21501 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21502 if test "${ac_cv_header_regex_h+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 ac_cv_header_regex_h=$ac_header_preproc
21507 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21508 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21511 if test $ac_cv_header_regex_h = yes; then
21512 cat >>confdefs.h <<\_ACEOF
21513 #define HAVE_REGEX_H 1
21519 if test "x$ac_cv_header_regex_h" = "xyes"; then
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21529 #ifdef REG_EXTENDED
21534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21535 $EGREP "yes" >/dev/null 2>&1; then
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_REG_EXTENDED 1
21547 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21549 cat >>confdefs.h <<\_ACEOF
21555 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21557 cat >>confdefs.h <<\_ACEOF
21563 OPENSSL_INCLUDE="-DNO_OPENSSL"
21564 if test "x$WITH_OPENSSL" = xyes; then
21565 if test "x$OPENSSL_LIBS" = "x"; then
21566 { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
21567 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
21569 old_CPPFLAGS=$CPPFLAGS
21570 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21571 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21573 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 ac_res=`eval echo '${'$as_ac_Header'}'`
21592 { echo "$as_me:$LINENO: result: $ac_res" >&5
21593 echo "${ECHO_T}$ac_res" >&6; }
21595 # Is the header compilable?
21596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 $ac_includes_default
21605 #include <$ac_header>
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 ac_header_compiler=yes
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_header_compiler=no
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21634 echo "${ECHO_T}$ac_header_compiler" >&6; }
21636 # Is the header present?
21637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <$ac_header>
21647 if { (ac_try="$ac_cpp conftest.$ac_ext"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21655 grep -v '^ *+' conftest.er1 >conftest.err
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } >/dev/null && {
21660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21663 ac_header_preproc=yes
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_header_preproc=no
21671 rm -f conftest.err conftest.$ac_ext
21672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6; }
21675 # So? What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21682 ac_header_preproc=yes
21685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 eval "$as_ac_Header=\$ac_header_preproc"
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21724 if test "x$OPENSSL_LIBS" != "x"; then
21725 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21726 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21727 cat >conftest.$ac_ext <<_ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 #include <openssl/crypto.h>
21734 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21740 $EGREP "yes" >/dev/null 2>&1; then
21745 if test "x$goodssl" != "xyes"; then
21746 { echo "$as_me:$LINENO: result: no" >&5
21747 echo "${ECHO_T}no" >&6; }
21750 { echo "$as_me:$LINENO: result: yes" >&5
21751 echo "${ECHO_T}yes" >&6; }
21752 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21753 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21755 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21759 CPPFLAGS=$old_CPPFLAGS
21764 export OPENSSL_LIBS
21767 { echo "$as_me:$LINENO: checking for off_t" >&5
21768 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21769 if test "${ac_cv_type_off_t+set}" = set; then
21770 echo $ECHO_N "(cached) $ECHO_C" >&6
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 $ac_includes_default
21779 typedef off_t ac__type_new_;
21783 if ((ac__type_new_ *) 0)
21785 if (sizeof (ac__type_new_))
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_compile") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest.$ac_objext; then
21808 ac_cv_type_off_t=yes
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_cv_type_off_t=no
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21819 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21820 if test $ac_cv_type_off_t = yes; then
21824 cat >>confdefs.h <<_ACEOF
21825 #define off_t long int
21830 { echo "$as_me:$LINENO: checking for pid_t" >&5
21831 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21832 if test "${ac_cv_type_pid_t+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21835 cat >conftest.$ac_ext <<_ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 typedef pid_t ac__type_new_;
21846 if ((ac__type_new_ *) 0)
21848 if (sizeof (ac__type_new_))
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_cv_type_pid_t=yes
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_cv_type_pid_t=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21882 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21883 if test $ac_cv_type_pid_t = yes; then
21887 cat >>confdefs.h <<_ACEOF
21893 { echo "$as_me:$LINENO: checking for size_t" >&5
21894 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21895 if test "${ac_cv_type_size_t+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 typedef size_t ac__type_new_;
21909 if ((ac__type_new_ *) 0)
21911 if (sizeof (ac__type_new_))
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921 *) ac_try_echo=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21926 grep -v '^ *+' conftest.er1 >conftest.err
21928 cat conftest.err >&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.$ac_objext; then
21934 ac_cv_type_size_t=yes
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 ac_cv_type_size_t=no
21942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21944 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21945 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21946 if test $ac_cv_type_size_t = yes; then
21950 cat >>confdefs.h <<_ACEOF
21951 #define size_t unsigned int
21956 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21957 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21958 if test "${ac_cv_type_uid_t+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21967 #include <sys/types.h>
21970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21971 $EGREP "uid_t" >/dev/null 2>&1; then
21972 ac_cv_type_uid_t=yes
21974 ac_cv_type_uid_t=no
21979 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21980 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21981 if test $ac_cv_type_uid_t = no; then
21983 cat >>confdefs.h <<\_ACEOF
21988 cat >>confdefs.h <<\_ACEOF
21996 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21997 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21998 if test "${ac_cv_type_socklen_t+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22001 ac_cv_type_socklen_t=no
22002 cat >conftest.$ac_ext <<_ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h. */
22008 #ifdef HAVE_SYS_TYPES_H
22009 #include <sys/types.h>
22011 #ifdef HAVE_SYS_SOCKET_H
22012 #include <sys/socket.h>
22023 rm -f conftest.$ac_objext
22024 if { (ac_try="$ac_compile"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_compile") 2>conftest.er1
22032 grep -v '^ *+' conftest.er1 >conftest.err
22034 cat conftest.err >&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && {
22037 test -z "$ac_c_werror_flag" ||
22038 test ! -s conftest.err
22039 } && test -s conftest.$ac_objext; then
22040 ac_cv_type_socklen_t=yes
22042 echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22053 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22055 if test "$ac_cv_type_socklen_t" != "yes"; then
22056 cat >>confdefs.h <<\_ACEOF
22057 #define socklen_t int
22064 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22065 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22066 if test "${ac_cv_type_uint8_t+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 ac_cv_type_uint8_t=no
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 #ifdef HAVE_INTTYPES_H
22077 #include <inttypes.h>
22079 #ifdef HAVE_STDINT_H
22080 #include <stdint.h>
22091 rm -f conftest.$ac_objext
22092 if { (ac_try="$ac_compile"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 ac_cv_type_uint8_t=yes
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22121 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22123 if test "$ac_cv_type_uint8_t" != "yes"; then
22124 cat >>confdefs.h <<\_ACEOF
22125 #define uint8_t unsigned char
22132 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22133 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22134 if test "${ac_cv_type_uint16_t+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 ac_cv_type_uint16_t=no
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #ifdef HAVE_INTTYPES_H
22145 #include <inttypes.h>
22147 #ifdef HAVE_STDINT_H
22148 #include <stdint.h>
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22176 ac_cv_type_uint16_t=yes
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22189 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22191 if test "$ac_cv_type_uint16_t" != "yes"; then
22192 cat >>confdefs.h <<\_ACEOF
22193 #define uint16_t unsigned short
22200 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22201 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22202 if test "${ac_cv_type_uint32_t+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22205 ac_cv_type_uint32_t=no
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 #ifdef HAVE_INTTYPES_H
22213 #include <inttypes.h>
22215 #ifdef HAVE_STDINT_H
22216 #include <stdint.h>
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22244 ac_cv_type_uint32_t=yes
22246 echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22257 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22259 if test "$ac_cv_type_uint32_t" != "yes"; then
22260 cat >>confdefs.h <<\_ACEOF
22261 #define uint32_t unsigned int
22318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22332 #define $ac_func innocuous_$ac_func
22334 /* System header to define __stub macros and hopefully few prototypes,
22335 which can conflict with char $ac_func (); below.
22336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22337 <limits.h> exists even on freestanding compilers. */
22340 # include <limits.h>
22342 # include <assert.h>
22347 /* Override any GCC internal prototype to avoid an error.
22348 Use char because int might match the return type of a GCC
22349 builtin and then its argument prototype would still apply. */
22354 /* The GNU C library defines this for functions which it implements
22355 to always fail with ENOSYS. Some functions are actually named
22356 something starting with __ and the normal name is an alias. */
22357 #if defined __stub_$ac_func || defined __stub___$ac_func
22364 return $ac_func ();
22369 rm -f conftest.$ac_objext conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_link") 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest$ac_exeext &&
22386 $as_test_x conftest$ac_exeext; then
22387 eval "$as_ac_var=yes"
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 eval "$as_ac_var=no"
22395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22396 conftest$ac_exeext conftest.$ac_ext
22398 ac_res=`eval echo '${'$as_ac_var'}'`
22399 { echo "$as_me:$LINENO: result: $ac_res" >&5
22400 echo "${ECHO_T}$ac_res" >&6; }
22401 if test `eval echo '${'$as_ac_var'}'` = yes; then
22402 cat >>confdefs.h <<_ACEOF
22403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22420 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22421 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22422 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22433 #include <string.h>
22434 #ifdef HAVE_UNISTD_H
22435 #include <unistd.h>
22437 #ifdef HAVE_CRYPT_H
22440 #ifdef HAVE_ERRNO_H
22443 #ifdef HAVE_RESOURCE_H
22444 #include <resource.h>
22446 #ifdef HAVE_GETOPT_H
22447 #include <getopt.h>
22449 #ifdef HAVE_MALLOC_H
22450 #include <malloc.h>
22455 #ifdef HAVE_UTMPX_H
22458 #ifdef HAVE_SYS_SELECT_H
22459 #include <sys/select.h>
22461 #ifdef HAVE_DLFCN_H
22464 #ifdef HAVE_REGEX_H
22467 #ifdef HAVE_SYSLOG_H
22468 #include <syslog.h>
22470 #ifdef HAVE_INTTYPES_H
22471 #include <inttypes.h>
22473 #ifdef HAVE_STDINT_H
22474 #include <stdint.h>
22476 #ifdef HAVE_ARPA_INET_H
22477 #include <arpa/inet.h>
22483 char *(*pfn) = (char *(*)) $ac_func
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22497 grep -v '^ *+' conftest.er1 >conftest.err
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest.$ac_objext; then
22505 eval "radius_cv_decl_needed_$ac_func=no"
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 eval "radius_cv_decl_needed_$ac_func=yes"
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22517 { echo "$as_me:$LINENO: result: yes" >&5
22518 echo "${ECHO_T}yes" >&6; }
22519 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22520 cat >>confdefs.h <<_ACEOF
22521 #define $radius_tr_decl 1
22525 { echo "$as_me:$LINENO: result: no" >&5
22526 echo "${ECHO_T}no" >&6; }
22532 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22533 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22534 if test "${ac_cv_type_signal+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 cat >conftest.$ac_ext <<_ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 #include <sys/types.h>
22544 #include <signal.h>
22549 return *(signal (0, 0)) (0) == 1;
22554 rm -f conftest.$ac_objext
22555 if { (ac_try="$ac_compile"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_compile") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } && {
22568 test -z "$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22570 } && test -s conftest.$ac_objext; then
22571 ac_cv_type_signal=int
22573 echo "$as_me: failed program was:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_cv_type_signal=void
22579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22582 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22584 cat >>confdefs.h <<_ACEOF
22585 #define RETSIGTYPE $ac_cv_type_signal
22590 if test "x$ac_cv_header_utmpx_h" = "xyes"
22593 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22594 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22606 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22612 int foo = offsetof(struct utmpx, ut_xtime)
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_compile") 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); } && {
22631 test -z "$ac_c_werror_flag" ||
22632 test ! -s conftest.err
22633 } && test -s conftest.$ac_objext; then
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22645 if test "x$has_element" != "x"; then
22646 { echo "$as_me:$LINENO: result: yes" >&5
22647 echo "${ECHO_T}yes" >&6; }
22648 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22650 { echo "$as_me:$LINENO: result: no" >&5
22651 echo "${ECHO_T}no" >&6; }
22652 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22655 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22657 cat >>confdefs.h <<\_ACEOF
22658 #define ut_xtime ut_tv.tv_sec
22665 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22666 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22676 #include <netinet/in.h>
22678 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22684 int foo = offsetof(struct in_pktinfo, ipi_addr)
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22717 if test "x$has_element" != "x"; then
22718 { echo "$as_me:$LINENO: result: yes" >&5
22719 echo "${ECHO_T}yes" >&6; }
22720 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22722 { echo "$as_me:$LINENO: result: no" >&5
22723 echo "${ECHO_T}no" >&6; }
22724 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22727 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_IP_PKTINFO 1
22736 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22738 if test "${ac_cv_c_const+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22751 /* FIXME: Include the comments suggested by Paul. */
22752 #ifndef __cplusplus
22753 /* Ultrix mips cc rejects this. */
22754 typedef int charset[2];
22756 /* SunOS 4.1.1 cc rejects this. */
22757 char const *const *pcpcc;
22759 /* NEC SVR4.0.2 mips cc rejects this. */
22760 struct point {int x, y;};
22761 static struct point const zero = {0,0};
22762 /* AIX XL C 1.02.0.0 rejects this.
22763 It does not let you subtract one const X* pointer from another in
22764 an arm of an if-expression whose if-part is not a constant
22766 const char *g = "string";
22767 pcpcc = &g + (g ? g-g : 0);
22768 /* HPUX 7.0 cc rejects these. */
22770 ppc = (char**) pcpcc;
22771 pcpcc = (char const *const *) ppc;
22772 { /* SCO 3.2v4 cc rejects this. */
22774 char const *s = 0 ? (char *) 0 : (char const *) 0;
22779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22780 int x[] = {25, 17};
22781 const int *foo = &x[0];
22784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22785 typedef const int *iptr;
22789 { /* AIX XL C 1.02.0.0 rejects this saying
22790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22791 struct s { int j; const int *ap[3]; };
22792 struct s *b; b->j = 5;
22794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22795 const int foo = 10;
22796 if (!foo) return 0;
22798 return !cs[0] && !zero.x;
22805 rm -f conftest.$ac_objext
22806 if { (ac_try="$ac_compile"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_compile") 2>conftest.er1
22814 grep -v '^ *+' conftest.er1 >conftest.err
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } && {
22819 test -z "$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22821 } && test -s conftest.$ac_objext; then
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22833 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22834 if test $ac_cv_c_const = no; then
22836 cat >>confdefs.h <<\_ACEOF
22843 { echo "$as_me:$LINENO: checking type of OS" >&5
22844 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22846 { echo "$as_me:$LINENO: result: $OS" >&5
22847 echo "${ECHO_T}$OS" >&6; }
22848 if test "$OS" = "OS/2"; then
22855 if test "x$GCC" = "xyes"; then
22856 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22859 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22860 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22861 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22862 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22863 CFLAGS="$CFLAGS $devflags"
22865 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22866 echo "${ECHO_T}yes. Using $devflags" >&6; }
22869 CFLAGS="$CFLAGS -DNDEBUG"
22871 { echo "$as_me:$LINENO: result: no." >&5
22872 echo "${ECHO_T}no." >&6; }
22876 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22877 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22878 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22879 echo $ECHO_N "(cached) $ECHO_C" >&6
22881 ac_check_lib_save_LIBS=$LIBS
22882 LIBS="-lcrypt $LIBS"
22883 cat >conftest.$ac_ext <<_ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22890 /* Override any GCC internal prototype to avoid an error.
22891 Use char because int might match the return type of a GCC
22892 builtin and then its argument prototype would still apply. */
22905 rm -f conftest.$ac_objext conftest$ac_exeext
22906 if { (ac_try="$ac_link"
22907 case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_link") 2>conftest.er1
22914 grep -v '^ *+' conftest.er1 >conftest.err
22916 cat conftest.err >&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); } && {
22919 test -z "$ac_c_werror_flag" ||
22920 test ! -s conftest.err
22921 } && test -s conftest$ac_exeext &&
22922 $as_test_x conftest$ac_exeext; then
22923 ac_cv_lib_crypt_crypt=yes
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22928 ac_cv_lib_crypt_crypt=no
22931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22932 conftest$ac_exeext conftest.$ac_ext
22933 LIBS=$ac_check_lib_save_LIBS
22935 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22936 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22937 if test $ac_cv_lib_crypt_crypt = yes; then
22942 if test "$CRYPTLIB" != ""; then
22943 cat >>confdefs.h <<\_ACEOF
22944 #define HAVE_CRYPT 1
22948 { echo "$as_me:$LINENO: checking for crypt" >&5
22949 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22950 if test "${ac_cv_func_crypt+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 cat >conftest.$ac_ext <<_ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22959 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22961 #define crypt innocuous_crypt
22963 /* System header to define __stub macros and hopefully few prototypes,
22964 which can conflict with char crypt (); below.
22965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22966 <limits.h> exists even on freestanding compilers. */
22969 # include <limits.h>
22971 # include <assert.h>
22976 /* Override any GCC internal prototype to avoid an error.
22977 Use char because int might match the return type of a GCC
22978 builtin and then its argument prototype would still apply. */
22983 /* The GNU C library defines this for functions which it implements
22984 to always fail with ENOSYS. Some functions are actually named
22985 something starting with __ and the normal name is an alias. */
22986 #if defined __stub_crypt || defined __stub___crypt
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_link") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest$ac_exeext &&
23015 $as_test_x conftest$ac_exeext; then
23016 ac_cv_func_crypt=yes
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_cv_func_crypt=no
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025 conftest$ac_exeext conftest.$ac_ext
23027 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23028 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
23029 if test $ac_cv_func_crypt = yes; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_CRYPT 1
23038 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23039 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23040 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23043 ac_check_lib_save_LIBS=$LIBS
23044 LIBS="-lcipher $LIBS"
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23052 /* Override any GCC internal prototype to avoid an error.
23053 Use char because int might match the return type of a GCC
23054 builtin and then its argument prototype would still apply. */
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_link") 2>conftest.er1
23076 grep -v '^ *+' conftest.er1 >conftest.err
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest$ac_exeext &&
23084 $as_test_x conftest$ac_exeext; then
23085 ac_cv_lib_cipher_setkey=yes
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 ac_cv_lib_cipher_setkey=no
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23095 LIBS=$ac_check_lib_save_LIBS
23097 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23098 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23099 if test $ac_cv_lib_cipher_setkey = yes; then
23100 CRYPTLIB="${CRYPTLIB} -lcipher"
23106 if test "x$WITH_SNMP" = "xyes"; then
23111 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23112 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23121 #ifdef HAVE_SYS_TYPES_H
23122 #include <sys/types.h>
23124 #ifdef HAVE_STDINT_H
23125 #include <stdint.h>
23127 #ifdef HAVE_STDIO_H
23130 #ifdef HAVE_NETDB_H
23133 #ifdef HAVE_UNISTD_H
23134 #include <unistd.h>
23136 #include <ucd-snmp/ucd-snmp-config.h>
23137 #include <ucd-snmp/asn1.h>
23138 #include <ucd-snmp/snmp.h>
23139 #include <ucd-snmp/snmp_impl.h>
23148 rm -f conftest.$ac_objext
23149 if { (ac_try="$ac_compile"
23150 case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_compile") 2>conftest.er1
23157 grep -v '^ *+' conftest.er1 >conftest.err
23159 cat conftest.err >&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); } && {
23162 test -z "$ac_c_werror_flag" ||
23163 test ! -s conftest.err
23164 } && test -s conftest.$ac_objext; then
23165 SNMP_INCLUDE="";ucdsnmp=yes
23167 echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23175 if test "x$ucdsnmp" = "x"; then
23176 old_CFLAGS="$CFLAGS"
23177 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23178 CFLAGS="$old_CFLAGS -I$try"
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23186 #ifdef HAVE_SYS_TYPES_H
23187 #include <sys/types.h>
23189 #ifdef HAVE_STDINT_H
23190 #include <stdint.h>
23192 #ifdef HAVE_STDIO_H
23195 #ifdef HAVE_NETDB_H
23198 #ifdef HAVE_UNISTD_H
23199 #include <unistd.h>
23201 #include <ucd-snmp/ucd-snmp-config.h>
23202 #include <ucd-snmp/asn1.h>
23203 #include <ucd-snmp/snmp.h>
23204 #include <ucd-snmp/snmp_impl.h>
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23220 (eval "$ac_compile") 2>conftest.er1
23222 grep -v '^ *+' conftest.er1 >conftest.err
23224 cat conftest.err >&5
23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226 (exit $ac_status); } && {
23227 test -z "$ac_c_werror_flag" ||
23228 test ! -s conftest.err
23229 } && test -s conftest.$ac_objext; then
23230 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23232 echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239 if test "x$ucdsnmp" != "x"; then
23243 CFLAGS="$old_CFLAGS"
23246 if test "x$ucdsnmp" = "x"; then
23247 old_CFLAGS="$CFLAGS"
23248 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23249 CFLAGS="$old_CFLAGS -I$try"
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23257 #ifdef HAVE_SYS_TYPES_H
23258 #include <sys/types.h>
23260 #ifdef HAVE_STDINT_H
23261 #include <stdint.h>
23263 #ifdef HAVE_STDIO_H
23266 #ifdef HAVE_NETDB_H
23269 #ifdef HAVE_UNISTD_H
23270 #include <unistd.h>
23274 #include <snmp_impl.h>
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 SNMP_INCLUDE="";ucdsnmp=no
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 if test "x$ucdsnmp" != "x"; then
23313 CFLAGS="$old_CFLAGS"
23316 if test "x$ucdsnmp" = "x"; then
23317 old_CFLAGS="$CFLAGS"
23318 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23319 CFLAGS="$old_CFLAGS -I$try"
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23327 #ifdef HAVE_SYS_TYPES_H
23328 #include <sys/types.h>
23330 #ifdef HAVE_STDINT_H
23331 #include <stdint.h>
23333 #ifdef HAVE_STDIO_H
23336 #ifdef HAVE_NETDB_H
23339 #ifdef HAVE_UNISTD_H
23340 #include <unistd.h>
23344 #include <snmp_impl.h>
23353 rm -f conftest.$ac_objext
23354 if { (ac_try="$ac_compile"
23355 case "(($ac_try" in
23356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23357 *) ac_try_echo=$ac_try;;
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360 (eval "$ac_compile") 2>conftest.er1
23362 grep -v '^ *+' conftest.er1 >conftest.err
23364 cat conftest.err >&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } && {
23367 test -z "$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 } && test -s conftest.$ac_objext; then
23370 SNMP_INCLUDE="-I$try";ucdsnmp=no
23372 echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23379 if test "x$ucdsnmp" != "x"; then
23383 CFLAGS="$old_CFLAGS"
23386 if test "x$ucdsnmp" = "x"; then
23387 { echo "$as_me:$LINENO: result: no" >&5
23388 echo "${ECHO_T}no" >&6; }
23390 if test "x$ucdsnmp" = "xyes"; then
23391 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23392 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23393 cat >>confdefs.h <<\_ACEOF
23394 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23398 { echo "$as_me:$LINENO: result: yes" >&5
23399 echo "${ECHO_T}yes" >&6; }
23400 cat >>confdefs.h <<\_ACEOF
23401 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23405 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23406 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23409 LIBS="$old_LIBS -lsnmp"
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 extern char snmp_build_var_op();
23420 snmp_build_var_op()
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (ac_try="$ac_link"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_link") 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest$ac_exeext &&
23442 $as_test_x conftest$ac_exeext; then
23445 echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23452 conftest$ac_exeext conftest.$ac_ext
23454 if test "x$SNMP_LIBS" = "x"; then
23455 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23456 LIBS="$old_LIBS -L$try -lsnmp"
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 extern char snmp_build_var_op();
23467 snmp_build_var_op()
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479 (eval "$ac_link") 2>conftest.er1
23481 grep -v '^ *+' conftest.er1 >conftest.err
23483 cat conftest.err >&5
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); } && {
23486 test -z "$ac_c_werror_flag" ||
23487 test ! -s conftest.err
23488 } && test -s conftest$ac_exeext &&
23489 $as_test_x conftest$ac_exeext; then
23490 SNMP_LIBS="-L$try -lsnmp"
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23499 conftest$ac_exeext conftest.$ac_ext
23500 if test "x$SNMP_LIBS" != "x"; then
23503 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 extern char snmp_build_var_op();
23514 snmp_build_var_op()
23519 rm -f conftest.$ac_objext conftest$ac_exeext
23520 if { (ac_try="$ac_link"
23521 case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_link") 2>conftest.er1
23528 grep -v '^ *+' conftest.er1 >conftest.err
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } && {
23533 test -z "$ac_c_werror_flag" ||
23534 test ! -s conftest.err
23535 } && test -s conftest$ac_exeext &&
23536 $as_test_x conftest$ac_exeext; then
23537 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23539 echo "$as_me: failed program was:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23546 conftest$ac_exeext conftest.$ac_ext
23547 if test "x$SNMP_LIBS" != "x"; then
23550 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 extern char snmp_build_var_op();
23561 snmp_build_var_op()
23566 rm -f conftest.$ac_objext conftest$ac_exeext
23567 if { (ac_try="$ac_link"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_link") 2>conftest.er1
23575 grep -v '^ *+' conftest.er1 >conftest.err
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest$ac_exeext &&
23583 $as_test_x conftest$ac_exeext; then
23584 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23586 echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23593 conftest$ac_exeext conftest.$ac_ext
23594 if test "x$SNMP_LIBS" != "x"; then
23601 CFLAGS="$old_CFLAGS"
23602 if test "x$SNMP_LIBS" = "x"; then
23603 { echo "$as_me:$LINENO: result: no" >&5
23604 echo "${ECHO_T}no" >&6; }
23607 { echo "$as_me:$LINENO: result: yes" >&5
23608 echo "${ECHO_T}yes" >&6; }
23609 cat >>confdefs.h <<\_ACEOF
23610 #define WITH_SNMP 1
23613 cat >>confdefs.h <<\_ACEOF
23614 #define HAVE_LIBSNMP 1
23622 gethostbyaddrrstyle=""
23623 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23624 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23627 { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
23628 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
23629 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23639 #ifdef HAVE_NETDB_H
23647 #ifndef gethostbyaddr_r
23648 (void) gethostbyaddr_r;
23655 rm -f conftest.$ac_objext
23656 if { (ac_try="$ac_compile"
23657 case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23662 (eval "$ac_compile") 2>conftest.er1
23664 grep -v '^ *+' conftest.er1 >conftest.err
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } && {
23669 test -z "$ac_c_werror_flag" ||
23670 test ! -s conftest.err
23671 } && test -s conftest.$ac_objext; then
23672 ac_cv_have_decl_gethostbyaddr_r=yes
23674 echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23677 ac_cv_have_decl_gethostbyaddr_r=no
23680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
23683 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
23684 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
23686 cat >>confdefs.h <<_ACEOF
23687 #define HAVE_DECL_GETHOSTBYADDR_R 1
23692 cat >>confdefs.h <<_ACEOF
23693 #define HAVE_DECL_GETHOSTBYADDR_R 0
23698 cat >>confdefs.h <<\_ACEOF
23699 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23702 gethostbyaddrrstyle=BSD
23703 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23704 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23711 if test "x$gethostbyaddrrstyle" = "x"; then
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23725 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (ac_try="$ac_link"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_link") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest$ac_exeext &&
23747 $as_test_x conftest$ac_exeext; then
23749 cat >>confdefs.h <<\_ACEOF
23750 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23753 gethostbyaddrrstyle=GNU
23756 echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23763 conftest$ac_exeext conftest.$ac_ext
23765 if test "x$gethostbyaddrrstyle" = "x"; then
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23779 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23784 rm -f conftest.$ac_objext conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_link") 2>conftest.er1
23793 grep -v '^ *+' conftest.er1 >conftest.err
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && {
23798 test -z "$ac_c_werror_flag" ||
23799 test ! -s conftest.err
23800 } && test -s conftest$ac_exeext &&
23801 $as_test_x conftest$ac_exeext; then
23803 cat >>confdefs.h <<\_ACEOF
23804 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23807 gethostbyaddrrstyle=SYSV
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23817 conftest$ac_exeext conftest.$ac_ext
23819 if test "x$gethostbyaddrrstyle" = "x"; then
23820 cat >conftest.$ac_ext <<_ACEOF
23823 cat confdefs.h >>conftest.$ac_ext
23824 cat >>conftest.$ac_ext <<_ACEOF
23825 /* end confdefs.h. */
23833 gethostbyaddr(NULL, 0, 0)
23838 rm -f conftest.$ac_objext conftest$ac_exeext
23839 if { (ac_try="$ac_link"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23845 (eval "$ac_link") 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest$ac_exeext &&
23855 $as_test_x conftest$ac_exeext; then
23857 cat >>confdefs.h <<\_ACEOF
23858 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23861 gethostbyaddrrstyle=BSD
23864 echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23871 conftest$ac_exeext conftest.$ac_ext
23874 if test "x$gethostbyaddrrstyle" = "x"; then
23875 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23876 echo "${ECHO_T}none! It must not exist, here." >&6; }
23878 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23879 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23882 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23883 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23884 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23887 gethostbynamerstyle=""
23888 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23889 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23890 cat >conftest.$ac_ext <<_ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h. */
23903 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (ac_try="$ac_link"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_link") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest$ac_exeext &&
23925 $as_test_x conftest$ac_exeext; then
23927 cat >>confdefs.h <<\_ACEOF
23928 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23931 gethostbynamerstyle=GNU
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941 conftest$ac_exeext conftest.$ac_ext
23942 if test "x$gethostbynamerstyle" = "x"; then
23943 cat >conftest.$ac_ext <<_ACEOF
23946 cat confdefs.h >>conftest.$ac_ext
23947 cat >>conftest.$ac_ext <<_ACEOF
23948 /* end confdefs.h. */
23956 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23961 rm -f conftest.$ac_objext conftest$ac_exeext
23962 if { (ac_try="$ac_link"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_link") 2>conftest.er1
23970 grep -v '^ *+' conftest.er1 >conftest.err
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest$ac_exeext &&
23978 $as_test_x conftest$ac_exeext; then
23980 cat >>confdefs.h <<\_ACEOF
23981 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23984 gethostbynamerstyle=SYSV
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23994 conftest$ac_exeext conftest.$ac_ext
23996 if test "x$gethostbynamerstyle" = "x"; then
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24010 gethostbyname(NULL)
24015 rm -f conftest.$ac_objext conftest$ac_exeext
24016 if { (ac_try="$ac_link"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_link") 2>conftest.er1
24024 grep -v '^ *+' conftest.er1 >conftest.err
24026 cat conftest.err >&5
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); } && {
24029 test -z "$ac_c_werror_flag" ||
24030 test ! -s conftest.err
24031 } && test -s conftest$ac_exeext &&
24032 $as_test_x conftest$ac_exeext; then
24034 cat >>confdefs.h <<\_ACEOF
24035 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24038 gethostbynamerstyle=BSD
24041 echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24048 conftest$ac_exeext conftest.$ac_ext
24051 if test "x$gethostbynamerstyle" = "x"; then
24052 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24053 echo "${ECHO_T}none! It must not exist, here." >&6; }
24055 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24056 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24059 if test "x$gethostbynamerstyle" = "xBSD"; then
24060 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24061 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24065 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24066 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24067 cat >conftest.$ac_ext <<_ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h. */
24079 ctime_r(NULL, NULL, 0)
24084 rm -f conftest.$ac_objext conftest$ac_exeext
24085 if { (ac_try="$ac_link"
24086 case "(($ac_try" in
24087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24088 *) ac_try_echo=$ac_try;;
24090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24091 (eval "$ac_link") 2>conftest.er1
24093 grep -v '^ *+' conftest.er1 >conftest.err
24095 cat conftest.err >&5
24096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24097 (exit $ac_status); } && {
24098 test -z "$ac_c_werror_flag" ||
24099 test ! -s conftest.err
24100 } && test -s conftest$ac_exeext &&
24101 $as_test_x conftest$ac_exeext; then
24103 cat >>confdefs.h <<\_ACEOF
24104 #define CTIMERSTYLE SOLARISSTYLE
24107 ctimerstyle="SOLARIS"
24110 echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24117 conftest$ac_exeext conftest.$ac_ext
24118 if test "x$ctimerstyle" = "x"; then
24119 cat >conftest.$ac_ext <<_ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24131 ctime_r(NULL, NULL)
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (ac_try="$ac_link"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_link") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext &&
24153 $as_test_x conftest$ac_exeext; then
24155 cat >>confdefs.h <<\_ACEOF
24156 #define CTIMERSTYLE POSIXSTYLE
24159 ctimerstyle="POSIX"
24162 echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24169 conftest$ac_exeext conftest.$ac_ext
24172 if test "x$ctimerstyle" = "x"; then
24173 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24174 echo "${ECHO_T}none! It must not exist, here." >&6; }
24176 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24177 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24181 if test x"$rad_enable_largefiles" = xyes ; then
24182 { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24183 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24186 { echo "$as_me:$LINENO: result: no" >&5
24187 echo "${ECHO_T}no" >&6; }
24188 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24189 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24190 { (exit 1); exit 1; }; }
24193 { echo "$as_me:$LINENO: result: ok" >&5
24194 echo "${ECHO_T}ok" >&6; }
24195 LFS_CFLAGS="-D_LARGE_FILES"
24200 { echo "$as_me:$LINENO: result: ok" >&5
24201 echo "${ECHO_T}ok" >&6; }
24202 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24207 { echo "$as_me:$LINENO: result: no" >&5
24208 echo "${ECHO_T}no" >&6; }
24209 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24210 echo "$as_me: error: Large files not supported on this platform" >&2;}
24211 { (exit 1); exit 1; }; }
24214 { echo "$as_me:$LINENO: result: maybe" >&5
24215 echo "${ECHO_T}maybe" >&6; }
24216 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24220 cat >>confdefs.h <<\_ACEOF
24221 #define _GNU_SOURCE 1
24226 { echo "$as_me:$LINENO: result: ok" >&5
24227 echo "${ECHO_T}ok" >&6; }
24228 # Extract the first word of "getconf", so it can be a program name with args.
24229 set dummy getconf; ac_word=$2
24230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24232 if test "${ac_cv_path_GETCONF+set}" = set; then
24233 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24241 for as_dir in $PATH
24244 test -z "$as_dir" && as_dir=.
24245 for ac_exec_ext in '' $ac_executable_extensions; do
24246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24247 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24258 GETCONF=$ac_cv_path_GETCONF
24259 if test -n "$GETCONF"; then
24260 { echo "$as_me:$LINENO: result: $GETCONF" >&5
24261 echo "${ECHO_T}$GETCONF" >&6; }
24263 { echo "$as_me:$LINENO: result: no" >&5
24264 echo "${ECHO_T}no" >&6; }
24268 if test -z "$GETCONF" ; then
24269 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24270 echo "$as_me: error: getconf required to configure large file support" >&2;}
24271 { (exit 1); exit 1; }; }
24273 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24274 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24275 LFS_LIBS=`$GETCONF LFS_LIBS`
24278 { echo "$as_me:$LINENO: result: maybe" >&5
24279 echo "${ECHO_T}maybe" >&6; }
24280 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24295 export top_builddir
24296 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24297 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24304 if test "x$EXPERIMENTAL" = "xyes"; then
24305 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24306 mysubdirs=`echo $bar`
24308 for bar in `cat src/modules/stable`; do
24309 if test -f src/modules/$bar/configure; then
24310 mysubdirs="$mysubdirs src/modules/$bar"
24315 if test "x$EXPERIMENTAL" = "xyes"; then
24316 for foo in `ls -1 src/modules | grep rlm_`; do
24317 MODULES="$MODULES $foo"
24320 for foo in `cat src/modules/stable`; do
24321 MODULES="$MODULES $foo"
24325 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24333 USE_SHARED_LIBS=$enable_shared
24335 USE_STATIC_LIBS=$enable_static
24344 unset ac_cv_env_LIBS_set
24345 unset ac_cv_env_LIBS_value
24347 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"
24349 cat >confcache <<\_ACEOF
24350 # This file is a shell script that caches the results of configure
24351 # tests run on this system so they can be shared between configure
24352 # scripts and configure runs, see configure's option --config-cache.
24353 # It is not useful on other systems. If it contains results you don't
24354 # want to keep, you may remove or edit it.
24356 # config.status only pays attention to the cache file if you give it
24357 # the --recheck option to rerun configure.
24359 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24360 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24361 # following values.
24365 # The following way of writing the cache mishandles newlines in values,
24366 # but we know of no workaround that is simple, portable, and efficient.
24367 # So, we kill variables containing newlines.
24368 # Ultrix sh set writes to stderr and can't be redirected directly,
24369 # and sets the high bit in the cache file unless we assign to the vars.
24371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24372 eval ac_val=\$$ac_var
24376 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24377 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24380 _ | IFS | as_nl) ;; #(
24381 *) $as_unset $ac_var ;;
24387 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24388 *${as_nl}ac_space=\ *)
24389 # `set' does not quote correctly, so add quotes (double-quote
24390 # substitution turns \\\\ into \\, and sed turns \\ into \).
24393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24396 # `set' quotes correctly as required by POSIX, so do not add quotes.
24397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24406 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24408 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24410 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24411 if test -w "$cache_file"; then
24412 test "x$cache_file" != "x/dev/null" &&
24413 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24414 echo "$as_me: updating cache $cache_file" >&6;}
24415 cat confcache >$cache_file
24417 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24418 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24424 # Let make expand exec_prefix.
24425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24427 DEFS=-DHAVE_CONFIG_H
24431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24432 # 1. Remove the extension, and $U if already installed.
24433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24434 ac_i=`echo "$ac_i" | sed "$ac_script"`
24435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24436 # will be set to the directory where LIBOBJS objects are built.
24437 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24438 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24440 LIBOBJS=$ac_libobjs
24442 LTLIBOBJS=$ac_ltlibobjs
24446 : ${CONFIG_STATUS=./config.status}
24447 ac_clean_files_save=$ac_clean_files
24448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24451 cat >$CONFIG_STATUS <<_ACEOF
24453 # Generated by $as_me.
24454 # Run this file to recreate the current configuration.
24455 # Compiler output produced by configure, useful for debugging
24456 # configure, is in config.log if it exists.
24459 ac_cs_recheck=false
24461 SHELL=\${CONFIG_SHELL-$SHELL}
24464 cat >>$CONFIG_STATUS <<\_ACEOF
24465 ## --------------------- ##
24466 ## M4sh Initialization. ##
24467 ## --------------------- ##
24469 # Be more Bourne compatible
24470 DUALCASE=1; export DUALCASE # for MKS sh
24471 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24474 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24475 # is contrary to our usage. Disable this feature.
24476 alias -g '${1+"$@"}'='"$@"'
24477 setopt NO_GLOB_SUBST
24479 case `(set -o) 2>/dev/null` in
24480 *posix*) set -o posix ;;
24489 # Avoid depending upon Character Ranges.
24490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24493 as_cr_digits='0123456789'
24494 as_cr_alnum=$as_cr_Letters$as_cr_digits
24496 # The user is always right.
24497 if test "${PATH_SEPARATOR+set}" != set; then
24498 echo "#! /bin/sh" >conf$$.sh
24499 echo "exit 0" >>conf$$.sh
24501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24509 # Support unset when possible.
24510 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24518 # We need space, tab and new line, in precisely that order. Quoting is
24519 # there to prevent editors from complaining about space-tab.
24520 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24521 # splitting by setting IFS to empty value.)
24526 # Find who we are. Look in the path if we contain no directory separator.
24528 *[\\/]* ) as_myself=$0 ;;
24529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24530 for as_dir in $PATH
24533 test -z "$as_dir" && as_dir=.
24534 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24540 # We did not find ourselves, most probably we were run as `sh COMMAND'
24541 # in which case we are not to be found in the path.
24542 if test "x$as_myself" = x; then
24545 if test ! -f "$as_myself"; then
24546 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24547 { (exit 1); exit 1; }
24550 # Work around bugs in pre-3.0 UWIN ksh.
24551 for as_var in ENV MAIL MAILPATH
24552 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24560 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24561 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24562 LC_TELEPHONE LC_TIME
24564 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24565 eval $as_var=C; export $as_var
24567 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24571 # Required to use basename.
24572 if expr a : '\(a\)' >/dev/null 2>&1 &&
24573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24580 as_basename=basename
24586 # Name of the executable.
24587 as_me=`$as_basename -- "$0" ||
24588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24589 X"$0" : 'X\(//\)$' \| \
24590 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24592 sed '/^.*\/\([^/][^/]*\)\/*$/{
24611 as_lineno_1=$LINENO
24612 as_lineno_2=$LINENO
24613 test "x$as_lineno_1" != "x$as_lineno_2" &&
24614 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24617 # uniformly replaced by the line number. The first 'sed' inserts a
24618 # line-number line after each line using $LINENO; the second 'sed'
24619 # does the real work. The second script uses 'N' to pair each
24620 # line-number line with the line containing $LINENO, and appends
24621 # trailing '-' during substitution so that $LINENO is not a special
24622 # case at line end.
24623 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24624 # scripts with optimization help from Paolo Bonzini. Blame Lee
24625 # E. McMahon (1931-1989) for sed's syntax. :-)
24637 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24640 ' >$as_me.lineno &&
24641 chmod +x "$as_me.lineno" ||
24642 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24643 { (exit 1); exit 1; }; }
24645 # Don't try to exec as it changes $[0], causing all sort of problems
24646 # (the dirname of $[0] is not the place where we might find the
24647 # original and so on. Autoconf is especially sensitive to this).
24648 . "./$as_me.lineno"
24649 # Exit status is that of the last command.
24654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24660 ECHO_C= ECHO_N= ECHO_T=
24661 case `echo -n x` in
24663 case `echo 'x\c'` in
24664 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24671 if expr a : '\(a\)' >/dev/null 2>&1 &&
24672 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24678 rm -f conf$$ conf$$.exe conf$$.file
24679 if test -d conf$$.dir; then
24680 rm -f conf$$.dir/conf$$.file
24686 if ln -s conf$$.file conf$$ 2>/dev/null; then
24688 # ... but there are two gotchas:
24689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24691 # In both cases, we have to default to `cp -p'.
24692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24694 elif ln conf$$.file conf$$ 2>/dev/null; then
24699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24700 rmdir conf$$.dir 2>/dev/null
24702 if mkdir -p . 2>/dev/null; then
24705 test -d ./-p && rmdir ./-p
24709 if test -x / >/dev/null 2>&1; then
24710 as_test_x='test -x'
24712 if ls -dL / >/dev/null 2>&1; then
24719 if test -d "$1"; then
24725 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24726 ???[sx]*):;;*)false;;esac;fi
24730 as_executable_p=$as_test_x
24732 # Sed expression to map a string onto a valid CPP name.
24733 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24735 # Sed expression to map a string onto a valid variable name.
24736 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24741 # Save the log message, to keep $[0] and so on meaningful, and to
24742 # report actual input values of CONFIG_FILES etc. instead of their
24743 # values after options handling.
24745 This file was extended by $as_me, which was
24746 generated by GNU Autoconf 2.61. Invocation command line was
24748 CONFIG_FILES = $CONFIG_FILES
24749 CONFIG_HEADERS = $CONFIG_HEADERS
24750 CONFIG_LINKS = $CONFIG_LINKS
24751 CONFIG_COMMANDS = $CONFIG_COMMANDS
24754 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24759 cat >>$CONFIG_STATUS <<_ACEOF
24760 # Files that config.status was made for.
24761 config_files="$ac_config_files"
24762 config_headers="$ac_config_headers"
24766 cat >>$CONFIG_STATUS <<\_ACEOF
24768 \`$as_me' instantiates files from templates according to the
24769 current configuration.
24771 Usage: $0 [OPTIONS] [FILE]...
24773 -h, --help print this help, then exit
24774 -V, --version print version number and configuration settings, then exit
24775 -q, --quiet do not print progress messages
24776 -d, --debug don't remove temporary files
24777 --recheck update $as_me by reconfiguring in the same conditions
24778 --file=FILE[:TEMPLATE]
24779 instantiate the configuration file FILE
24780 --header=FILE[:TEMPLATE]
24781 instantiate the configuration header FILE
24783 Configuration files:
24786 Configuration headers:
24789 Report bugs to <bug-autoconf@gnu.org>."
24792 cat >>$CONFIG_STATUS <<_ACEOF
24795 configured by $0, generated by GNU Autoconf 2.61,
24796 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24798 Copyright (C) 2006 Free Software Foundation, Inc.
24799 This config.status script is free software; the Free Software Foundation
24800 gives unlimited permission to copy, distribute and modify it."
24806 cat >>$CONFIG_STATUS <<\_ACEOF
24807 # If no file are specified by the user, then we need to provide default
24808 # value. By we need to know if files were specified by the user.
24814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24815 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24826 # Handling of the options.
24827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24830 echo "$ac_cs_version"; exit ;;
24831 --debug | --debu | --deb | --de | --d | -d )
24833 --file | --fil | --fi | --f )
24835 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24836 ac_need_defaults=false;;
24837 --header | --heade | --head | --hea )
24839 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24840 ac_need_defaults=false;;
24842 # Conflict between --help and --header
24843 { echo "$as_me: error: ambiguous option: $1
24844 Try \`$0 --help' for more information." >&2
24845 { (exit 1); exit 1; }; };;
24846 --help | --hel | -h )
24847 echo "$ac_cs_usage"; exit ;;
24848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24852 # This is an error.
24853 -*) { echo "$as_me: error: unrecognized option: $1
24854 Try \`$0 --help' for more information." >&2
24855 { (exit 1); exit 1; }; } ;;
24857 *) ac_config_targets="$ac_config_targets $1"
24858 ac_need_defaults=false ;;
24864 ac_configure_extra_args=
24866 if $ac_cs_silent; then
24868 ac_configure_extra_args="$ac_configure_extra_args --silent"
24872 cat >>$CONFIG_STATUS <<_ACEOF
24873 if \$ac_cs_recheck; then
24874 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24875 CONFIG_SHELL=$SHELL
24876 export CONFIG_SHELL
24877 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24881 cat >>$CONFIG_STATUS <<\_ACEOF
24885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24886 ## Running $as_me. ##
24892 cat >>$CONFIG_STATUS <<_ACEOF
24895 cat >>$CONFIG_STATUS <<\_ACEOF
24897 # Handling of arguments.
24898 for ac_config_target in $ac_config_targets
24900 case $ac_config_target in
24901 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24902 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24903 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24904 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24905 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24906 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24907 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24908 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24909 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24910 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24911 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24912 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24913 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24914 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24915 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24917 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24919 { (exit 1); exit 1; }; };;
24924 # If the user did not use the arguments to specify the items to instantiate,
24925 # then the envvar interface is used. Set only those that are not.
24926 # We use the long form for the default assignment because of an extremely
24927 # bizarre bug on SunOS 4.1.3.
24928 if $ac_need_defaults; then
24929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24933 # Have a temporary directory for convenience. Make it in the build tree
24934 # simply because there is no reason against having it here, and in addition,
24935 # creating and moving files from /tmp can sometimes cause problems.
24936 # Hook for its removal unless debugging.
24937 # Note that there is a small window in which the directory will not be cleaned:
24938 # after its creation but before its name has been assigned to `$tmp'.
24942 trap 'exit_status=$?
24943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24945 trap '{ (exit 1); exit 1; }' 1 2 13 15
24947 # Create a (secure) tmp directory for tmp files.
24950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24951 test -n "$tmp" && test -d "$tmp"
24954 tmp=./conf$$-$RANDOM
24955 (umask 077 && mkdir "$tmp")
24958 echo "$me: cannot create a temporary directory in ." >&2
24959 { (exit 1); exit 1; }
24963 # Set up the sed scripts for CONFIG_FILES section.
24966 # No need to generate the scripts if there are no CONFIG_FILES.
24967 # This happens for instance when ./config.status config.h
24968 if test -n "$CONFIG_FILES"; then
24975 for ac_last_try in false false false false false :; do
24976 cat >conf$$subs.sed <<_ACEOF
24977 SHELL!$SHELL$ac_delim
24978 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24979 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24980 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24981 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24982 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24983 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24984 exec_prefix!$exec_prefix$ac_delim
24985 prefix!$prefix$ac_delim
24986 program_transform_name!$program_transform_name$ac_delim
24987 bindir!$bindir$ac_delim
24988 sbindir!$sbindir$ac_delim
24989 libexecdir!$libexecdir$ac_delim
24990 datarootdir!$datarootdir$ac_delim
24991 datadir!$datadir$ac_delim
24992 sysconfdir!$sysconfdir$ac_delim
24993 sharedstatedir!$sharedstatedir$ac_delim
24994 localstatedir!$localstatedir$ac_delim
24995 includedir!$includedir$ac_delim
24996 oldincludedir!$oldincludedir$ac_delim
24997 docdir!$docdir$ac_delim
24998 infodir!$infodir$ac_delim
24999 htmldir!$htmldir$ac_delim
25000 dvidir!$dvidir$ac_delim
25001 pdfdir!$pdfdir$ac_delim
25002 psdir!$psdir$ac_delim
25003 libdir!$libdir$ac_delim
25004 localedir!$localedir$ac_delim
25005 mandir!$mandir$ac_delim
25006 DEFS!$DEFS$ac_delim
25007 ECHO_C!$ECHO_C$ac_delim
25008 ECHO_N!$ECHO_N$ac_delim
25009 ECHO_T!$ECHO_T$ac_delim
25010 LIBS!$LIBS$ac_delim
25011 build_alias!$build_alias$ac_delim
25012 host_alias!$host_alias$ac_delim
25013 target_alias!$target_alias$ac_delim
25015 CFLAGS!$CFLAGS$ac_delim
25016 LDFLAGS!$LDFLAGS$ac_delim
25017 CPPFLAGS!$CPPFLAGS$ac_delim
25018 ac_ct_CC!$ac_ct_CC$ac_delim
25019 EXEEXT!$EXEEXT$ac_delim
25020 OBJEXT!$OBJEXT$ac_delim
25022 GREP!$GREP$ac_delim
25023 EGREP!$EGREP$ac_delim
25024 RANLIB!$RANLIB$ac_delim
25025 abs_top_builddir!$abs_top_builddir$ac_delim
25026 GMAKE!$GMAKE$ac_delim
25027 MAKE!$MAKE$ac_delim
25028 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25029 LIBTOOL!$LIBTOOL$ac_delim
25030 build!$build$ac_delim
25031 build_cpu!$build_cpu$ac_delim
25032 build_vendor!$build_vendor$ac_delim
25033 build_os!$build_os$ac_delim
25034 host!$host$ac_delim
25035 host_cpu!$host_cpu$ac_delim
25036 host_vendor!$host_vendor$ac_delim
25037 host_os!$host_os$ac_delim
25038 LN_S!$LN_S$ac_delim
25039 ECHO!$ECHO$ac_delim
25041 STRIP!$STRIP$ac_delim
25043 CXXFLAGS!$CXXFLAGS$ac_delim
25044 ac_ct_CXX!$ac_ct_CXX$ac_delim
25045 CXXCPP!$CXXCPP$ac_delim
25047 FFLAGS!$FFLAGS$ac_delim
25048 ac_ct_F77!$ac_ct_F77$ac_delim
25049 logdir!$logdir$ac_delim
25050 radacctdir!$radacctdir$ac_delim
25051 raddbdir!$raddbdir$ac_delim
25052 PERL!$PERL$ac_delim
25053 SNMPGET!$SNMPGET$ac_delim
25054 SNMPWALK!$SNMPWALK$ac_delim
25055 RUSERS!$RUSERS$ac_delim
25056 ACLOCAL!$ACLOCAL$ac_delim
25057 AUTOCONF!$AUTOCONF$ac_delim
25058 AUTOHEADER!$AUTOHEADER$ac_delim
25059 LOCATE!$LOCATE$ac_delim
25060 DIRNAME!$DIRNAME$ac_delim
25061 REGEX!$REGEX$ac_delim
25062 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25063 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25064 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25065 LIBPREFIX!$LIBPREFIX$ac_delim
25066 CRYPTLIB!$CRYPTLIB$ac_delim
25067 SNMP_LIBS!$SNMP_LIBS$ac_delim
25068 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
25069 GETCONF!$GETCONF$ac_delim
25070 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
25071 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
25072 LFS_LIBS!$LFS_LIBS$ac_delim
25073 HOSTINFO!$HOSTINFO$ac_delim
25076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25078 elif $ac_last_try; then
25079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25080 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25081 { (exit 1); exit 1; }; }
25083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25087 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25088 if test -n "$ac_eof"; then
25089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25090 ac_eof=`expr $ac_eof + 1`
25093 cat >>$CONFIG_STATUS <<_ACEOF
25094 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25098 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25099 s/^/s,@/; s/!/@,|#_!!_#|/
25102 s/'"$ac_delim"'$/,g/; t
25104 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25105 ' >>$CONFIG_STATUS <conf$$subs.sed
25106 rm -f conf$$subs.sed
25107 cat >>$CONFIG_STATUS <<_ACEOF
25113 for ac_last_try in false false false false false :; do
25114 cat >conf$$subs.sed <<_ACEOF
25115 LIBLTDL!$LIBLTDL$ac_delim
25116 INCLTDL!$INCLTDL$ac_delim
25117 subdirs!$subdirs$ac_delim
25118 MODULES!$MODULES$ac_delim
25119 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25120 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25121 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25122 STATIC_MODULES!$STATIC_MODULES$ac_delim
25123 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25124 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25125 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25126 LIBOBJS!$LIBOBJS$ac_delim
25127 LTLIBOBJS!$LTLIBOBJS$ac_delim
25130 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25132 elif $ac_last_try; then
25133 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25134 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25135 { (exit 1); exit 1; }; }
25137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25141 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25142 if test -n "$ac_eof"; then
25143 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25144 ac_eof=`expr $ac_eof + 1`
25147 cat >>$CONFIG_STATUS <<_ACEOF
25148 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25152 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25153 s/^/s,@/; s/!/@,|#_!!_#|/
25156 s/'"$ac_delim"'$/,g/; t
25158 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25159 ' >>$CONFIG_STATUS <conf$$subs.sed
25160 rm -f conf$$subs.sed
25161 cat >>$CONFIG_STATUS <<_ACEOF
25168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25170 # trailing colons and then remove the whole line if VPATH becomes empty
25171 # (actually we leave an empty line to preserve line numbers).
25172 if test "x$srcdir" = x.; then
25173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25174 s/:*\$(srcdir):*/:/
25175 s/:*\${srcdir}:*/:/
25177 s/^\([^=]*=[ ]*\):*/\1/
25183 cat >>$CONFIG_STATUS <<\_ACEOF
25184 fi # test -n "$CONFIG_FILES"
25187 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25190 :[FHLC]) ac_mode=$ac_tag; continue;;
25192 case $ac_mode$ac_tag in
25194 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25195 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25196 { (exit 1); exit 1; }; };;
25197 :[FH]-) ac_tag=-:-;;
25198 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25215 -) ac_f="$tmp/stdin";;
25216 *) # Look for the file first in the build tree, then in the source tree
25217 # (if the path is not absolute). The absolute path cannot be DOS-style,
25218 # because $ac_f cannot contain `:'.
25222 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25224 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25225 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25226 { (exit 1); exit 1; }; };;
25228 ac_file_inputs="$ac_file_inputs $ac_f"
25231 # Let's still pretend it is `configure' which instantiates (i.e., don't
25232 # use $as_me), people would be surprised to read:
25233 # /* config.h. Generated by config.status. */
25234 configure_input="Generated from "`IFS=:
25235 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25236 if test x"$ac_file" != x-; then
25237 configure_input="$ac_file. $configure_input"
25238 { echo "$as_me:$LINENO: creating $ac_file" >&5
25239 echo "$as_me: creating $ac_file" >&6;}
25243 *:-:* | *:-) cat >"$tmp/stdin";;
25248 ac_dir=`$as_dirname -- "$ac_file" ||
25249 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25250 X"$ac_file" : 'X\(//\)[^/]' \| \
25251 X"$ac_file" : 'X\(//\)$' \| \
25252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25258 /^X\(\/\/\)[^/].*/{
25273 -*) as_dir=./$as_dir;;
25275 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25279 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25280 *) as_qdir=$as_dir;;
25282 as_dirs="'$as_qdir' $as_dirs"
25283 as_dir=`$as_dirname -- "$as_dir" ||
25284 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25285 X"$as_dir" : 'X\(//\)[^/]' \| \
25286 X"$as_dir" : 'X\(//\)$' \| \
25287 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25293 /^X\(\/\/\)[^/].*/{
25306 test -d "$as_dir" && break
25308 test -z "$as_dirs" || eval "mkdir $as_dirs"
25309 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25310 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25311 { (exit 1); exit 1; }; }; }
25315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25318 # A ".." for each directory in $ac_dir_suffix.
25319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25320 case $ac_top_builddir_sub in
25321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25325 ac_abs_top_builddir=$ac_pwd
25326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25327 # for backward compatibility:
25328 ac_top_builddir=$ac_top_build_prefix
25331 .) # We are building in place.
25333 ac_top_srcdir=$ac_top_builddir_sub
25334 ac_abs_top_srcdir=$ac_pwd ;;
25335 [\\/]* | ?:[\\/]* ) # Absolute name.
25336 ac_srcdir=$srcdir$ac_dir_suffix;
25337 ac_top_srcdir=$srcdir
25338 ac_abs_top_srcdir=$srcdir ;;
25339 *) # Relative name.
25340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25341 ac_top_srcdir=$ac_top_build_prefix$srcdir
25342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25355 cat >>$CONFIG_STATUS <<\_ACEOF
25356 # If the template does not know about datarootdir, expand it.
25357 # FIXME: This hack should be removed a few years after 2.60.
25358 ac_datarootdir_hack=; ac_datarootdir_seen=
25360 case `sed -n '/datarootdir/ {
25369 ' $ac_file_inputs` in
25370 *datarootdir*) ac_datarootdir_seen=yes;;
25371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25372 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25373 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25375 cat >>$CONFIG_STATUS <<_ACEOF
25376 ac_datarootdir_hack='
25377 s&@datadir@&$datadir&g
25378 s&@docdir@&$docdir&g
25379 s&@infodir@&$infodir&g
25380 s&@localedir@&$localedir&g
25381 s&@mandir@&$mandir&g
25382 s&\\\${datarootdir}&$datarootdir&g' ;;
25386 # Neutralize VPATH when `$srcdir' = `.'.
25387 # Shell code in configure.ac might set extrasub.
25388 # FIXME: do we really want to maintain this feature?
25389 cat >>$CONFIG_STATUS <<_ACEOF
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25396 s&@configure_input@&$configure_input&;t t
25397 s&@top_builddir@&$ac_top_builddir_sub&;t t
25398 s&@srcdir@&$ac_srcdir&;t t
25399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25400 s&@top_srcdir@&$ac_top_srcdir&;t t
25401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25402 s&@builddir@&$ac_builddir&;t t
25403 s&@abs_builddir@&$ac_abs_builddir&;t t
25404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25405 $ac_datarootdir_hack
25406 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25411 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25412 which seems to be undefined. Please make sure it is defined." >&5
25413 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25414 which seems to be undefined. Please make sure it is defined." >&2;}
25418 -) cat "$tmp/out"; rm -f "$tmp/out";;
25419 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25428 # Transform confdefs.h into a sed script `conftest.defines', that
25429 # substitutes the proper values into config.h.in to produce config.h.
25430 rm -f conftest.defines conftest.tail
25431 # First, append a space to every undef/define line, to ease matching.
25432 echo 's/$/ /' >conftest.defines
25433 # Then, protect against being on the right side of a sed subst, or in
25434 # an unquoted here document, in config.status. If some macros were
25435 # called several times there might be several #defines for the same
25436 # symbol, which is useless. But do not sort them, since the last
25437 # AC_DEFINE must be honored.
25438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25439 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25440 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25441 # PARAMS is the parameter list in the macro definition--in most cases, it's
25442 # just an empty string.
25443 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25444 ac_dB='\\)[ (].*,\\1define\\2'
25452 s/^[ ]*#[ ]*define[ ][ ]*//
25457 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25458 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25459 ' >>conftest.defines
25461 # Remove the space that was appended to ease matching.
25462 # Then replace #undef with comments. This is necessary, for
25463 # example, in the case of _POSIX_SOURCE, which is predefined and required
25464 # on some systems where configure will not decide to define it.
25465 # (The regexp can be short, since the line contains either #define or #undef.)
25467 s,^[ #]*u.*,/* & */,' >>conftest.defines
25469 # Break up conftest.defines:
25470 ac_max_sed_lines=50
25472 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25473 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25474 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25476 ac_in='$ac_file_inputs'
25477 ac_out='"$tmp/out1"'
25478 ac_nxt='"$tmp/out2"'
25482 # Write a here document:
25483 cat >>$CONFIG_STATUS <<_ACEOF
25484 # First, check the format of the line:
25485 cat >"\$tmp/defines.sed" <<\\CEOF
25486 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25487 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25491 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25493 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25494 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25495 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25496 grep . conftest.tail >/dev/null || break
25497 rm -f conftest.defines
25498 mv conftest.tail conftest.defines
25500 rm -f conftest.defines conftest.tail
25502 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25503 cat >>$CONFIG_STATUS <<\_ACEOF
25504 if test x"$ac_file" != x-; then
25505 echo "/* $configure_input */" >"$tmp/config.h"
25506 cat "$ac_result" >>"$tmp/config.h"
25507 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25509 echo "$as_me: $ac_file is unchanged" >&6;}
25512 mv "$tmp/config.h" $ac_file
25515 echo "/* $configure_input */"
25527 { (exit 0); exit 0; }
25529 chmod +x $CONFIG_STATUS
25530 ac_clean_files=$ac_clean_files_save
25533 # configure is writing to config.log, and then calls config.status.
25534 # config.status does its own redirection, appending to config.log.
25535 # Unfortunately, on DOS this fails, as config.log is still kept open
25536 # by configure, so config.status won't be able to write to it; its
25537 # output is simply discarded. So we exec the FD to /dev/null,
25538 # effectively closing config.log, so it can be properly (re)opened and
25539 # appended to by config.status. When coming back to configure, we
25540 # need to make the FD available again.
25541 if test "$no_create" != yes; then
25543 ac_config_status_args=
25544 test "$silent" = yes &&
25545 ac_config_status_args="$ac_config_status_args --quiet"
25547 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25549 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25550 # would make configure fail if this is the last instruction.
25551 $ac_cs_success || { (exit 1); exit 1; }
25555 # CONFIG_SUBDIRS section.
25557 if test "$no_recursion" != yes; then
25559 # Remove --cache-file and --srcdir arguments so they do not pile up.
25560 ac_sub_configure_args=
25562 eval "set x $ac_configure_args"
25566 if test -n "$ac_prev"; then
25571 -cache-file | --cache-file | --cache-fil | --cache-fi \
25572 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25573 ac_prev=cache_file ;;
25574 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25575 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25578 --config-cache | -C)
25580 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25582 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25584 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25586 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25590 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25592 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25596 # Always prepend --prefix to ensure using the same prefix
25597 # in subdir configurations.
25598 ac_arg="--prefix=$prefix"
25600 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25602 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25605 if test "$silent" = yes; then
25606 ac_sub_configure_args="--silent $ac_sub_configure_args"
25610 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25612 # Do not complain, so a configure script can configure whichever
25613 # parts of a large source tree are present.
25614 test -d "$srcdir/$ac_dir" || continue
25616 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25617 echo "$as_me:$LINENO: $ac_msg" >&5
25621 -*) as_dir=./$as_dir;;
25623 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25627 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25628 *) as_qdir=$as_dir;;
25630 as_dirs="'$as_qdir' $as_dirs"
25631 as_dir=`$as_dirname -- "$as_dir" ||
25632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25633 X"$as_dir" : 'X\(//\)[^/]' \| \
25634 X"$as_dir" : 'X\(//\)$' \| \
25635 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25641 /^X\(\/\/\)[^/].*/{
25654 test -d "$as_dir" && break
25656 test -z "$as_dirs" || eval "mkdir $as_dirs"
25657 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25658 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25659 { (exit 1); exit 1; }; }; }
25663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25666 # A ".." for each directory in $ac_dir_suffix.
25667 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25668 case $ac_top_builddir_sub in
25669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25673 ac_abs_top_builddir=$ac_pwd
25674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25675 # for backward compatibility:
25676 ac_top_builddir=$ac_top_build_prefix
25679 .) # We are building in place.
25681 ac_top_srcdir=$ac_top_builddir_sub
25682 ac_abs_top_srcdir=$ac_pwd ;;
25683 [\\/]* | ?:[\\/]* ) # Absolute name.
25684 ac_srcdir=$srcdir$ac_dir_suffix;
25685 ac_top_srcdir=$srcdir
25686 ac_abs_top_srcdir=$srcdir ;;
25687 *) # Relative name.
25688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25689 ac_top_srcdir=$ac_top_build_prefix$srcdir
25690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25697 # Check for guested configure; otherwise get Cygnus style configure.
25698 if test -f "$ac_srcdir/configure.gnu"; then
25699 ac_sub_configure=$ac_srcdir/configure.gnu
25700 elif test -f "$ac_srcdir/configure"; then
25701 ac_sub_configure=$ac_srcdir/configure
25702 elif test -f "$ac_srcdir/configure.in"; then
25703 # This should be Cygnus configure.
25704 ac_sub_configure=$ac_aux_dir/configure
25706 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25707 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25711 # The recursion is here.
25712 if test -n "$ac_sub_configure"; then
25713 # Make the cache file name correct relative to the subdirectory.
25714 case $cache_file in
25715 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25716 *) # Relative name.
25717 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25720 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25721 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25722 # The eval makes quoting arguments work.
25723 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25724 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25725 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25726 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25727 { (exit 1); exit 1; }; }
25736 ac_config_commands="$ac_config_commands default-1"
25738 ac_config_commands="$ac_config_commands default-2"
25740 ac_config_commands="$ac_config_commands default-3"
25742 ac_config_commands="$ac_config_commands default-4"