2 # From configure.in Revision: 1.198.2.15.2.10 .
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-large-files Compile in large (2G+) file support. (default=no)
1493 --with-static-modules=QUOTED-MODULE-LIST
1494 --with-modules=QUOTED-MODULE-LIST
1495 --with-experimental-modules Use experimental and unstable modules. (default=no)
1496 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1497 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1498 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1499 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1500 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1501 --with-edir Enable Novell eDirectory integration. (default=no)
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1512 CXX C++ compiler command
1513 CXXFLAGS C++ compiler flags
1514 CXXCPP C++ preprocessor
1515 F77 Fortran 77 compiler command
1516 FFLAGS Fortran 77 compiler flags
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" || continue
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1548 .) # We are building in place.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1582 generated by GNU Autoconf 2.61
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61. Invocation command line was
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1617 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1621 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1656 ac_must_keep_next=false
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685 -* ) ac_must_keep_next=true ;;
1688 ac_configure_args="$ac_configure_args '$ac_arg'"
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log. We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1712 # The following way of writing the cache mishandles newlines in values,
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1749 for ac_var in $ac_subst_vars
1751 eval ac_val=\$$ac_var
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755 echo "$ac_var='\''$ac_val'\''"
1759 if test -n "$ac_subst_files"; then
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1766 for ac_var in $ac_subst_files
1768 eval ac_val=\$$ac_var
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 echo "$ac_var='\''$ac_val'\''"
1777 if test -s confdefs.h; then
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795 for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1803 # Predefined preprocessor variables.
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1851 if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1868 # Check that the precious variables saved in the cache have kept the same
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
1876 case $ac_old_set,$ac_new_set in
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891 echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893 echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901 *) ac_arg=$ac_var=$ac_new_val ;;
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1909 if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1944 RADIUSD_MAJOR_VERSION=1
1945 RADIUSD_MINOR_VERSION=1.4
1946 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 if test -n "$CC"; then
1984 { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1993 if test -z "$ac_cv_prog_CC"; then
1995 # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$ac_ct_CC"; then
2003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_prog_ac_ct_CC="gcc"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2027 { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2031 if test "x$ac_ct_CC" = x; then
2034 case $cross_compiling:$ac_tool_warned in
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet. If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet. If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2052 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$CC"; then
2060 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_CC="${ac_tool_prefix}cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2084 { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2091 if test -z "$CC"; then
2092 # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111 ac_prog_rejected=yes
2115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 if test $ac_prog_rejected = yes; then
2123 # We found a bogon in the path, so make sure we never use it.
2124 set dummy $ac_cv_prog_CC
2126 if test $# != 0; then
2127 # We chose a different compiler from the bogus one.
2128 # However, it has the same basename, so the bogon will be chosen
2129 # first if we set CC to just the basename; use the full file name.
2131 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2137 if test -n "$CC"; then
2138 { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2141 { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2147 if test -z "$CC"; then
2148 if test -n "$ac_tool_prefix"; then
2149 for ac_prog in cl.exe
2151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 if test -n "$CC"; then
2180 { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2183 { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2188 test -n "$CC" && break
2191 if test -z "$CC"; then
2193 for ac_prog in cl.exe
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_prog_ac_ct_CC="$ac_prog"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2232 test -n "$ac_ct_CC" && break
2235 if test "x$ac_ct_CC" = x; then
2238 case $cross_compiling:$ac_tool_warned in
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet. If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet. If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270 (eval "$ac_compiler --version >&5") 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_compiler -v >&5") 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290 (eval "$ac_compiler -V >&5") 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort. b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions. Remove them first so a
2326 # subsequent execution test works.
2328 for ac_file in $ac_files
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2337 if { (ac_try="$ac_link_default"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_link_default") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2352 for ac_file in $ac_files ''
2354 test -f "$ac_file" || continue
2356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2359 # We found the default executable, but exeext='' is most
2363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367 # We set ac_cv_exeext here because the later test for it is not
2368 # safe: cross compilers may not add the suffix if given an `-o'
2369 # argument, so we may need to know it at that point already.
2370 # Even if this section looks crufty: it has the advantage of
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2396 ac_exeext=$ac_cv_exeext
2398 # Check that the compiler produces executables we can run. If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405 if { ac_try='./$ac_file'
2406 { (case "(($ac_try" in
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_try") 2>&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 if test "$cross_compiling" = maybe; then
2420 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run. If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_link") 2>&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2458 for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_compile") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 for ac_file in conftest.o conftest.obj conftest.*; do
2514 test -f "$ac_file" || continue;
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 cat >conftest.$ac_ext <<_ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h. */
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } && {
2575 test -z "$ac_c_werror_flag" ||
2576 test ! -s conftest.err
2577 } && test -s conftest.$ac_objext; then
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_save_c_werror_flag=$ac_c_werror_flag
2601 ac_c_werror_flag=yes
2604 cat >conftest.$ac_ext <<_ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626 (eval "$ac_compile") 2>conftest.er1
2628 grep -v '^ *+' conftest.er1 >conftest.err
2630 cat conftest.err >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } && {
2633 test -z "$ac_c_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest.$ac_objext; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compile") 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && {
2671 test -z "$ac_c_werror_flag" ||
2672 test ! -s conftest.err
2673 } && test -s conftest.$ac_objext; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 ac_c_werror_flag=$ac_save_c_werror_flag
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733 CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735 if test "$GCC" = yes; then
2741 if test "$GCC" = yes; then
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_cv_prog_cc_c89=no
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2778 s = g (p, va_arg (v,int));
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2784 function prototypes and stuff, but not '\xHH' hex character constants.
2785 These don't provoke an error unfortunately, instead are silently treated
2786 as 'x'. The following induces an error, until -std is added to get
2787 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2788 array size at least. It's necessary to write '\x00'==0 to get something
2789 that's true only with -std. */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793 inside strings and character constants. */
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2806 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2814 CC="$ac_save_CC $ac_arg"
2815 rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2824 grep -v '^ *+' conftest.er1 >conftest.err
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
2832 ac_cv_prog_cc_c89=$ac_arg
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f core conftest.err conftest.$ac_objext
2841 test "x$ac_cv_prog_cc_c89" != "xno" && break
2843 rm -f conftest.$ac_ext
2848 case "x$ac_cv_prog_cc_c89" in
2850 { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2853 { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2856 CC="$CC $ac_cv_prog_cc_c89"
2857 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 # include <limits.h>
2906 # include <assert.h>
2910 if { (ac_try="$ac_cpp conftest.$ac_ext"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2918 grep -v '^ *+' conftest.er1 >conftest.err
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } >/dev/null && {
2923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2924 test ! -s conftest.err
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2935 rm -f conftest.err conftest.$ac_ext
2937 # OK, works on sane cases. Now check whether nonexistent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.h>
2947 if { (ac_try="$ac_cpp conftest.$ac_ext"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2955 grep -v '^ *+' conftest.er1 >conftest.err
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } >/dev/null && {
2960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2963 # Broken: success on invalid input.
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 # Passes both tests.
2974 rm -f conftest.err conftest.$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2991 { echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6; }
2994 for ac_c_preproc_warn_flag in '' yes
2996 # Use a header file that comes with gcc, so configuring glibc
2997 # with a fresh cross-compiler works.
2998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999 # <limits.h> exists even on freestanding compilers.
3000 # On the NeXT, cc -E runs the code through the compiler's parser,
3001 # not just through cpp. "Syntax error" is here to catch this case.
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3009 # include <limits.h>
3011 # include <assert.h>
3015 if { (ac_try="$ac_cpp conftest.$ac_ext"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null && {
3028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 # Broken: fails on valid input.
3040 rm -f conftest.err conftest.$ac_ext
3042 # OK, works on sane cases. Now check whether nonexistent headers
3043 # can be detected and how.
3044 cat >conftest.$ac_ext <<_ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h. */
3050 #include <ac_nonexistent.h>
3052 if { (ac_try="$ac_cpp conftest.$ac_ext"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null && {
3065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3066 test ! -s conftest.err
3068 # Broken: success on invalid input.
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3074 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3087 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3102 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3103 if test "${ac_cv_path_GREP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 # Extract the first word of "grep ggrep" to use in msg output
3107 if test -z "$GREP"; then
3108 set dummy grep ggrep; ac_prog_name=$2
3109 if test "${ac_cv_path_GREP+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 ac_path_GREP_found=false
3113 # Loop through the user's path and test for each of PROGNAME-LIST
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3118 test -z "$as_dir" && as_dir=.
3119 for ac_prog in grep ggrep; do
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3122 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3123 # Check for GNU ac_path_GREP and select it if it is found.
3124 # Check for GNU $ac_path_GREP
3125 case `"$ac_path_GREP" --version 2>&1` in
3127 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3130 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3133 cat "conftest.in" "conftest.in" >"conftest.tmp"
3134 mv "conftest.tmp" "conftest.in"
3135 cp "conftest.in" "conftest.nl"
3136 echo 'GREP' >> "conftest.nl"
3137 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3139 ac_count=`expr $ac_count + 1`
3140 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3141 # Best one so far, save it but keep looking for a better one
3142 ac_cv_path_GREP="$ac_path_GREP"
3143 ac_path_GREP_max=$ac_count
3145 # 10*(2^10) chars as input seems more than enough
3146 test $ac_count -gt 10 && break
3148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3152 $ac_path_GREP_found && break 3
3162 GREP="$ac_cv_path_GREP"
3163 if test -z "$GREP"; then
3164 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3165 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3166 { (exit 1); exit 1; }; }
3170 ac_cv_path_GREP=$GREP
3175 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3176 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3177 GREP="$ac_cv_path_GREP"
3180 { echo "$as_me:$LINENO: checking for egrep" >&5
3181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3182 if test "${ac_cv_path_EGREP+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3186 then ac_cv_path_EGREP="$GREP -E"
3188 # Extract the first word of "egrep" to use in msg output
3189 if test -z "$EGREP"; then
3190 set dummy egrep; ac_prog_name=$2
3191 if test "${ac_cv_path_EGREP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 ac_path_EGREP_found=false
3195 # Loop through the user's path and test for each of PROGNAME-LIST
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3200 test -z "$as_dir" && as_dir=.
3201 for ac_prog in egrep; do
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3204 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3205 # Check for GNU ac_path_EGREP and select it if it is found.
3206 # Check for GNU $ac_path_EGREP
3207 case `"$ac_path_EGREP" --version 2>&1` in
3209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3212 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3215 cat "conftest.in" "conftest.in" >"conftest.tmp"
3216 mv "conftest.tmp" "conftest.in"
3217 cp "conftest.in" "conftest.nl"
3218 echo 'EGREP' >> "conftest.nl"
3219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221 ac_count=`expr $ac_count + 1`
3222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3223 # Best one so far, save it but keep looking for a better one
3224 ac_cv_path_EGREP="$ac_path_EGREP"
3225 ac_path_EGREP_max=$ac_count
3227 # 10*(2^10) chars as input seems more than enough
3228 test $ac_count -gt 10 && break
3230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3234 $ac_path_EGREP_found && break 3
3244 EGREP="$ac_cv_path_EGREP"
3245 if test -z "$EGREP"; then
3246 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3247 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3248 { (exit 1); exit 1; }; }
3252 ac_cv_path_EGREP=$EGREP
3258 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3259 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3260 EGREP="$ac_cv_path_EGREP"
3264 { echo "$as_me:$LINENO: checking for AIX" >&5
3265 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3266 cat >conftest.$ac_ext <<_ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 $EGREP "yes" >/dev/null 2>&1; then
3279 { echo "$as_me:$LINENO: result: yes" >&5
3280 echo "${ECHO_T}yes" >&6; }
3281 cat >>confdefs.h <<\_ACEOF
3282 #define _ALL_SOURCE 1
3286 { echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6; }
3293 if test $ac_cv_c_compiler_gnu = yes; then
3294 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3295 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_pattern="Autoconf.*'x'"
3300 cat >conftest.$ac_ext <<_ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3311 ac_cv_prog_gcc_traditional=yes
3313 ac_cv_prog_gcc_traditional=no
3318 if test $ac_cv_prog_gcc_traditional = no; then
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3330 ac_cv_prog_gcc_traditional=yes
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3337 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3338 if test $ac_cv_prog_gcc_traditional = yes; then
3339 CC="$CC -traditional"
3343 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3344 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_suncc+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 cat > conftest.c <<EOF
3353 if { ac_try='${CC-cc} -E conftest.c'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3359 ac_cv_prog_suncc=yes
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_RANLIB+set}" = set; then
3372 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 if test -n "$RANLIB"; then
3375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 RANLIB=$ac_cv_prog_RANLIB
3395 if test -n "$RANLIB"; then
3396 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3397 echo "${ECHO_T}$RANLIB" >&6; }
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3405 if test -z "$ac_cv_prog_RANLIB"; then
3406 ac_ct_RANLIB=$RANLIB
3407 # Extract the first word of "ranlib", so it can be a program name with args.
3408 set dummy ranlib; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$ac_ct_RANLIB"; then
3415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424 ac_cv_prog_ac_ct_RANLIB="ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3443 if test "x$ac_ct_RANLIB" = x; then
3446 case $cross_compiling:$ac_tool_warned in
3448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet. If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&5
3451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3452 whose name does not start with the host triplet. If you think this
3453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3454 ac_tool_warned=yes ;;
3456 RANLIB=$ac_ct_RANLIB
3459 RANLIB="$ac_cv_prog_RANLIB"
3463 abs_top_builddir=`pwd`
3469 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3470 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3471 if test "${ac_cv_header_stdc+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3493 rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_compile") 2>conftest.er1
3502 grep -v '^ *+' conftest.er1 >conftest.err
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } && {
3507 test -z "$ac_c_werror_flag" ||
3508 test ! -s conftest.err
3509 } && test -s conftest.$ac_objext; then
3510 ac_cv_header_stdc=yes
3512 echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3515 ac_cv_header_stdc=no
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 if test $ac_cv_header_stdc = yes; then
3521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 $EGREP "memchr" >/dev/null 2>&1; then
3535 ac_cv_header_stdc=no
3541 if test $ac_cv_header_stdc = yes; then
3542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 $EGREP "free" >/dev/null 2>&1; then
3556 ac_cv_header_stdc=no
3562 if test $ac_cv_header_stdc = yes; then
3563 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3564 if test "$cross_compiling" = yes; then
3567 cat >conftest.$ac_ext <<_ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3575 #if ((' ' & 0x0FF) == 0x020)
3576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3579 # define ISLOWER(c) \
3580 (('a' <= (c) && (c) <= 'i') \
3581 || ('j' <= (c) && (c) <= 'r') \
3582 || ('s' <= (c) && (c) <= 'z'))
3583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3591 for (i = 0; i < 256; i++)
3592 if (XOR (islower (i), ISLOWER (i))
3593 || toupper (i) != TOUPPER (i))
3598 rm -f conftest$ac_exeext
3599 if { (ac_try="$ac_link"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_link") 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3609 { (case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_try") 2>&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3620 echo "$as_me: program exited with status $ac_status" >&5
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3625 ac_cv_header_stdc=no
3627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3633 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3635 if test $ac_cv_header_stdc = yes; then
3637 cat >>confdefs.h <<\_ACEOF
3638 #define STDC_HEADERS 1
3643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3653 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3654 inttypes.h stdint.h unistd.h
3656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668 $ac_includes_default
3670 #include <$ac_header>
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3689 eval "$as_ac_Header=yes"
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 eval "$as_ac_Header=no"
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 ac_res=`eval echo '${'$as_ac_Header'}'`
3700 { echo "$as_me:$LINENO: result: $ac_res" >&5
3701 echo "${ECHO_T}$ac_res" >&6; }
3702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3703 cat >>confdefs.h <<_ACEOF
3704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3712 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3713 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3714 if test "${ac_cv_c_bigendian+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 # See if sys/param.h defines the BYTE_ORDER macro.
3718 cat >conftest.$ac_ext <<_ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <sys/types.h>
3725 #include <sys/param.h>
3730 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3731 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3739 rm -f conftest.$ac_objext
3740 if { (ac_try="$ac_compile"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_compile") 2>conftest.er1
3748 grep -v '^ *+' conftest.er1 >conftest.err
3750 cat conftest.err >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } && {
3753 test -z "$ac_c_werror_flag" ||
3754 test ! -s conftest.err
3755 } && test -s conftest.$ac_objext; then
3756 # It does; now see whether it defined to BIG_ENDIAN or not.
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 #include <sys/types.h>
3764 #include <sys/param.h>
3769 #if BYTE_ORDER != BIG_ENDIAN
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3794 ac_cv_c_bigendian=yes
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 ac_cv_c_bigendian=no
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 # It does not; compile a test program.
3808 if test "$cross_compiling" = yes; then
3809 # try to guess the endianness by grepping values into an object file
3810 ac_cv_c_bigendian=unknown
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3818 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3819 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3820 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3821 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3822 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3826 _ascii (); _ebcdic ();
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest.$ac_objext; then
3848 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3849 ac_cv_c_bigendian=yes
3851 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3852 if test "$ac_cv_c_bigendian" = unknown; then
3853 ac_cv_c_bigendian=no
3855 # finding both strings is unlikely to happen, but who knows?
3856 ac_cv_c_bigendian=unknown
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3874 $ac_includes_default
3879 /* Are we little or big endian? From Harbison&Steele. */
3883 char c[sizeof (long int)];
3886 return u.c[sizeof (long int) - 1] == 1;
3892 rm -f conftest$ac_exeext
3893 if { (ac_try="$ac_link"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_link") 2>&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3903 { (case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_c_bigendian=no
3914 echo "$as_me: program exited with status $ac_status" >&5
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_c_bigendian=yes
3921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3930 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3931 case $ac_cv_c_bigendian in
3934 cat >>confdefs.h <<\_ACEOF
3935 #define WORDS_BIGENDIAN 1
3941 { { echo "$as_me:$LINENO: error: unknown endianness
3942 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3943 echo "$as_me: error: unknown endianness
3944 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3945 { (exit 1); exit 1; }; } ;;
3949 # Extract the first word of "gmake", so it can be a program name with args.
3950 set dummy gmake; ac_word=$2
3951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_GMAKE+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$GMAKE"; then
3957 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_GMAKE="yes"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3977 GMAKE=$ac_cv_prog_GMAKE
3978 if test -n "$GMAKE"; then
3979 { echo "$as_me:$LINENO: result: $GMAKE" >&5
3980 echo "${ECHO_T}$GMAKE" >&6; }
3982 { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3987 if test $GMAKE = no; then
3988 # Extract the first word of "make", so it can be a program name with args.
3989 set dummy make; ac_word=$2
3990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_MAKE+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4019 MAKE=$ac_cv_path_MAKE
4020 if test -n "$MAKE"; then
4021 { echo "$as_me:$LINENO: result: $MAKE" >&5
4022 echo "${ECHO_T}$MAKE" >&6; }
4024 { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4030 # Extract the first word of "gmake", so it can be a program name with args.
4031 set dummy gmake; ac_word=$2
4032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4034 if test "${ac_cv_path_MAKE+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4039 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4061 MAKE=$ac_cv_path_MAKE
4062 if test -n "$MAKE"; then
4063 { echo "$as_me:$LINENO: result: $MAKE" >&5
4064 echo "${ECHO_T}$MAKE" >&6; }
4066 { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4072 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4073 if test -z "$makever"; then
4074 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
4075 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4076 echo "$as_me: error: GNU Make is not installed. Please download and install it
4077 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4078 { (exit 1); exit 1; }; }
4081 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_check_lib_save_LIBS=$LIBS
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4095 /* Override any GCC internal prototype to avoid an error.
4096 Use char because int might match the return type of a GCC
4097 builtin and then its argument prototype would still apply. */
4105 return lt_dlinit ();
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (ac_try="$ac_link"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_link") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest$ac_exeext &&
4127 $as_test_x conftest$ac_exeext; then
4128 ac_cv_lib_ltdl_lt_dlinit=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_lib_ltdl_lt_dlinit=no
4136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4137 conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4140 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4141 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4142 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4143 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4145 if test x"$enable_ltdl_install" = xno; then
4146 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4147 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4149 enable_ltdl_install=yes
4154 if test x"$enable_ltdl_install" = x"yes"; then
4155 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4156 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4157 LTDLINCL='-I${top_srcdir}/''libltdl'
4159 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4163 # For backwards non-gettext consistent compatibility...
4167 if test x"$enable_ltdl_install" = x"yes"; then
4168 LTDL_SUBDIRS=libltdl
4172 # Check whether --enable-shared was given.
4173 if test "${enable_shared+set}" = set; then
4174 enableval=$enable_shared; p=${PACKAGE-default}
4176 yes) enable_shared=yes ;;
4177 no) enable_shared=no ;;
4180 # Look at the argument we got. We use all the common list separators.
4181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182 for pkg in $enableval; do
4184 if test "X$pkg" = "X$p"; then
4196 # Check whether --enable-static was given.
4197 if test "${enable_static+set}" = set; then
4198 enableval=$enable_static; p=${PACKAGE-default}
4200 yes) enable_static=yes ;;
4201 no) enable_static=no ;;
4204 # Look at the argument we got. We use all the common list separators.
4205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206 for pkg in $enableval; do
4208 if test "X$pkg" = "X$p"; then
4220 # Check whether --enable-fast-install was given.
4221 if test "${enable_fast_install+set}" = set; then
4222 enableval=$enable_fast_install; p=${PACKAGE-default}
4224 yes) enable_fast_install=yes ;;
4225 no) enable_fast_install=no ;;
4227 enable_fast_install=no
4228 # Look at the argument we got. We use all the common list separators.
4229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4230 for pkg in $enableval; do
4232 if test "X$pkg" = "X$p"; then
4233 enable_fast_install=yes
4240 enable_fast_install=yes
4245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4246 if test -f "$ac_dir/install-sh"; then
4248 ac_install_sh="$ac_aux_dir/install-sh -c"
4250 elif test -f "$ac_dir/install.sh"; then
4252 ac_install_sh="$ac_aux_dir/install.sh -c"
4254 elif test -f "$ac_dir/shtool"; then
4256 ac_install_sh="$ac_aux_dir/shtool install -c"
4260 if test -z "$ac_aux_dir"; then
4261 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4262 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4263 { (exit 1); exit 1; }; }
4266 # These three variables are undocumented and unsupported,
4267 # and are intended to be withdrawn in a future Autoconf release.
4268 # They can cause serious problems if a builder's source tree is in a directory
4269 # whose full name contains unusual characters.
4270 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4271 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4272 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4275 # Make sure we can run config.sub.
4276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4277 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4279 { (exit 1); exit 1; }; }
4281 { echo "$as_me:$LINENO: checking build system type" >&5
4282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4283 if test "${ac_cv_build+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 ac_build_alias=$build_alias
4287 test "x$ac_build_alias" = x &&
4288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4289 test "x$ac_build_alias" = x &&
4290 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4292 { (exit 1); exit 1; }; }
4293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4294 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4296 { (exit 1); exit 1; }; }
4299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4300 echo "${ECHO_T}$ac_cv_build" >&6; }
4301 case $ac_cv_build in
4303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4304 echo "$as_me: error: invalid value of canonical build" >&2;}
4305 { (exit 1); exit 1; }; };;
4308 ac_save_IFS=$IFS; IFS='-'
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4321 { echo "$as_me:$LINENO: checking host system type" >&5
4322 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4323 if test "${ac_cv_host+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test "x$host_alias" = x; then
4327 ac_cv_host=$ac_cv_build
4329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4330 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4331 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4332 { (exit 1); exit 1; }; }
4336 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4337 echo "${ECHO_T}$ac_cv_host" >&6; }
4340 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4341 echo "$as_me: error: invalid value of canonical host" >&2;}
4342 { (exit 1); exit 1; }; };;
4345 ac_save_IFS=$IFS; IFS='-'
4351 # Remember, the first character of IFS is used to create $*,
4352 # except with old shells:
4355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4358 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4359 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4360 if test "${lt_cv_path_SED+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 # Loop through the user's path and test for sed and gsed.
4364 # Then use that list of sed's as ones to test for truncation.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for lt_ac_prog in sed gsed; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4373 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4380 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4381 # along with /bin/sed that truncates output.
4382 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4383 test ! -f $lt_ac_sed && continue
4384 cat /dev/null > conftest.in
4386 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4387 # Check for GNU sed and select it if it is found.
4388 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4389 lt_cv_path_SED=$lt_ac_sed
4393 cat conftest.in conftest.in >conftest.tmp
4394 mv conftest.tmp conftest.in
4395 cp conftest.in conftest.nl
4397 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4398 cmp -s conftest.out conftest.nl || break
4399 # 10000 chars as input seems more than enough
4400 test $lt_ac_count -gt 10 && break
4401 lt_ac_count=`expr $lt_ac_count + 1`
4402 if test $lt_ac_count -gt $lt_ac_max; then
4403 lt_ac_max=$lt_ac_count
4404 lt_cv_path_SED=$lt_ac_sed
4412 { echo "$as_me:$LINENO: result: $SED" >&5
4413 echo "${ECHO_T}$SED" >&6; }
4416 # Check whether --with-gnu-ld was given.
4417 if test "${with_gnu_ld+set}" = set; then
4418 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4424 if test "$GCC" = yes; then
4425 # Check if gcc -print-prog-name=ld gives a path.
4426 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4427 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4430 # gcc leaves a trailing carriage return which upsets mingw
4431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4436 # Accept absolute paths.
4438 re_direlt='/[^/][^/]*/\.\./'
4439 # Canonicalize the pathname of ld
4440 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4441 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4442 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4444 test -z "$LD" && LD="$ac_prog"
4447 # If it fails, then pretend we aren't using GCC.
4451 # If it is relative, then search for the first ld in PATH.
4455 elif test "$with_gnu_ld" = yes; then
4456 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4457 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4459 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4460 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4462 if test "${lt_cv_path_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 if test -z "$LD"; then
4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4467 for ac_dir in $PATH; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4471 lt_cv_path_LD="$ac_dir/$ac_prog"
4472 # Check to see if the program is GNU ld. I'd rather use --version,
4473 # but apparently some variants of GNU ld only accept -v.
4474 # Break only if it was the GNU/non-GNU ld that we prefer.
4475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4476 *GNU* | *'with BFD'*)
4477 test "$with_gnu_ld" != no && break
4480 test "$with_gnu_ld" != yes && break
4487 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4492 if test -n "$LD"; then
4493 { echo "$as_me:$LINENO: result: $LD" >&5
4494 echo "${ECHO_T}$LD" >&6; }
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4499 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4500 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4501 { (exit 1); exit 1; }; }
4502 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4503 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4504 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4508 case `$LD -v 2>&1 </dev/null` in
4509 *GNU* | *'with BFD'*)
4510 lt_cv_prog_gnu_ld=yes
4513 lt_cv_prog_gnu_ld=no
4517 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4518 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4519 with_gnu_ld=$lt_cv_prog_gnu_ld
4522 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4523 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4524 if test "${lt_cv_ld_reload_flag+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 lt_cv_ld_reload_flag='-r'
4529 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4530 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4531 reload_flag=$lt_cv_ld_reload_flag
4532 case $reload_flag in
4534 *) reload_flag=" $reload_flag" ;;
4536 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4539 if test "$GCC" = yes; then
4540 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4542 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4547 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4548 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4549 if test "${lt_cv_path_NM+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test -n "$NM"; then
4553 # Let the user override the test.
4556 lt_nm_to_check="${ac_tool_prefix}nm"
4557 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4558 lt_nm_to_check="$lt_nm_to_check nm"
4560 for lt_tmp_nm in $lt_nm_to_check; do
4561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4562 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4564 test -z "$ac_dir" && ac_dir=.
4565 tmp_nm="$ac_dir/$lt_tmp_nm"
4566 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4567 # Check to see if the nm accepts a BSD-compat flag.
4568 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4569 # nm: unknown option "B" ignored
4570 # Tru64's nm complains that /dev/null is an invalid object file
4571 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4572 */dev/null* | *'Invalid file or object type'*)
4573 lt_cv_path_NM="$tmp_nm -B"
4577 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4579 lt_cv_path_NM="$tmp_nm -p"
4583 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4584 continue # so that we can try to find one that supports BSD flags
4593 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4596 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4597 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4600 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4601 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4603 if test "$LN_S" = "ln -s"; then
4604 { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4607 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4608 echo "${ECHO_T}no, using $LN_S" >&6; }
4611 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4612 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4613 if test "${lt_cv_deplibs_check_method+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 lt_cv_file_magic_cmd='$MAGIC_CMD'
4617 lt_cv_file_magic_test_file=
4618 lt_cv_deplibs_check_method='unknown'
4619 # Need to set the preceding variable on all platforms that support
4620 # interlibrary dependencies.
4621 # 'none' -- dependencies not supported.
4622 # `unknown' -- same as none, but documents that we really don't know.
4623 # 'pass_all' -- all dependencies passed with no checks.
4624 # 'test_compile' -- check by making test program.
4625 # 'file_magic [[regex]]' -- check by looking for files in library path
4626 # which responds to the $file_magic_cmd with a given extended regex.
4627 # If you have `file' or equivalent on your system and you're not sure
4628 # whether `pass_all' will *always* work, you probably want this one.
4632 lt_cv_deplibs_check_method=pass_all
4636 lt_cv_deplibs_check_method=pass_all
4640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4641 lt_cv_file_magic_cmd='/usr/bin/file -L'
4642 lt_cv_file_magic_test_file=/shlib/libc.so
4646 # func_win32_libid is a shell function defined in ltmain.sh
4647 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4648 lt_cv_file_magic_cmd='func_win32_libid'
4652 # Base MSYS/MinGW do not provide the 'file' command needed by
4653 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4654 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4655 lt_cv_file_magic_cmd='$OBJDUMP -f'
4658 darwin* | rhapsody*)
4659 lt_cv_deplibs_check_method=pass_all
4662 freebsd* | kfreebsd*-gnu | dragonfly*)
4663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4666 # Not sure whether the presence of OpenBSD here was a mistake.
4667 # Let's accept both of them until this is cleared up.
4668 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4669 lt_cv_file_magic_cmd=/usr/bin/file
4670 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4674 lt_cv_deplibs_check_method=pass_all
4679 lt_cv_deplibs_check_method=pass_all
4682 hpux10.20* | hpux11*)
4683 lt_cv_file_magic_cmd=/usr/bin/file
4686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4687 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4690 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]'
4691 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4695 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4701 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4705 irix5* | irix6* | nonstopux*)
4707 *-32|*"-32 ") libmagic=32-bit;;
4708 *-n32|*"-n32 ") libmagic=N32;;
4709 *-64|*"-64 ") libmagic=64-bit;;
4710 *) libmagic=never-match;;
4712 lt_cv_deplibs_check_method=pass_all
4715 # This must be Linux ELF.
4717 lt_cv_deplibs_check_method=pass_all
4721 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4730 lt_cv_file_magic_cmd=/usr/bin/file
4731 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4735 lt_cv_deplibs_check_method=unknown
4739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4746 osf3* | osf4* | osf5*)
4747 lt_cv_deplibs_check_method=pass_all
4751 lt_cv_deplibs_check_method=pass_all
4755 case $host_vendor in
4757 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]'
4758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4761 lt_cv_deplibs_check_method=pass_all
4764 lt_cv_file_magic_cmd='/bin/file'
4765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4768 lt_cv_file_magic_cmd='/bin/file'
4769 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4770 lt_cv_file_magic_test_file=/lib/libc.so
4773 lt_cv_deplibs_check_method=pass_all
4776 lt_cv_deplibs_check_method=pass_all
4781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4782 lt_cv_deplibs_check_method=pass_all
4787 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4788 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4789 file_magic_cmd=$lt_cv_file_magic_cmd
4790 deplibs_check_method=$lt_cv_deplibs_check_method
4791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4796 # If no C compiler was specified, use CC.
4799 # If no C compiler flags were specified, use CFLAGS.
4800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4802 # Allow CC to be a program name with arguments.
4805 # Check whether --enable-libtool-lock was given.
4806 if test "${enable_libtool_lock+set}" = set; then
4807 enableval=$enable_libtool_lock;
4810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4812 # Some flags need to be propagated to the compiler or linker for good
4816 # Find out which ABI we are using.
4817 echo 'int i;' > conftest.$ac_ext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819 (eval $ac_compile) 2>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; then
4823 case `/usr/bin/file conftest.$ac_objext` in
4835 # Find out which ABI we are using.
4836 echo '#line 4836 "configure"' > conftest.$ac_ext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838 (eval $ac_compile) 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; then
4842 if test "$lt_cv_prog_gnu_ld" = yes; then
4843 case `/usr/bin/file conftest.$ac_objext` in
4845 LD="${LD-ld} -melf32bsmip"
4848 LD="${LD-ld} -melf32bmipn32"
4851 LD="${LD-ld} -melf64bmip"
4855 case `/usr/bin/file conftest.$ac_objext` in
4871 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4872 # Find out which ABI we are using.
4873 echo 'int i;' > conftest.$ac_ext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; then
4879 case `/usr/bin/file conftest.o` in
4883 LD="${LD-ld} -m elf_i386"
4885 ppc64-*linux*|powerpc64-*linux*)
4886 LD="${LD-ld} -m elf32ppclinux"
4889 LD="${LD-ld} -m elf_s390"
4892 LD="${LD-ld} -m elf32_sparc"
4899 LD="${LD-ld} -m elf_x86_64"
4901 ppc*-*linux*|powerpc*-*linux*)
4902 LD="${LD-ld} -m elf64ppc"
4905 LD="${LD-ld} -m elf64_s390"
4908 LD="${LD-ld} -m elf64_sparc"
4918 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4919 SAVE_CFLAGS="$CFLAGS"
4920 CFLAGS="$CFLAGS -belf"
4921 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4922 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4923 if test "${lt_cv_cc_needs_belf+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4947 rm -f conftest.$ac_objext conftest$ac_exeext
4948 if { (ac_try="$ac_link"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_link") 2>conftest.er1
4956 grep -v '^ *+' conftest.er1 >conftest.err
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); } && {
4961 test -z "$ac_c_werror_flag" ||
4962 test ! -s conftest.err
4963 } && test -s conftest$ac_exeext &&
4964 $as_test_x conftest$ac_exeext; then
4965 lt_cv_cc_needs_belf=yes
4967 echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4970 lt_cv_cc_needs_belf=no
4973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4974 conftest$ac_exeext conftest.$ac_ext
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4983 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4984 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4986 CFLAGS="$SAVE_CFLAGS"
4990 # Find out which ABI we are using.
4991 echo 'int i;' > conftest.$ac_ext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
4997 case `/usr/bin/file conftest.o` in
4999 case $lt_cv_prog_gnu_ld in
5000 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5001 *) LD="${LD-ld} -64" ;;
5012 need_locks="$enable_libtool_lock"
5016 for ac_header in dlfcn.h
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 ac_res=`eval echo '${'$as_ac_Header'}'`
5026 { echo "$as_me:$LINENO: result: $ac_res" >&5
5027 echo "${ECHO_T}$ac_res" >&6; }
5029 # Is the header compilable?
5030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5032 cat >conftest.$ac_ext <<_ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 $ac_includes_default
5039 #include <$ac_header>
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_compile") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest.$ac_objext; then
5058 ac_header_compiler=yes
5060 echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5063 ac_header_compiler=no
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 echo "${ECHO_T}$ac_header_compiler" >&6; }
5070 # Is the header present?
5071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5073 cat >conftest.$ac_ext <<_ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <$ac_header>
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } >/dev/null && {
5094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5097 ac_header_preproc=yes
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_header_preproc=no
5105 rm -f conftest.err conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5107 echo "${ECHO_T}$ac_header_preproc" >&6; }
5109 # So? What about this header?
5110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5116 ac_header_preproc=yes
5119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5126 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 eval "$as_ac_Header=\$ac_header_preproc"
5141 ac_res=`eval echo '${'$as_ac_Header'}'`
5142 { echo "$as_me:$LINENO: result: $ac_res" >&5
5143 echo "${ECHO_T}$ac_res" >&6; }
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 if test -z "$CXX"; then
5161 if test -n "$CCC"; then
5164 if test -n "$ac_tool_prefix"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_CXX+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test -n "$CXX"; then
5175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$CXX"; then
5196 { echo "$as_me:$LINENO: result: $CXX" >&5
5197 echo "${ECHO_T}$CXX" >&6; }
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5204 test -n "$CXX" && break
5207 if test -z "$CXX"; then
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 if test -n "$ac_ct_CXX"; then
5219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_prog_ac_ct_CXX="$ac_prog"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239 if test -n "$ac_ct_CXX"; then
5240 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5241 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5243 { echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6; }
5248 test -n "$ac_ct_CXX" && break
5251 if test "x$ac_ct_CXX" = x; then
5254 case $cross_compiling:$ac_tool_warned in
5256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5257 whose name does not start with the host triplet. If you think this
5258 configuration is useful to you, please write to autoconf@gnu.org." >&5
5259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5260 whose name does not start with the host triplet. If you think this
5261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5262 ac_tool_warned=yes ;;
5270 # Provide some information about the compiler.
5271 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (ac_try="$ac_compiler --version >&5"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compiler --version >&5") 2>&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }
5283 { (ac_try="$ac_compiler -v >&5"
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_compiler -v >&5") 2>&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }
5293 { (ac_try="$ac_compiler -V >&5"
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compiler -V >&5") 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5304 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_compile") 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } && {
5341 test -z "$ac_cxx_werror_flag" ||
5342 test ! -s conftest.err
5343 } && test -s conftest.$ac_objext; then
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5358 GXX=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CXXFLAGS=${CXXFLAGS+set}
5360 ac_save_CXXFLAGS=$CXXFLAGS
5361 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5362 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5363 if test "${ac_cv_prog_cxx_g+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5367 ac_cxx_werror_flag=yes
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_cxx_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5402 ac_cv_prog_cxx_g=yes
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_cxx_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5471 grep -v '^ *+' conftest.er1 >conftest.err
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_cxx_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 ac_cv_prog_cxx_g=yes
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5498 if test "$ac_test_CXXFLAGS" = set; then
5499 CXXFLAGS=$ac_save_CXXFLAGS
5500 elif test $ac_cv_prog_cxx_g = yes; then
5501 if test "$GXX" = yes; then
5507 if test "$GXX" = yes; then
5514 ac_cpp='$CXXCPP $CPPFLAGS'
5515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5521 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5522 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5523 (test "X$CXX" != "Xg++"))) ; then
5525 ac_cpp='$CXXCPP $CPPFLAGS'
5526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5529 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5530 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5531 if test -z "$CXXCPP"; then
5532 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 # Double quotes because CXXCPP needs to be expanded
5536 for CXXCPP in "$CXX -E" "/lib/cpp"
5539 for ac_cxx_preproc_warn_flag in '' yes
5541 # Use a header file that comes with gcc, so configuring glibc
5542 # with a fresh cross-compiler works.
5543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5544 # <limits.h> exists even on freestanding compilers.
5545 # On the NeXT, cc -E runs the code through the compiler's parser,
5546 # not just through cpp. "Syntax error" is here to catch this case.
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5554 # include <limits.h>
5556 # include <assert.h>
5560 if { (ac_try="$ac_cpp conftest.$ac_ext"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } >/dev/null && {
5573 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5574 test ! -s conftest.err
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 # Broken: fails on valid input.
5585 rm -f conftest.err conftest.$ac_ext
5587 # OK, works on sane cases. Now check whether nonexistent headers
5588 # can be detected and how.
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <ac_nonexistent.h>
5597 if { (ac_try="$ac_cpp conftest.$ac_ext"
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } >/dev/null && {
5610 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5611 test ! -s conftest.err
5613 # Broken: success on invalid input.
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 # Passes both tests.
5624 rm -f conftest.err conftest.$ac_ext
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then
5634 ac_cv_prog_CXXCPP=$CXXCPP
5637 CXXCPP=$ac_cv_prog_CXXCPP
5639 ac_cv_prog_CXXCPP=$CXXCPP
5641 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5642 echo "${ECHO_T}$CXXCPP" >&6; }
5644 for ac_cxx_preproc_warn_flag in '' yes
5646 # Use a header file that comes with gcc, so configuring glibc
5647 # with a fresh cross-compiler works.
5648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 # <limits.h> exists even on freestanding compilers.
5650 # On the NeXT, cc -E runs the code through the compiler's parser,
5651 # not just through cpp. "Syntax error" is here to catch this case.
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5659 # include <limits.h>
5661 # include <assert.h>
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } >/dev/null && {
5678 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5679 test ! -s conftest.err
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5686 # Broken: fails on valid input.
5690 rm -f conftest.err conftest.$ac_ext
5692 # OK, works on sane cases. Now check whether nonexistent headers
5693 # can be detected and how.
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include <ac_nonexistent.h>
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5716 test ! -s conftest.err
5718 # Broken: success on invalid input.
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 # Passes both tests.
5729 rm -f conftest.err conftest.$ac_ext
5732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5733 rm -f conftest.err conftest.$ac_ext
5734 if $ac_preproc_ok; then
5737 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5738 See \`config.log' for more details." >&5
5739 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5740 See \`config.log' for more details." >&2;}
5741 { (exit 1); exit 1; }; }
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5757 if test -n "$ac_tool_prefix"; then
5758 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
5760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_prog_F77+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 if test -n "$F77"; then
5768 ac_cv_prog_F77="$F77" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 if test -n "$F77"; then
5789 { echo "$as_me:$LINENO: result: $F77" >&5
5790 echo "${ECHO_T}$F77" >&6; }
5792 { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5797 test -n "$F77" && break
5800 if test -z "$F77"; then
5802 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
5804 # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$ac_ct_F77"; then
5812 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_ac_ct_F77="$ac_prog"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5832 if test -n "$ac_ct_F77"; then
5833 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5834 echo "${ECHO_T}$ac_ct_F77" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5841 test -n "$ac_ct_F77" && break
5844 if test "x$ac_ct_F77" = x; then
5847 case $cross_compiling:$ac_tool_warned in
5849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850 whose name does not start with the host triplet. If you think this
5851 configuration is useful to you, please write to autoconf@gnu.org." >&5
5852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet. If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855 ac_tool_warned=yes ;;
5862 # Provide some information about the compiler.
5863 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5864 ac_compiler=`set X $ac_compile; echo $2`
5865 { (ac_try="$ac_compiler --version >&5"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compiler --version >&5") 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }
5875 { (ac_try="$ac_compiler -v >&5"
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compiler -v >&5") 2>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }
5885 { (ac_try="$ac_compiler -V >&5"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compiler -V >&5") 2>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }
5897 # If we don't use `.F' as extension, the preprocessor is not run on the
5898 # input file. (Note that this only needs to work for GNU compilers.)
5901 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5902 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5903 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.$ac_ext <<_ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && {
5928 test -z "$ac_f77_werror_flag" ||
5929 test ! -s conftest.err
5930 } && test -s conftest.$ac_objext; then
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5943 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5944 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5946 ac_test_FFLAGS=${FFLAGS+set}
5947 ac_save_FFLAGS=$FFLAGS
5949 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5950 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5951 if test "${ac_cv_prog_f77_g+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.$ac_ext <<_ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_f77_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_cv_prog_f77_g=yes
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5989 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5990 if test "$ac_test_FFLAGS" = set; then
5991 FFLAGS=$ac_save_FFLAGS
5992 elif test $ac_cv_prog_f77_g = yes; then
5993 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5999 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6006 G77=`test $ac_compiler_gnu = yes && echo yes`
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6017 # find the maximum length of command line arguments
6018 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6019 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6020 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 # On DJGPP, this test can blow up pretty badly due to problems in libc
6029 # (any single argument exceeding 2000 bytes causes a buffer overrun
6030 # during glob expansion). Even if it were fixed, the result of this
6031 # check would be larger than it should be.
6032 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6036 # Under GNU Hurd, this test is not required because there is
6037 # no limit to the length of command line arguments.
6038 # Libtool will interpret -1 as no limit whatsoever
6039 lt_cv_sys_max_cmd_len=-1;
6043 # On Win9x/ME, this test blows up -- it succeeds, but takes
6044 # about 5 minutes as the teststring grows exponentially.
6045 # Worse, since 9x/ME are not pre-emptively multitasking,
6046 # you end up with a "frozen" computer, even though with patience
6047 # the test eventually succeeds (with a max line length of 256k).
6048 # Instead, let's just punt: use the minimum linelength reported by
6049 # all of the supported platforms: 8192 (on NT/2K/XP).
6050 lt_cv_sys_max_cmd_len=8192;
6054 # On AmigaOS with pdksh, this test takes hours, literally.
6055 # So we just punt and use a minimum line length of 8192.
6056 lt_cv_sys_max_cmd_len=8192;
6059 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6060 # This has been around since 386BSD, at least. Likely further.
6061 if test -x /sbin/sysctl; then
6062 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063 elif test -x /usr/sbin/sysctl; then
6064 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6066 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6068 # And add a safety zone
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6074 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075 lt_cv_sys_max_cmd_len=196608
6079 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081 # nice to cause kernel panics so lets avoid the loop below.
6082 # First set a reasonable default.
6083 lt_cv_sys_max_cmd_len=16384
6085 if test -x /sbin/sysconfig; then
6086 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092 lt_cv_sys_max_cmd_len=102400
6094 sysv5* | sco5v6* | sysv4.2uw2*)
6095 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096 if test -n "$kargmax"; then
6097 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6099 lt_cv_sys_max_cmd_len=32768
6103 # If test is not a shell built-in, we'll probably end up computing a
6104 # maximum length that is only half of the actual maximum length, but
6106 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6108 = "XX$teststring") >/dev/null 2>&1 &&
6109 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6110 lt_cv_sys_max_cmd_len=$new_result &&
6111 test $i != 17 # 1/2 MB should be enough
6114 teststring=$teststring$teststring
6117 # Add a significant safety factor because C++ compilers can tack on massive
6118 # amounts of additional arguments before passing them to the linker.
6119 # It appears as though 1/2 is a usable value.
6120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6126 if test -n $lt_cv_sys_max_cmd_len ; then
6127 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6128 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6130 { echo "$as_me:$LINENO: result: none" >&5
6131 echo "${ECHO_T}none" >&6; }
6137 # Check for command to grab the raw symbol name followed by C symbol from nm.
6138 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6139 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6140 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 # These are sane defaults that work on at least a few old systems.
6145 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6147 # Character class describing NM global symbol codes.
6148 symcode='[BCDEGRST]'
6150 # Regexp to match symbols that can be accessed directly from C.
6151 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6153 # Transform an extracted symbol line into a proper C declaration
6154 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6156 # Transform an extracted symbol line into symbol name and symbol address
6157 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'"
6159 # Define system-specific variables.
6164 cygwin* | mingw* | pw32*)
6165 symcode='[ABCDGISTW]'
6167 hpux*) # Its linker distinguishes data from code symbols
6168 if test "$host_cpu" = ia64; then
6169 symcode='[ABCDEGRST]'
6171 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6172 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'"
6175 if test "$host_cpu" = ia64; then
6176 symcode='[ABCDGIRSTW]'
6177 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6178 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'"
6182 symcode='[BCDEGRST]'
6185 symcode='[BCDEGQRST]'
6196 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6204 # Handle CRLF in mingw tool chain
6208 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6212 # If we're using GNU nm, then use its standard symbol codes.
6213 case `$NM -V 2>&1` in
6214 *GNU* | *'with BFD'*)
6215 symcode='[ABCDGIRSTW]' ;;
6218 # Try without a prefix undercore, then with it.
6219 for ac_symprfx in "" "_"; do
6221 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6222 symxfrm="\\1 $ac_symprfx\\2 \\2"
6224 # Write the raw and C identifiers.
6225 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6227 # Check to see that the pipe works correctly.
6231 cat > conftest.$ac_ext <<EOF
6236 void nm_test_func(){}
6240 int main(){nm_test_var='a';nm_test_func();return(0);}
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; then
6248 # Now try to grab the symbols.
6250 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6251 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && test -s "$nlist"; then
6255 # Try sorting and uniquifying the output.
6256 if sort "$nlist" | uniq > "$nlist"T; then
6257 mv -f "$nlist"T "$nlist"
6262 # Make sure that we snagged all the symbols we need.
6263 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6264 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6265 cat <<EOF > conftest.$ac_ext
6271 # Now generate the symbol file.
6272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6274 cat <<EOF >> conftest.$ac_ext
6275 #if defined (__STDC__) && __STDC__
6276 # define lt_ptr_t void *
6278 # define lt_ptr_t char *
6282 /* The mapping between symbol names and symbols. */
6287 lt_preloaded_symbols[] =
6290 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6291 cat <<\EOF >> conftest.$ac_ext
6299 # Now try linking the two files.
6300 mv conftest.$ac_objext conftstm.$ac_objext
6301 lt_save_LIBS="$LIBS"
6302 lt_save_CFLAGS="$CFLAGS"
6303 LIBS="conftstm.$ac_objext"
6304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6312 LIBS="$lt_save_LIBS"
6313 CFLAGS="$lt_save_CFLAGS"
6315 echo "cannot find nm_test_func in $nlist" >&5
6318 echo "cannot find nm_test_var in $nlist" >&5
6321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324 echo "$progname: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 rm -f conftest* conftst*
6329 # Do not use the global_symbol_pipe unless it works.
6330 if test "$pipe_works" = yes; then
6333 lt_cv_sys_global_symbol_pipe=
6339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6340 lt_cv_sys_global_symbol_to_cdecl=
6342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6343 { echo "$as_me:$LINENO: result: failed" >&5
6344 echo "${ECHO_T}failed" >&6; }
6346 { echo "$as_me:$LINENO: result: ok" >&5
6347 echo "${ECHO_T}ok" >&6; }
6350 { echo "$as_me:$LINENO: checking for objdir" >&5
6351 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6352 if test "${lt_cv_objdir+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 rm -f .libs 2>/dev/null
6356 mkdir .libs 2>/dev/null
6357 if test -d .libs; then
6360 # MS-DOS does not allow filenames that begin with a dot.
6363 rmdir .libs 2>/dev/null
6365 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6366 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6367 objdir=$lt_cv_objdir
6375 # AIX sometimes has problems with the GCC collect2 program. For some
6376 # reason, if we set the COLLECT_NAMES environment variable, the problems
6377 # vanish in a puff of smoke.
6378 if test "X${COLLECT_NAMES+set}" != Xset; then
6380 export COLLECT_NAMES
6385 # Sed substitution that helps us do robust quoting. It backslashifies
6386 # metacharacters that are still active within double-quoted strings.
6387 Xsed='sed -e 1s/^X//'
6388 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6390 # Same as above, but do not quote variable references.
6391 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6393 # Sed substitution to delay expansion of an escaped shell variable in a
6394 # double_quote_subst'ed string.
6395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6397 # Sed substitution to avoid accidental globbing in evaled expressions
6398 no_glob_subst='s/\*/\\\*/g'
6404 default_ofile=libtool
6405 can_build_shared=yes
6407 # All known linkers require a `.a' archive for static linking (except MSVC,
6408 # which needs '.lib').
6410 ltmain="$ac_aux_dir/ltmain.sh"
6411 ofile="$default_ofile"
6412 with_gnu_ld="$lt_cv_prog_gnu_ld"
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}ar; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_AR+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 if test -n "$AR"; then
6423 ac_cv_prog_AR="$AR" # Let the user override the test.
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_AR="${ac_tool_prefix}ar"
6433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 if test -n "$AR"; then
6444 { echo "$as_me:$LINENO: result: $AR" >&5
6445 echo "${ECHO_T}$AR" >&6; }
6447 { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6453 if test -z "$ac_cv_prog_AR"; then
6455 # Extract the first word of "ar", so it can be a program name with args.
6456 set dummy ar; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 if test -n "$ac_ct_AR"; then
6463 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_AR="ar"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6483 if test -n "$ac_ct_AR"; then
6484 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6485 echo "${ECHO_T}$ac_ct_AR" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6491 if test "x$ac_ct_AR" = x; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6497 whose name does not start with the host triplet. If you think this
6498 configuration is useful to you, please write to autoconf@gnu.org." >&5
6499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6500 whose name does not start with the host triplet. If you think this
6501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6502 ac_tool_warned=yes ;;
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_RANLIB+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 if test -n "$RANLIB"; then
6519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 RANLIB=$ac_cv_prog_RANLIB
6539 if test -n "$RANLIB"; then
6540 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6541 echo "${ECHO_T}$RANLIB" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6549 if test -z "$ac_cv_prog_RANLIB"; then
6550 ac_ct_RANLIB=$RANLIB
6551 # Extract the first word of "ranlib", so it can be a program name with args.
6552 set dummy ranlib; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test -n "$ac_ct_RANLIB"; then
6559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_RANLIB="ranlib"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6579 if test -n "$ac_ct_RANLIB"; then
6580 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6581 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6583 { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6587 if test "x$ac_ct_RANLIB" = x; then
6590 case $cross_compiling:$ac_tool_warned in
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet. If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet. If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6600 RANLIB=$ac_ct_RANLIB
6603 RANLIB="$ac_cv_prog_RANLIB"
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}strip; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_STRIP+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$STRIP"; then
6615 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 STRIP=$ac_cv_prog_STRIP
6635 if test -n "$STRIP"; then
6636 { echo "$as_me:$LINENO: result: $STRIP" >&5
6637 echo "${ECHO_T}$STRIP" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6645 if test -z "$ac_cv_prog_STRIP"; then
6647 # Extract the first word of "strip", so it can be a program name with args.
6648 set dummy strip; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 if test -n "$ac_ct_STRIP"; then
6655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_STRIP="strip"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6675 if test -n "$ac_ct_STRIP"; then
6676 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6677 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6683 if test "x$ac_ct_STRIP" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet. If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&5
6691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6692 whose name does not start with the host triplet. If you think this
6693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6694 ac_tool_warned=yes ;;
6699 STRIP="$ac_cv_prog_STRIP"
6704 old_CFLAGS="$CFLAGS"
6706 # Set sane defaults for various variables
6707 test -z "$AR" && AR=ar
6708 test -z "$AR_FLAGS" && AR_FLAGS=cru
6709 test -z "$AS" && AS=as
6710 test -z "$CC" && CC=cc
6711 test -z "$LTCC" && LTCC=$CC
6712 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6713 test -z "$DLLTOOL" && DLLTOOL=dlltool
6714 test -z "$LD" && LD=ld
6715 test -z "$LN_S" && LN_S="ln -s"
6716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6717 test -z "$NM" && NM=nm
6718 test -z "$SED" && SED=sed
6719 test -z "$OBJDUMP" && OBJDUMP=objdump
6720 test -z "$RANLIB" && RANLIB=:
6721 test -z "$STRIP" && STRIP=:
6722 test -z "$ac_objext" && ac_objext=o
6724 # Determine commands to create old-style static archives.
6725 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6726 old_postinstall_cmds='chmod 644 $oldlib'
6727 old_postuninstall_cmds=
6729 if test -n "$RANLIB"; then
6732 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6735 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6738 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6741 for cc_temp in $compiler""; do
6743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6752 # Only perform the check for file, if the check method requires it
6753 case $deplibs_check_method in
6755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6756 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6757 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6766 lt_save_MAGIC_CMD="$MAGIC_CMD"
6767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6769 for ac_dir in $ac_dummy; do
6771 test -z "$ac_dir" && ac_dir=.
6772 if test -f $ac_dir/${ac_tool_prefix}file; then
6773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6774 if test -n "$file_magic_test_file"; then
6775 case $deplibs_check_method in
6777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6780 $EGREP "$file_magic_regex" > /dev/null; then
6785 *** Warning: the command libtool uses to detect shared libraries,
6786 *** $file_magic_cmd, produces output that libtool cannot recognize.
6787 *** The result is that libtool may fail to recognize shared libraries
6788 *** as such. This will affect the creation of libtool libraries that
6789 *** depend on shared libraries, but programs linked with such libtool
6790 *** libraries will work regardless of this problem. Nevertheless, you
6791 *** may want to report the problem to your system manager and/or to
6792 *** bug-libtool@gnu.org
6802 MAGIC_CMD="$lt_save_MAGIC_CMD"
6807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6808 if test -n "$MAGIC_CMD"; then
6809 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6810 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6816 if test -z "$lt_cv_path_MAGIC_CMD"; then
6817 if test -n "$ac_tool_prefix"; then
6818 { echo "$as_me:$LINENO: checking for file" >&5
6819 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6828 lt_save_MAGIC_CMD="$MAGIC_CMD"
6829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831 for ac_dir in $ac_dummy; do
6833 test -z "$ac_dir" && ac_dir=.
6834 if test -f $ac_dir/file; then
6835 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6836 if test -n "$file_magic_test_file"; then
6837 case $deplibs_check_method in
6839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842 $EGREP "$file_magic_regex" > /dev/null; then
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such. This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem. Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6864 MAGIC_CMD="$lt_save_MAGIC_CMD"
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6874 { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6890 # Check whether --enable-libtool-lock was given.
6891 if test "${enable_libtool_lock+set}" = set; then
6892 enableval=$enable_libtool_lock;
6895 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6898 # Check whether --with-pic was given.
6899 if test "${with_pic+set}" = set; then
6900 withval=$with_pic; pic_mode="$withval"
6905 test -z "$pic_mode" && pic_mode=default
6907 # Use C for the default configuration in the libtool script
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917 # Source file extension for C test sources.
6920 # Object file extension for compiled C test sources.
6924 # Code to be used in simple compile tests
6925 lt_simple_compile_test_code="int some_variable = 0;\n"
6927 # Code to be used in simple link tests
6928 lt_simple_link_test_code='int main(){return(0);}\n'
6931 # If no C compiler was specified, use CC.
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937 # Allow CC to be a program name with arguments.
6941 # save warnings/boilerplate of simple test code
6942 ac_outfile=conftest.$ac_objext
6943 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6945 _lt_compiler_boilerplate=`cat conftest.err`
6948 ac_outfile=conftest.$ac_objext
6949 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6951 _lt_linker_boilerplate=`cat conftest.err`
6956 ## There is no encapsulation within the following macros, do not change
6957 ## the running order or otherwise move them around unless you know exactly
6958 ## what you are doing...
6960 lt_prog_compiler_no_builtin_flag=
6962 if test "$GCC" = yes; then
6963 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6966 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6967 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6968 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 lt_cv_prog_compiler_rtti_exceptions=no
6972 ac_outfile=conftest.$ac_objext
6973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6974 lt_compiler_flag="-fno-rtti -fno-exceptions"
6975 # Insert the option either (1) after the last *FLAGS variable, or
6976 # (2) before a word containing "conftest.", or (3) at the end.
6977 # Note that $ac_compile itself does not contain backslashes and begins
6978 # with a dollar sign (not a hyphen), so the echo should work correctly.
6979 # The option is referenced via a variable to avoid confusing sed.
6980 lt_compile=`echo "$ac_compile" | $SED \
6981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6983 -e 's:$: $lt_compiler_flag:'`
6984 (eval echo "\"\$as_me:6984: $lt_compile\"" >&5)
6985 (eval "$lt_compile" 2>conftest.err)
6987 cat conftest.err >&5
6988 echo "$as_me:6988: \$? = $ac_status" >&5
6989 if (exit $ac_status) && test -s "$ac_outfile"; then
6990 # The compiler can only warn and ignore the option if not recognized
6991 # So say no if there are warnings other than the usual output.
6992 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6995 lt_cv_prog_compiler_rtti_exceptions=yes
7001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7002 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7005 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7012 lt_prog_compiler_wl=
7013 lt_prog_compiler_pic=
7014 lt_prog_compiler_static=
7016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7019 if test "$GCC" = yes; then
7020 lt_prog_compiler_wl='-Wl,'
7021 lt_prog_compiler_static='-static'
7025 # All AIX code is PIC.
7026 if test "$host_cpu" = ia64; then
7027 # AIX 5 now supports IA64 processor
7028 lt_prog_compiler_static='-Bstatic'
7033 # FIXME: we need at least 68020 code to build shared libraries, but
7034 # adding the `-m68020' flag to GCC prevents building anything better,
7036 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7039 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7040 # PIC is the default for these OSes.
7043 mingw* | pw32* | os2*)
7044 # This hack is so that the source file can tell whether it is being
7045 # built for inclusion in a dll (and should export symbols for example).
7046 lt_prog_compiler_pic='-DDLL_EXPORT'
7049 darwin* | rhapsody*)
7050 # PIC is the default on this platform
7051 # Common symbols not allowed in MH_DYLIB files
7052 lt_prog_compiler_pic='-fno-common'
7056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7057 # Instead, we relocate shared libraries at runtime.
7061 # Just because we use GCC doesn't mean we suddenly get shared libraries
7062 # on systems that don't support them.
7063 lt_prog_compiler_can_build_shared=no
7068 if test -d /usr/nec; then
7069 lt_prog_compiler_pic=-Kconform_pic
7074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7081 lt_prog_compiler_pic='-fPIC'
7087 lt_prog_compiler_pic='-fPIC'
7091 # PORTME Check for flag to pass linker flags through the system compiler.
7094 lt_prog_compiler_wl='-Wl,'
7095 if test "$host_cpu" = ia64; then
7096 # AIX 5 now supports IA64 processor
7097 lt_prog_compiler_static='-Bstatic'
7099 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7103 # PIC is the default on this platform
7104 # Common symbols not allowed in MH_DYLIB files
7105 case $cc_basename in
7107 lt_prog_compiler_pic='-qnocommon'
7108 lt_prog_compiler_wl='-Wl,'
7113 mingw* | pw32* | os2*)
7114 # This hack is so that the source file can tell whether it is being
7115 # built for inclusion in a dll (and should export symbols for example).
7116 lt_prog_compiler_pic='-DDLL_EXPORT'
7119 hpux9* | hpux10* | hpux11*)
7120 lt_prog_compiler_wl='-Wl,'
7121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7128 lt_prog_compiler_pic='+Z'
7131 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7132 lt_prog_compiler_static='${wl}-a ${wl}archive'
7135 irix5* | irix6* | nonstopux*)
7136 lt_prog_compiler_wl='-Wl,'
7137 # PIC (with -KPIC) is the default.
7138 lt_prog_compiler_static='-non_shared'
7142 lt_prog_compiler_pic='-KPIC'
7143 lt_prog_compiler_static='-Bstatic'
7147 case $cc_basename in
7149 lt_prog_compiler_wl='-Wl,'
7150 lt_prog_compiler_pic='-KPIC'
7151 lt_prog_compiler_static='-static'
7153 pgcc* | pgf77* | pgf90* | pgf95*)
7154 # Portland Group compilers (*not* the Pentium gcc compiler,
7155 # which looks to be a dead project)
7156 lt_prog_compiler_wl='-Wl,'
7157 lt_prog_compiler_pic='-fpic'
7158 lt_prog_compiler_static='-Bstatic'
7161 lt_prog_compiler_wl='-Wl,'
7162 # All Alpha code is PIC.
7163 lt_prog_compiler_static='-non_shared'
7168 osf3* | osf4* | osf5*)
7169 lt_prog_compiler_wl='-Wl,'
7170 # All OSF/1 code is PIC.
7171 lt_prog_compiler_static='-non_shared'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-Bstatic'
7177 case $cc_basename in
7179 lt_prog_compiler_wl='-Qoption ld ';;
7181 lt_prog_compiler_wl='-Wl,';;
7186 lt_prog_compiler_wl='-Qoption ld '
7187 lt_prog_compiler_pic='-PIC'
7188 lt_prog_compiler_static='-Bstatic'
7191 sysv4 | sysv4.2uw2* | sysv4.3*)
7192 lt_prog_compiler_wl='-Wl,'
7193 lt_prog_compiler_pic='-KPIC'
7194 lt_prog_compiler_static='-Bstatic'
7198 if test -d /usr/nec ;then
7199 lt_prog_compiler_pic='-Kconform_pic'
7200 lt_prog_compiler_static='-Bstatic'
7204 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7205 lt_prog_compiler_wl='-Wl,'
7206 lt_prog_compiler_pic='-KPIC'
7207 lt_prog_compiler_static='-Bstatic'
7211 lt_prog_compiler_wl='-Wl,'
7212 lt_prog_compiler_can_build_shared=no
7216 lt_prog_compiler_pic='-pic'
7217 lt_prog_compiler_static='-Bstatic'
7221 lt_prog_compiler_can_build_shared=no
7226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7227 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7230 # Check to make sure the PIC flag actually works.
7232 if test -n "$lt_prog_compiler_pic"; then
7234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7236 if test "${lt_prog_compiler_pic_works+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 lt_prog_compiler_pic_works=no
7240 ac_outfile=conftest.$ac_objext
7241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7242 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7243 # Insert the option either (1) after the last *FLAGS variable, or
7244 # (2) before a word containing "conftest.", or (3) at the end.
7245 # Note that $ac_compile itself does not contain backslashes and begins
7246 # with a dollar sign (not a hyphen), so the echo should work correctly.
7247 # The option is referenced via a variable to avoid confusing sed.
7248 lt_compile=`echo "$ac_compile" | $SED \
7249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7251 -e 's:$: $lt_compiler_flag:'`
7252 (eval echo "\"\$as_me:7252: $lt_compile\"" >&5)
7253 (eval "$lt_compile" 2>conftest.err)
7255 cat conftest.err >&5
7256 echo "$as_me:7256: \$? = $ac_status" >&5
7257 if (exit $ac_status) && test -s "$ac_outfile"; then
7258 # The compiler can only warn and ignore the option if not recognized
7259 # So say no if there are warnings other than the usual output.
7260 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7263 lt_prog_compiler_pic_works=yes
7269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7270 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7272 if test x"$lt_prog_compiler_pic_works" = xyes; then
7273 case $lt_prog_compiler_pic in
7275 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7278 lt_prog_compiler_pic=
7279 lt_prog_compiler_can_build_shared=no
7284 # For platforms which do not support PIC, -DPIC is meaningless:
7286 lt_prog_compiler_pic=
7289 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7294 # Check to make sure the static flag actually works.
7296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7299 if test "${lt_prog_compiler_static_works+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 lt_prog_compiler_static_works=no
7303 save_LDFLAGS="$LDFLAGS"
7304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7305 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7307 # The linker can only warn and ignore the option if not recognized
7308 # So say no if there are warnings
7309 if test -s conftest.err; then
7310 # Append any errors to the config.log.
7311 cat conftest.err 1>&5
7312 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7314 if diff conftest.exp conftest.er2 >/dev/null; then
7315 lt_prog_compiler_static_works=yes
7318 lt_prog_compiler_static_works=yes
7322 LDFLAGS="$save_LDFLAGS"
7325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7326 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7328 if test x"$lt_prog_compiler_static_works" = xyes; then
7331 lt_prog_compiler_static=
7335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 lt_cv_prog_compiler_c_o=no
7341 $rm -r conftest 2>/dev/null
7345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7347 lt_compiler_flag="-o out/conftest2.$ac_objext"
7348 # Insert the option either (1) after the last *FLAGS variable, or
7349 # (2) before a word containing "conftest.", or (3) at the end.
7350 # Note that $ac_compile itself does not contain backslashes and begins
7351 # with a dollar sign (not a hyphen), so the echo should work correctly.
7352 lt_compile=`echo "$ac_compile" | $SED \
7353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7355 -e 's:$: $lt_compiler_flag:'`
7356 (eval echo "\"\$as_me:7356: $lt_compile\"" >&5)
7357 (eval "$lt_compile" 2>out/conftest.err)
7359 cat out/conftest.err >&5
7360 echo "$as_me:7360: \$? = $ac_status" >&5
7361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7363 # The compiler can only warn and ignore the option if not recognized
7364 # So say no if there are warnings
7365 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7368 lt_cv_prog_compiler_c_o=yes
7373 # SGI C++ compiler will create directory out/ii_files/ for
7374 # template instantiation
7375 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7376 $rm out/* && rmdir out
7382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7386 hard_links="nottested"
7387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7388 # do not overwrite the value of need_locks provided by the user
7389 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7395 ln conftest.a conftest.b 2>&5 || hard_links=no
7396 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7397 { echo "$as_me:$LINENO: result: $hard_links" >&5
7398 echo "${ECHO_T}$hard_links" >&6; }
7399 if test "$hard_links" = no; then
7400 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7412 allow_undefined_flag=
7413 enable_shared_with_static_runtimes=no
7415 archive_expsym_cmds=
7416 old_archive_From_new_cmds=
7417 old_archive_from_expsyms_cmds=
7418 export_dynamic_flag_spec=
7419 whole_archive_flag_spec=
7420 thread_safe_flag_spec=
7421 hardcode_libdir_flag_spec=
7422 hardcode_libdir_flag_spec_ld=
7423 hardcode_libdir_separator=
7426 hardcode_shlibpath_var=unsupported
7427 link_all_deplibs=unknown
7428 hardcode_automatic=no
7431 always_export_symbols=no
7432 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7433 # include_expsyms should be a list of space-separated symbols to be *always*
7434 # included in the symbol list
7436 # exclude_expsyms can be an extended regexp of symbols to exclude
7437 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7439 # as well as any symbol that contains `d'.
7440 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7442 # platforms (ab)use it in PIC code, but their linkers get confused if
7443 # the symbol is explicitly referenced. Since portable code cannot
7444 # rely on this symbol name, it's probably fine to never include it in
7445 # preloaded symbol tables.
7446 extract_expsyms_cmds=
7447 # Just being paranoid about ensuring that cc_basename is set.
7448 for cc_temp in $compiler""; do
7450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7459 cygwin* | mingw* | pw32*)
7460 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7461 # When not using gcc, we currently assume that we are using
7462 # Microsoft Visual C++.
7463 if test "$GCC" != yes; then
7468 # we just hope/assume this is gcc and not c89 (= MSVC++)
7477 if test "$with_gnu_ld" = yes; then
7478 # If archive_cmds runs LD, not CC, wlarc should be empty
7481 # Set some defaults for GNU ld with shared library support. These
7482 # are reset later if shared libraries are not supported. Putting them
7483 # here allows them to be overridden if necessary.
7484 runpath_var=LD_RUN_PATH
7485 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7486 export_dynamic_flag_spec='${wl}--export-dynamic'
7487 # ancient GNU ld didn't support --whole-archive et. al.
7488 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7489 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7491 whole_archive_flag_spec=
7493 supports_anon_versioning=no
7494 case `$LD -v 2>/dev/null` in
7495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7498 *\ 2.11.*) ;; # other 2.11 versions
7499 *) supports_anon_versioning=yes ;;
7502 # See if GNU ld supports shared libraries.
7504 aix3* | aix4* | aix5*)
7505 # On AIX/PPC, the GNU linker is very broken
7506 if test "$host_cpu" != ia64; then
7510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7511 *** to be unable to reliably create shared libraries on AIX.
7512 *** Therefore, libtool is disabling shared libraries support. If you
7513 *** really care for shared libraries, you may want to modify your PATH
7514 *** so that a non-GNU linker is found, and then restart.
7521 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)'
7522 hardcode_libdir_flag_spec='-L$libdir'
7523 hardcode_minus_L=yes
7525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7526 # that the semantics of dynamic libraries on AmigaOS, at least up
7527 # to version 4, is to share data among multiple programs linked
7528 # with the same dynamic library. Since this doesn't match the
7529 # behavior of shared libraries on other platforms, we can't use
7535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7536 allow_undefined_flag=unsupported
7537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7538 # support --undefined. This deserves some investigation. FIXME
7539 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7545 cygwin* | mingw* | pw32*)
7546 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7547 # as there is no search path for DLLs.
7548 hardcode_libdir_flag_spec='-L$libdir'
7549 allow_undefined_flag=unsupported
7550 always_export_symbols=no
7551 enable_shared_with_static_runtimes=yes
7552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7556 # If the export-symbols file already is a .def file (1st line
7557 # is EXPORTS), use it as is; otherwise, prepend...
7558 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7559 cp $export_symbols $output_objdir/$soname.def;
7561 echo EXPORTS > $output_objdir/$soname.def;
7562 cat $export_symbols >> $output_objdir/$soname.def;
7564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7572 hardcode_shlibpath_var=no
7573 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7574 export_dynamic_flag_spec='${wl}-E'
7575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7576 # Instead, shared libraries are loaded at an image base (0x10000000 by
7577 # default) and relocated if they conflict, which is a slow very memory
7578 # consuming and fragmenting process. To avoid this, we pick a random,
7579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7582 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'
7586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7588 case $cc_basename,$host_cpu in
7589 pgcc*) # Portland Group C compiler
7590 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'
7591 tmp_addflag=' $pic_flag'
7593 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7594 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'
7595 tmp_addflag=' $pic_flag -Mnomain' ;;
7596 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7597 tmp_addflag=' -i_dynamic' ;;
7598 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7599 tmp_addflag=' -i_dynamic -nofor_main' ;;
7600 ifc* | ifort*) # Intel Fortran compiler
7601 tmp_addflag=' -nofor_main' ;;
7603 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7605 if test $supports_anon_versioning = yes; then
7606 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608 $echo "local: *; };" >> $output_objdir/$libname.ver~
7609 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7617 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7618 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7627 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7632 *** create shared libraries on Solaris systems. Therefore, libtool
7633 *** is disabling shared libraries support. We urge you to upgrade GNU
7634 *** binutils to release 2.9.1 or newer. Another option is to modify
7635 *** your PATH or compiler configuration so that the native linker is
7636 *** used, and then restart.
7639 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7648 case `$LD -v 2>&1` in
7649 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7653 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7654 *** reliably create shared libraries on SCO systems. Therefore, libtool
7655 *** is disabling shared libraries support. We urge you to upgrade GNU
7656 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7657 *** your PATH or compiler configuration so that the native linker is
7658 *** used, and then restart.
7663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7664 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7675 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7678 hardcode_shlibpath_var=no
7682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7691 if test "$ld_shlibs" = no; then
7693 hardcode_libdir_flag_spec=
7694 export_dynamic_flag_spec=
7695 whole_archive_flag_spec=
7698 # PORTME fill in a description of your system's linker (not GNU ld)
7701 allow_undefined_flag=unsupported
7702 always_export_symbols=yes
7703 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'
7704 # Note: this linker hardcodes the directories in LIBPATH if there
7705 # are no directories specified by -L.
7706 hardcode_minus_L=yes
7707 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7708 # Neither direct hardcoding nor static linking is supported with a
7710 hardcode_direct=unsupported
7715 if test "$host_cpu" = ia64; then
7716 # On IA64, the linker does run time linking by default, so we don't
7717 # have to do anything special.
7718 aix_use_runtimelinking=no
7719 exp_sym_flag='-Bexport'
7722 # If we're using GNU nm, then we don't want the "-C" option.
7723 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7724 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7725 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'
7727 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'
7729 aix_use_runtimelinking=no
7731 # Test if we are trying to use run time linking or normal
7732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7733 # need to do runtime linking.
7734 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7735 for ld_flag in $LDFLAGS; do
7736 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7737 aix_use_runtimelinking=yes
7744 exp_sym_flag='-bexport'
7745 no_entry_flag='-bnoentry'
7748 # When large executables or shared objects are built, AIX ld can
7749 # have problems creating the table of contents. If linking a library
7750 # or program results in "error TOC overflow" add -mminimal-toc to
7751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7756 hardcode_libdir_separator=':'
7757 link_all_deplibs=yes
7759 if test "$GCC" = yes; then
7760 case $host_os in aix4.[012]|aix4.[012].*)
7761 # We only want to do this on AIX 4.2 and lower, the check
7762 # below for broken collect2 doesn't work under 4.3+
7763 collect2name=`${CC} -print-prog-name=collect2`
7764 if test -f "$collect2name" && \
7765 strings "$collect2name" | grep resolve_lib_name >/dev/null
7767 # We have reworked collect2
7770 # We have old collect2
7771 hardcode_direct=unsupported
7772 # It fails to find uninstalled libraries when the uninstalled
7773 # path is not listed in the libpath. Setting hardcode_minus_L
7774 # to unsupported forces relinking
7775 hardcode_minus_L=yes
7776 hardcode_libdir_flag_spec='-L$libdir'
7777 hardcode_libdir_separator=
7781 shared_flag='-shared'
7782 if test "$aix_use_runtimelinking" = yes; then
7783 shared_flag="$shared_flag "'${wl}-G'
7787 if test "$host_cpu" = ia64; then
7788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7789 # chokes on -Wl,-G. The following line is correct:
7792 if test "$aix_use_runtimelinking" = yes; then
7793 shared_flag='${wl}-G'
7795 shared_flag='${wl}-bM:SRE'
7800 # It seems that -bexpall does not export symbols beginning with
7801 # underscore (_), so it is better to generate a list of symbols to export.
7802 always_export_symbols=yes
7803 if test "$aix_use_runtimelinking" = yes; then
7804 # Warning - without using the other runtime loading flags (-brtl),
7805 # -berok will link without error, but may produce a broken library.
7806 allow_undefined_flag='-berok'
7807 # Determine the default libpath from the value encoded in an empty executable.
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827 *) ac_try_echo=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext &&
7840 $as_test_x conftest$ac_exeext; then
7842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7844 # Check for a 64-bit object if we didn't find anything.
7845 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; }
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7855 conftest$ac_exeext conftest.$ac_ext
7856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7859 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"
7861 if test "$host_cpu" = ia64; then
7862 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7863 allow_undefined_flag="-z nodefs"
7864 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"
7866 # Determine the default libpath from the value encoded in an empty executable.
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>conftest.er1
7891 grep -v '^ *+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest$ac_exeext &&
7899 $as_test_x conftest$ac_exeext; then
7901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7903 # Check for a 64-bit object if we didn't find anything.
7904 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; }
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7917 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7918 # Warning - without using the other run time loading flags,
7919 # -berok will link without error, but may produce a broken library.
7920 no_undefined_flag=' ${wl}-bernotok'
7921 allow_undefined_flag=' ${wl}-berok'
7922 # Exported symbols can be pulled into shared objects from archives
7923 whole_archive_flag_spec='$convenience'
7924 archive_cmds_need_lc=yes
7925 # This is similar to how AIX traditionally builds its shared libraries.
7926 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'
7932 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)'
7933 hardcode_libdir_flag_spec='-L$libdir'
7934 hardcode_minus_L=yes
7935 # see comment about different semantics on the GNU ld section
7940 export_dynamic_flag_spec=-rdynamic
7943 cygwin* | mingw* | pw32*)
7944 # When not using gcc, we currently assume that we are using
7945 # Microsoft Visual C++.
7946 # hardcode_libdir_flag_spec is actually meaningless, as there is
7947 # no search path for DLLs.
7948 hardcode_libdir_flag_spec=' '
7949 allow_undefined_flag=unsupported
7950 # Tell ltmain to make .lib files, not .a files.
7952 # Tell ltmain to make .dll files, not .so files.
7954 # FIXME: Setting linknames here is a bad hack.
7955 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7956 # The linker will automatically build a .lib file if we build a DLL.
7957 old_archive_From_new_cmds='true'
7958 # FIXME: Should let the user specify the lib program.
7959 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7960 fix_srcfile_path='`cygpath -w "$srcfile"`'
7961 enable_shared_with_static_runtimes=yes
7964 darwin* | rhapsody*)
7966 rhapsody* | darwin1.[012])
7967 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7970 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7971 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7973 case ${MACOSX_DEPLOYMENT_TARGET} in
7975 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7978 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7984 archive_cmds_need_lc=no
7986 hardcode_automatic=yes
7987 hardcode_shlibpath_var=unsupported
7988 whole_archive_flag_spec=''
7989 link_all_deplibs=yes
7990 if test "$GCC" = yes ; then
7991 output_verbose_link_cmd='echo'
7992 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7993 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7995 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}'
7996 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}'
7998 case $cc_basename in
8000 output_verbose_link_cmd='echo'
8001 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8002 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8004 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}'
8005 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}'
8015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8016 hardcode_libdir_flag_spec='-L$libdir'
8017 hardcode_shlibpath_var=no
8024 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8025 # support. Future versions do this automatically, but an explicit c++rt0.o
8026 # does not break anything, and helps significantly (at the cost of a little
8029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8030 hardcode_libdir_flag_spec='-R$libdir'
8032 hardcode_shlibpath_var=no
8035 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8039 hardcode_minus_L=yes
8040 hardcode_shlibpath_var=no
8043 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8044 freebsd* | kfreebsd*-gnu | dragonfly*)
8045 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8046 hardcode_libdir_flag_spec='-R$libdir'
8048 hardcode_shlibpath_var=no
8052 if test "$GCC" = yes; then
8053 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'
8055 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'
8057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8058 hardcode_libdir_separator=:
8061 # hardcode_minus_L: Not really in the search PATH,
8062 # but as the default location of the library.
8063 hardcode_minus_L=yes
8064 export_dynamic_flag_spec='${wl}-E'
8068 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8073 if test "$with_gnu_ld" = no; then
8074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8075 hardcode_libdir_separator=:
8078 export_dynamic_flag_spec='${wl}-E'
8080 # hardcode_minus_L: Not really in the search PATH,
8081 # but as the default location of the library.
8082 hardcode_minus_L=yes
8087 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8090 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8093 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8102 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8108 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8112 if test "$with_gnu_ld" = no; then
8113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8114 hardcode_libdir_separator=:
8118 hardcode_libdir_flag_spec_ld='+b $libdir'
8120 hardcode_shlibpath_var=no
8124 export_dynamic_flag_spec='${wl}-E'
8126 # hardcode_minus_L: Not really in the search PATH,
8127 # but as the default location of the library.
8128 hardcode_minus_L=yes
8134 irix5* | irix6* | nonstopux*)
8135 if test "$GCC" = yes; then
8136 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'
8138 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'
8139 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8142 hardcode_libdir_separator=:
8143 link_all_deplibs=yes
8147 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8150 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8152 hardcode_libdir_flag_spec='-R$libdir'
8154 hardcode_shlibpath_var=no
8158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8161 hardcode_libdir_separator=:
8162 hardcode_shlibpath_var=no
8167 hardcode_shlibpath_var=no
8168 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8170 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8172 export_dynamic_flag_spec='${wl}-E'
8175 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8177 hardcode_libdir_flag_spec='-R$libdir'
8180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8188 hardcode_libdir_flag_spec='-L$libdir'
8189 hardcode_minus_L=yes
8190 allow_undefined_flag=unsupported
8191 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'
8192 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8196 if test "$GCC" = yes; then
8197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8198 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'
8200 allow_undefined_flag=' -expect_unresolved \*'
8201 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'
8203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8204 hardcode_libdir_separator=:
8207 osf4* | osf5*) # as osf3* with the addition of -msym flag
8208 if test "$GCC" = yes; then
8209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8210 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'
8211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8213 allow_undefined_flag=' -expect_unresolved \*'
8214 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'
8215 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8216 $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'
8218 # Both c and cxx compiler support -rpath directly
8219 hardcode_libdir_flag_spec='-rpath $libdir'
8221 hardcode_libdir_separator=:
8225 no_undefined_flag=' -z text'
8226 if test "$GCC" = yes; then
8228 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8230 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8233 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8235 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 hardcode_shlibpath_var=no
8240 solaris2.[0-5] | solaris2.[0-5].*) ;;
8242 # The compiler driver will combine linker options so we
8243 # cannot just pass the convience library names through
8244 # without $wl, iff we do not link with $LD.
8245 # Luckily, gcc supports the same syntax we need for Sun Studio.
8246 # Supported since Solaris 2.6 (maybe 2.5.1?)
8249 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8251 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' ;;
8254 link_all_deplibs=yes
8258 if test "x$host_vendor" = xsequent; then
8259 # Use $CC to link under sequent, because it throws in some extra .o
8260 # files that make .init and .fini sections work.
8261 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8263 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_libdir_flag_spec='-L$libdir'
8267 hardcode_minus_L=yes
8268 hardcode_shlibpath_var=no
8272 case $host_vendor in
8274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275 hardcode_direct=yes # is this really true???
8278 ## LD is ld it makes a PLAMLIB
8279 ## CC just makes a GrossModule.
8280 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8281 reload_cmds='$CC -r -o $output$reload_objs'
8285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8289 runpath_var='LD_RUN_PATH'
8290 hardcode_shlibpath_var=no
8294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8295 hardcode_shlibpath_var=no
8296 export_dynamic_flag_spec='-Bexport'
8300 if test -d /usr/nec; then
8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302 hardcode_shlibpath_var=no
8303 runpath_var=LD_RUN_PATH
8304 hardcode_runpath_var=yes
8309 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8310 no_undefined_flag='${wl}-z,text'
8311 archive_cmds_need_lc=no
8312 hardcode_shlibpath_var=no
8313 runpath_var='LD_RUN_PATH'
8315 if test "$GCC" = yes; then
8316 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8317 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8319 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8324 sysv5* | sco3.2v5* | sco5v6*)
8325 # Note: We can NOT use -z defs as we might desire, because we do not
8326 # link with -lc, and that would cause any symbols used from libc to
8327 # always be unresolved, which means just about no library would
8328 # ever link correctly. If we're not using GNU ld we use -z text
8329 # though, which does catch some bad symbols but isn't as heavy-handed
8331 no_undefined_flag='${wl}-z,text'
8332 allow_undefined_flag='${wl}-z,nodefs'
8333 archive_cmds_need_lc=no
8334 hardcode_shlibpath_var=no
8335 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8336 hardcode_libdir_separator=':'
8337 link_all_deplibs=yes
8338 export_dynamic_flag_spec='${wl}-Bexport'
8339 runpath_var='LD_RUN_PATH'
8341 if test "$GCC" = yes; then
8342 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8345 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352 hardcode_libdir_flag_spec='-L$libdir'
8353 hardcode_shlibpath_var=no
8362 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8363 echo "${ECHO_T}$ld_shlibs" >&6; }
8364 test "$ld_shlibs" = no && can_build_shared=no
8367 # Do we need to explicitly link libc?
8369 case "x$archive_cmds_need_lc" in
8371 # Assume -lc should be added
8372 archive_cmds_need_lc=yes
8374 if test "$enable_shared" = yes && test "$GCC" = yes; then
8375 case $archive_cmds in
8377 # FIXME: we may have to deal with multi-command sequences.
8380 # Test whether the compiler implicitly links with -lc since on some
8381 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8382 # to ld, don't add -lc before -lgcc.
8383 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389 (eval $ac_compile) 2>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } 2>conftest.err; then
8395 libobjs=conftest.$ac_objext
8397 wl=$lt_prog_compiler_wl
8398 pic_flag=$lt_prog_compiler_pic
8404 lt_save_allow_undefined_flag=$allow_undefined_flag
8405 allow_undefined_flag=
8406 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8407 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }
8412 archive_cmds_need_lc=no
8414 archive_cmds_need_lc=yes
8416 allow_undefined_flag=$lt_save_allow_undefined_flag
8418 cat conftest.err 1>&5
8421 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8422 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8429 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8430 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8432 libname_spec='lib$name'
8440 shlibpath_overrides_runpath=unknown
8442 dynamic_linker="$host_os ld.so"
8443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8444 if test "$GCC" = yes; then
8445 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8446 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8447 # if the path contains ";" then we assume it to be the separator
8448 # otherwise default to the standard path separator (i.e. ":") - it is
8449 # assumed that no part of a normal pathname contains ";" but that should
8450 # okay in the real world where ";" in dirpaths is itself problematic.
8451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8456 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8458 need_lib_prefix=unknown
8459 hardcode_into_libs=no
8461 # when you set need_version to no, make sure it does not cause -set_version
8462 # flags to be left without arguments
8463 need_version=unknown
8468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8469 shlibpath_var=LIBPATH
8471 # AIX 3 has no versioning support, so we append a major version to the name.
8472 soname_spec='${libname}${release}${shared_ext}$major'
8479 hardcode_into_libs=yes
8480 if test "$host_cpu" = ia64; then
8481 # AIX 5 supports IA64
8482 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8483 shlibpath_var=LD_LIBRARY_PATH
8485 # With GCC up to 2.95.x, collect2 would create an import file
8486 # for dependence libraries. The import file would start with
8487 # the line `#! .'. This would cause the generated library to
8488 # depend on `.', always an invalid library. This was fixed in
8489 # development snapshots of GCC prior to 3.0.
8491 aix4 | aix4.[01] | aix4.[01].*)
8492 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8494 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8501 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8502 # soname into executable. Probably we can add versioning support to
8503 # collect2, so additional links can be useful in future.
8504 if test "$aix_use_runtimelinking" = yes; then
8505 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8506 # instead of lib<name>.a to let people know that these are not
8507 # typical AIX shared libraries.
8508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510 # We preserve .a as extension for shared libraries through AIX4.2
8511 # and later when we are not doing run time linking.
8512 library_names_spec='${libname}${release}.a $libname.a'
8513 soname_spec='${libname}${release}${shared_ext}$major'
8515 shlibpath_var=LIBPATH
8520 library_names_spec='$libname.ixlibrary $libname.a'
8521 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8522 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'
8526 library_names_spec='${libname}${shared_ext}'
8527 dynamic_linker="$host_os ld.so"
8528 shlibpath_var=LIBRARY_PATH
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535 soname_spec='${libname}${release}${shared_ext}$major'
8536 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8537 shlibpath_var=LD_LIBRARY_PATH
8538 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8539 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8540 # the default ld.so.conf also contains /usr/contrib/lib and
8541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8542 # libtool to hard-code these into programs
8545 cygwin* | mingw* | pw32*)
8546 version_type=windows
8551 case $GCC,$host_os in
8552 yes,cygwin* | yes,mingw* | yes,pw32*)
8553 library_names_spec='$libname.dll.a'
8554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8555 postinstall_cmds='base_file=`basename \${file}`~
8556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8557 dldir=$destdir/`dirname \$dlpath`~
8558 test -d \$dldir || mkdir -p \$dldir~
8559 $install_prog $dir/$dlname \$dldir/$dlname~
8560 chmod a+x \$dldir/$dlname'
8561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8562 dlpath=$dir/\$dldll~
8564 shlibpath_overrides_runpath=yes
8568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8570 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8573 # MinGW DLLs use traditional 'lib' prefix
8574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8575 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8577 # It is most probably a Windows format PATH printed by
8578 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8579 # path with ; separators, and with drive letters. We can handle the
8580 # drive letters (cygwin fileutils understands them), so leave them,
8581 # especially as we might pass files found there to a mingw objdump,
8582 # which wouldn't understand a cygwinified path. Ahh.
8583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8585 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8589 # pw32 DLLs use 'pw' prefix rather than 'lib'
8590 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8599 dynamic_linker='Win32 ld.exe'
8600 # FIXME: first we should search . and the directory the executable is in
8604 darwin* | rhapsody*)
8605 dynamic_linker="$host_os dyld"
8609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8610 soname_spec='${libname}${release}${major}$shared_ext'
8611 shlibpath_overrides_runpath=yes
8612 shlibpath_var=DYLD_LIBRARY_PATH
8613 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8615 if test "$GCC" = yes; then
8616 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"`
8618 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8620 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8629 shlibpath_var=LD_LIBRARY_PATH
8640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8641 soname_spec='${libname}${release}${shared_ext}$major'
8642 shlibpath_var=LD_LIBRARY_PATH
8643 shlibpath_overrides_runpath=no
8644 hardcode_into_libs=yes
8645 dynamic_linker='GNU ld.so'
8648 freebsd* | dragonfly*)
8649 # DragonFly does not have aout. When/if they implement a new
8650 # versioning mechanism, adjust this.
8651 if test -x /usr/bin/objformat; then
8652 objformat=`/usr/bin/objformat`
8655 freebsd[123]*) objformat=aout ;;
8659 version_type=freebsd-$objformat
8660 case $version_type in
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8667 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8671 shlibpath_var=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath=yes
8676 freebsd3.[01]* | freebsdelf3.[01]*)
8677 shlibpath_overrides_runpath=yes
8678 hardcode_into_libs=yes
8680 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8681 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8682 shlibpath_overrides_runpath=no
8683 hardcode_into_libs=yes
8685 freebsd*) # from 4.6 on
8686 shlibpath_overrides_runpath=yes
8687 hardcode_into_libs=yes
8696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8697 soname_spec='${libname}${release}${shared_ext}$major'
8698 shlibpath_var=LD_LIBRARY_PATH
8699 hardcode_into_libs=yes
8702 hpux9* | hpux10* | hpux11*)
8703 # Give a soname corresponding to the major version so that dld.sl refuses to
8704 # link against other versions.
8711 hardcode_into_libs=yes
8712 dynamic_linker="$host_os dld.so"
8713 shlibpath_var=LD_LIBRARY_PATH
8714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 soname_spec='${libname}${release}${shared_ext}$major'
8717 if test "X$HPUX_IA64_MODE" = X32; then
8718 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8720 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8726 hardcode_into_libs=yes
8727 dynamic_linker="$host_os dld.sl"
8728 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 soname_spec='${libname}${release}${shared_ext}$major'
8732 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8737 dynamic_linker="$host_os dld.sl"
8738 shlibpath_var=SHLIB_PATH
8739 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8745 postinstall_cmds='chmod 555 $lib'
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 shlibpath_overrides_runpath=no
8757 hardcode_into_libs=yes
8760 irix5* | irix6* | nonstopux*)
8762 nonstopux*) version_type=nonstopux ;;
8764 if test "$lt_cv_prog_gnu_ld" = yes; then
8772 soname_spec='${libname}${release}${shared_ext}$major'
8773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8775 irix5* | nonstopux*)
8779 case $LD in # libtool.m4 will add one of these switches to LD
8780 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8781 libsuff= shlibsuff= libmagic=32-bit;;
8782 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8783 libsuff=32 shlibsuff=N32 libmagic=N32;;
8784 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8785 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8786 *) libsuff= shlibsuff= libmagic=never-match;;
8790 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8791 shlibpath_overrides_runpath=no
8792 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8793 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8794 hardcode_into_libs=yes
8797 # No shared lib support for Linux oldld, aout, or coff.
8798 linux*oldld* | linux*aout* | linux*coff*)
8802 # This must be Linux ELF.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8810 shlibpath_var=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath=no
8812 # This implies no fast_install, which is unacceptable.
8813 # Some rework will be needed to allow for fast_install
8814 # before this can be enabled.
8815 hardcode_into_libs=yes
8817 # Append ld.so.conf contents to the search path
8818 if test -f /etc/ld.so.conf; then
8819 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' ' '`
8820 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8823 # We used to test for /lib/ld.so.1 and disable shared libraries on
8824 # powerpc, because MkLinux only supported shared libraries with the
8825 # GNU dynamic linker. Since this was broken with cross compilers,
8826 # most powerpc-linux boxes support dynamic linking these days and
8827 # people can always --disable-shared, the test was removed, and we
8828 # assume the GNU/Linux dynamic linker is in use.
8829 dynamic_linker='GNU/Linux ld.so'
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=no
8840 hardcode_into_libs=yes
8841 dynamic_linker='GNU ld.so'
8848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8851 dynamic_linker='NetBSD (a.out) ld.so'
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8854 soname_spec='${libname}${release}${shared_ext}$major'
8855 dynamic_linker='NetBSD ld.elf_so'
8857 shlibpath_var=LD_LIBRARY_PATH
8858 shlibpath_overrides_runpath=yes
8859 hardcode_into_libs=yes
8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=yes
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 shlibpath_overrides_runpath=yes
8881 sys_lib_dlsearch_path_spec="/usr/lib"
8883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8885 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8886 *) need_version=no ;;
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8893 openbsd2.[89] | openbsd2.[89].*)
8894 shlibpath_overrides_runpath=no
8897 shlibpath_overrides_runpath=yes
8901 shlibpath_overrides_runpath=yes
8906 libname_spec='$name'
8909 library_names_spec='$libname${shared_ext} $libname.a'
8910 dynamic_linker='OS/2 ld.exe'
8911 shlibpath_var=LIBPATH
8914 osf3* | osf4* | osf5*)
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930 soname_spec='${libname}${release}${shared_ext}$major'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=yes
8933 hardcode_into_libs=yes
8934 # ldd complains unless libraries are executable
8935 postinstall_cmds='chmod +x $lib'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 shlibpath_overrides_runpath=yes
8944 if test "$with_gnu_ld" = yes; then
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 case $host_vendor in
8957 shlibpath_overrides_runpath=no
8959 export_dynamic_flag_spec='${wl}-Blargedynsym'
8960 runpath_var=LD_RUN_PATH
8968 shlibpath_overrides_runpath=no
8969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8975 if test -d /usr/nec ;then
8977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8978 soname_spec='$libname${shared_ext}.$major'
8979 shlibpath_var=LD_LIBRARY_PATH
8983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8984 version_type=freebsd-elf
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 hardcode_into_libs=yes
8991 if test "$with_gnu_ld" = yes; then
8992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8993 shlibpath_overrides_runpath=no
8995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8996 shlibpath_overrides_runpath=yes
8999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9003 sys_lib_dlsearch_path_spec='/usr/lib'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 shlibpath_var=LD_LIBRARY_PATH
9017 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9018 echo "${ECHO_T}$dynamic_linker" >&6; }
9019 test "$dynamic_linker" = no && can_build_shared=no
9021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9022 if test "$GCC" = yes; then
9023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9026 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9029 if test -n "$hardcode_libdir_flag_spec" || \
9030 test -n "$runpath_var" || \
9031 test "X$hardcode_automatic" = "Xyes" ; then
9033 # We can hardcode non-existant directories.
9034 if test "$hardcode_direct" != no &&
9035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9036 # have to relink, otherwise we might link with an installed library
9037 # when we should be linking with a yet-to-be-installed one
9038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9039 test "$hardcode_minus_L" != no; then
9040 # Linking always hardcodes the temporary library directory.
9041 hardcode_action=relink
9043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9044 hardcode_action=immediate
9047 # We cannot hardcode anything, or else we can only hardcode existing
9049 hardcode_action=unsupported
9051 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9052 echo "${ECHO_T}$hardcode_action" >&6; }
9054 if test "$hardcode_action" = relink; then
9055 # Fast installation is not supported
9056 enable_fast_install=no
9057 elif test "$shlibpath_overrides_runpath" = yes ||
9058 test "$enable_shared" = no; then
9059 # Fast installation is not necessary
9060 enable_fast_install=needless
9065 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9070 { echo "$as_me:$LINENO: result: yes" >&5
9071 echo "${ECHO_T}yes" >&6; }
9073 # FIXME - insert some real tests, host_os isn't really good enough
9076 if test -n "$STRIP" ; then
9077 striplib="$STRIP -x"
9078 { echo "$as_me:$LINENO: result: yes" >&5
9079 echo "${ECHO_T}yes" >&6; }
9081 { echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6; }
9086 { echo "$as_me:$LINENO: result: no" >&5
9087 echo "${ECHO_T}no" >&6; }
9092 if test "x$enable_dlopen" != xyes; then
9093 enable_dlopen=unknown
9094 enable_dlopen_self=unknown
9095 enable_dlopen_self_static=unknown
9102 lt_cv_dlopen="load_add_on"
9104 lt_cv_dlopen_self=yes
9108 lt_cv_dlopen="LoadLibrary"
9113 lt_cv_dlopen="dlopen"
9118 # if libdl is installed we need to link against it
9119 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 ac_check_lib_save_LIBS=$LIBS
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 /* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (ac_try="$ac_link"
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155 (eval "$ac_link") 2>conftest.er1
9157 grep -v '^ *+' conftest.er1 >conftest.err
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } && {
9162 test -z "$ac_c_werror_flag" ||
9163 test ! -s conftest.err
9164 } && test -s conftest$ac_exeext &&
9165 $as_test_x conftest$ac_exeext; then
9166 ac_cv_lib_dl_dlopen=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_lib_dl_dlopen=no
9174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9175 conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9180 if test $ac_cv_lib_dl_dlopen = yes; then
9181 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9186 lt_cv_dlopen_self=yes
9193 { echo "$as_me:$LINENO: checking for shl_load" >&5
9194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9195 if test "${ac_cv_func_shl_load+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 cat >conftest.$ac_ext <<_ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9206 #define shl_load innocuous_shl_load
9208 /* System header to define __stub macros and hopefully few prototypes,
9209 which can conflict with char shl_load (); below.
9210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211 <limits.h> exists even on freestanding compilers. */
9214 # include <limits.h>
9216 # include <assert.h>
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9228 /* The GNU C library defines this for functions which it implements
9229 to always fail with ENOSYS. Some functions are actually named
9230 something starting with __ and the normal name is an alias. */
9231 #if defined __stub_shl_load || defined __stub___shl_load
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247 *) ac_try_echo=$ac_try;;
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250 (eval "$ac_link") 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && {
9257 test -z "$ac_c_werror_flag" ||
9258 test ! -s conftest.err
9259 } && test -s conftest$ac_exeext &&
9260 $as_test_x conftest$ac_exeext; then
9261 ac_cv_func_shl_load=yes
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_cv_func_shl_load=no
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270 conftest$ac_exeext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9273 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9274 if test $ac_cv_func_shl_load = yes; then
9275 lt_cv_dlopen="shl_load"
9277 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9278 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9279 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 ac_check_lib_save_LIBS=$LIBS
9284 cat >conftest.$ac_ext <<_ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9291 /* Override any GCC internal prototype to avoid an error.
9292 Use char because int might match the return type of a GCC
9293 builtin and then its argument prototype would still apply. */
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>conftest.er1
9315 grep -v '^ *+' conftest.er1 >conftest.err
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && {
9320 test -z "$ac_c_werror_flag" ||
9321 test ! -s conftest.err
9322 } && test -s conftest$ac_exeext &&
9323 $as_test_x conftest$ac_exeext; then
9324 ac_cv_lib_dld_shl_load=yes
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9329 ac_cv_lib_dld_shl_load=no
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333 conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9336 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9337 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9338 if test $ac_cv_lib_dld_shl_load = yes; then
9339 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9341 { echo "$as_me:$LINENO: checking for dlopen" >&5
9342 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_dlopen+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define dlopen innocuous_dlopen
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char dlopen (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9362 # include <limits.h>
9364 # include <assert.h>
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_dlopen || defined __stub___dlopen
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1 >conftest.err
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest$ac_exeext &&
9408 $as_test_x conftest$ac_exeext; then
9409 ac_cv_func_dlopen=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_cv_func_dlopen=no
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418 conftest$ac_exeext conftest.$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9421 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9422 if test $ac_cv_func_dlopen = yes; then
9423 lt_cv_dlopen="dlopen"
9425 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 ac_check_lib_save_LIBS=$LIBS
9432 cat >conftest.$ac_ext <<_ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458 *) ac_try_echo=$ac_try;;
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461 (eval "$ac_link") 2>conftest.er1
9463 grep -v '^ *+' conftest.er1 >conftest.err
9465 cat conftest.err >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } && {
9468 test -z "$ac_c_werror_flag" ||
9469 test ! -s conftest.err
9470 } && test -s conftest$ac_exeext &&
9471 $as_test_x conftest$ac_exeext; then
9472 ac_cv_lib_dl_dlopen=yes
9474 echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9477 ac_cv_lib_dl_dlopen=no
9480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481 conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9484 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9486 if test $ac_cv_lib_dl_dlopen = yes; then
9487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9489 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9490 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9491 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_check_lib_save_LIBS=$LIBS
9496 cat >conftest.$ac_ext <<_ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_lib_svld_dlopen=yes
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_cv_lib_svld_dlopen=no
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9549 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9550 if test $ac_cv_lib_svld_dlopen = yes; then
9551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9553 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9554 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9555 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 ac_check_lib_save_LIBS=$LIBS
9560 cat >conftest.$ac_ext <<_ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */
9567 /* Override any GCC internal prototype to avoid an error.
9568 Use char because int might match the return type of a GCC
9569 builtin and then its argument prototype would still apply. */
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 ac_cv_lib_dld_dld_link=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_dld_dld_link=no
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9614 if test $ac_cv_lib_dld_dld_link = yes; then
9615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9636 if test "x$lt_cv_dlopen" != xno; then
9642 case $lt_cv_dlopen in
9644 save_CPPFLAGS="$CPPFLAGS"
9645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9647 save_LDFLAGS="$LDFLAGS"
9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9651 LIBS="$lt_cv_dlopen_libs $LIBS"
9653 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9655 if test "${lt_cv_dlopen_self+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 if test "$cross_compiling" = yes; then :
9659 lt_cv_dlopen_self=cross
9661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662 lt_status=$lt_dlunknown
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9674 # define LT_DLGLOBAL RTLD_GLOBAL
9677 # define LT_DLGLOBAL DL_GLOBAL
9679 # define LT_DLGLOBAL 0
9683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684 find out it does not work in some platform. */
9685 #ifndef LT_DLLAZY_OR_NOW
9687 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9690 # define LT_DLLAZY_OR_NOW DL_LAZY
9693 # define LT_DLLAZY_OR_NOW RTLD_NOW
9696 # define LT_DLLAZY_OR_NOW DL_NOW
9698 # define LT_DLLAZY_OR_NOW 0
9706 extern "C" void exit (int);
9709 void fnord() { int i=42;}
9712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713 int status = $lt_dlunknown;
9717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719 /* dlclose (self); */
9727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728 (eval $ac_link) 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732 (./conftest; exit; ) >&5 2>/dev/null
9735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9740 # compilation failed
9741 lt_cv_dlopen_self=no
9748 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9751 if test "x$lt_cv_dlopen_self" = xyes; then
9752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9755 if test "${lt_cv_dlopen_self_static+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9758 if test "$cross_compiling" = yes; then :
9759 lt_cv_dlopen_self_static=cross
9761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762 lt_status=$lt_dlunknown
9763 cat > conftest.$ac_ext <<EOF
9764 #line 9764 "configure"
9765 #include "confdefs.h"
9774 # define LT_DLGLOBAL RTLD_GLOBAL
9777 # define LT_DLGLOBAL DL_GLOBAL
9779 # define LT_DLGLOBAL 0
9783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784 find out it does not work in some platform. */
9785 #ifndef LT_DLLAZY_OR_NOW
9787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9790 # define LT_DLLAZY_OR_NOW DL_LAZY
9793 # define LT_DLLAZY_OR_NOW RTLD_NOW
9796 # define LT_DLLAZY_OR_NOW DL_NOW
9798 # define LT_DLLAZY_OR_NOW 0
9806 extern "C" void exit (int);
9809 void fnord() { int i=42;}
9812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813 int status = $lt_dlunknown;
9817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819 /* dlclose (self); */
9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832 (./conftest; exit; ) >&5 2>/dev/null
9835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9840 # compilation failed
9841 lt_cv_dlopen_self_static=no
9848 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9852 CPPFLAGS="$save_CPPFLAGS"
9853 LDFLAGS="$save_LDFLAGS"
9858 case $lt_cv_dlopen_self in
9859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860 *) enable_dlopen_self=unknown ;;
9863 case $lt_cv_dlopen_self_static in
9864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865 *) enable_dlopen_self_static=unknown ;;
9870 # Report which library types will actually be built
9871 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9872 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9873 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9874 echo "${ECHO_T}$can_build_shared" >&6; }
9876 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9877 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9878 test "$can_build_shared" = "no" && enable_shared=no
9880 # On AIX, shared libraries and static libraries use the same namespace, and
9881 # are all built from PIC.
9884 test "$enable_shared" = yes && enable_static=no
9885 if test -n "$RANLIB"; then
9886 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9887 postinstall_cmds='$RANLIB $lib'
9892 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9893 test "$enable_shared" = yes && enable_static=no
9897 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9898 echo "${ECHO_T}$enable_shared" >&6; }
9900 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9901 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9902 # Make sure either enable_shared or enable_static is yes.
9903 test "$enable_shared" = yes || enable_static=yes
9904 { echo "$as_me:$LINENO: result: $enable_static" >&5
9905 echo "${ECHO_T}$enable_static" >&6; }
9907 # The else clause should only fire when bootstrapping the
9908 # libtool distribution, otherwise you forgot to ship ltmain.sh
9909 # with your package, and you will get complaints that there are
9910 # no rules to generate ltmain.sh.
9911 if test -f "$ltmain"; then
9912 # See if we are running on zsh, and set the options which allow our commands through
9913 # without removal of \ escapes.
9914 if test -n "${ZSH_VERSION+set}" ; then
9915 setopt NO_GLOB_SUBST
9917 # Now quote all the things that may contain metacharacters while being
9918 # careful not to overquote the AC_SUBSTed values. We take copies of the
9919 # variables and quote the copies for generation of the libtool script.
9920 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9922 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9923 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9924 deplibs_check_method reload_flag reload_cmds need_locks \
9925 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9926 lt_cv_sys_global_symbol_to_c_name_address \
9927 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9928 old_postinstall_cmds old_postuninstall_cmds \
9932 lt_prog_compiler_wl \
9933 lt_prog_compiler_pic \
9934 lt_prog_compiler_static \
9935 lt_prog_compiler_no_builtin_flag \
9936 export_dynamic_flag_spec \
9937 thread_safe_flag_spec \
9938 whole_archive_flag_spec \
9939 enable_shared_with_static_runtimes \
9941 old_archive_from_new_cmds \
9946 compiler_lib_search_path \
9948 archive_expsym_cmds \
9950 postuninstall_cmds \
9951 old_archive_from_expsyms_cmds \
9952 allow_undefined_flag \
9954 export_symbols_cmds \
9955 hardcode_libdir_flag_spec \
9956 hardcode_libdir_flag_spec_ld \
9957 hardcode_libdir_separator \
9958 hardcode_automatic \
9960 module_expsym_cmds \
9961 lt_cv_prog_compiler_c_o \
9966 old_archive_cmds | \
9967 old_archive_from_new_cmds | \
9969 archive_expsym_cmds | \
9971 module_expsym_cmds | \
9972 old_archive_from_expsyms_cmds | \
9973 export_symbols_cmds | \
9974 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9975 postinstall_cmds | postuninstall_cmds | \
9976 old_postinstall_cmds | old_postuninstall_cmds | \
9977 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9978 # Double-quote double-evaled strings.
9979 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9988 *'\$0 --fallback-echo"')
9989 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9994 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9996 { echo "$as_me:$LINENO: creating $ofile" >&5
9997 echo "$as_me: creating $ofile" >&6;}
9999 cat <<__EOF__ >> "$cfgfile"
10002 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10003 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10004 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10006 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10007 # Free Software Foundation, Inc.
10009 # This file is part of GNU Libtool:
10010 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10012 # This program is free software; you can redistribute it and/or modify
10013 # it under the terms of the GNU General Public License as published by
10014 # the Free Software Foundation; either version 2 of the License, or
10015 # (at your option) any later version.
10017 # This program is distributed in the hope that it will be useful, but
10018 # WITHOUT ANY WARRANTY; without even the implied warranty of
10019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10020 # General Public License for more details.
10022 # You should have received a copy of the GNU General Public License
10023 # along with this program; if not, write to the Free Software
10024 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10026 # As a special exception to the GNU General Public License, if you
10027 # distribute this file as part of a program that contains a
10028 # configuration script generated by Autoconf, you may include it under
10029 # the same distribution terms that you use for the rest of that program.
10031 # A sed program that does not truncate output.
10034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10035 Xsed="$SED -e 1s/^X//"
10037 # The HP-UX ksh and POSIX shell print the target directory to stdout
10038 # if CDPATH is set.
10039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10041 # The names of the tagged configurations supported by this script.
10044 # ### BEGIN LIBTOOL CONFIG
10046 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10048 # Shell to use when invoking shell scripts.
10051 # Whether or not to build shared libraries.
10052 build_libtool_libs=$enable_shared
10054 # Whether or not to build static libraries.
10055 build_old_libs=$enable_static
10057 # Whether or not to add -lc for building shared libraries.
10058 build_libtool_need_lc=$archive_cmds_need_lc
10060 # Whether or not to disallow shared libs when runtime libs are static
10061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10063 # Whether or not to optimize for fast installation.
10064 fast_install=$enable_fast_install
10067 host_alias=$host_alias
10071 # The build system.
10072 build_alias=$build_alias
10076 # An echo program that does not interpret backslashes.
10081 AR_FLAGS=$lt_AR_FLAGS
10086 # LTCC compiler flags.
10087 LTCFLAGS=$lt_LTCFLAGS
10089 # A language-specific compiler.
10092 # Is the compiler the GNU C compiler?
10098 # The linker used to build libraries.
10101 # Whether we need hard or soft links.
10104 # A BSD-compatible nm program.
10107 # A symbol stripping program
10110 # Used to examine libraries when file_magic_cmd begins "file"
10111 MAGIC_CMD=$MAGIC_CMD
10113 # Used on cygwin: DLL creation program.
10116 # Used on cygwin: object dumper.
10119 # Used on cygwin: assembler.
10122 # The name of the directory that contains temporary libtool files.
10125 # How to create reloadable object files.
10126 reload_flag=$lt_reload_flag
10127 reload_cmds=$lt_reload_cmds
10129 # How to pass a linker flag through the compiler.
10130 wl=$lt_lt_prog_compiler_wl
10132 # Object file suffix (normally "o").
10133 objext="$ac_objext"
10135 # Old archive suffix (normally "a").
10138 # Shared library suffix (normally ".so").
10139 shrext_cmds='$shrext_cmds'
10141 # Executable file suffix (normally "").
10144 # Additional compiler flags for building library objects.
10145 pic_flag=$lt_lt_prog_compiler_pic
10148 # What is the maximum length of a command?
10149 max_cmd_len=$lt_cv_sys_max_cmd_len
10151 # Does compiler simultaneously support -c and -o options?
10152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10154 # Must we lock files when doing compilation?
10155 need_locks=$lt_need_locks
10157 # Do we need the lib prefix for modules?
10158 need_lib_prefix=$need_lib_prefix
10160 # Do we need a version for libraries?
10161 need_version=$need_version
10163 # Whether dlopen is supported.
10164 dlopen_support=$enable_dlopen
10166 # Whether dlopen of programs is supported.
10167 dlopen_self=$enable_dlopen_self
10169 # Whether dlopen of statically linked programs is supported.
10170 dlopen_self_static=$enable_dlopen_self_static
10172 # Compiler flag to prevent dynamic linking.
10173 link_static_flag=$lt_lt_prog_compiler_static
10175 # Compiler flag to turn off builtin functions.
10176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10178 # Compiler flag to allow reflexive dlopens.
10179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10181 # Compiler flag to generate shared objects directly from archives.
10182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10184 # Compiler flag to generate thread-safe objects.
10185 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10187 # Library versioning type.
10188 version_type=$version_type
10190 # Format of library name prefix.
10191 libname_spec=$lt_libname_spec
10193 # List of archive names. First name is the real one, the rest are links.
10194 # The last name is the one that the linker finds with -lNAME.
10195 library_names_spec=$lt_library_names_spec
10197 # The coded name of the library, if different from the real name.
10198 soname_spec=$lt_soname_spec
10200 # Commands used to build and install an old-style archive.
10202 old_archive_cmds=$lt_old_archive_cmds
10203 old_postinstall_cmds=$lt_old_postinstall_cmds
10204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10206 # Create an old-style archive from a shared archive.
10207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10209 # Create a temporary old-style archive to link instead of a shared archive.
10210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10212 # Commands used to build and install a shared archive.
10213 archive_cmds=$lt_archive_cmds
10214 archive_expsym_cmds=$lt_archive_expsym_cmds
10215 postinstall_cmds=$lt_postinstall_cmds
10216 postuninstall_cmds=$lt_postuninstall_cmds
10218 # Commands used to build a loadable module (assumed same as above if empty)
10219 module_cmds=$lt_module_cmds
10220 module_expsym_cmds=$lt_module_expsym_cmds
10222 # Commands to strip libraries.
10223 old_striplib=$lt_old_striplib
10224 striplib=$lt_striplib
10226 # Dependencies to place before the objects being linked to create a
10228 predep_objects=$lt_predep_objects
10230 # Dependencies to place after the objects being linked to create a
10232 postdep_objects=$lt_postdep_objects
10234 # Dependencies to place before the objects being linked to create a
10236 predeps=$lt_predeps
10238 # Dependencies to place after the objects being linked to create a
10240 postdeps=$lt_postdeps
10242 # The library search path used internally by the compiler when linking
10243 # a shared library.
10244 compiler_lib_search_path=$lt_compiler_lib_search_path
10246 # Method to check whether dependent libraries are shared objects.
10247 deplibs_check_method=$lt_deplibs_check_method
10249 # Command to use when deplibs_check_method == file_magic.
10250 file_magic_cmd=$lt_file_magic_cmd
10252 # Flag that allows shared libraries with undefined symbols to be built.
10253 allow_undefined_flag=$lt_allow_undefined_flag
10255 # Flag that forces no undefined symbols.
10256 no_undefined_flag=$lt_no_undefined_flag
10258 # Commands used to finish a libtool library installation in a directory.
10259 finish_cmds=$lt_finish_cmds
10261 # Same as above, but a single script fragment to be evaled but not shown.
10262 finish_eval=$lt_finish_eval
10264 # Take the output of nm and produce a listing of raw symbols and C names.
10265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10267 # Transform the output of nm in a proper C declaration
10268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10270 # Transform the output of nm in a C name address pair
10271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10273 # This is the shared library runtime path variable.
10274 runpath_var=$runpath_var
10276 # This is the shared library path variable.
10277 shlibpath_var=$shlibpath_var
10279 # Is shlibpath searched before the hard-coded library search path?
10280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10282 # How to hardcode a shared library path into an executable.
10283 hardcode_action=$hardcode_action
10285 # Whether we should hardcode library paths into libraries.
10286 hardcode_into_libs=$hardcode_into_libs
10288 # Flag to hardcode \$libdir into a binary during linking.
10289 # This must work even if \$libdir does not exist.
10290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10292 # If ld is used when linking, flag to hardcode \$libdir into
10293 # a binary during linking. This must work even if \$libdir does
10295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10297 # Whether we need a single -rpath flag with a separated argument.
10298 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10301 # resulting binary.
10302 hardcode_direct=$hardcode_direct
10304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10305 # resulting binary.
10306 hardcode_minus_L=$hardcode_minus_L
10308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10309 # the resulting binary.
10310 hardcode_shlibpath_var=$hardcode_shlibpath_var
10312 # Set to yes if building a shared library automatically hardcodes DIR into the library
10313 # and all subsequent libraries and executables linked against it.
10314 hardcode_automatic=$hardcode_automatic
10316 # Variables whose values should be saved in libtool wrapper scripts and
10317 # restored at relink time.
10318 variables_saved_for_relink="$variables_saved_for_relink"
10320 # Whether libtool must link a program against all its dependency libraries.
10321 link_all_deplibs=$link_all_deplibs
10323 # Compile-time system search path for libraries
10324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10326 # Run-time system search path for libraries
10327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10329 # Fix the shell variable \$srcfile for the compiler.
10330 fix_srcfile_path="$fix_srcfile_path"
10332 # Set to yes if exported symbols are required.
10333 always_export_symbols=$always_export_symbols
10335 # The commands to list exported symbols.
10336 export_symbols_cmds=$lt_export_symbols_cmds
10338 # The commands to extract the exported symbol list from a shared archive.
10339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10341 # Symbols that should not be listed in the preloaded symbols.
10342 exclude_expsyms=$lt_exclude_expsyms
10344 # Symbols that must always be exported.
10345 include_expsyms=$lt_include_expsyms
10347 # ### END LIBTOOL CONFIG
10354 cat <<\EOF >> "$cfgfile"
10356 # AIX sometimes has problems with the GCC collect2 program. For some
10357 # reason, if we set the COLLECT_NAMES environment variable, the problems
10358 # vanish in a puff of smoke.
10359 if test "X${COLLECT_NAMES+set}" != Xset; then
10361 export COLLECT_NAMES
10367 # We use sed instead of cat because bash on DJGPP gets confused if
10368 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10369 # text mode, it properly converts lines to CR/LF. This bash problem
10370 # is reportedly fixed, but why not run on old versions too?
10371 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10373 mv -f "$cfgfile" "$ofile" || \
10374 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10378 # If there is no Makefile yet, we rely on a make rule to execute
10379 # `config.status --recheck' to rerun these tests and create the
10380 # libtool script then.
10381 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10382 if test -f "$ltmain_in"; then
10383 test -f Makefile && make "$ltmain"
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10397 # Check whether --with-tags was given.
10398 if test "${with_tags+set}" = set; then
10399 withval=$with_tags; tagnames="$withval"
10403 if test -f "$ltmain" && test -n "$tagnames"; then
10404 if test ! -f "${ofile}"; then
10405 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10406 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10409 if test -z "$LTCC"; then
10410 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10411 if test -z "$LTCC"; then
10412 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10413 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10416 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10419 if test -z "$LTCFLAGS"; then
10420 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10423 # Extract list of available tagged configurations in $ofile.
10424 # Note that this assumes the entire list is on one line.
10425 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10428 for tagname in $tagnames; do
10430 # Check whether tagname contains only valid characters
10431 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10433 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10434 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10435 { (exit 1); exit 1; }; }
10439 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10441 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10442 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10443 { (exit 1); exit 1; }; }
10446 # Update the list of available tags.
10447 if test -n "$tagname"; then
10448 echo appending configuration tag \"$tagname\" to $ofile
10452 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10453 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10454 (test "X$CXX" != "Xg++"))) ; then
10456 ac_cpp='$CXXCPP $CPPFLAGS'
10457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10464 archive_cmds_need_lc_CXX=no
10465 allow_undefined_flag_CXX=
10466 always_export_symbols_CXX=no
10467 archive_expsym_cmds_CXX=
10468 export_dynamic_flag_spec_CXX=
10469 hardcode_direct_CXX=no
10470 hardcode_libdir_flag_spec_CXX=
10471 hardcode_libdir_flag_spec_ld_CXX=
10472 hardcode_libdir_separator_CXX=
10473 hardcode_minus_L_CXX=no
10474 hardcode_shlibpath_var_CXX=unsupported
10475 hardcode_automatic_CXX=no
10477 module_expsym_cmds_CXX=
10478 link_all_deplibs_CXX=unknown
10479 old_archive_cmds_CXX=$old_archive_cmds
10480 no_undefined_flag_CXX=
10481 whole_archive_flag_spec_CXX=
10482 enable_shared_with_static_runtimes_CXX=no
10484 # Dependencies to place before and after the object being linked:
10485 predep_objects_CXX=
10486 postdep_objects_CXX=
10489 compiler_lib_search_path_CXX=
10491 # Source file extension for C++ test sources.
10494 # Object file extension for compiled C++ test sources.
10498 # Code to be used in simple compile tests
10499 lt_simple_compile_test_code="int some_variable = 0;\n"
10501 # Code to be used in simple link tests
10502 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10506 # If no C compiler was specified, use CC.
10509 # If no C compiler flags were specified, use CFLAGS.
10510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10512 # Allow CC to be a program name with arguments.
10516 # save warnings/boilerplate of simple test code
10517 ac_outfile=conftest.$ac_objext
10518 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10520 _lt_compiler_boilerplate=`cat conftest.err`
10523 ac_outfile=conftest.$ac_objext
10524 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10526 _lt_linker_boilerplate=`cat conftest.err`
10530 # Allow CC to be a program name with arguments.
10535 lt_save_with_gnu_ld=$with_gnu_ld
10536 lt_save_path_LD=$lt_cv_path_LD
10537 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10538 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10540 $as_unset lt_cv_prog_gnu_ld
10542 if test -n "${lt_cv_path_LDCXX+set}"; then
10543 lt_cv_path_LD=$lt_cv_path_LDCXX
10545 $as_unset lt_cv_path_LD
10547 test -z "${LDCXX+set}" || LD=$LDCXX
10551 for cc_temp in $compiler""; do
10553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10562 # We don't want -fno-exception wen compiling C++ code, so set the
10563 # no_builtin_flag separately
10564 if test "$GXX" = yes; then
10565 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10567 lt_prog_compiler_no_builtin_flag_CXX=
10570 if test "$GXX" = yes; then
10571 # Set up default GNU C++ configuration
10574 # Check whether --with-gnu-ld was given.
10575 if test "${with_gnu_ld+set}" = set; then
10576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10582 if test "$GCC" = yes; then
10583 # Check if gcc -print-prog-name=ld gives a path.
10584 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10585 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10588 # gcc leaves a trailing carriage return which upsets mingw
10589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10594 # Accept absolute paths.
10596 re_direlt='/[^/][^/]*/\.\./'
10597 # Canonicalize the pathname of ld
10598 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10599 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10600 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10602 test -z "$LD" && LD="$ac_prog"
10605 # If it fails, then pretend we aren't using GCC.
10609 # If it is relative, then search for the first ld in PATH.
10610 with_gnu_ld=unknown
10613 elif test "$with_gnu_ld" = yes; then
10614 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10615 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10617 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10618 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10620 if test "${lt_cv_path_LD+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 if test -z "$LD"; then
10624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10625 for ac_dir in $PATH; do
10627 test -z "$ac_dir" && ac_dir=.
10628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10629 lt_cv_path_LD="$ac_dir/$ac_prog"
10630 # Check to see if the program is GNU ld. I'd rather use --version,
10631 # but apparently some variants of GNU ld only accept -v.
10632 # Break only if it was the GNU/non-GNU ld that we prefer.
10633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10634 *GNU* | *'with BFD'*)
10635 test "$with_gnu_ld" != no && break
10638 test "$with_gnu_ld" != yes && break
10645 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10649 LD="$lt_cv_path_LD"
10650 if test -n "$LD"; then
10651 { echo "$as_me:$LINENO: result: $LD" >&5
10652 echo "${ECHO_T}$LD" >&6; }
10654 { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10657 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10658 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10659 { (exit 1); exit 1; }; }
10660 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10661 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10662 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10666 case `$LD -v 2>&1 </dev/null` in
10667 *GNU* | *'with BFD'*)
10668 lt_cv_prog_gnu_ld=yes
10671 lt_cv_prog_gnu_ld=no
10675 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10676 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10677 with_gnu_ld=$lt_cv_prog_gnu_ld
10681 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10682 # archiving commands below assume that GNU ld is being used.
10683 if test "$with_gnu_ld" = yes; then
10684 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10685 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'
10687 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10690 # If archive_cmds runs LD, not CC, wlarc should be empty
10691 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10692 # investigate it a little bit more. (MM)
10695 # ancient GNU ld didn't support --whole-archive et. al.
10696 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10697 grep 'no-whole-archive' > /dev/null; then
10698 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10700 whole_archive_flag_spec_CXX=
10706 # A generic and very simple default shared library creation
10707 # command for GNU C++ for the case where it uses the native
10708 # linker, instead of GNU ld. If possible, this setting should
10709 # overridden to take advantage of the native linker features on
10710 # the platform it is being used on.
10711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10714 # Commands to make compiler produce verbose output that lists
10715 # what "hidden" libraries, object files and flags are used when
10716 # linking a shared library.
10717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10725 # PORTME: fill in a description of your system's C++ link characteristics
10726 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10727 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10731 # FIXME: insert proper C++ library support
10735 if test "$host_cpu" = ia64; then
10736 # On IA64, the linker does run time linking by default, so we don't
10737 # have to do anything special.
10738 aix_use_runtimelinking=no
10739 exp_sym_flag='-Bexport'
10742 aix_use_runtimelinking=no
10744 # Test if we are trying to use run time linking or normal
10745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10746 # need to do runtime linking.
10747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10748 for ld_flag in $LDFLAGS; do
10751 aix_use_runtimelinking=yes
10759 exp_sym_flag='-bexport'
10760 no_entry_flag='-bnoentry'
10763 # When large executables or shared objects are built, AIX ld can
10764 # have problems creating the table of contents. If linking a library
10765 # or program results in "error TOC overflow" add -mminimal-toc to
10766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10769 archive_cmds_CXX=''
10770 hardcode_direct_CXX=yes
10771 hardcode_libdir_separator_CXX=':'
10772 link_all_deplibs_CXX=yes
10774 if test "$GXX" = yes; then
10775 case $host_os in aix4.[012]|aix4.[012].*)
10776 # We only want to do this on AIX 4.2 and lower, the check
10777 # below for broken collect2 doesn't work under 4.3+
10778 collect2name=`${CC} -print-prog-name=collect2`
10779 if test -f "$collect2name" && \
10780 strings "$collect2name" | grep resolve_lib_name >/dev/null
10782 # We have reworked collect2
10783 hardcode_direct_CXX=yes
10785 # We have old collect2
10786 hardcode_direct_CXX=unsupported
10787 # It fails to find uninstalled libraries when the uninstalled
10788 # path is not listed in the libpath. Setting hardcode_minus_L
10789 # to unsupported forces relinking
10790 hardcode_minus_L_CXX=yes
10791 hardcode_libdir_flag_spec_CXX='-L$libdir'
10792 hardcode_libdir_separator_CXX=
10796 shared_flag='-shared'
10797 if test "$aix_use_runtimelinking" = yes; then
10798 shared_flag="$shared_flag "'${wl}-G'
10802 if test "$host_cpu" = ia64; then
10803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10804 # chokes on -Wl,-G. The following line is correct:
10807 if test "$aix_use_runtimelinking" = yes; then
10808 shared_flag='${wl}-G'
10810 shared_flag='${wl}-bM:SRE'
10815 # It seems that -bexpall does not export symbols beginning with
10816 # underscore (_), so it is better to generate a list of symbols to export.
10817 always_export_symbols_CXX=yes
10818 if test "$aix_use_runtimelinking" = yes; then
10819 # Warning - without using the other runtime loading flags (-brtl),
10820 # -berok will link without error, but may produce a broken library.
10821 allow_undefined_flag_CXX='-berok'
10822 # Determine the default libpath from the value encoded in an empty executable.
10823 cat >conftest.$ac_ext <<_ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (ac_try="$ac_link"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_link") 2>conftest.er1
10847 grep -v '^ *+' conftest.er1 >conftest.err
10849 cat conftest.err >&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_cxx_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest$ac_exeext &&
10855 $as_test_x conftest$ac_exeext; then
10857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10859 # Check for a 64-bit object if we didn't find anything.
10860 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; }
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10870 conftest$ac_exeext conftest.$ac_ext
10871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10873 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10875 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"
10877 if test "$host_cpu" = ia64; then
10878 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10879 allow_undefined_flag_CXX="-z nodefs"
10880 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"
10882 # Determine the default libpath from the value encoded in an empty executable.
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_cxx_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest$ac_exeext &&
10915 $as_test_x conftest$ac_exeext; then
10917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10919 # Check for a 64-bit object if we didn't find anything.
10920 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; }
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10930 conftest$ac_exeext conftest.$ac_ext
10931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10933 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10934 # Warning - without using the other run time loading flags,
10935 # -berok will link without error, but may produce a broken library.
10936 no_undefined_flag_CXX=' ${wl}-bernotok'
10937 allow_undefined_flag_CXX=' ${wl}-berok'
10938 # Exported symbols can be pulled into shared objects from archives
10939 whole_archive_flag_spec_CXX='$convenience'
10940 archive_cmds_need_lc_CXX=yes
10941 # This is similar to how AIX traditionally builds its shared libraries.
10942 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'
10948 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10949 allow_undefined_flag_CXX=unsupported
10950 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10951 # support --undefined. This deserves some investigation. FIXME
10952 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10959 case $cc_basename in
10961 # FIXME: insert proper C++ library support
10967 cygwin* | mingw* | pw32*)
10968 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10969 # as there is no search path for DLLs.
10970 hardcode_libdir_flag_spec_CXX='-L$libdir'
10971 allow_undefined_flag_CXX=unsupported
10972 always_export_symbols_CXX=no
10973 enable_shared_with_static_runtimes_CXX=yes
10975 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10976 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'
10977 # If the export-symbols file already is a .def file (1st line
10978 # is EXPORTS), use it as is; otherwise, prepend...
10979 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10980 cp $export_symbols $output_objdir/$soname.def;
10982 echo EXPORTS > $output_objdir/$soname.def;
10983 cat $export_symbols >> $output_objdir/$soname.def;
10985 $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'
10990 darwin* | rhapsody*)
10992 rhapsody* | darwin1.[012])
10993 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10997 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10999 case ${MACOSX_DEPLOYMENT_TARGET} in
11001 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11004 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11010 archive_cmds_need_lc_CXX=no
11011 hardcode_direct_CXX=no
11012 hardcode_automatic_CXX=yes
11013 hardcode_shlibpath_var_CXX=unsupported
11014 whole_archive_flag_spec_CXX=''
11015 link_all_deplibs_CXX=yes
11017 if test "$GXX" = yes ; then
11018 lt_int_apple_cc_single_mod=no
11019 output_verbose_link_cmd='echo'
11020 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11021 lt_int_apple_cc_single_mod=yes
11023 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11024 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11026 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'
11028 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11030 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11031 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}'
11033 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}'
11035 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}'
11037 case $cc_basename in
11039 output_verbose_link_cmd='echo'
11040 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'
11041 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11043 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}'
11044 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}'
11054 case $cc_basename in
11056 # FIXME: insert proper C++ library support
11060 # Green Hills C++ Compiler
11061 # FIXME: insert proper C++ library support
11065 # FIXME: insert proper C++ library support
11071 # C++ shared libraries reported to be fairly broken before switch to ELF
11075 archive_cmds_need_lc_CXX=no
11077 freebsd* | kfreebsd*-gnu | dragonfly*)
11078 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11085 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11086 hardcode_libdir_separator_CXX=:
11087 export_dynamic_flag_spec_CXX='${wl}-E'
11088 hardcode_direct_CXX=yes
11089 hardcode_minus_L_CXX=yes # Not in the search PATH,
11090 # but as the default
11091 # location of the library.
11093 case $cc_basename in
11095 # FIXME: insert proper C++ library support
11099 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'
11100 # Commands to make compiler produce verbose output that lists
11101 # what "hidden" libraries, object files and flags are used when
11102 # linking a shared library.
11104 # There doesn't appear to be a way to prevent this compiler from
11105 # explicitly linking system object files so we need to strip them
11106 # from the output so that they don't get included in the library
11108 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'
11111 if test "$GXX" = yes; then
11112 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'
11114 # FIXME: insert proper C++ library support
11121 if test $with_gnu_ld = no; then
11122 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11123 hardcode_libdir_separator_CXX=:
11127 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11130 export_dynamic_flag_spec_CXX='${wl}-E'
11136 hardcode_direct_CXX=no
11137 hardcode_shlibpath_var_CXX=no
11140 hardcode_direct_CXX=yes
11141 hardcode_minus_L_CXX=yes # Not in the search PATH,
11142 # but as the default
11143 # location of the library.
11147 case $cc_basename in
11149 # FIXME: insert proper C++ library support
11155 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11158 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11164 # Commands to make compiler produce verbose output that lists
11165 # what "hidden" libraries, object files and flags are used when
11166 # linking a shared library.
11168 # There doesn't appear to be a way to prevent this compiler from
11169 # explicitly linking system object files so we need to strip them
11170 # from the output so that they don't get included in the library
11172 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'
11175 if test "$GXX" = yes; then
11176 if test $with_gnu_ld = no; then
11179 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11182 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11185 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'
11190 # FIXME: insert proper C++ library support
11197 hardcode_direct_CXX=no
11198 hardcode_shlibpath_var_CXX=no
11199 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11200 export_dynamic_flag_spec_CXX='${wl}-E'
11201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11202 # Instead, shared libraries are loaded at an image base (0x10000000 by
11203 # default) and relocated if they conflict, which is a slow very memory
11204 # consuming and fragmenting process. To avoid this, we pick a random,
11205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11207 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'
11208 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'
11211 case $cc_basename in
11214 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'
11216 # Archives containing C++ object files must be created using
11217 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11218 # necessary to make sure instantiated templates are included
11220 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11223 if test "$GXX" = yes; then
11224 if test "$with_gnu_ld" = no; then
11225 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'
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` -o $lib'
11230 link_all_deplibs_CXX=yes
11233 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11234 hardcode_libdir_separator_CXX=:
11237 case $cc_basename in
11239 # Kuck and Associates, Inc. (KAI) C++ Compiler
11241 # KCC will only create a shared library if the output file
11242 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11243 # to its proper name (with version) after linking.
11244 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'
11245 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'
11246 # Commands to make compiler produce verbose output that lists
11247 # what "hidden" libraries, object files and flags are used when
11248 # linking a shared library.
11250 # There doesn't appear to be a way to prevent this compiler from
11251 # explicitly linking system object files so we need to strip them
11252 # from the output so that they don't get included in the library
11254 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'
11256 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11259 # Archives containing C++ object files must be created using
11260 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11261 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11266 # version 8.0 and above of icpc choke on multiply defined symbols
11267 # if we add $predep_objects and $postdep_objects, however 7.1 and
11268 # earlier do not add the objects themselves.
11269 case `$CC -V 2>&1` in
11271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11272 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'
11274 *) # Version 8.0 or newer
11277 ia64*) tmp_idyn=' -i_dynamic';;
11279 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11280 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'
11283 archive_cmds_need_lc_CXX=no
11284 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11286 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11289 # Portland Group C++ compiler
11290 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11291 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'
11293 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11295 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'
11299 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11300 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'
11302 runpath_var=LD_RUN_PATH
11303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11304 hardcode_libdir_separator_CXX=:
11306 # Commands to make compiler produce verbose output that lists
11307 # what "hidden" libraries, object files and flags are used when
11308 # linking a shared library.
11310 # There doesn't appear to be a way to prevent this compiler from
11311 # explicitly linking system object files so we need to strip them
11312 # from the output so that they don't get included in the library
11314 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'
11319 # FIXME: insert proper C++ library support
11323 # FIXME: insert proper C++ library support
11327 case $cc_basename in
11329 # FIXME: insert proper C++ library support
11333 # FIXME: insert proper C++ library support
11339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11340 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11342 hardcode_libdir_flag_spec_CXX='-R$libdir'
11343 hardcode_direct_CXX=yes
11344 hardcode_shlibpath_var_CXX=no
11346 # Workaround some broken pre-1.5 toolchains
11347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11350 # C++ shared libraries are fairly broken
11354 hardcode_direct_CXX=yes
11355 hardcode_shlibpath_var_CXX=no
11356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11359 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11360 export_dynamic_flag_spec_CXX='${wl}-E'
11361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11363 output_verbose_link_cmd='echo'
11366 case $cc_basename in
11368 # Kuck and Associates, Inc. (KAI) C++ Compiler
11370 # KCC will only create a shared library if the output file
11371 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11372 # to its proper name (with version) after linking.
11373 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'
11375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11376 hardcode_libdir_separator_CXX=:
11378 # Archives containing C++ object files must be created using
11379 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11380 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11384 # Rational C++ 2.4.1
11385 # FIXME: insert proper C++ library support
11389 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11390 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'
11392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11393 hardcode_libdir_separator_CXX=:
11395 # Commands to make compiler produce verbose output that lists
11396 # what "hidden" libraries, object files and flags are used when
11397 # linking a shared library.
11399 # There doesn't appear to be a way to prevent this compiler from
11400 # explicitly linking system object files so we need to strip them
11401 # from the output so that they don't get included in the library
11403 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'
11406 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11407 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11408 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'
11410 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11411 hardcode_libdir_separator_CXX=:
11413 # Commands to make compiler produce verbose output that lists
11414 # what "hidden" libraries, object files and flags are used when
11415 # linking a shared library.
11416 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11419 # FIXME: insert proper C++ library support
11426 case $cc_basename in
11428 # Kuck and Associates, Inc. (KAI) C++ Compiler
11430 # KCC will only create a shared library if the output file
11431 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11432 # to its proper name (with version) after linking.
11433 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'
11435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11436 hardcode_libdir_separator_CXX=:
11438 # Archives containing C++ object files must be created using
11439 # the KAI C++ compiler.
11440 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11443 # Rational C++ 2.4.1
11444 # FIXME: insert proper C++ library support
11448 allow_undefined_flag_CXX=' -expect_unresolved \*'
11449 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'
11450 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11451 echo "-hidden">> $lib.exp~
11452 $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~
11455 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11456 hardcode_libdir_separator_CXX=:
11458 # Commands to make compiler produce verbose output that lists
11459 # what "hidden" libraries, object files and flags are used when
11460 # linking a shared library.
11462 # There doesn't appear to be a way to prevent this compiler from
11463 # explicitly linking system object files so we need to strip them
11464 # from the output so that they don't get included in the library
11466 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'
11469 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11470 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11471 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'
11473 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11474 hardcode_libdir_separator_CXX=:
11476 # Commands to make compiler produce verbose output that lists
11477 # what "hidden" libraries, object files and flags are used when
11478 # linking a shared library.
11479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11482 # FIXME: insert proper C++ library support
11489 # FIXME: insert proper C++ library support
11493 case $cc_basename in
11496 # FIXME: insert proper C++ library support
11501 # FIXME: insert proper C++ library support
11505 # FIXME: insert proper C++ library support
11511 case $cc_basename in
11513 # Sun C++ 4.2, 5.x and Centerline C++
11514 archive_cmds_need_lc_CXX=yes
11515 no_undefined_flag_CXX=' -zdefs'
11516 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11518 $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'
11520 hardcode_libdir_flag_spec_CXX='-R$libdir'
11521 hardcode_shlibpath_var_CXX=no
11523 solaris2.[0-5] | solaris2.[0-5].*) ;;
11525 # The C++ compiler is used as linker so we must use $wl
11526 # flag to pass the commands to the underlying system
11527 # linker. We must also pass each convience library through
11528 # to the system linker between allextract/defaultextract.
11529 # The C++ compiler will combine linker options so we
11530 # cannot just pass the convience library names through
11532 # Supported since Solaris 2.6 (maybe 2.5.1?)
11533 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'
11536 link_all_deplibs_CXX=yes
11538 output_verbose_link_cmd='echo'
11540 # Archives containing C++ object files must be created using
11541 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11542 # necessary to make sure instantiated templates are included
11544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11547 # Green Hills C++ Compiler
11548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11550 # The C++ compiler must be used to create the archive.
11551 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11554 # GNU C++ compiler with Solaris linker
11555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11556 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11557 if $CC --version | grep -v '^2\.7' > /dev/null; then
11558 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11559 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11560 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11562 # Commands to make compiler produce verbose output that lists
11563 # what "hidden" libraries, object files and flags are used when
11564 # linking a shared library.
11565 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11567 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11569 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11571 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11573 # Commands to make compiler produce verbose output that lists
11574 # what "hidden" libraries, object files and flags are used when
11575 # linking a shared library.
11576 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11579 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11584 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11585 no_undefined_flag_CXX='${wl}-z,text'
11586 archive_cmds_need_lc_CXX=no
11587 hardcode_shlibpath_var_CXX=no
11588 runpath_var='LD_RUN_PATH'
11590 case $cc_basename in
11592 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11596 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 sysv5* | sco3.2v5* | sco5v6*)
11602 # Note: We can NOT use -z defs as we might desire, because we do not
11603 # link with -lc, and that would cause any symbols used from libc to
11604 # always be unresolved, which means just about no library would
11605 # ever link correctly. If we're not using GNU ld we use -z text
11606 # though, which does catch some bad symbols but isn't as heavy-handed
11608 # For security reasons, it is highly recommended that you always
11609 # use absolute paths for naming shared libraries, and exclude the
11610 # DT_RUNPATH tag from executables and libraries. But doing so
11611 # requires that you compile everything twice, which is a pain.
11612 # So that behaviour is only enabled if SCOABSPATH is set to a
11613 # non-empty value in the environment. Most likely only useful for
11614 # creating official distributions of packages.
11615 # This is a hack until libtool officially supports absolute path
11616 # names for shared libraries.
11617 no_undefined_flag_CXX='${wl}-z,text'
11618 allow_undefined_flag_CXX='${wl}-z,nodefs'
11619 archive_cmds_need_lc_CXX=no
11620 hardcode_shlibpath_var_CXX=no
11621 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11622 hardcode_libdir_separator_CXX=':'
11623 link_all_deplibs_CXX=yes
11624 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11625 runpath_var='LD_RUN_PATH'
11627 case $cc_basename in
11629 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11630 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 case $cc_basename in
11641 # NonStop-UX NCC 3.20
11642 # FIXME: insert proper C++ library support
11646 # FIXME: insert proper C++ library support
11652 # FIXME: insert proper C++ library support
11656 # FIXME: insert proper C++ library support
11660 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11661 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11662 test "$ld_shlibs_CXX" = no && can_build_shared=no
11668 ## There is no encapsulation within the following macros, do not change
11669 ## the running order or otherwise move them around unless you know exactly
11670 ## what you are doing...
11672 cat > conftest.$ac_ext <<EOF
11676 Foo (void) { a = 0; }
11682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11683 (eval $ac_compile) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; then
11687 # Parse the compiler output and extract the necessary
11688 # objects, libraries and library flags.
11690 # Sentinel used to keep track of whether or not we are before
11691 # the conftest object file.
11692 pre_test_object_deps_done=no
11694 # The `*' in the case matches for architectures that use `case' in
11695 # $output_verbose_cmd can trigger glob expansion during the loop
11696 # eval without this substitution.
11697 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11699 for p in `eval $output_verbose_link_cmd`; do
11703 # Some compilers place space between "-{L,R}" and the path.
11704 # Remove the space.
11705 if test $p = "-L" \
11706 || test $p = "-R"; then
11713 if test "$pre_test_object_deps_done" = no; then
11716 # Internal compiler library paths should come after those
11717 # provided the user. The postdeps already come after the
11718 # user supplied libs so there is no need to process them.
11719 if test -z "$compiler_lib_search_path_CXX"; then
11720 compiler_lib_search_path_CXX="${prev}${p}"
11722 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11725 # The "-l" case would never come before the object being
11726 # linked, so don't bother handling this case.
11729 if test -z "$postdeps_CXX"; then
11730 postdeps_CXX="${prev}${p}"
11732 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11738 # This assumes that the test object file only shows up
11739 # once in the compiler output.
11740 if test "$p" = "conftest.$objext"; then
11741 pre_test_object_deps_done=yes
11745 if test "$pre_test_object_deps_done" = no; then
11746 if test -z "$predep_objects_CXX"; then
11747 predep_objects_CXX="$p"
11749 predep_objects_CXX="$predep_objects_CXX $p"
11752 if test -z "$postdep_objects_CXX"; then
11753 postdep_objects_CXX="$p"
11755 postdep_objects_CXX="$postdep_objects_CXX $p"
11760 *) ;; # Ignore the rest.
11768 echo "libtool.m4: error: problem compiling CXX test program"
11771 $rm -f confest.$objext
11773 # PORTME: override above test on systems where it is broken
11776 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11777 # hack all around it, let's just trust "g++" to DTRT.
11778 predep_objects_CXX=
11779 postdep_objects_CXX=
11784 case $cc_basename in
11786 # Adding this requires a known-good setup of shared libraries for
11787 # Sun compiler versions before 5.6, else PIC objects from an old
11788 # archive will be linked into the output, leading to subtle bugs.
11789 postdeps_CXX='-lCstd -lCrun'
11796 case " $postdeps_CXX " in
11797 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11800 lt_prog_compiler_wl_CXX=
11801 lt_prog_compiler_pic_CXX=
11802 lt_prog_compiler_static_CXX=
11804 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11805 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11807 # C++ specific cases for pic, static, wl, etc.
11808 if test "$GXX" = yes; then
11809 lt_prog_compiler_wl_CXX='-Wl,'
11810 lt_prog_compiler_static_CXX='-static'
11814 # All AIX code is PIC.
11815 if test "$host_cpu" = ia64; then
11816 # AIX 5 now supports IA64 processor
11817 lt_prog_compiler_static_CXX='-Bstatic'
11821 # FIXME: we need at least 68020 code to build shared libraries, but
11822 # adding the `-m68020' flag to GCC prevents building anything better,
11824 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11826 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11827 # PIC is the default for these OSes.
11829 mingw* | os2* | pw32*)
11830 # This hack is so that the source file can tell whether it is being
11831 # built for inclusion in a dll (and should export symbols for example).
11832 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11834 darwin* | rhapsody*)
11835 # PIC is the default on this platform
11836 # Common symbols not allowed in MH_DYLIB files
11837 lt_prog_compiler_pic_CXX='-fno-common'
11840 # DJGPP does not support shared libraries at all
11841 lt_prog_compiler_pic_CXX=
11844 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11845 # Instead, we relocate shared libraries at runtime.
11848 if test -d /usr/nec; then
11849 lt_prog_compiler_pic_CXX=-Kconform_pic
11853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11854 # not for PA HP-UX.
11859 lt_prog_compiler_pic_CXX='-fPIC'
11864 lt_prog_compiler_pic_CXX='-fPIC'
11870 # All AIX code is PIC.
11871 if test "$host_cpu" = ia64; then
11872 # AIX 5 now supports IA64 processor
11873 lt_prog_compiler_static_CXX='-Bstatic'
11875 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11879 case $cc_basename in
11881 # Green Hills C++ Compiler
11882 # _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"
11887 # PIC is the default on this platform
11888 # Common symbols not allowed in MH_DYLIB files
11889 case $cc_basename in
11891 lt_prog_compiler_pic_CXX='-qnocommon'
11892 lt_prog_compiler_wl_CXX='-Wl,'
11897 case $cc_basename in
11899 lt_prog_compiler_pic_CXX='-KPIC'
11902 # Green Hills C++ Compiler
11903 lt_prog_compiler_pic_CXX='-pic'
11909 freebsd* | kfreebsd*-gnu | dragonfly*)
11910 # FreeBSD uses GNU C++
11912 hpux9* | hpux10* | hpux11*)
11913 case $cc_basename in
11915 lt_prog_compiler_wl_CXX='-Wl,'
11916 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11917 if test "$host_cpu" != ia64; then
11918 lt_prog_compiler_pic_CXX='+Z'
11922 lt_prog_compiler_wl_CXX='-Wl,'
11923 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11929 lt_prog_compiler_pic_CXX='+Z'
11938 # This is c89, which is MS Visual C++ (no shared libs)
11939 # Anyone wants to do a port?
11941 irix5* | irix6* | nonstopux*)
11942 case $cc_basename in
11944 lt_prog_compiler_wl_CXX='-Wl,'
11945 lt_prog_compiler_static_CXX='-non_shared'
11946 # CC pic flag -KPIC is the default.
11953 case $cc_basename in
11956 lt_prog_compiler_wl_CXX='--backend -Wl,'
11957 lt_prog_compiler_pic_CXX='-fPIC'
11961 lt_prog_compiler_wl_CXX='-Wl,'
11962 lt_prog_compiler_pic_CXX='-KPIC'
11963 lt_prog_compiler_static_CXX='-static'
11966 # Portland Group C++ compiler.
11967 lt_prog_compiler_wl_CXX='-Wl,'
11968 lt_prog_compiler_pic_CXX='-fpic'
11969 lt_prog_compiler_static_CXX='-Bstatic'
11973 # Make sure the PIC flag is empty. It appears that all Alpha
11974 # Linux and Compaq Tru64 Unix objects are PIC.
11975 lt_prog_compiler_pic_CXX=
11976 lt_prog_compiler_static_CXX='-non_shared'
11987 case $cc_basename in
11989 lt_prog_compiler_pic_CXX='-W c,exportall'
11997 osf3* | osf4* | osf5*)
11998 case $cc_basename in
12000 lt_prog_compiler_wl_CXX='--backend -Wl,'
12003 # Rational C++ 2.4.1
12004 lt_prog_compiler_pic_CXX='-pic'
12007 # Digital/Compaq C++
12008 lt_prog_compiler_wl_CXX='-Wl,'
12009 # Make sure the PIC flag is empty. It appears that all Alpha
12010 # Linux and Compaq Tru64 Unix objects are PIC.
12011 lt_prog_compiler_pic_CXX=
12012 lt_prog_compiler_static_CXX='-non_shared'
12021 case $cc_basename in
12023 # Sun C++ 4.2, 5.x and Centerline C++
12024 lt_prog_compiler_pic_CXX='-KPIC'
12025 lt_prog_compiler_static_CXX='-Bstatic'
12026 lt_prog_compiler_wl_CXX='-Qoption ld '
12029 # Green Hills C++ Compiler
12030 lt_prog_compiler_pic_CXX='-PIC'
12037 case $cc_basename in
12040 lt_prog_compiler_pic_CXX='-pic'
12041 lt_prog_compiler_static_CXX='-Bstatic'
12045 lt_prog_compiler_pic_CXX='-pic'
12052 case $cc_basename in
12054 # NonStop-UX NCC 3.20
12055 lt_prog_compiler_pic_CXX='-KPIC'
12061 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12062 case $cc_basename in
12064 lt_prog_compiler_wl_CXX='-Wl,'
12065 lt_prog_compiler_pic_CXX='-KPIC'
12066 lt_prog_compiler_static_CXX='-Bstatic'
12073 lt_prog_compiler_can_build_shared_CXX=no
12078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12079 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12082 # Check to make sure the PIC flag actually works.
12084 if test -n "$lt_prog_compiler_pic_CXX"; then
12086 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12087 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12088 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 lt_prog_compiler_pic_works_CXX=no
12092 ac_outfile=conftest.$ac_objext
12093 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12094 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12095 # Insert the option either (1) after the last *FLAGS variable, or
12096 # (2) before a word containing "conftest.", or (3) at the end.
12097 # Note that $ac_compile itself does not contain backslashes and begins
12098 # with a dollar sign (not a hyphen), so the echo should work correctly.
12099 # The option is referenced via a variable to avoid confusing sed.
12100 lt_compile=`echo "$ac_compile" | $SED \
12101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12103 -e 's:$: $lt_compiler_flag:'`
12104 (eval echo "\"\$as_me:12104: $lt_compile\"" >&5)
12105 (eval "$lt_compile" 2>conftest.err)
12107 cat conftest.err >&5
12108 echo "$as_me:12108: \$? = $ac_status" >&5
12109 if (exit $ac_status) && test -s "$ac_outfile"; then
12110 # The compiler can only warn and ignore the option if not recognized
12111 # So say no if there are warnings other than the usual output.
12112 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12115 lt_prog_compiler_pic_works_CXX=yes
12121 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12122 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12124 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12125 case $lt_prog_compiler_pic_CXX in
12127 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12130 lt_prog_compiler_pic_CXX=
12131 lt_prog_compiler_can_build_shared_CXX=no
12136 # For platforms which do not support PIC, -DPIC is meaningless:
12138 lt_prog_compiler_pic_CXX=
12141 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12146 # Check to make sure the static flag actually works.
12148 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12149 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12150 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12151 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 lt_prog_compiler_static_works_CXX=no
12155 save_LDFLAGS="$LDFLAGS"
12156 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12157 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12159 # The linker can only warn and ignore the option if not recognized
12160 # So say no if there are warnings
12161 if test -s conftest.err; then
12162 # Append any errors to the config.log.
12163 cat conftest.err 1>&5
12164 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12166 if diff conftest.exp conftest.er2 >/dev/null; then
12167 lt_prog_compiler_static_works_CXX=yes
12170 lt_prog_compiler_static_works_CXX=yes
12174 LDFLAGS="$save_LDFLAGS"
12177 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12178 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12180 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12183 lt_prog_compiler_static_CXX=
12187 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12189 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 lt_cv_prog_compiler_c_o_CXX=no
12193 $rm -r conftest 2>/dev/null
12197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12199 lt_compiler_flag="-o out/conftest2.$ac_objext"
12200 # Insert the option either (1) after the last *FLAGS variable, or
12201 # (2) before a word containing "conftest.", or (3) at the end.
12202 # Note that $ac_compile itself does not contain backslashes and begins
12203 # with a dollar sign (not a hyphen), so the echo should work correctly.
12204 lt_compile=`echo "$ac_compile" | $SED \
12205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12207 -e 's:$: $lt_compiler_flag:'`
12208 (eval echo "\"\$as_me:12208: $lt_compile\"" >&5)
12209 (eval "$lt_compile" 2>out/conftest.err)
12211 cat out/conftest.err >&5
12212 echo "$as_me:12212: \$? = $ac_status" >&5
12213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12215 # The compiler can only warn and ignore the option if not recognized
12216 # So say no if there are warnings
12217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12218 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12219 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12220 lt_cv_prog_compiler_c_o_CXX=yes
12225 # SGI C++ compiler will create directory out/ii_files/ for
12226 # template instantiation
12227 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12228 $rm out/* && rmdir out
12234 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12235 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12238 hard_links="nottested"
12239 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12240 # do not overwrite the value of need_locks provided by the user
12241 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12242 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12247 ln conftest.a conftest.b 2>&5 || hard_links=no
12248 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12249 { echo "$as_me:$LINENO: result: $hard_links" >&5
12250 echo "${ECHO_T}$hard_links" >&6; }
12251 if test "$hard_links" = no; then
12252 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12253 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12263 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12266 # If we're using GNU nm, then we don't want the "-C" option.
12267 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12268 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12269 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'
12271 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'
12275 export_symbols_cmds_CXX="$ltdll_cmds"
12278 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'
12281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12285 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12286 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12287 test "$ld_shlibs_CXX" = no && can_build_shared=no
12290 # Do we need to explicitly link libc?
12292 case "x$archive_cmds_need_lc_CXX" in
12294 # Assume -lc should be added
12295 archive_cmds_need_lc_CXX=yes
12297 if test "$enable_shared" = yes && test "$GCC" = yes; then
12298 case $archive_cmds_CXX in
12300 # FIXME: we may have to deal with multi-command sequences.
12303 # Test whether the compiler implicitly links with -lc since on some
12304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12305 # to ld, don't add -lc before -lgcc.
12306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12307 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12309 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } 2>conftest.err; then
12318 libobjs=conftest.$ac_objext
12320 wl=$lt_prog_compiler_wl_CXX
12321 pic_flag=$lt_prog_compiler_pic_CXX
12327 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12328 allow_undefined_flag_CXX=
12329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12330 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }
12335 archive_cmds_need_lc_CXX=no
12337 archive_cmds_need_lc_CXX=yes
12339 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12341 cat conftest.err 1>&5
12344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12345 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12352 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12353 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12354 library_names_spec=
12355 libname_spec='lib$name'
12359 postuninstall_cmds=
12363 shlibpath_overrides_runpath=unknown
12365 dynamic_linker="$host_os ld.so"
12366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12367 if test "$GCC" = yes; then
12368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12369 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12370 # if the path contains ";" then we assume it to be the separator
12371 # otherwise default to the standard path separator (i.e. ":") - it is
12372 # assumed that no part of a normal pathname contains ";" but that should
12373 # okay in the real world where ";" in dirpaths is itself problematic.
12374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12379 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12381 need_lib_prefix=unknown
12382 hardcode_into_libs=no
12384 # when you set need_version to no, make sure it does not cause -set_version
12385 # flags to be left without arguments
12386 need_version=unknown
12391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12392 shlibpath_var=LIBPATH
12394 # AIX 3 has no versioning support, so we append a major version to the name.
12395 soname_spec='${libname}${release}${shared_ext}$major'
12402 hardcode_into_libs=yes
12403 if test "$host_cpu" = ia64; then
12404 # AIX 5 supports IA64
12405 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12406 shlibpath_var=LD_LIBRARY_PATH
12408 # With GCC up to 2.95.x, collect2 would create an import file
12409 # for dependence libraries. The import file would start with
12410 # the line `#! .'. This would cause the generated library to
12411 # depend on `.', always an invalid library. This was fixed in
12412 # development snapshots of GCC prior to 3.0.
12414 aix4 | aix4.[01] | aix4.[01].*)
12415 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12417 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12420 can_build_shared=no
12424 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12425 # soname into executable. Probably we can add versioning support to
12426 # collect2, so additional links can be useful in future.
12427 if test "$aix_use_runtimelinking" = yes; then
12428 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12429 # instead of lib<name>.a to let people know that these are not
12430 # typical AIX shared libraries.
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12433 # We preserve .a as extension for shared libraries through AIX4.2
12434 # and later when we are not doing run time linking.
12435 library_names_spec='${libname}${release}.a $libname.a'
12436 soname_spec='${libname}${release}${shared_ext}$major'
12438 shlibpath_var=LIBPATH
12443 library_names_spec='$libname.ixlibrary $libname.a'
12444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12445 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'
12449 library_names_spec='${libname}${shared_ext}'
12450 dynamic_linker="$host_os ld.so"
12451 shlibpath_var=LIBRARY_PATH
12457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458 soname_spec='${libname}${release}${shared_ext}$major'
12459 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12462 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12463 # the default ld.so.conf also contains /usr/contrib/lib and
12464 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12465 # libtool to hard-code these into programs
12468 cygwin* | mingw* | pw32*)
12469 version_type=windows
12474 case $GCC,$host_os in
12475 yes,cygwin* | yes,mingw* | yes,pw32*)
12476 library_names_spec='$libname.dll.a'
12477 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12478 postinstall_cmds='base_file=`basename \${file}`~
12479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12480 dldir=$destdir/`dirname \$dlpath`~
12481 test -d \$dldir || mkdir -p \$dldir~
12482 $install_prog $dir/$dlname \$dldir/$dlname~
12483 chmod a+x \$dldir/$dlname'
12484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12485 dlpath=$dir/\$dldll~
12487 shlibpath_overrides_runpath=yes
12491 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12492 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12493 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12496 # MinGW DLLs use traditional 'lib' prefix
12497 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12499 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12500 # It is most probably a Windows format PATH printed by
12501 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12502 # path with ; separators, and with drive letters. We can handle the
12503 # drive letters (cygwin fileutils understands them), so leave them,
12504 # especially as we might pass files found there to a mingw objdump,
12505 # which wouldn't understand a cygwinified path. Ahh.
12506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12512 # pw32 DLLs use 'pw' prefix rather than 'lib'
12513 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12519 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12522 dynamic_linker='Win32 ld.exe'
12523 # FIXME: first we should search . and the directory the executable is in
12527 darwin* | rhapsody*)
12528 dynamic_linker="$host_os dyld"
12529 version_type=darwin
12532 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12533 soname_spec='${libname}${release}${major}$shared_ext'
12534 shlibpath_overrides_runpath=yes
12535 shlibpath_var=DYLD_LIBRARY_PATH
12536 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12537 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12538 if test "$GCC" = yes; then
12539 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"`
12541 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12551 soname_spec='${libname}${release}${shared_ext}$major'
12552 shlibpath_var=LD_LIBRARY_PATH
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 shlibpath_overrides_runpath=no
12567 hardcode_into_libs=yes
12568 dynamic_linker='GNU ld.so'
12571 freebsd* | dragonfly*)
12572 # DragonFly does not have aout. When/if they implement a new
12573 # versioning mechanism, adjust this.
12574 if test -x /usr/bin/objformat; then
12575 objformat=`/usr/bin/objformat`
12578 freebsd[123]*) objformat=aout ;;
12579 *) objformat=elf ;;
12582 version_type=freebsd-$objformat
12583 case $version_type in
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12594 shlibpath_var=LD_LIBRARY_PATH
12597 shlibpath_overrides_runpath=yes
12599 freebsd3.[01]* | freebsdelf3.[01]*)
12600 shlibpath_overrides_runpath=yes
12601 hardcode_into_libs=yes
12603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12605 shlibpath_overrides_runpath=no
12606 hardcode_into_libs=yes
12608 freebsd*) # from 4.6 on
12609 shlibpath_overrides_runpath=yes
12610 hardcode_into_libs=yes
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 shlibpath_var=LD_LIBRARY_PATH
12622 hardcode_into_libs=yes
12625 hpux9* | hpux10* | hpux11*)
12626 # Give a soname corresponding to the major version so that dld.sl refuses to
12627 # link against other versions.
12634 hardcode_into_libs=yes
12635 dynamic_linker="$host_os dld.so"
12636 shlibpath_var=LD_LIBRARY_PATH
12637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 if test "X$HPUX_IA64_MODE" = X32; then
12641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12649 hardcode_into_libs=yes
12650 dynamic_linker="$host_os dld.sl"
12651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12660 dynamic_linker="$host_os dld.sl"
12661 shlibpath_var=SHLIB_PATH
12662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664 soname_spec='${libname}${release}${shared_ext}$major'
12667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12668 postinstall_cmds='chmod 555 $lib'
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12676 soname_spec='${libname}${release}${shared_ext}$major'
12677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12678 shlibpath_var=LD_LIBRARY_PATH
12679 shlibpath_overrides_runpath=no
12680 hardcode_into_libs=yes
12683 irix5* | irix6* | nonstopux*)
12685 nonstopux*) version_type=nonstopux ;;
12687 if test "$lt_cv_prog_gnu_ld" = yes; then
12695 soname_spec='${libname}${release}${shared_ext}$major'
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12698 irix5* | nonstopux*)
12699 libsuff= shlibsuff=
12702 case $LD in # libtool.m4 will add one of these switches to LD
12703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12704 libsuff= shlibsuff= libmagic=32-bit;;
12705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12706 libsuff=32 shlibsuff=N32 libmagic=N32;;
12707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12708 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12709 *) libsuff= shlibsuff= libmagic=never-match;;
12713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12714 shlibpath_overrides_runpath=no
12715 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12716 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12717 hardcode_into_libs=yes
12720 # No shared lib support for Linux oldld, aout, or coff.
12721 linux*oldld* | linux*aout* | linux*coff*)
12725 # This must be Linux ELF.
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=no
12735 # This implies no fast_install, which is unacceptable.
12736 # Some rework will be needed to allow for fast_install
12737 # before this can be enabled.
12738 hardcode_into_libs=yes
12740 # Append ld.so.conf contents to the search path
12741 if test -f /etc/ld.so.conf; then
12742 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' ' '`
12743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12746 # We used to test for /lib/ld.so.1 and disable shared libraries on
12747 # powerpc, because MkLinux only supported shared libraries with the
12748 # GNU dynamic linker. Since this was broken with cross compilers,
12749 # most powerpc-linux boxes support dynamic linking these days and
12750 # people can always --disable-shared, the test was removed, and we
12751 # assume the GNU/Linux dynamic linker is in use.
12752 dynamic_linker='GNU/Linux ld.so'
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12760 soname_spec='${libname}${release}${shared_ext}$major'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=no
12763 hardcode_into_libs=yes
12764 dynamic_linker='GNU ld.so'
12771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12774 dynamic_linker='NetBSD (a.out) ld.so'
12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 dynamic_linker='NetBSD ld.elf_so'
12780 shlibpath_var=LD_LIBRARY_PATH
12781 shlibpath_overrides_runpath=yes
12782 hardcode_into_libs=yes
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 shlibpath_var=LD_LIBRARY_PATH
12799 shlibpath_overrides_runpath=yes
12804 sys_lib_dlsearch_path_spec="/usr/lib"
12806 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12808 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12809 *) need_version=no ;;
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12816 openbsd2.[89] | openbsd2.[89].*)
12817 shlibpath_overrides_runpath=no
12820 shlibpath_overrides_runpath=yes
12824 shlibpath_overrides_runpath=yes
12829 libname_spec='$name'
12832 library_names_spec='$libname${shared_ext} $libname.a'
12833 dynamic_linker='OS/2 ld.exe'
12834 shlibpath_var=LIBPATH
12837 osf3* | osf4* | osf5*)
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12845 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 shlibpath_var=LD_LIBRARY_PATH
12855 shlibpath_overrides_runpath=yes
12856 hardcode_into_libs=yes
12857 # ldd complains unless libraries are executable
12858 postinstall_cmds='chmod +x $lib'
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 shlibpath_overrides_runpath=yes
12867 if test "$with_gnu_ld" = yes; then
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876 soname_spec='${libname}${release}${shared_ext}$major'
12877 shlibpath_var=LD_LIBRARY_PATH
12878 case $host_vendor in
12880 shlibpath_overrides_runpath=no
12882 export_dynamic_flag_spec='${wl}-Blargedynsym'
12883 runpath_var=LD_RUN_PATH
12891 shlibpath_overrides_runpath=no
12892 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12898 if test -d /usr/nec ;then
12900 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12901 soname_spec='$libname${shared_ext}.$major'
12902 shlibpath_var=LD_LIBRARY_PATH
12906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12907 version_type=freebsd-elf
12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12911 soname_spec='${libname}${release}${shared_ext}$major'
12912 shlibpath_var=LD_LIBRARY_PATH
12913 hardcode_into_libs=yes
12914 if test "$with_gnu_ld" = yes; then
12915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12916 shlibpath_overrides_runpath=no
12918 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12919 shlibpath_overrides_runpath=yes
12922 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12926 sys_lib_dlsearch_path_spec='/usr/lib'
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12940 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12941 echo "${ECHO_T}$dynamic_linker" >&6; }
12942 test "$dynamic_linker" = no && can_build_shared=no
12944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12945 if test "$GCC" = yes; then
12946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12949 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12950 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12951 hardcode_action_CXX=
12952 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12953 test -n "$runpath_var_CXX" || \
12954 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12956 # We can hardcode non-existant directories.
12957 if test "$hardcode_direct_CXX" != no &&
12958 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12959 # have to relink, otherwise we might link with an installed library
12960 # when we should be linking with a yet-to-be-installed one
12961 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12962 test "$hardcode_minus_L_CXX" != no; then
12963 # Linking always hardcodes the temporary library directory.
12964 hardcode_action_CXX=relink
12966 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12967 hardcode_action_CXX=immediate
12970 # We cannot hardcode anything, or else we can only hardcode existing
12972 hardcode_action_CXX=unsupported
12974 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12975 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12977 if test "$hardcode_action_CXX" = relink; then
12978 # Fast installation is not supported
12979 enable_fast_install=no
12980 elif test "$shlibpath_overrides_runpath" = yes ||
12981 test "$enable_shared" = no; then
12982 # Fast installation is not necessary
12983 enable_fast_install=needless
12987 # The else clause should only fire when bootstrapping the
12988 # libtool distribution, otherwise you forgot to ship ltmain.sh
12989 # with your package, and you will get complaints that there are
12990 # no rules to generate ltmain.sh.
12991 if test -f "$ltmain"; then
12992 # See if we are running on zsh, and set the options which allow our commands through
12993 # without removal of \ escapes.
12994 if test -n "${ZSH_VERSION+set}" ; then
12995 setopt NO_GLOB_SUBST
12997 # Now quote all the things that may contain metacharacters while being
12998 # careful not to overquote the AC_SUBSTed values. We take copies of the
12999 # variables and quote the copies for generation of the libtool script.
13000 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13002 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13003 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13004 deplibs_check_method reload_flag reload_cmds need_locks \
13005 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13006 lt_cv_sys_global_symbol_to_c_name_address \
13007 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13008 old_postinstall_cmds old_postuninstall_cmds \
13012 lt_prog_compiler_wl_CXX \
13013 lt_prog_compiler_pic_CXX \
13014 lt_prog_compiler_static_CXX \
13015 lt_prog_compiler_no_builtin_flag_CXX \
13016 export_dynamic_flag_spec_CXX \
13017 thread_safe_flag_spec_CXX \
13018 whole_archive_flag_spec_CXX \
13019 enable_shared_with_static_runtimes_CXX \
13020 old_archive_cmds_CXX \
13021 old_archive_from_new_cmds_CXX \
13022 predep_objects_CXX \
13023 postdep_objects_CXX \
13026 compiler_lib_search_path_CXX \
13028 archive_expsym_cmds_CXX \
13029 postinstall_cmds_CXX \
13030 postuninstall_cmds_CXX \
13031 old_archive_from_expsyms_cmds_CXX \
13032 allow_undefined_flag_CXX \
13033 no_undefined_flag_CXX \
13034 export_symbols_cmds_CXX \
13035 hardcode_libdir_flag_spec_CXX \
13036 hardcode_libdir_flag_spec_ld_CXX \
13037 hardcode_libdir_separator_CXX \
13038 hardcode_automatic_CXX \
13040 module_expsym_cmds_CXX \
13041 lt_cv_prog_compiler_c_o_CXX \
13042 exclude_expsyms_CXX \
13043 include_expsyms_CXX; do
13046 old_archive_cmds_CXX | \
13047 old_archive_from_new_cmds_CXX | \
13048 archive_cmds_CXX | \
13049 archive_expsym_cmds_CXX | \
13050 module_cmds_CXX | \
13051 module_expsym_cmds_CXX | \
13052 old_archive_from_expsyms_cmds_CXX | \
13053 export_symbols_cmds_CXX | \
13054 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13055 postinstall_cmds | postuninstall_cmds | \
13056 old_postinstall_cmds | old_postuninstall_cmds | \
13057 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13058 # Double-quote double-evaled strings.
13059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13062 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13068 *'\$0 --fallback-echo"')
13069 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13075 cat <<__EOF__ >> "$cfgfile"
13076 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13080 # Shell to use when invoking shell scripts.
13083 # Whether or not to build shared libraries.
13084 build_libtool_libs=$enable_shared
13086 # Whether or not to build static libraries.
13087 build_old_libs=$enable_static
13089 # Whether or not to add -lc for building shared libraries.
13090 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13092 # Whether or not to disallow shared libs when runtime libs are static
13093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13095 # Whether or not to optimize for fast installation.
13096 fast_install=$enable_fast_install
13099 host_alias=$host_alias
13103 # The build system.
13104 build_alias=$build_alias
13108 # An echo program that does not interpret backslashes.
13113 AR_FLAGS=$lt_AR_FLAGS
13118 # LTCC compiler flags.
13119 LTCFLAGS=$lt_LTCFLAGS
13121 # A language-specific compiler.
13122 CC=$lt_compiler_CXX
13124 # Is the compiler the GNU C compiler?
13130 # The linker used to build libraries.
13133 # Whether we need hard or soft links.
13136 # A BSD-compatible nm program.
13139 # A symbol stripping program
13142 # Used to examine libraries when file_magic_cmd begins "file"
13143 MAGIC_CMD=$MAGIC_CMD
13145 # Used on cygwin: DLL creation program.
13148 # Used on cygwin: object dumper.
13151 # Used on cygwin: assembler.
13154 # The name of the directory that contains temporary libtool files.
13157 # How to create reloadable object files.
13158 reload_flag=$lt_reload_flag
13159 reload_cmds=$lt_reload_cmds
13161 # How to pass a linker flag through the compiler.
13162 wl=$lt_lt_prog_compiler_wl_CXX
13164 # Object file suffix (normally "o").
13165 objext="$ac_objext"
13167 # Old archive suffix (normally "a").
13170 # Shared library suffix (normally ".so").
13171 shrext_cmds='$shrext_cmds'
13173 # Executable file suffix (normally "").
13176 # Additional compiler flags for building library objects.
13177 pic_flag=$lt_lt_prog_compiler_pic_CXX
13180 # What is the maximum length of a command?
13181 max_cmd_len=$lt_cv_sys_max_cmd_len
13183 # Does compiler simultaneously support -c and -o options?
13184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13186 # Must we lock files when doing compilation?
13187 need_locks=$lt_need_locks
13189 # Do we need the lib prefix for modules?
13190 need_lib_prefix=$need_lib_prefix
13192 # Do we need a version for libraries?
13193 need_version=$need_version
13195 # Whether dlopen is supported.
13196 dlopen_support=$enable_dlopen
13198 # Whether dlopen of programs is supported.
13199 dlopen_self=$enable_dlopen_self
13201 # Whether dlopen of statically linked programs is supported.
13202 dlopen_self_static=$enable_dlopen_self_static
13204 # Compiler flag to prevent dynamic linking.
13205 link_static_flag=$lt_lt_prog_compiler_static_CXX
13207 # Compiler flag to turn off builtin functions.
13208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13210 # Compiler flag to allow reflexive dlopens.
13211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13213 # Compiler flag to generate shared objects directly from archives.
13214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13216 # Compiler flag to generate thread-safe objects.
13217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13219 # Library versioning type.
13220 version_type=$version_type
13222 # Format of library name prefix.
13223 libname_spec=$lt_libname_spec
13225 # List of archive names. First name is the real one, the rest are links.
13226 # The last name is the one that the linker finds with -lNAME.
13227 library_names_spec=$lt_library_names_spec
13229 # The coded name of the library, if different from the real name.
13230 soname_spec=$lt_soname_spec
13232 # Commands used to build and install an old-style archive.
13234 old_archive_cmds=$lt_old_archive_cmds_CXX
13235 old_postinstall_cmds=$lt_old_postinstall_cmds
13236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13238 # Create an old-style archive from a shared archive.
13239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13241 # Create a temporary old-style archive to link instead of a shared archive.
13242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13244 # Commands used to build and install a shared archive.
13245 archive_cmds=$lt_archive_cmds_CXX
13246 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13247 postinstall_cmds=$lt_postinstall_cmds
13248 postuninstall_cmds=$lt_postuninstall_cmds
13250 # Commands used to build a loadable module (assumed same as above if empty)
13251 module_cmds=$lt_module_cmds_CXX
13252 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13254 # Commands to strip libraries.
13255 old_striplib=$lt_old_striplib
13256 striplib=$lt_striplib
13258 # Dependencies to place before the objects being linked to create a
13260 predep_objects=$lt_predep_objects_CXX
13262 # Dependencies to place after the objects being linked to create a
13264 postdep_objects=$lt_postdep_objects_CXX
13266 # Dependencies to place before the objects being linked to create a
13268 predeps=$lt_predeps_CXX
13270 # Dependencies to place after the objects being linked to create a
13272 postdeps=$lt_postdeps_CXX
13274 # The library search path used internally by the compiler when linking
13275 # a shared library.
13276 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13278 # Method to check whether dependent libraries are shared objects.
13279 deplibs_check_method=$lt_deplibs_check_method
13281 # Command to use when deplibs_check_method == file_magic.
13282 file_magic_cmd=$lt_file_magic_cmd
13284 # Flag that allows shared libraries with undefined symbols to be built.
13285 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13287 # Flag that forces no undefined symbols.
13288 no_undefined_flag=$lt_no_undefined_flag_CXX
13290 # Commands used to finish a libtool library installation in a directory.
13291 finish_cmds=$lt_finish_cmds
13293 # Same as above, but a single script fragment to be evaled but not shown.
13294 finish_eval=$lt_finish_eval
13296 # Take the output of nm and produce a listing of raw symbols and C names.
13297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13299 # Transform the output of nm in a proper C declaration
13300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13302 # Transform the output of nm in a C name address pair
13303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13305 # This is the shared library runtime path variable.
13306 runpath_var=$runpath_var
13308 # This is the shared library path variable.
13309 shlibpath_var=$shlibpath_var
13311 # Is shlibpath searched before the hard-coded library search path?
13312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13314 # How to hardcode a shared library path into an executable.
13315 hardcode_action=$hardcode_action_CXX
13317 # Whether we should hardcode library paths into libraries.
13318 hardcode_into_libs=$hardcode_into_libs
13320 # Flag to hardcode \$libdir into a binary during linking.
13321 # This must work even if \$libdir does not exist.
13322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13324 # If ld is used when linking, flag to hardcode \$libdir into
13325 # a binary during linking. This must work even if \$libdir does
13327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13329 # Whether we need a single -rpath flag with a separated argument.
13330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13333 # resulting binary.
13334 hardcode_direct=$hardcode_direct_CXX
13336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13337 # resulting binary.
13338 hardcode_minus_L=$hardcode_minus_L_CXX
13340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13341 # the resulting binary.
13342 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13344 # Set to yes if building a shared library automatically hardcodes DIR into the library
13345 # and all subsequent libraries and executables linked against it.
13346 hardcode_automatic=$hardcode_automatic_CXX
13348 # Variables whose values should be saved in libtool wrapper scripts and
13349 # restored at relink time.
13350 variables_saved_for_relink="$variables_saved_for_relink"
13352 # Whether libtool must link a program against all its dependency libraries.
13353 link_all_deplibs=$link_all_deplibs_CXX
13355 # Compile-time system search path for libraries
13356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13358 # Run-time system search path for libraries
13359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13361 # Fix the shell variable \$srcfile for the compiler.
13362 fix_srcfile_path="$fix_srcfile_path_CXX"
13364 # Set to yes if exported symbols are required.
13365 always_export_symbols=$always_export_symbols_CXX
13367 # The commands to list exported symbols.
13368 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13370 # The commands to extract the exported symbol list from a shared archive.
13371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13373 # Symbols that should not be listed in the preloaded symbols.
13374 exclude_expsyms=$lt_exclude_expsyms_CXX
13376 # Symbols that must always be exported.
13377 include_expsyms=$lt_include_expsyms_CXX
13379 # ### END LIBTOOL TAG CONFIG: $tagname
13385 # If there is no Makefile yet, we rely on a make rule to execute
13386 # `config.status --recheck' to rerun these tests and create the
13387 # libtool script then.
13388 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13389 if test -f "$ltmain_in"; then
13390 test -f Makefile && make "$ltmain"
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13405 with_gnu_ldcxx=$with_gnu_ld
13406 with_gnu_ld=$lt_save_with_gnu_ld
13407 lt_cv_path_LDCXX=$lt_cv_path_LD
13408 lt_cv_path_LD=$lt_save_path_LD
13409 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13410 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13418 if test -n "$F77" && test "X$F77" != "Xno"; then
13421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13426 archive_cmds_need_lc_F77=no
13427 allow_undefined_flag_F77=
13428 always_export_symbols_F77=no
13429 archive_expsym_cmds_F77=
13430 export_dynamic_flag_spec_F77=
13431 hardcode_direct_F77=no
13432 hardcode_libdir_flag_spec_F77=
13433 hardcode_libdir_flag_spec_ld_F77=
13434 hardcode_libdir_separator_F77=
13435 hardcode_minus_L_F77=no
13436 hardcode_automatic_F77=no
13438 module_expsym_cmds_F77=
13439 link_all_deplibs_F77=unknown
13440 old_archive_cmds_F77=$old_archive_cmds
13441 no_undefined_flag_F77=
13442 whole_archive_flag_spec_F77=
13443 enable_shared_with_static_runtimes_F77=no
13445 # Source file extension for f77 test sources.
13448 # Object file extension for compiled f77 test sources.
13452 # Code to be used in simple compile tests
13453 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13455 # Code to be used in simple link tests
13456 lt_simple_link_test_code=" program t\n end\n"
13458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13460 # If no C compiler was specified, use CC.
13463 # If no C compiler flags were specified, use CFLAGS.
13464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13466 # Allow CC to be a program name with arguments.
13470 # save warnings/boilerplate of simple test code
13471 ac_outfile=conftest.$ac_objext
13472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13474 _lt_compiler_boilerplate=`cat conftest.err`
13477 ac_outfile=conftest.$ac_objext
13478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13480 _lt_linker_boilerplate=`cat conftest.err`
13484 # Allow CC to be a program name with arguments.
13489 for cc_temp in $compiler""; do
13491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13500 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13501 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13502 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13503 echo "${ECHO_T}$can_build_shared" >&6; }
13505 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13506 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13507 test "$can_build_shared" = "no" && enable_shared=no
13509 # On AIX, shared libraries and static libraries use the same namespace, and
13510 # are all built from PIC.
13513 test "$enable_shared" = yes && enable_static=no
13514 if test -n "$RANLIB"; then
13515 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13516 postinstall_cmds='$RANLIB $lib'
13520 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13521 test "$enable_shared" = yes && enable_static=no
13525 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13526 echo "${ECHO_T}$enable_shared" >&6; }
13528 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13529 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13530 # Make sure either enable_shared or enable_static is yes.
13531 test "$enable_shared" = yes || enable_static=yes
13532 { echo "$as_me:$LINENO: result: $enable_static" >&5
13533 echo "${ECHO_T}$enable_static" >&6; }
13538 lt_prog_compiler_wl_F77=
13539 lt_prog_compiler_pic_F77=
13540 lt_prog_compiler_static_F77=
13542 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13545 if test "$GCC" = yes; then
13546 lt_prog_compiler_wl_F77='-Wl,'
13547 lt_prog_compiler_static_F77='-static'
13551 # All AIX code is PIC.
13552 if test "$host_cpu" = ia64; then
13553 # AIX 5 now supports IA64 processor
13554 lt_prog_compiler_static_F77='-Bstatic'
13559 # FIXME: we need at least 68020 code to build shared libraries, but
13560 # adding the `-m68020' flag to GCC prevents building anything better,
13562 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13566 # PIC is the default for these OSes.
13569 mingw* | pw32* | os2*)
13570 # This hack is so that the source file can tell whether it is being
13571 # built for inclusion in a dll (and should export symbols for example).
13572 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13575 darwin* | rhapsody*)
13576 # PIC is the default on this platform
13577 # Common symbols not allowed in MH_DYLIB files
13578 lt_prog_compiler_pic_F77='-fno-common'
13582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13583 # Instead, we relocate shared libraries at runtime.
13587 # Just because we use GCC doesn't mean we suddenly get shared libraries
13588 # on systems that don't support them.
13589 lt_prog_compiler_can_build_shared_F77=no
13594 if test -d /usr/nec; then
13595 lt_prog_compiler_pic_F77=-Kconform_pic
13600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13601 # not for PA HP-UX.
13607 lt_prog_compiler_pic_F77='-fPIC'
13613 lt_prog_compiler_pic_F77='-fPIC'
13617 # PORTME Check for flag to pass linker flags through the system compiler.
13620 lt_prog_compiler_wl_F77='-Wl,'
13621 if test "$host_cpu" = ia64; then
13622 # AIX 5 now supports IA64 processor
13623 lt_prog_compiler_static_F77='-Bstatic'
13625 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13629 # PIC is the default on this platform
13630 # Common symbols not allowed in MH_DYLIB files
13631 case $cc_basename in
13633 lt_prog_compiler_pic_F77='-qnocommon'
13634 lt_prog_compiler_wl_F77='-Wl,'
13639 mingw* | pw32* | os2*)
13640 # This hack is so that the source file can tell whether it is being
13641 # built for inclusion in a dll (and should export symbols for example).
13642 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13645 hpux9* | hpux10* | hpux11*)
13646 lt_prog_compiler_wl_F77='-Wl,'
13647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13648 # not for PA HP-UX.
13654 lt_prog_compiler_pic_F77='+Z'
13657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13658 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13661 irix5* | irix6* | nonstopux*)
13662 lt_prog_compiler_wl_F77='-Wl,'
13663 # PIC (with -KPIC) is the default.
13664 lt_prog_compiler_static_F77='-non_shared'
13668 lt_prog_compiler_pic_F77='-KPIC'
13669 lt_prog_compiler_static_F77='-Bstatic'
13673 case $cc_basename in
13675 lt_prog_compiler_wl_F77='-Wl,'
13676 lt_prog_compiler_pic_F77='-KPIC'
13677 lt_prog_compiler_static_F77='-static'
13679 pgcc* | pgf77* | pgf90* | pgf95*)
13680 # Portland Group compilers (*not* the Pentium gcc compiler,
13681 # which looks to be a dead project)
13682 lt_prog_compiler_wl_F77='-Wl,'
13683 lt_prog_compiler_pic_F77='-fpic'
13684 lt_prog_compiler_static_F77='-Bstatic'
13687 lt_prog_compiler_wl_F77='-Wl,'
13688 # All Alpha code is PIC.
13689 lt_prog_compiler_static_F77='-non_shared'
13694 osf3* | osf4* | osf5*)
13695 lt_prog_compiler_wl_F77='-Wl,'
13696 # All OSF/1 code is PIC.
13697 lt_prog_compiler_static_F77='-non_shared'
13701 lt_prog_compiler_pic_F77='-KPIC'
13702 lt_prog_compiler_static_F77='-Bstatic'
13703 case $cc_basename in
13704 f77* | f90* | f95*)
13705 lt_prog_compiler_wl_F77='-Qoption ld ';;
13707 lt_prog_compiler_wl_F77='-Wl,';;
13712 lt_prog_compiler_wl_F77='-Qoption ld '
13713 lt_prog_compiler_pic_F77='-PIC'
13714 lt_prog_compiler_static_F77='-Bstatic'
13717 sysv4 | sysv4.2uw2* | sysv4.3*)
13718 lt_prog_compiler_wl_F77='-Wl,'
13719 lt_prog_compiler_pic_F77='-KPIC'
13720 lt_prog_compiler_static_F77='-Bstatic'
13724 if test -d /usr/nec ;then
13725 lt_prog_compiler_pic_F77='-Kconform_pic'
13726 lt_prog_compiler_static_F77='-Bstatic'
13730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13731 lt_prog_compiler_wl_F77='-Wl,'
13732 lt_prog_compiler_pic_F77='-KPIC'
13733 lt_prog_compiler_static_F77='-Bstatic'
13737 lt_prog_compiler_wl_F77='-Wl,'
13738 lt_prog_compiler_can_build_shared_F77=no
13742 lt_prog_compiler_pic_F77='-pic'
13743 lt_prog_compiler_static_F77='-Bstatic'
13747 lt_prog_compiler_can_build_shared_F77=no
13752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13753 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13756 # Check to make sure the PIC flag actually works.
13758 if test -n "$lt_prog_compiler_pic_F77"; then
13760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13762 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 lt_prog_compiler_pic_works_F77=no
13766 ac_outfile=conftest.$ac_objext
13767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13768 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13769 # Insert the option either (1) after the last *FLAGS variable, or
13770 # (2) before a word containing "conftest.", or (3) at the end.
13771 # Note that $ac_compile itself does not contain backslashes and begins
13772 # with a dollar sign (not a hyphen), so the echo should work correctly.
13773 # The option is referenced via a variable to avoid confusing sed.
13774 lt_compile=`echo "$ac_compile" | $SED \
13775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777 -e 's:$: $lt_compiler_flag:'`
13778 (eval echo "\"\$as_me:13778: $lt_compile\"" >&5)
13779 (eval "$lt_compile" 2>conftest.err)
13781 cat conftest.err >&5
13782 echo "$as_me:13782: \$? = $ac_status" >&5
13783 if (exit $ac_status) && test -s "$ac_outfile"; then
13784 # The compiler can only warn and ignore the option if not recognized
13785 # So say no if there are warnings other than the usual output.
13786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13789 lt_prog_compiler_pic_works_F77=yes
13795 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13796 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13798 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13799 case $lt_prog_compiler_pic_F77 in
13801 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13804 lt_prog_compiler_pic_F77=
13805 lt_prog_compiler_can_build_shared_F77=no
13810 # For platforms which do not support PIC, -DPIC is meaningless:
13812 lt_prog_compiler_pic_F77=
13815 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13820 # Check to make sure the static flag actually works.
13822 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13825 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 lt_prog_compiler_static_works_F77=no
13829 save_LDFLAGS="$LDFLAGS"
13830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13831 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13833 # The linker can only warn and ignore the option if not recognized
13834 # So say no if there are warnings
13835 if test -s conftest.err; then
13836 # Append any errors to the config.log.
13837 cat conftest.err 1>&5
13838 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13840 if diff conftest.exp conftest.er2 >/dev/null; then
13841 lt_prog_compiler_static_works_F77=yes
13844 lt_prog_compiler_static_works_F77=yes
13848 LDFLAGS="$save_LDFLAGS"
13851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13852 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13854 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13857 lt_prog_compiler_static_F77=
13861 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13862 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13863 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 lt_cv_prog_compiler_c_o_F77=no
13867 $rm -r conftest 2>/dev/null
13871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13873 lt_compiler_flag="-o out/conftest2.$ac_objext"
13874 # Insert the option either (1) after the last *FLAGS variable, or
13875 # (2) before a word containing "conftest.", or (3) at the end.
13876 # Note that $ac_compile itself does not contain backslashes and begins
13877 # with a dollar sign (not a hyphen), so the echo should work correctly.
13878 lt_compile=`echo "$ac_compile" | $SED \
13879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881 -e 's:$: $lt_compiler_flag:'`
13882 (eval echo "\"\$as_me:13882: $lt_compile\"" >&5)
13883 (eval "$lt_compile" 2>out/conftest.err)
13885 cat out/conftest.err >&5
13886 echo "$as_me:13886: \$? = $ac_status" >&5
13887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889 # The compiler can only warn and ignore the option if not recognized
13890 # So say no if there are warnings
13891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894 lt_cv_prog_compiler_c_o_F77=yes
13899 # SGI C++ compiler will create directory out/ii_files/ for
13900 # template instantiation
13901 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13902 $rm out/* && rmdir out
13908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13912 hard_links="nottested"
13913 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13914 # do not overwrite the value of need_locks provided by the user
13915 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921 ln conftest.a conftest.b 2>&5 || hard_links=no
13922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923 { echo "$as_me:$LINENO: result: $hard_links" >&5
13924 echo "${ECHO_T}$hard_links" >&6; }
13925 if test "$hard_links" = no; then
13926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13938 allow_undefined_flag_F77=
13939 enable_shared_with_static_runtimes_F77=no
13941 archive_expsym_cmds_F77=
13942 old_archive_From_new_cmds_F77=
13943 old_archive_from_expsyms_cmds_F77=
13944 export_dynamic_flag_spec_F77=
13945 whole_archive_flag_spec_F77=
13946 thread_safe_flag_spec_F77=
13947 hardcode_libdir_flag_spec_F77=
13948 hardcode_libdir_flag_spec_ld_F77=
13949 hardcode_libdir_separator_F77=
13950 hardcode_direct_F77=no
13951 hardcode_minus_L_F77=no
13952 hardcode_shlibpath_var_F77=unsupported
13953 link_all_deplibs_F77=unknown
13954 hardcode_automatic_F77=no
13956 module_expsym_cmds_F77=
13957 always_export_symbols_F77=no
13958 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13959 # include_expsyms should be a list of space-separated symbols to be *always*
13960 # included in the symbol list
13961 include_expsyms_F77=
13962 # exclude_expsyms can be an extended regexp of symbols to exclude
13963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13965 # as well as any symbol that contains `d'.
13966 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13968 # platforms (ab)use it in PIC code, but their linkers get confused if
13969 # the symbol is explicitly referenced. Since portable code cannot
13970 # rely on this symbol name, it's probably fine to never include it in
13971 # preloaded symbol tables.
13972 extract_expsyms_cmds=
13973 # Just being paranoid about ensuring that cc_basename is set.
13974 for cc_temp in $compiler""; do
13976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13985 cygwin* | mingw* | pw32*)
13986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13987 # When not using gcc, we currently assume that we are using
13988 # Microsoft Visual C++.
13989 if test "$GCC" != yes; then
13994 # we just hope/assume this is gcc and not c89 (= MSVC++)
14003 if test "$with_gnu_ld" = yes; then
14004 # If archive_cmds runs LD, not CC, wlarc should be empty
14007 # Set some defaults for GNU ld with shared library support. These
14008 # are reset later if shared libraries are not supported. Putting them
14009 # here allows them to be overridden if necessary.
14010 runpath_var=LD_RUN_PATH
14011 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14012 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14013 # ancient GNU ld didn't support --whole-archive et. al.
14014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14015 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017 whole_archive_flag_spec_F77=
14019 supports_anon_versioning=no
14020 case `$LD -v 2>/dev/null` in
14021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14024 *\ 2.11.*) ;; # other 2.11 versions
14025 *) supports_anon_versioning=yes ;;
14028 # See if GNU ld supports shared libraries.
14030 aix3* | aix4* | aix5*)
14031 # On AIX/PPC, the GNU linker is very broken
14032 if test "$host_cpu" != ia64; then
14036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14037 *** to be unable to reliably create shared libraries on AIX.
14038 *** Therefore, libtool is disabling shared libraries support. If you
14039 *** really care for shared libraries, you may want to modify your PATH
14040 *** so that a non-GNU linker is found, and then restart.
14047 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)'
14048 hardcode_libdir_flag_spec_F77='-L$libdir'
14049 hardcode_minus_L_F77=yes
14051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14052 # that the semantics of dynamic libraries on AmigaOS, at least up
14053 # to version 4, is to share data among multiple programs linked
14054 # with the same dynamic library. Since this doesn't match the
14055 # behavior of shared libraries on other platforms, we can't use
14061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14062 allow_undefined_flag_F77=unsupported
14063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14064 # support --undefined. This deserves some investigation. FIXME
14065 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14071 cygwin* | mingw* | pw32*)
14072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14073 # as there is no search path for DLLs.
14074 hardcode_libdir_flag_spec_F77='-L$libdir'
14075 allow_undefined_flag_F77=unsupported
14076 always_export_symbols_F77=no
14077 enable_shared_with_static_runtimes_F77=yes
14078 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14082 # If the export-symbols file already is a .def file (1st line
14083 # is EXPORTS), use it as is; otherwise, prepend...
14084 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14085 cp $export_symbols $output_objdir/$soname.def;
14087 echo EXPORTS > $output_objdir/$soname.def;
14088 cat $export_symbols >> $output_objdir/$soname.def;
14090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14097 hardcode_direct_F77=no
14098 hardcode_shlibpath_var_F77=no
14099 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14100 export_dynamic_flag_spec_F77='${wl}-E'
14101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14102 # Instead, shared libraries are loaded at an image base (0x10000000 by
14103 # default) and relocated if they conflict, which is a slow very memory
14104 # consuming and fragmenting process. To avoid this, we pick a random,
14105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14107 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'
14108 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'
14112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14114 case $cc_basename,$host_cpu in
14115 pgcc*) # Portland Group C compiler
14116 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'
14117 tmp_addflag=' $pic_flag'
14119 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14120 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'
14121 tmp_addflag=' $pic_flag -Mnomain' ;;
14122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14123 tmp_addflag=' -i_dynamic' ;;
14124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14125 tmp_addflag=' -i_dynamic -nofor_main' ;;
14126 ifc* | ifort*) # Intel Fortran compiler
14127 tmp_addflag=' -nofor_main' ;;
14129 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14131 if test $supports_anon_versioning = yes; then
14132 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14134 $echo "local: *; };" >> $output_objdir/$libname.ver~
14135 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14144 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14147 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14158 *** create shared libraries on Solaris systems. Therefore, libtool
14159 *** is disabling shared libraries support. We urge you to upgrade GNU
14160 *** binutils to release 2.9.1 or newer. Another option is to modify
14161 *** your PATH or compiler configuration so that the native linker is
14162 *** used, and then restart.
14165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14174 case `$LD -v 2>&1` in
14175 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14180 *** reliably create shared libraries on SCO systems. Therefore, libtool
14181 *** is disabling shared libraries support. We urge you to upgrade GNU
14182 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14183 *** your PATH or compiler configuration so that the native linker is
14184 *** used, and then restart.
14189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14190 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14192 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14201 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_direct_F77=yes
14204 hardcode_shlibpath_var_F77=no
14208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14209 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14217 if test "$ld_shlibs_F77" = no; then
14219 hardcode_libdir_flag_spec_F77=
14220 export_dynamic_flag_spec_F77=
14221 whole_archive_flag_spec_F77=
14224 # PORTME fill in a description of your system's linker (not GNU ld)
14227 allow_undefined_flag_F77=unsupported
14228 always_export_symbols_F77=yes
14229 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'
14230 # Note: this linker hardcodes the directories in LIBPATH if there
14231 # are no directories specified by -L.
14232 hardcode_minus_L_F77=yes
14233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14234 # Neither direct hardcoding nor static linking is supported with a
14236 hardcode_direct_F77=unsupported
14241 if test "$host_cpu" = ia64; then
14242 # On IA64, the linker does run time linking by default, so we don't
14243 # have to do anything special.
14244 aix_use_runtimelinking=no
14245 exp_sym_flag='-Bexport'
14248 # If we're using GNU nm, then we don't want the "-C" option.
14249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14251 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'
14253 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'
14255 aix_use_runtimelinking=no
14257 # Test if we are trying to use run time linking or normal
14258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14259 # need to do runtime linking.
14260 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14261 for ld_flag in $LDFLAGS; do
14262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14263 aix_use_runtimelinking=yes
14270 exp_sym_flag='-bexport'
14271 no_entry_flag='-bnoentry'
14274 # When large executables or shared objects are built, AIX ld can
14275 # have problems creating the table of contents. If linking a library
14276 # or program results in "error TOC overflow" add -mminimal-toc to
14277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14280 archive_cmds_F77=''
14281 hardcode_direct_F77=yes
14282 hardcode_libdir_separator_F77=':'
14283 link_all_deplibs_F77=yes
14285 if test "$GCC" = yes; then
14286 case $host_os in aix4.[012]|aix4.[012].*)
14287 # We only want to do this on AIX 4.2 and lower, the check
14288 # below for broken collect2 doesn't work under 4.3+
14289 collect2name=`${CC} -print-prog-name=collect2`
14290 if test -f "$collect2name" && \
14291 strings "$collect2name" | grep resolve_lib_name >/dev/null
14293 # We have reworked collect2
14294 hardcode_direct_F77=yes
14296 # We have old collect2
14297 hardcode_direct_F77=unsupported
14298 # It fails to find uninstalled libraries when the uninstalled
14299 # path is not listed in the libpath. Setting hardcode_minus_L
14300 # to unsupported forces relinking
14301 hardcode_minus_L_F77=yes
14302 hardcode_libdir_flag_spec_F77='-L$libdir'
14303 hardcode_libdir_separator_F77=
14307 shared_flag='-shared'
14308 if test "$aix_use_runtimelinking" = yes; then
14309 shared_flag="$shared_flag "'${wl}-G'
14313 if test "$host_cpu" = ia64; then
14314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14315 # chokes on -Wl,-G. The following line is correct:
14318 if test "$aix_use_runtimelinking" = yes; then
14319 shared_flag='${wl}-G'
14321 shared_flag='${wl}-bM:SRE'
14326 # It seems that -bexpall does not export symbols beginning with
14327 # underscore (_), so it is better to generate a list of symbols to export.
14328 always_export_symbols_F77=yes
14329 if test "$aix_use_runtimelinking" = yes; then
14330 # Warning - without using the other runtime loading flags (-brtl),
14331 # -berok will link without error, but may produce a broken library.
14332 allow_undefined_flag_F77='-berok'
14333 # Determine the default libpath from the value encoded in an empty executable.
14334 cat >conftest.$ac_ext <<_ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_f77_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest$ac_exeext &&
14356 $as_test_x conftest$ac_exeext; then
14358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14360 # Check for a 64-bit object if we didn't find anything.
14361 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; }
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14371 conftest$ac_exeext conftest.$ac_ext
14372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14374 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14375 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"
14377 if test "$host_cpu" = ia64; then
14378 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14379 allow_undefined_flag_F77="-z nodefs"
14380 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"
14382 # Determine the default libpath from the value encoded in an empty executable.
14383 cat >conftest.$ac_ext <<_ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_f77_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest$ac_exeext &&
14405 $as_test_x conftest$ac_exeext; then
14407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14409 # Check for a 64-bit object if we didn't find anything.
14410 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; }
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420 conftest$ac_exeext conftest.$ac_ext
14421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14423 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14424 # Warning - without using the other run time loading flags,
14425 # -berok will link without error, but may produce a broken library.
14426 no_undefined_flag_F77=' ${wl}-bernotok'
14427 allow_undefined_flag_F77=' ${wl}-berok'
14428 # Exported symbols can be pulled into shared objects from archives
14429 whole_archive_flag_spec_F77='$convenience'
14430 archive_cmds_need_lc_F77=yes
14431 # This is similar to how AIX traditionally builds its shared libraries.
14432 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'
14438 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)'
14439 hardcode_libdir_flag_spec_F77='-L$libdir'
14440 hardcode_minus_L_F77=yes
14441 # see comment about different semantics on the GNU ld section
14446 export_dynamic_flag_spec_F77=-rdynamic
14449 cygwin* | mingw* | pw32*)
14450 # When not using gcc, we currently assume that we are using
14451 # Microsoft Visual C++.
14452 # hardcode_libdir_flag_spec is actually meaningless, as there is
14453 # no search path for DLLs.
14454 hardcode_libdir_flag_spec_F77=' '
14455 allow_undefined_flag_F77=unsupported
14456 # Tell ltmain to make .lib files, not .a files.
14458 # Tell ltmain to make .dll files, not .so files.
14460 # FIXME: Setting linknames here is a bad hack.
14461 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14462 # The linker will automatically build a .lib file if we build a DLL.
14463 old_archive_From_new_cmds_F77='true'
14464 # FIXME: Should let the user specify the lib program.
14465 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14466 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14467 enable_shared_with_static_runtimes_F77=yes
14470 darwin* | rhapsody*)
14472 rhapsody* | darwin1.[012])
14473 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14476 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14477 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14479 case ${MACOSX_DEPLOYMENT_TARGET} in
14481 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14484 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14490 archive_cmds_need_lc_F77=no
14491 hardcode_direct_F77=no
14492 hardcode_automatic_F77=yes
14493 hardcode_shlibpath_var_F77=unsupported
14494 whole_archive_flag_spec_F77=''
14495 link_all_deplibs_F77=yes
14496 if test "$GCC" = yes ; then
14497 output_verbose_link_cmd='echo'
14498 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14499 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14500 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14501 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}'
14502 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}'
14504 case $cc_basename in
14506 output_verbose_link_cmd='echo'
14507 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14508 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14509 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14510 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}'
14511 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}'
14521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14522 hardcode_libdir_flag_spec_F77='-L$libdir'
14523 hardcode_shlibpath_var_F77=no
14530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14531 # support. Future versions do this automatically, but an explicit c++rt0.o
14532 # does not break anything, and helps significantly (at the cost of a little
14535 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14536 hardcode_libdir_flag_spec_F77='-R$libdir'
14537 hardcode_direct_F77=yes
14538 hardcode_shlibpath_var_F77=no
14541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14543 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544 hardcode_direct_F77=yes
14545 hardcode_minus_L_F77=yes
14546 hardcode_shlibpath_var_F77=no
14549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14550 freebsd* | kfreebsd*-gnu | dragonfly*)
14551 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14552 hardcode_libdir_flag_spec_F77='-R$libdir'
14553 hardcode_direct_F77=yes
14554 hardcode_shlibpath_var_F77=no
14558 if test "$GCC" = yes; then
14559 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'
14561 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'
14563 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14564 hardcode_libdir_separator_F77=:
14565 hardcode_direct_F77=yes
14567 # hardcode_minus_L: Not really in the search PATH,
14568 # but as the default location of the library.
14569 hardcode_minus_L_F77=yes
14570 export_dynamic_flag_spec_F77='${wl}-E'
14574 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14575 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14579 if test "$with_gnu_ld" = no; then
14580 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14581 hardcode_libdir_separator_F77=:
14583 hardcode_direct_F77=yes
14584 export_dynamic_flag_spec_F77='${wl}-E'
14586 # hardcode_minus_L: Not really in the search PATH,
14587 # but as the default location of the library.
14588 hardcode_minus_L_F77=yes
14593 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14596 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14602 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14614 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14618 if test "$with_gnu_ld" = no; then
14619 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14620 hardcode_libdir_separator_F77=:
14624 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14625 hardcode_direct_F77=no
14626 hardcode_shlibpath_var_F77=no
14629 hardcode_direct_F77=yes
14630 export_dynamic_flag_spec_F77='${wl}-E'
14632 # hardcode_minus_L: Not really in the search PATH,
14633 # but as the default location of the library.
14634 hardcode_minus_L_F77=yes
14640 irix5* | irix6* | nonstopux*)
14641 if test "$GCC" = yes; then
14642 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'
14644 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'
14645 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14647 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14648 hardcode_libdir_separator_F77=:
14649 link_all_deplibs_F77=yes
14653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14656 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14658 hardcode_libdir_flag_spec_F77='-R$libdir'
14659 hardcode_direct_F77=yes
14660 hardcode_shlibpath_var_F77=no
14664 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14665 hardcode_direct_F77=yes
14666 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14667 hardcode_libdir_separator_F77=:
14668 hardcode_shlibpath_var_F77=no
14672 hardcode_direct_F77=yes
14673 hardcode_shlibpath_var_F77=no
14674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14675 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14676 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14677 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14678 export_dynamic_flag_spec_F77='${wl}-E'
14681 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14682 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14683 hardcode_libdir_flag_spec_F77='-R$libdir'
14686 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14687 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14694 hardcode_libdir_flag_spec_F77='-L$libdir'
14695 hardcode_minus_L_F77=yes
14696 allow_undefined_flag_F77=unsupported
14697 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'
14698 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14702 if test "$GCC" = yes; then
14703 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14704 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'
14706 allow_undefined_flag_F77=' -expect_unresolved \*'
14707 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'
14709 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14710 hardcode_libdir_separator_F77=:
14713 osf4* | osf5*) # as osf3* with the addition of -msym flag
14714 if test "$GCC" = yes; then
14715 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14716 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'
14717 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14719 allow_undefined_flag_F77=' -expect_unresolved \*'
14720 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'
14721 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~
14722 $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'
14724 # Both c and cxx compiler support -rpath directly
14725 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14727 hardcode_libdir_separator_F77=:
14731 no_undefined_flag_F77=' -z text'
14732 if test "$GCC" = yes; then
14734 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14735 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14736 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14739 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14741 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14743 hardcode_libdir_flag_spec_F77='-R$libdir'
14744 hardcode_shlibpath_var_F77=no
14746 solaris2.[0-5] | solaris2.[0-5].*) ;;
14748 # The compiler driver will combine linker options so we
14749 # cannot just pass the convience library names through
14750 # without $wl, iff we do not link with $LD.
14751 # Luckily, gcc supports the same syntax we need for Sun Studio.
14752 # Supported since Solaris 2.6 (maybe 2.5.1?)
14755 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14757 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' ;;
14760 link_all_deplibs_F77=yes
14764 if test "x$host_vendor" = xsequent; then
14765 # Use $CC to link under sequent, because it throws in some extra .o
14766 # files that make .init and .fini sections work.
14767 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14769 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14771 hardcode_libdir_flag_spec_F77='-L$libdir'
14772 hardcode_direct_F77=yes
14773 hardcode_minus_L_F77=yes
14774 hardcode_shlibpath_var_F77=no
14778 case $host_vendor in
14780 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14781 hardcode_direct_F77=yes # is this really true???
14784 ## LD is ld it makes a PLAMLIB
14785 ## CC just makes a GrossModule.
14786 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14787 reload_cmds_F77='$CC -r -o $output$reload_objs'
14788 hardcode_direct_F77=no
14791 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14792 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14795 runpath_var='LD_RUN_PATH'
14796 hardcode_shlibpath_var_F77=no
14800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14801 hardcode_shlibpath_var_F77=no
14802 export_dynamic_flag_spec_F77='-Bexport'
14806 if test -d /usr/nec; then
14807 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14808 hardcode_shlibpath_var_F77=no
14809 runpath_var=LD_RUN_PATH
14810 hardcode_runpath_var=yes
14815 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14816 no_undefined_flag_F77='${wl}-z,text'
14817 archive_cmds_need_lc_F77=no
14818 hardcode_shlibpath_var_F77=no
14819 runpath_var='LD_RUN_PATH'
14821 if test "$GCC" = yes; then
14822 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 sysv5* | sco3.2v5* | sco5v6*)
14831 # Note: We can NOT use -z defs as we might desire, because we do not
14832 # link with -lc, and that would cause any symbols used from libc to
14833 # always be unresolved, which means just about no library would
14834 # ever link correctly. If we're not using GNU ld we use -z text
14835 # though, which does catch some bad symbols but isn't as heavy-handed
14837 no_undefined_flag_F77='${wl}-z,text'
14838 allow_undefined_flag_F77='${wl}-z,nodefs'
14839 archive_cmds_need_lc_F77=no
14840 hardcode_shlibpath_var_F77=no
14841 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14842 hardcode_libdir_separator_F77=':'
14843 link_all_deplibs_F77=yes
14844 export_dynamic_flag_spec_F77='${wl}-Bexport'
14845 runpath_var='LD_RUN_PATH'
14847 if test "$GCC" = yes; then
14848 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14858 hardcode_libdir_flag_spec_F77='-L$libdir'
14859 hardcode_shlibpath_var_F77=no
14868 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14869 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14870 test "$ld_shlibs_F77" = no && can_build_shared=no
14873 # Do we need to explicitly link libc?
14875 case "x$archive_cmds_need_lc_F77" in
14877 # Assume -lc should be added
14878 archive_cmds_need_lc_F77=yes
14880 if test "$enable_shared" = yes && test "$GCC" = yes; then
14881 case $archive_cmds_F77 in
14883 # FIXME: we may have to deal with multi-command sequences.
14886 # Test whether the compiler implicitly links with -lc since on some
14887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14888 # to ld, don't add -lc before -lgcc.
14889 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14890 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895 (eval $ac_compile) 2>&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } 2>conftest.err; then
14901 libobjs=conftest.$ac_objext
14903 wl=$lt_prog_compiler_wl_F77
14904 pic_flag=$lt_prog_compiler_pic_F77
14910 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14911 allow_undefined_flag_F77=
14912 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14913 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }
14918 archive_cmds_need_lc_F77=no
14920 archive_cmds_need_lc_F77=yes
14922 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14924 cat conftest.err 1>&5
14927 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14928 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14935 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14936 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14937 library_names_spec=
14938 libname_spec='lib$name'
14942 postuninstall_cmds=
14946 shlibpath_overrides_runpath=unknown
14948 dynamic_linker="$host_os ld.so"
14949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14950 if test "$GCC" = yes; then
14951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14952 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14953 # if the path contains ";" then we assume it to be the separator
14954 # otherwise default to the standard path separator (i.e. ":") - it is
14955 # assumed that no part of a normal pathname contains ";" but that should
14956 # okay in the real world where ";" in dirpaths is itself problematic.
14957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14964 need_lib_prefix=unknown
14965 hardcode_into_libs=no
14967 # when you set need_version to no, make sure it does not cause -set_version
14968 # flags to be left without arguments
14969 need_version=unknown
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14975 shlibpath_var=LIBPATH
14977 # AIX 3 has no versioning support, so we append a major version to the name.
14978 soname_spec='${libname}${release}${shared_ext}$major'
14985 hardcode_into_libs=yes
14986 if test "$host_cpu" = ia64; then
14987 # AIX 5 supports IA64
14988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14989 shlibpath_var=LD_LIBRARY_PATH
14991 # With GCC up to 2.95.x, collect2 would create an import file
14992 # for dependence libraries. The import file would start with
14993 # the line `#! .'. This would cause the generated library to
14994 # depend on `.', always an invalid library. This was fixed in
14995 # development snapshots of GCC prior to 3.0.
14997 aix4 | aix4.[01] | aix4.[01].*)
14998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15000 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15003 can_build_shared=no
15007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15008 # soname into executable. Probably we can add versioning support to
15009 # collect2, so additional links can be useful in future.
15010 if test "$aix_use_runtimelinking" = yes; then
15011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15012 # instead of lib<name>.a to let people know that these are not
15013 # typical AIX shared libraries.
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 # We preserve .a as extension for shared libraries through AIX4.2
15017 # and later when we are not doing run time linking.
15018 library_names_spec='${libname}${release}.a $libname.a'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15021 shlibpath_var=LIBPATH
15026 library_names_spec='$libname.ixlibrary $libname.a'
15027 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15028 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'
15032 library_names_spec='${libname}${shared_ext}'
15033 dynamic_linker="$host_os ld.so"
15034 shlibpath_var=LIBRARY_PATH
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 soname_spec='${libname}${release}${shared_ext}$major'
15042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15046 # the default ld.so.conf also contains /usr/contrib/lib and
15047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15048 # libtool to hard-code these into programs
15051 cygwin* | mingw* | pw32*)
15052 version_type=windows
15057 case $GCC,$host_os in
15058 yes,cygwin* | yes,mingw* | yes,pw32*)
15059 library_names_spec='$libname.dll.a'
15060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15061 postinstall_cmds='base_file=`basename \${file}`~
15062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15063 dldir=$destdir/`dirname \$dlpath`~
15064 test -d \$dldir || mkdir -p \$dldir~
15065 $install_prog $dir/$dlname \$dldir/$dlname~
15066 chmod a+x \$dldir/$dlname'
15067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15068 dlpath=$dir/\$dldll~
15070 shlibpath_overrides_runpath=yes
15074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15076 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15079 # MinGW DLLs use traditional 'lib' prefix
15080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15082 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15083 # It is most probably a Windows format PATH printed by
15084 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15085 # path with ; separators, and with drive letters. We can handle the
15086 # drive letters (cygwin fileutils understands them), so leave them,
15087 # especially as we might pass files found there to a mingw objdump,
15088 # which wouldn't understand a cygwinified path. Ahh.
15089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15095 # pw32 DLLs use 'pw' prefix rather than 'lib'
15096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15105 dynamic_linker='Win32 ld.exe'
15106 # FIXME: first we should search . and the directory the executable is in
15110 darwin* | rhapsody*)
15111 dynamic_linker="$host_os dyld"
15112 version_type=darwin
15115 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15116 soname_spec='${libname}${release}${major}$shared_ext'
15117 shlibpath_overrides_runpath=yes
15118 shlibpath_var=DYLD_LIBRARY_PATH
15119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15120 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15121 if test "$GCC" = yes; then
15122 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"`
15124 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 shlibpath_var=LD_LIBRARY_PATH
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 shlibpath_overrides_runpath=no
15150 hardcode_into_libs=yes
15151 dynamic_linker='GNU ld.so'
15154 freebsd* | dragonfly*)
15155 # DragonFly does not have aout. When/if they implement a new
15156 # versioning mechanism, adjust this.
15157 if test -x /usr/bin/objformat; then
15158 objformat=`/usr/bin/objformat`
15161 freebsd[123]*) objformat=aout ;;
15162 *) objformat=elf ;;
15165 version_type=freebsd-$objformat
15166 case $version_type in
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15177 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes
15182 freebsd3.[01]* | freebsdelf3.[01]*)
15183 shlibpath_overrides_runpath=yes
15184 hardcode_into_libs=yes
15186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15188 shlibpath_overrides_runpath=no
15189 hardcode_into_libs=yes
15191 freebsd*) # from 4.6 on
15192 shlibpath_overrides_runpath=yes
15193 hardcode_into_libs=yes
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 hardcode_into_libs=yes
15208 hpux9* | hpux10* | hpux11*)
15209 # Give a soname corresponding to the major version so that dld.sl refuses to
15210 # link against other versions.
15217 hardcode_into_libs=yes
15218 dynamic_linker="$host_os dld.so"
15219 shlibpath_var=LD_LIBRARY_PATH
15220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 if test "X$HPUX_IA64_MODE" = X32; then
15224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15232 hardcode_into_libs=yes
15233 dynamic_linker="$host_os dld.sl"
15234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15243 dynamic_linker="$host_os dld.sl"
15244 shlibpath_var=SHLIB_PATH
15245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247 soname_spec='${libname}${release}${shared_ext}$major'
15250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15251 postinstall_cmds='chmod 555 $lib'
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=no
15263 hardcode_into_libs=yes
15266 irix5* | irix6* | nonstopux*)
15268 nonstopux*) version_type=nonstopux ;;
15270 if test "$lt_cv_prog_gnu_ld" = yes; then
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15281 irix5* | nonstopux*)
15282 libsuff= shlibsuff=
15285 case $LD in # libtool.m4 will add one of these switches to LD
15286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15287 libsuff= shlibsuff= libmagic=32-bit;;
15288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15289 libsuff=32 shlibsuff=N32 libmagic=N32;;
15290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15292 *) libsuff= shlibsuff= libmagic=never-match;;
15296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15297 shlibpath_overrides_runpath=no
15298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15300 hardcode_into_libs=yes
15303 # No shared lib support for Linux oldld, aout, or coff.
15304 linux*oldld* | linux*aout* | linux*coff*)
15308 # This must be Linux ELF.
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15316 shlibpath_var=LD_LIBRARY_PATH
15317 shlibpath_overrides_runpath=no
15318 # This implies no fast_install, which is unacceptable.
15319 # Some rework will be needed to allow for fast_install
15320 # before this can be enabled.
15321 hardcode_into_libs=yes
15323 # Append ld.so.conf contents to the search path
15324 if test -f /etc/ld.so.conf; then
15325 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' ' '`
15326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15329 # We used to test for /lib/ld.so.1 and disable shared libraries on
15330 # powerpc, because MkLinux only supported shared libraries with the
15331 # GNU dynamic linker. Since this was broken with cross compilers,
15332 # most powerpc-linux boxes support dynamic linking these days and
15333 # people can always --disable-shared, the test was removed, and we
15334 # assume the GNU/Linux dynamic linker is in use.
15335 dynamic_linker='GNU/Linux ld.so'
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15343 soname_spec='${libname}${release}${shared_ext}$major'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=no
15346 hardcode_into_libs=yes
15347 dynamic_linker='GNU ld.so'
15354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15357 dynamic_linker='NetBSD (a.out) ld.so'
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360 soname_spec='${libname}${release}${shared_ext}$major'
15361 dynamic_linker='NetBSD ld.elf_so'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=yes
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 shlibpath_overrides_runpath=yes
15387 sys_lib_dlsearch_path_spec="/usr/lib"
15389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15392 *) need_version=no ;;
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15399 openbsd2.[89] | openbsd2.[89].*)
15400 shlibpath_overrides_runpath=no
15403 shlibpath_overrides_runpath=yes
15407 shlibpath_overrides_runpath=yes
15412 libname_spec='$name'
15415 library_names_spec='$libname${shared_ext} $libname.a'
15416 dynamic_linker='OS/2 ld.exe'
15417 shlibpath_var=LIBPATH
15420 osf3* | osf4* | osf5*)
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15439 hardcode_into_libs=yes
15440 # ldd complains unless libraries are executable
15441 postinstall_cmds='chmod +x $lib'
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15448 shlibpath_var=LD_LIBRARY_PATH
15449 shlibpath_overrides_runpath=yes
15450 if test "$with_gnu_ld" = yes; then
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 shlibpath_var=LD_LIBRARY_PATH
15461 case $host_vendor in
15463 shlibpath_overrides_runpath=no
15465 export_dynamic_flag_spec='${wl}-Blargedynsym'
15466 runpath_var=LD_RUN_PATH
15474 shlibpath_overrides_runpath=no
15475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15481 if test -d /usr/nec ;then
15483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15484 soname_spec='$libname${shared_ext}.$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15490 version_type=freebsd-elf
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 hardcode_into_libs=yes
15497 if test "$with_gnu_ld" = yes; then
15498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15499 shlibpath_overrides_runpath=no
15501 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15502 shlibpath_overrides_runpath=yes
15505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15509 sys_lib_dlsearch_path_spec='/usr/lib'
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15523 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15524 echo "${ECHO_T}$dynamic_linker" >&6; }
15525 test "$dynamic_linker" = no && can_build_shared=no
15527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15528 if test "$GCC" = yes; then
15529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15532 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15533 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15534 hardcode_action_F77=
15535 if test -n "$hardcode_libdir_flag_spec_F77" || \
15536 test -n "$runpath_var_F77" || \
15537 test "X$hardcode_automatic_F77" = "Xyes" ; then
15539 # We can hardcode non-existant directories.
15540 if test "$hardcode_direct_F77" != no &&
15541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15542 # have to relink, otherwise we might link with an installed library
15543 # when we should be linking with a yet-to-be-installed one
15544 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15545 test "$hardcode_minus_L_F77" != no; then
15546 # Linking always hardcodes the temporary library directory.
15547 hardcode_action_F77=relink
15549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15550 hardcode_action_F77=immediate
15553 # We cannot hardcode anything, or else we can only hardcode existing
15555 hardcode_action_F77=unsupported
15557 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15558 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15560 if test "$hardcode_action_F77" = relink; then
15561 # Fast installation is not supported
15562 enable_fast_install=no
15563 elif test "$shlibpath_overrides_runpath" = yes ||
15564 test "$enable_shared" = no; then
15565 # Fast installation is not necessary
15566 enable_fast_install=needless
15570 # The else clause should only fire when bootstrapping the
15571 # libtool distribution, otherwise you forgot to ship ltmain.sh
15572 # with your package, and you will get complaints that there are
15573 # no rules to generate ltmain.sh.
15574 if test -f "$ltmain"; then
15575 # See if we are running on zsh, and set the options which allow our commands through
15576 # without removal of \ escapes.
15577 if test -n "${ZSH_VERSION+set}" ; then
15578 setopt NO_GLOB_SUBST
15580 # Now quote all the things that may contain metacharacters while being
15581 # careful not to overquote the AC_SUBSTed values. We take copies of the
15582 # variables and quote the copies for generation of the libtool script.
15583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15587 deplibs_check_method reload_flag reload_cmds need_locks \
15588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15589 lt_cv_sys_global_symbol_to_c_name_address \
15590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15591 old_postinstall_cmds old_postuninstall_cmds \
15595 lt_prog_compiler_wl_F77 \
15596 lt_prog_compiler_pic_F77 \
15597 lt_prog_compiler_static_F77 \
15598 lt_prog_compiler_no_builtin_flag_F77 \
15599 export_dynamic_flag_spec_F77 \
15600 thread_safe_flag_spec_F77 \
15601 whole_archive_flag_spec_F77 \
15602 enable_shared_with_static_runtimes_F77 \
15603 old_archive_cmds_F77 \
15604 old_archive_from_new_cmds_F77 \
15605 predep_objects_F77 \
15606 postdep_objects_F77 \
15609 compiler_lib_search_path_F77 \
15611 archive_expsym_cmds_F77 \
15612 postinstall_cmds_F77 \
15613 postuninstall_cmds_F77 \
15614 old_archive_from_expsyms_cmds_F77 \
15615 allow_undefined_flag_F77 \
15616 no_undefined_flag_F77 \
15617 export_symbols_cmds_F77 \
15618 hardcode_libdir_flag_spec_F77 \
15619 hardcode_libdir_flag_spec_ld_F77 \
15620 hardcode_libdir_separator_F77 \
15621 hardcode_automatic_F77 \
15623 module_expsym_cmds_F77 \
15624 lt_cv_prog_compiler_c_o_F77 \
15625 exclude_expsyms_F77 \
15626 include_expsyms_F77; do
15629 old_archive_cmds_F77 | \
15630 old_archive_from_new_cmds_F77 | \
15631 archive_cmds_F77 | \
15632 archive_expsym_cmds_F77 | \
15633 module_cmds_F77 | \
15634 module_expsym_cmds_F77 | \
15635 old_archive_from_expsyms_cmds_F77 | \
15636 export_symbols_cmds_F77 | \
15637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15638 postinstall_cmds | postuninstall_cmds | \
15639 old_postinstall_cmds | old_postuninstall_cmds | \
15640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15641 # Double-quote double-evaled strings.
15642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15651 *'\$0 --fallback-echo"')
15652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15658 cat <<__EOF__ >> "$cfgfile"
15659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15663 # Shell to use when invoking shell scripts.
15666 # Whether or not to build shared libraries.
15667 build_libtool_libs=$enable_shared
15669 # Whether or not to build static libraries.
15670 build_old_libs=$enable_static
15672 # Whether or not to add -lc for building shared libraries.
15673 build_libtool_need_lc=$archive_cmds_need_lc_F77
15675 # Whether or not to disallow shared libs when runtime libs are static
15676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15678 # Whether or not to optimize for fast installation.
15679 fast_install=$enable_fast_install
15682 host_alias=$host_alias
15686 # The build system.
15687 build_alias=$build_alias
15691 # An echo program that does not interpret backslashes.
15696 AR_FLAGS=$lt_AR_FLAGS
15701 # LTCC compiler flags.
15702 LTCFLAGS=$lt_LTCFLAGS
15704 # A language-specific compiler.
15705 CC=$lt_compiler_F77
15707 # Is the compiler the GNU C compiler?
15713 # The linker used to build libraries.
15716 # Whether we need hard or soft links.
15719 # A BSD-compatible nm program.
15722 # A symbol stripping program
15725 # Used to examine libraries when file_magic_cmd begins "file"
15726 MAGIC_CMD=$MAGIC_CMD
15728 # Used on cygwin: DLL creation program.
15731 # Used on cygwin: object dumper.
15734 # Used on cygwin: assembler.
15737 # The name of the directory that contains temporary libtool files.
15740 # How to create reloadable object files.
15741 reload_flag=$lt_reload_flag
15742 reload_cmds=$lt_reload_cmds
15744 # How to pass a linker flag through the compiler.
15745 wl=$lt_lt_prog_compiler_wl_F77
15747 # Object file suffix (normally "o").
15748 objext="$ac_objext"
15750 # Old archive suffix (normally "a").
15753 # Shared library suffix (normally ".so").
15754 shrext_cmds='$shrext_cmds'
15756 # Executable file suffix (normally "").
15759 # Additional compiler flags for building library objects.
15760 pic_flag=$lt_lt_prog_compiler_pic_F77
15763 # What is the maximum length of a command?
15764 max_cmd_len=$lt_cv_sys_max_cmd_len
15766 # Does compiler simultaneously support -c and -o options?
15767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15769 # Must we lock files when doing compilation?
15770 need_locks=$lt_need_locks
15772 # Do we need the lib prefix for modules?
15773 need_lib_prefix=$need_lib_prefix
15775 # Do we need a version for libraries?
15776 need_version=$need_version
15778 # Whether dlopen is supported.
15779 dlopen_support=$enable_dlopen
15781 # Whether dlopen of programs is supported.
15782 dlopen_self=$enable_dlopen_self
15784 # Whether dlopen of statically linked programs is supported.
15785 dlopen_self_static=$enable_dlopen_self_static
15787 # Compiler flag to prevent dynamic linking.
15788 link_static_flag=$lt_lt_prog_compiler_static_F77
15790 # Compiler flag to turn off builtin functions.
15791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15793 # Compiler flag to allow reflexive dlopens.
15794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15796 # Compiler flag to generate shared objects directly from archives.
15797 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15799 # Compiler flag to generate thread-safe objects.
15800 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15802 # Library versioning type.
15803 version_type=$version_type
15805 # Format of library name prefix.
15806 libname_spec=$lt_libname_spec
15808 # List of archive names. First name is the real one, the rest are links.
15809 # The last name is the one that the linker finds with -lNAME.
15810 library_names_spec=$lt_library_names_spec
15812 # The coded name of the library, if different from the real name.
15813 soname_spec=$lt_soname_spec
15815 # Commands used to build and install an old-style archive.
15817 old_archive_cmds=$lt_old_archive_cmds_F77
15818 old_postinstall_cmds=$lt_old_postinstall_cmds
15819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15821 # Create an old-style archive from a shared archive.
15822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15824 # Create a temporary old-style archive to link instead of a shared archive.
15825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15827 # Commands used to build and install a shared archive.
15828 archive_cmds=$lt_archive_cmds_F77
15829 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15830 postinstall_cmds=$lt_postinstall_cmds
15831 postuninstall_cmds=$lt_postuninstall_cmds
15833 # Commands used to build a loadable module (assumed same as above if empty)
15834 module_cmds=$lt_module_cmds_F77
15835 module_expsym_cmds=$lt_module_expsym_cmds_F77
15837 # Commands to strip libraries.
15838 old_striplib=$lt_old_striplib
15839 striplib=$lt_striplib
15841 # Dependencies to place before the objects being linked to create a
15843 predep_objects=$lt_predep_objects_F77
15845 # Dependencies to place after the objects being linked to create a
15847 postdep_objects=$lt_postdep_objects_F77
15849 # Dependencies to place before the objects being linked to create a
15851 predeps=$lt_predeps_F77
15853 # Dependencies to place after the objects being linked to create a
15855 postdeps=$lt_postdeps_F77
15857 # The library search path used internally by the compiler when linking
15858 # a shared library.
15859 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15864 # Command to use when deplibs_check_method == file_magic.
15865 file_magic_cmd=$lt_file_magic_cmd
15867 # Flag that allows shared libraries with undefined symbols to be built.
15868 allow_undefined_flag=$lt_allow_undefined_flag_F77
15870 # Flag that forces no undefined symbols.
15871 no_undefined_flag=$lt_no_undefined_flag_F77
15873 # Commands used to finish a libtool library installation in a directory.
15874 finish_cmds=$lt_finish_cmds
15876 # Same as above, but a single script fragment to be evaled but not shown.
15877 finish_eval=$lt_finish_eval
15879 # Take the output of nm and produce a listing of raw symbols and C names.
15880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15882 # Transform the output of nm in a proper C declaration
15883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15885 # Transform the output of nm in a C name address pair
15886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15888 # This is the shared library runtime path variable.
15889 runpath_var=$runpath_var
15891 # This is the shared library path variable.
15892 shlibpath_var=$shlibpath_var
15894 # Is shlibpath searched before the hard-coded library search path?
15895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15897 # How to hardcode a shared library path into an executable.
15898 hardcode_action=$hardcode_action_F77
15900 # Whether we should hardcode library paths into libraries.
15901 hardcode_into_libs=$hardcode_into_libs
15903 # Flag to hardcode \$libdir into a binary during linking.
15904 # This must work even if \$libdir does not exist.
15905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15907 # If ld is used when linking, flag to hardcode \$libdir into
15908 # a binary during linking. This must work even if \$libdir does
15910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15912 # Whether we need a single -rpath flag with a separated argument.
15913 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15916 # resulting binary.
15917 hardcode_direct=$hardcode_direct_F77
15919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_minus_L=$hardcode_minus_L_F77
15923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15924 # the resulting binary.
15925 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15927 # Set to yes if building a shared library automatically hardcodes DIR into the library
15928 # and all subsequent libraries and executables linked against it.
15929 hardcode_automatic=$hardcode_automatic_F77
15931 # Variables whose values should be saved in libtool wrapper scripts and
15932 # restored at relink time.
15933 variables_saved_for_relink="$variables_saved_for_relink"
15935 # Whether libtool must link a program against all its dependency libraries.
15936 link_all_deplibs=$link_all_deplibs_F77
15938 # Compile-time system search path for libraries
15939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15941 # Run-time system search path for libraries
15942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15944 # Fix the shell variable \$srcfile for the compiler.
15945 fix_srcfile_path="$fix_srcfile_path_F77"
15947 # Set to yes if exported symbols are required.
15948 always_export_symbols=$always_export_symbols_F77
15950 # The commands to list exported symbols.
15951 export_symbols_cmds=$lt_export_symbols_cmds_F77
15953 # The commands to extract the exported symbol list from a shared archive.
15954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15956 # Symbols that should not be listed in the preloaded symbols.
15957 exclude_expsyms=$lt_exclude_expsyms_F77
15959 # Symbols that must always be exported.
15960 include_expsyms=$lt_include_expsyms_F77
15962 # ### END LIBTOOL TAG CONFIG: $tagname
15968 # If there is no Makefile yet, we rely on a make rule to execute
15969 # `config.status --recheck' to rerun these tests and create the
15970 # libtool script then.
15971 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15972 if test -f "$ltmain_in"; then
15973 test -f Makefile && make "$ltmain"
15979 ac_cpp='$CPP $CPPFLAGS'
15980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15992 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15995 # Source file extension for Java test sources.
15998 # Object file extension for compiled Java test sources.
16002 # Code to be used in simple compile tests
16003 lt_simple_compile_test_code="class foo {}\n"
16005 # Code to be used in simple link tests
16006 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16010 # If no C compiler was specified, use CC.
16013 # If no C compiler flags were specified, use CFLAGS.
16014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16016 # Allow CC to be a program name with arguments.
16020 # save warnings/boilerplate of simple test code
16021 ac_outfile=conftest.$ac_objext
16022 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16024 _lt_compiler_boilerplate=`cat conftest.err`
16027 ac_outfile=conftest.$ac_objext
16028 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16030 _lt_linker_boilerplate=`cat conftest.err`
16034 # Allow CC to be a program name with arguments.
16039 for cc_temp in $compiler""; do
16041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16050 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16051 archive_cmds_need_lc_GCJ=no
16053 old_archive_cmds_GCJ=$old_archive_cmds
16056 ## There is no encapsulation within the following macros, do not change
16057 ## the running order or otherwise move them around unless you know exactly
16058 ## what you are doing...
16060 lt_prog_compiler_no_builtin_flag_GCJ=
16062 if test "$GCC" = yes; then
16063 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16066 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16067 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16068 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 lt_cv_prog_compiler_rtti_exceptions=no
16072 ac_outfile=conftest.$ac_objext
16073 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074 lt_compiler_flag="-fno-rtti -fno-exceptions"
16075 # Insert the option either (1) after the last *FLAGS variable, or
16076 # (2) before a word containing "conftest.", or (3) at the end.
16077 # Note that $ac_compile itself does not contain backslashes and begins
16078 # with a dollar sign (not a hyphen), so the echo should work correctly.
16079 # The option is referenced via a variable to avoid confusing sed.
16080 lt_compile=`echo "$ac_compile" | $SED \
16081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083 -e 's:$: $lt_compiler_flag:'`
16084 (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085 (eval "$lt_compile" 2>conftest.err)
16087 cat conftest.err >&5
16088 echo "$as_me:16088: \$? = $ac_status" >&5
16089 if (exit $ac_status) && test -s "$ac_outfile"; then
16090 # The compiler can only warn and ignore the option if not recognized
16091 # So say no if there are warnings other than the usual output.
16092 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095 lt_cv_prog_compiler_rtti_exceptions=yes
16101 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16105 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16112 lt_prog_compiler_wl_GCJ=
16113 lt_prog_compiler_pic_GCJ=
16114 lt_prog_compiler_static_GCJ=
16116 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16117 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16119 if test "$GCC" = yes; then
16120 lt_prog_compiler_wl_GCJ='-Wl,'
16121 lt_prog_compiler_static_GCJ='-static'
16125 # All AIX code is PIC.
16126 if test "$host_cpu" = ia64; then
16127 # AIX 5 now supports IA64 processor
16128 lt_prog_compiler_static_GCJ='-Bstatic'
16133 # FIXME: we need at least 68020 code to build shared libraries, but
16134 # adding the `-m68020' flag to GCC prevents building anything better,
16136 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16139 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16140 # PIC is the default for these OSes.
16143 mingw* | pw32* | os2*)
16144 # This hack is so that the source file can tell whether it is being
16145 # built for inclusion in a dll (and should export symbols for example).
16146 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16149 darwin* | rhapsody*)
16150 # PIC is the default on this platform
16151 # Common symbols not allowed in MH_DYLIB files
16152 lt_prog_compiler_pic_GCJ='-fno-common'
16156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16157 # Instead, we relocate shared libraries at runtime.
16161 # Just because we use GCC doesn't mean we suddenly get shared libraries
16162 # on systems that don't support them.
16163 lt_prog_compiler_can_build_shared_GCJ=no
16168 if test -d /usr/nec; then
16169 lt_prog_compiler_pic_GCJ=-Kconform_pic
16174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16175 # not for PA HP-UX.
16181 lt_prog_compiler_pic_GCJ='-fPIC'
16187 lt_prog_compiler_pic_GCJ='-fPIC'
16191 # PORTME Check for flag to pass linker flags through the system compiler.
16194 lt_prog_compiler_wl_GCJ='-Wl,'
16195 if test "$host_cpu" = ia64; then
16196 # AIX 5 now supports IA64 processor
16197 lt_prog_compiler_static_GCJ='-Bstatic'
16199 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16203 # PIC is the default on this platform
16204 # Common symbols not allowed in MH_DYLIB files
16205 case $cc_basename in
16207 lt_prog_compiler_pic_GCJ='-qnocommon'
16208 lt_prog_compiler_wl_GCJ='-Wl,'
16213 mingw* | pw32* | os2*)
16214 # This hack is so that the source file can tell whether it is being
16215 # built for inclusion in a dll (and should export symbols for example).
16216 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16219 hpux9* | hpux10* | hpux11*)
16220 lt_prog_compiler_wl_GCJ='-Wl,'
16221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16222 # not for PA HP-UX.
16228 lt_prog_compiler_pic_GCJ='+Z'
16231 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16232 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16235 irix5* | irix6* | nonstopux*)
16236 lt_prog_compiler_wl_GCJ='-Wl,'
16237 # PIC (with -KPIC) is the default.
16238 lt_prog_compiler_static_GCJ='-non_shared'
16242 lt_prog_compiler_pic_GCJ='-KPIC'
16243 lt_prog_compiler_static_GCJ='-Bstatic'
16247 case $cc_basename in
16249 lt_prog_compiler_wl_GCJ='-Wl,'
16250 lt_prog_compiler_pic_GCJ='-KPIC'
16251 lt_prog_compiler_static_GCJ='-static'
16253 pgcc* | pgf77* | pgf90* | pgf95*)
16254 # Portland Group compilers (*not* the Pentium gcc compiler,
16255 # which looks to be a dead project)
16256 lt_prog_compiler_wl_GCJ='-Wl,'
16257 lt_prog_compiler_pic_GCJ='-fpic'
16258 lt_prog_compiler_static_GCJ='-Bstatic'
16261 lt_prog_compiler_wl_GCJ='-Wl,'
16262 # All Alpha code is PIC.
16263 lt_prog_compiler_static_GCJ='-non_shared'
16268 osf3* | osf4* | osf5*)
16269 lt_prog_compiler_wl_GCJ='-Wl,'
16270 # All OSF/1 code is PIC.
16271 lt_prog_compiler_static_GCJ='-non_shared'
16275 lt_prog_compiler_pic_GCJ='-KPIC'
16276 lt_prog_compiler_static_GCJ='-Bstatic'
16277 case $cc_basename in
16278 f77* | f90* | f95*)
16279 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16281 lt_prog_compiler_wl_GCJ='-Wl,';;
16286 lt_prog_compiler_wl_GCJ='-Qoption ld '
16287 lt_prog_compiler_pic_GCJ='-PIC'
16288 lt_prog_compiler_static_GCJ='-Bstatic'
16291 sysv4 | sysv4.2uw2* | sysv4.3*)
16292 lt_prog_compiler_wl_GCJ='-Wl,'
16293 lt_prog_compiler_pic_GCJ='-KPIC'
16294 lt_prog_compiler_static_GCJ='-Bstatic'
16298 if test -d /usr/nec ;then
16299 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16300 lt_prog_compiler_static_GCJ='-Bstatic'
16304 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16305 lt_prog_compiler_wl_GCJ='-Wl,'
16306 lt_prog_compiler_pic_GCJ='-KPIC'
16307 lt_prog_compiler_static_GCJ='-Bstatic'
16311 lt_prog_compiler_wl_GCJ='-Wl,'
16312 lt_prog_compiler_can_build_shared_GCJ=no
16316 lt_prog_compiler_pic_GCJ='-pic'
16317 lt_prog_compiler_static_GCJ='-Bstatic'
16321 lt_prog_compiler_can_build_shared_GCJ=no
16326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16327 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16330 # Check to make sure the PIC flag actually works.
16332 if test -n "$lt_prog_compiler_pic_GCJ"; then
16334 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16335 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16336 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 lt_prog_compiler_pic_works_GCJ=no
16340 ac_outfile=conftest.$ac_objext
16341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16342 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16343 # Insert the option either (1) after the last *FLAGS variable, or
16344 # (2) before a word containing "conftest.", or (3) at the end.
16345 # Note that $ac_compile itself does not contain backslashes and begins
16346 # with a dollar sign (not a hyphen), so the echo should work correctly.
16347 # The option is referenced via a variable to avoid confusing sed.
16348 lt_compile=`echo "$ac_compile" | $SED \
16349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16351 -e 's:$: $lt_compiler_flag:'`
16352 (eval echo "\"\$as_me:16352: $lt_compile\"" >&5)
16353 (eval "$lt_compile" 2>conftest.err)
16355 cat conftest.err >&5
16356 echo "$as_me:16356: \$? = $ac_status" >&5
16357 if (exit $ac_status) && test -s "$ac_outfile"; then
16358 # The compiler can only warn and ignore the option if not recognized
16359 # So say no if there are warnings other than the usual output.
16360 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16363 lt_prog_compiler_pic_works_GCJ=yes
16369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16370 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16372 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16373 case $lt_prog_compiler_pic_GCJ in
16375 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16378 lt_prog_compiler_pic_GCJ=
16379 lt_prog_compiler_can_build_shared_GCJ=no
16384 # For platforms which do not support PIC, -DPIC is meaningless:
16386 lt_prog_compiler_pic_GCJ=
16389 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16394 # Check to make sure the static flag actually works.
16396 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16397 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16398 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16399 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 lt_prog_compiler_static_works_GCJ=no
16403 save_LDFLAGS="$LDFLAGS"
16404 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16405 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16406 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16407 # The linker can only warn and ignore the option if not recognized
16408 # So say no if there are warnings
16409 if test -s conftest.err; then
16410 # Append any errors to the config.log.
16411 cat conftest.err 1>&5
16412 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16413 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16414 if diff conftest.exp conftest.er2 >/dev/null; then
16415 lt_prog_compiler_static_works_GCJ=yes
16418 lt_prog_compiler_static_works_GCJ=yes
16422 LDFLAGS="$save_LDFLAGS"
16425 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16426 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16428 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16431 lt_prog_compiler_static_GCJ=
16435 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16436 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16437 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 lt_cv_prog_compiler_c_o_GCJ=no
16441 $rm -r conftest 2>/dev/null
16445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16447 lt_compiler_flag="-o out/conftest2.$ac_objext"
16448 # Insert the option either (1) after the last *FLAGS variable, or
16449 # (2) before a word containing "conftest.", or (3) at the end.
16450 # Note that $ac_compile itself does not contain backslashes and begins
16451 # with a dollar sign (not a hyphen), so the echo should work correctly.
16452 lt_compile=`echo "$ac_compile" | $SED \
16453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16455 -e 's:$: $lt_compiler_flag:'`
16456 (eval echo "\"\$as_me:16456: $lt_compile\"" >&5)
16457 (eval "$lt_compile" 2>out/conftest.err)
16459 cat out/conftest.err >&5
16460 echo "$as_me:16460: \$? = $ac_status" >&5
16461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16463 # The compiler can only warn and ignore the option if not recognized
16464 # So say no if there are warnings
16465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16468 lt_cv_prog_compiler_c_o_GCJ=yes
16473 # SGI C++ compiler will create directory out/ii_files/ for
16474 # template instantiation
16475 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16476 $rm out/* && rmdir out
16482 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16483 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16486 hard_links="nottested"
16487 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16488 # do not overwrite the value of need_locks provided by the user
16489 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16490 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16495 ln conftest.a conftest.b 2>&5 || hard_links=no
16496 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16497 { echo "$as_me:$LINENO: result: $hard_links" >&5
16498 echo "${ECHO_T}$hard_links" >&6; }
16499 if test "$hard_links" = no; then
16500 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16501 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16508 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16509 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16512 allow_undefined_flag_GCJ=
16513 enable_shared_with_static_runtimes_GCJ=no
16515 archive_expsym_cmds_GCJ=
16516 old_archive_From_new_cmds_GCJ=
16517 old_archive_from_expsyms_cmds_GCJ=
16518 export_dynamic_flag_spec_GCJ=
16519 whole_archive_flag_spec_GCJ=
16520 thread_safe_flag_spec_GCJ=
16521 hardcode_libdir_flag_spec_GCJ=
16522 hardcode_libdir_flag_spec_ld_GCJ=
16523 hardcode_libdir_separator_GCJ=
16524 hardcode_direct_GCJ=no
16525 hardcode_minus_L_GCJ=no
16526 hardcode_shlibpath_var_GCJ=unsupported
16527 link_all_deplibs_GCJ=unknown
16528 hardcode_automatic_GCJ=no
16530 module_expsym_cmds_GCJ=
16531 always_export_symbols_GCJ=no
16532 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16533 # include_expsyms should be a list of space-separated symbols to be *always*
16534 # included in the symbol list
16535 include_expsyms_GCJ=
16536 # exclude_expsyms can be an extended regexp of symbols to exclude
16537 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16538 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16539 # as well as any symbol that contains `d'.
16540 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16541 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16542 # platforms (ab)use it in PIC code, but their linkers get confused if
16543 # the symbol is explicitly referenced. Since portable code cannot
16544 # rely on this symbol name, it's probably fine to never include it in
16545 # preloaded symbol tables.
16546 extract_expsyms_cmds=
16547 # Just being paranoid about ensuring that cc_basename is set.
16548 for cc_temp in $compiler""; do
16550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16559 cygwin* | mingw* | pw32*)
16560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16561 # When not using gcc, we currently assume that we are using
16562 # Microsoft Visual C++.
16563 if test "$GCC" != yes; then
16568 # we just hope/assume this is gcc and not c89 (= MSVC++)
16577 if test "$with_gnu_ld" = yes; then
16578 # If archive_cmds runs LD, not CC, wlarc should be empty
16581 # Set some defaults for GNU ld with shared library support. These
16582 # are reset later if shared libraries are not supported. Putting them
16583 # here allows them to be overridden if necessary.
16584 runpath_var=LD_RUN_PATH
16585 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16586 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16587 # ancient GNU ld didn't support --whole-archive et. al.
16588 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16589 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16591 whole_archive_flag_spec_GCJ=
16593 supports_anon_versioning=no
16594 case `$LD -v 2>/dev/null` in
16595 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16596 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16597 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16598 *\ 2.11.*) ;; # other 2.11 versions
16599 *) supports_anon_versioning=yes ;;
16602 # See if GNU ld supports shared libraries.
16604 aix3* | aix4* | aix5*)
16605 # On AIX/PPC, the GNU linker is very broken
16606 if test "$host_cpu" != ia64; then
16610 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16611 *** to be unable to reliably create shared libraries on AIX.
16612 *** Therefore, libtool is disabling shared libraries support. If you
16613 *** really care for shared libraries, you may want to modify your PATH
16614 *** so that a non-GNU linker is found, and then restart.
16621 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)'
16622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623 hardcode_minus_L_GCJ=yes
16625 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16626 # that the semantics of dynamic libraries on AmigaOS, at least up
16627 # to version 4, is to share data among multiple programs linked
16628 # with the same dynamic library. Since this doesn't match the
16629 # behavior of shared libraries on other platforms, we can't use
16635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16636 allow_undefined_flag_GCJ=unsupported
16637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16638 # support --undefined. This deserves some investigation. FIXME
16639 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16645 cygwin* | mingw* | pw32*)
16646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16647 # as there is no search path for DLLs.
16648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649 allow_undefined_flag_GCJ=unsupported
16650 always_export_symbols_GCJ=no
16651 enable_shared_with_static_runtimes_GCJ=yes
16652 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16654 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16655 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16656 # If the export-symbols file already is a .def file (1st line
16657 # is EXPORTS), use it as is; otherwise, prepend...
16658 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16659 cp $export_symbols $output_objdir/$soname.def;
16661 echo EXPORTS > $output_objdir/$soname.def;
16662 cat $export_symbols >> $output_objdir/$soname.def;
16664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16671 hardcode_direct_GCJ=no
16672 hardcode_shlibpath_var_GCJ=no
16673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16674 export_dynamic_flag_spec_GCJ='${wl}-E'
16675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16676 # Instead, shared libraries are loaded at an image base (0x10000000 by
16677 # default) and relocated if they conflict, which is a slow very memory
16678 # consuming and fragmenting process. To avoid this, we pick a random,
16679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16681 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'
16682 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'
16686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16688 case $cc_basename,$host_cpu in
16689 pgcc*) # Portland Group C compiler
16690 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'
16691 tmp_addflag=' $pic_flag'
16693 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16694 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'
16695 tmp_addflag=' $pic_flag -Mnomain' ;;
16696 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16697 tmp_addflag=' -i_dynamic' ;;
16698 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16699 tmp_addflag=' -i_dynamic -nofor_main' ;;
16700 ifc* | ifort*) # Intel Fortran compiler
16701 tmp_addflag=' -nofor_main' ;;
16703 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16705 if test $supports_anon_versioning = yes; then
16706 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16708 $echo "local: *; };" >> $output_objdir/$libname.ver~
16709 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16718 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16721 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16722 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16727 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16732 *** create shared libraries on Solaris systems. Therefore, libtool
16733 *** is disabling shared libraries support. We urge you to upgrade GNU
16734 *** binutils to release 2.9.1 or newer. Another option is to modify
16735 *** your PATH or compiler configuration so that the native linker is
16736 *** used, and then restart.
16739 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16748 case `$LD -v 2>&1` in
16749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16754 *** reliably create shared libraries on SCO systems. Therefore, libtool
16755 *** is disabling shared libraries support. We urge you to upgrade GNU
16756 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16757 *** your PATH or compiler configuration so that the native linker is
16758 *** used, and then restart.
16763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16764 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16765 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16766 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16775 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16777 hardcode_direct_GCJ=yes
16778 hardcode_shlibpath_var_GCJ=no
16782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16783 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16791 if test "$ld_shlibs_GCJ" = no; then
16793 hardcode_libdir_flag_spec_GCJ=
16794 export_dynamic_flag_spec_GCJ=
16795 whole_archive_flag_spec_GCJ=
16798 # PORTME fill in a description of your system's linker (not GNU ld)
16801 allow_undefined_flag_GCJ=unsupported
16802 always_export_symbols_GCJ=yes
16803 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'
16804 # Note: this linker hardcodes the directories in LIBPATH if there
16805 # are no directories specified by -L.
16806 hardcode_minus_L_GCJ=yes
16807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16808 # Neither direct hardcoding nor static linking is supported with a
16810 hardcode_direct_GCJ=unsupported
16815 if test "$host_cpu" = ia64; then
16816 # On IA64, the linker does run time linking by default, so we don't
16817 # have to do anything special.
16818 aix_use_runtimelinking=no
16819 exp_sym_flag='-Bexport'
16822 # If we're using GNU nm, then we don't want the "-C" option.
16823 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16824 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16825 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'
16827 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'
16829 aix_use_runtimelinking=no
16831 # Test if we are trying to use run time linking or normal
16832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16833 # need to do runtime linking.
16834 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16835 for ld_flag in $LDFLAGS; do
16836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16837 aix_use_runtimelinking=yes
16844 exp_sym_flag='-bexport'
16845 no_entry_flag='-bnoentry'
16848 # When large executables or shared objects are built, AIX ld can
16849 # have problems creating the table of contents. If linking a library
16850 # or program results in "error TOC overflow" add -mminimal-toc to
16851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16854 archive_cmds_GCJ=''
16855 hardcode_direct_GCJ=yes
16856 hardcode_libdir_separator_GCJ=':'
16857 link_all_deplibs_GCJ=yes
16859 if test "$GCC" = yes; then
16860 case $host_os in aix4.[012]|aix4.[012].*)
16861 # We only want to do this on AIX 4.2 and lower, the check
16862 # below for broken collect2 doesn't work under 4.3+
16863 collect2name=`${CC} -print-prog-name=collect2`
16864 if test -f "$collect2name" && \
16865 strings "$collect2name" | grep resolve_lib_name >/dev/null
16867 # We have reworked collect2
16868 hardcode_direct_GCJ=yes
16870 # We have old collect2
16871 hardcode_direct_GCJ=unsupported
16872 # It fails to find uninstalled libraries when the uninstalled
16873 # path is not listed in the libpath. Setting hardcode_minus_L
16874 # to unsupported forces relinking
16875 hardcode_minus_L_GCJ=yes
16876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16877 hardcode_libdir_separator_GCJ=
16881 shared_flag='-shared'
16882 if test "$aix_use_runtimelinking" = yes; then
16883 shared_flag="$shared_flag "'${wl}-G'
16887 if test "$host_cpu" = ia64; then
16888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16889 # chokes on -Wl,-G. The following line is correct:
16892 if test "$aix_use_runtimelinking" = yes; then
16893 shared_flag='${wl}-G'
16895 shared_flag='${wl}-bM:SRE'
16900 # It seems that -bexpall does not export symbols beginning with
16901 # underscore (_), so it is better to generate a list of symbols to export.
16902 always_export_symbols_GCJ=yes
16903 if test "$aix_use_runtimelinking" = yes; then
16904 # Warning - without using the other runtime loading flags (-brtl),
16905 # -berok will link without error, but may produce a broken library.
16906 allow_undefined_flag_GCJ='-berok'
16907 # Determine the default libpath from the value encoded in an empty executable.
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_link") 2>conftest.er1
16932 grep -v '^ *+' conftest.er1 >conftest.err
16934 cat conftest.err >&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } && {
16937 test -z "$ac_c_werror_flag" ||
16938 test ! -s conftest.err
16939 } && test -s conftest$ac_exeext &&
16940 $as_test_x conftest$ac_exeext; then
16942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16944 # Check for a 64-bit object if we didn't find anything.
16945 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; }
16948 echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16955 conftest$ac_exeext conftest.$ac_ext
16956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16958 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959 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"
16961 if test "$host_cpu" = ia64; then
16962 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16963 allow_undefined_flag_GCJ="-z nodefs"
16964 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"
16966 # Determine the default libpath from the value encoded in an empty executable.
16967 cat >conftest.$ac_ext <<_ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } && {
16996 test -z "$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16998 } && test -s conftest$ac_exeext &&
16999 $as_test_x conftest$ac_exeext; then
17001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17003 # Check for a 64-bit object if we didn't find anything.
17004 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; }
17007 echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014 conftest$ac_exeext conftest.$ac_ext
17015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17017 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17018 # Warning - without using the other run time loading flags,
17019 # -berok will link without error, but may produce a broken library.
17020 no_undefined_flag_GCJ=' ${wl}-bernotok'
17021 allow_undefined_flag_GCJ=' ${wl}-berok'
17022 # Exported symbols can be pulled into shared objects from archives
17023 whole_archive_flag_spec_GCJ='$convenience'
17024 archive_cmds_need_lc_GCJ=yes
17025 # This is similar to how AIX traditionally builds its shared libraries.
17026 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'
17032 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)'
17033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17034 hardcode_minus_L_GCJ=yes
17035 # see comment about different semantics on the GNU ld section
17040 export_dynamic_flag_spec_GCJ=-rdynamic
17043 cygwin* | mingw* | pw32*)
17044 # When not using gcc, we currently assume that we are using
17045 # Microsoft Visual C++.
17046 # hardcode_libdir_flag_spec is actually meaningless, as there is
17047 # no search path for DLLs.
17048 hardcode_libdir_flag_spec_GCJ=' '
17049 allow_undefined_flag_GCJ=unsupported
17050 # Tell ltmain to make .lib files, not .a files.
17052 # Tell ltmain to make .dll files, not .so files.
17054 # FIXME: Setting linknames here is a bad hack.
17055 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17056 # The linker will automatically build a .lib file if we build a DLL.
17057 old_archive_From_new_cmds_GCJ='true'
17058 # FIXME: Should let the user specify the lib program.
17059 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17060 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17061 enable_shared_with_static_runtimes_GCJ=yes
17064 darwin* | rhapsody*)
17066 rhapsody* | darwin1.[012])
17067 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17070 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17071 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17073 case ${MACOSX_DEPLOYMENT_TARGET} in
17075 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17078 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17084 archive_cmds_need_lc_GCJ=no
17085 hardcode_direct_GCJ=no
17086 hardcode_automatic_GCJ=yes
17087 hardcode_shlibpath_var_GCJ=unsupported
17088 whole_archive_flag_spec_GCJ=''
17089 link_all_deplibs_GCJ=yes
17090 if test "$GCC" = yes ; then
17091 output_verbose_link_cmd='echo'
17092 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17093 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17095 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}'
17096 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}'
17098 case $cc_basename in
17100 output_verbose_link_cmd='echo'
17101 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17102 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17103 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17104 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}'
17105 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}'
17115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17117 hardcode_shlibpath_var_GCJ=no
17124 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17125 # support. Future versions do this automatically, but an explicit c++rt0.o
17126 # does not break anything, and helps significantly (at the cost of a little
17129 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17130 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17131 hardcode_direct_GCJ=yes
17132 hardcode_shlibpath_var_GCJ=no
17135 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17137 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17138 hardcode_direct_GCJ=yes
17139 hardcode_minus_L_GCJ=yes
17140 hardcode_shlibpath_var_GCJ=no
17143 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17144 freebsd* | kfreebsd*-gnu | dragonfly*)
17145 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17146 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17147 hardcode_direct_GCJ=yes
17148 hardcode_shlibpath_var_GCJ=no
17152 if test "$GCC" = yes; then
17153 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'
17155 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'
17157 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17158 hardcode_libdir_separator_GCJ=:
17159 hardcode_direct_GCJ=yes
17161 # hardcode_minus_L: Not really in the search PATH,
17162 # but as the default location of the library.
17163 hardcode_minus_L_GCJ=yes
17164 export_dynamic_flag_spec_GCJ='${wl}-E'
17168 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17169 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17171 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17173 if test "$with_gnu_ld" = no; then
17174 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17175 hardcode_libdir_separator_GCJ=:
17177 hardcode_direct_GCJ=yes
17178 export_dynamic_flag_spec_GCJ='${wl}-E'
17180 # hardcode_minus_L: Not really in the search PATH,
17181 # but as the default location of the library.
17182 hardcode_minus_L_GCJ=yes
17187 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17190 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17202 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17205 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17208 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17212 if test "$with_gnu_ld" = no; then
17213 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17214 hardcode_libdir_separator_GCJ=:
17218 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17219 hardcode_direct_GCJ=no
17220 hardcode_shlibpath_var_GCJ=no
17223 hardcode_direct_GCJ=yes
17224 export_dynamic_flag_spec_GCJ='${wl}-E'
17226 # hardcode_minus_L: Not really in the search PATH,
17227 # but as the default location of the library.
17228 hardcode_minus_L_GCJ=yes
17234 irix5* | irix6* | nonstopux*)
17235 if test "$GCC" = yes; then
17236 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'
17238 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'
17239 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17241 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17242 hardcode_libdir_separator_GCJ=:
17243 link_all_deplibs_GCJ=yes
17247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17250 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17252 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17253 hardcode_direct_GCJ=yes
17254 hardcode_shlibpath_var_GCJ=no
17258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259 hardcode_direct_GCJ=yes
17260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17261 hardcode_libdir_separator_GCJ=:
17262 hardcode_shlibpath_var_GCJ=no
17266 hardcode_direct_GCJ=yes
17267 hardcode_shlibpath_var_GCJ=no
17268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17269 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17271 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17272 export_dynamic_flag_spec_GCJ='${wl}-E'
17275 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17280 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17281 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17289 hardcode_minus_L_GCJ=yes
17290 allow_undefined_flag_GCJ=unsupported
17291 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'
17292 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17296 if test "$GCC" = yes; then
17297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17298 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'
17300 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17301 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'
17303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17304 hardcode_libdir_separator_GCJ=:
17307 osf4* | osf5*) # as osf3* with the addition of -msym flag
17308 if test "$GCC" = yes; then
17309 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17310 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'
17311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17313 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17314 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'
17315 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~
17316 $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'
17318 # Both c and cxx compiler support -rpath directly
17319 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17321 hardcode_libdir_separator_GCJ=:
17325 no_undefined_flag_GCJ=' -z text'
17326 if test "$GCC" = yes; then
17328 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17330 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17333 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17338 hardcode_shlibpath_var_GCJ=no
17340 solaris2.[0-5] | solaris2.[0-5].*) ;;
17342 # The compiler driver will combine linker options so we
17343 # cannot just pass the convience library names through
17344 # without $wl, iff we do not link with $LD.
17345 # Luckily, gcc supports the same syntax we need for Sun Studio.
17346 # Supported since Solaris 2.6 (maybe 2.5.1?)
17349 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17351 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' ;;
17354 link_all_deplibs_GCJ=yes
17358 if test "x$host_vendor" = xsequent; then
17359 # Use $CC to link under sequent, because it throws in some extra .o
17360 # files that make .init and .fini sections work.
17361 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17363 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17365 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366 hardcode_direct_GCJ=yes
17367 hardcode_minus_L_GCJ=yes
17368 hardcode_shlibpath_var_GCJ=no
17372 case $host_vendor in
17374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17375 hardcode_direct_GCJ=yes # is this really true???
17378 ## LD is ld it makes a PLAMLIB
17379 ## CC just makes a GrossModule.
17380 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17381 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17382 hardcode_direct_GCJ=no
17385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17386 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17389 runpath_var='LD_RUN_PATH'
17390 hardcode_shlibpath_var_GCJ=no
17394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17395 hardcode_shlibpath_var_GCJ=no
17396 export_dynamic_flag_spec_GCJ='-Bexport'
17400 if test -d /usr/nec; then
17401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402 hardcode_shlibpath_var_GCJ=no
17403 runpath_var=LD_RUN_PATH
17404 hardcode_runpath_var=yes
17409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17410 no_undefined_flag_GCJ='${wl}-z,text'
17411 archive_cmds_need_lc_GCJ=no
17412 hardcode_shlibpath_var_GCJ=no
17413 runpath_var='LD_RUN_PATH'
17415 if test "$GCC" = yes; then
17416 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17417 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17420 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17424 sysv5* | sco3.2v5* | sco5v6*)
17425 # Note: We can NOT use -z defs as we might desire, because we do not
17426 # link with -lc, and that would cause any symbols used from libc to
17427 # always be unresolved, which means just about no library would
17428 # ever link correctly. If we're not using GNU ld we use -z text
17429 # though, which does catch some bad symbols but isn't as heavy-handed
17431 no_undefined_flag_GCJ='${wl}-z,text'
17432 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17433 archive_cmds_need_lc_GCJ=no
17434 hardcode_shlibpath_var_GCJ=no
17435 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17436 hardcode_libdir_separator_GCJ=':'
17437 link_all_deplibs_GCJ=yes
17438 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17439 runpath_var='LD_RUN_PATH'
17441 if test "$GCC" = yes; then
17442 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17446 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453 hardcode_shlibpath_var_GCJ=no
17462 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17463 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17464 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17467 # Do we need to explicitly link libc?
17469 case "x$archive_cmds_need_lc_GCJ" in
17471 # Assume -lc should be added
17472 archive_cmds_need_lc_GCJ=yes
17474 if test "$enable_shared" = yes && test "$GCC" = yes; then
17475 case $archive_cmds_GCJ in
17477 # FIXME: we may have to deal with multi-command sequences.
17480 # Test whether the compiler implicitly links with -lc since on some
17481 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17482 # to ld, don't add -lc before -lgcc.
17483 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17489 (eval $ac_compile) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } 2>conftest.err; then
17495 libobjs=conftest.$ac_objext
17497 wl=$lt_prog_compiler_wl_GCJ
17498 pic_flag=$lt_prog_compiler_pic_GCJ
17504 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17505 allow_undefined_flag_GCJ=
17506 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17507 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }
17512 archive_cmds_need_lc_GCJ=no
17514 archive_cmds_need_lc_GCJ=yes
17516 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17518 cat conftest.err 1>&5
17521 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17522 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17529 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17531 library_names_spec=
17532 libname_spec='lib$name'
17536 postuninstall_cmds=
17540 shlibpath_overrides_runpath=unknown
17542 dynamic_linker="$host_os ld.so"
17543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17544 if test "$GCC" = yes; then
17545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17546 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17547 # if the path contains ";" then we assume it to be the separator
17548 # otherwise default to the standard path separator (i.e. ":") - it is
17549 # assumed that no part of a normal pathname contains ";" but that should
17550 # okay in the real world where ";" in dirpaths is itself problematic.
17551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17558 need_lib_prefix=unknown
17559 hardcode_into_libs=no
17561 # when you set need_version to no, make sure it does not cause -set_version
17562 # flags to be left without arguments
17563 need_version=unknown
17568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17569 shlibpath_var=LIBPATH
17571 # AIX 3 has no versioning support, so we append a major version to the name.
17572 soname_spec='${libname}${release}${shared_ext}$major'
17579 hardcode_into_libs=yes
17580 if test "$host_cpu" = ia64; then
17581 # AIX 5 supports IA64
17582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17583 shlibpath_var=LD_LIBRARY_PATH
17585 # With GCC up to 2.95.x, collect2 would create an import file
17586 # for dependence libraries. The import file would start with
17587 # the line `#! .'. This would cause the generated library to
17588 # depend on `.', always an invalid library. This was fixed in
17589 # development snapshots of GCC prior to 3.0.
17591 aix4 | aix4.[01] | aix4.[01].*)
17592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17597 can_build_shared=no
17601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17602 # soname into executable. Probably we can add versioning support to
17603 # collect2, so additional links can be useful in future.
17604 if test "$aix_use_runtimelinking" = yes; then
17605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17606 # instead of lib<name>.a to let people know that these are not
17607 # typical AIX shared libraries.
17608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610 # We preserve .a as extension for shared libraries through AIX4.2
17611 # and later when we are not doing run time linking.
17612 library_names_spec='${libname}${release}.a $libname.a'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17615 shlibpath_var=LIBPATH
17620 library_names_spec='$libname.ixlibrary $libname.a'
17621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17622 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'
17626 library_names_spec='${libname}${shared_ext}'
17627 dynamic_linker="$host_os ld.so"
17628 shlibpath_var=LIBRARY_PATH
17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635 soname_spec='${libname}${release}${shared_ext}$major'
17636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17637 shlibpath_var=LD_LIBRARY_PATH
17638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17640 # the default ld.so.conf also contains /usr/contrib/lib and
17641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17642 # libtool to hard-code these into programs
17645 cygwin* | mingw* | pw32*)
17646 version_type=windows
17651 case $GCC,$host_os in
17652 yes,cygwin* | yes,mingw* | yes,pw32*)
17653 library_names_spec='$libname.dll.a'
17654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17655 postinstall_cmds='base_file=`basename \${file}`~
17656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17657 dldir=$destdir/`dirname \$dlpath`~
17658 test -d \$dldir || mkdir -p \$dldir~
17659 $install_prog $dir/$dlname \$dldir/$dlname~
17660 chmod a+x \$dldir/$dlname'
17661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17662 dlpath=$dir/\$dldll~
17664 shlibpath_overrides_runpath=yes
17668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17673 # MinGW DLLs use traditional 'lib' prefix
17674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17677 # It is most probably a Windows format PATH printed by
17678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17679 # path with ; separators, and with drive letters. We can handle the
17680 # drive letters (cygwin fileutils understands them), so leave them,
17681 # especially as we might pass files found there to a mingw objdump,
17682 # which wouldn't understand a cygwinified path. Ahh.
17683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17689 # pw32 DLLs use 'pw' prefix rather than 'lib'
17690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17699 dynamic_linker='Win32 ld.exe'
17700 # FIXME: first we should search . and the directory the executable is in
17704 darwin* | rhapsody*)
17705 dynamic_linker="$host_os dyld"
17706 version_type=darwin
17709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17710 soname_spec='${libname}${release}${major}$shared_ext'
17711 shlibpath_overrides_runpath=yes
17712 shlibpath_var=DYLD_LIBRARY_PATH
17713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17714 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17715 if test "$GCC" = yes; then
17716 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"`
17718 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17728 soname_spec='${libname}${release}${shared_ext}$major'
17729 shlibpath_var=LD_LIBRARY_PATH
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=no
17744 hardcode_into_libs=yes
17745 dynamic_linker='GNU ld.so'
17748 freebsd* | dragonfly*)
17749 # DragonFly does not have aout. When/if they implement a new
17750 # versioning mechanism, adjust this.
17751 if test -x /usr/bin/objformat; then
17752 objformat=`/usr/bin/objformat`
17755 freebsd[123]*) objformat=aout ;;
17756 *) objformat=elf ;;
17759 version_type=freebsd-$objformat
17760 case $version_type in
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17771 shlibpath_var=LD_LIBRARY_PATH
17774 shlibpath_overrides_runpath=yes
17776 freebsd3.[01]* | freebsdelf3.[01]*)
17777 shlibpath_overrides_runpath=yes
17778 hardcode_into_libs=yes
17780 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17781 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17782 shlibpath_overrides_runpath=no
17783 hardcode_into_libs=yes
17785 freebsd*) # from 4.6 on
17786 shlibpath_overrides_runpath=yes
17787 hardcode_into_libs=yes
17796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17797 soname_spec='${libname}${release}${shared_ext}$major'
17798 shlibpath_var=LD_LIBRARY_PATH
17799 hardcode_into_libs=yes
17802 hpux9* | hpux10* | hpux11*)
17803 # Give a soname corresponding to the major version so that dld.sl refuses to
17804 # link against other versions.
17811 hardcode_into_libs=yes
17812 dynamic_linker="$host_os dld.so"
17813 shlibpath_var=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17816 soname_spec='${libname}${release}${shared_ext}$major'
17817 if test "X$HPUX_IA64_MODE" = X32; then
17818 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17820 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17826 hardcode_into_libs=yes
17827 dynamic_linker="$host_os dld.sl"
17828 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831 soname_spec='${libname}${release}${shared_ext}$major'
17832 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17837 dynamic_linker="$host_os dld.sl"
17838 shlibpath_var=SHLIB_PATH
17839 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841 soname_spec='${libname}${release}${shared_ext}$major'
17844 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17845 postinstall_cmds='chmod 555 $lib'
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 shlibpath_overrides_runpath=no
17857 hardcode_into_libs=yes
17860 irix5* | irix6* | nonstopux*)
17862 nonstopux*) version_type=nonstopux ;;
17864 if test "$lt_cv_prog_gnu_ld" = yes; then
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17875 irix5* | nonstopux*)
17876 libsuff= shlibsuff=
17879 case $LD in # libtool.m4 will add one of these switches to LD
17880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17881 libsuff= shlibsuff= libmagic=32-bit;;
17882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17883 libsuff=32 shlibsuff=N32 libmagic=N32;;
17884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17886 *) libsuff= shlibsuff= libmagic=never-match;;
17890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17891 shlibpath_overrides_runpath=no
17892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17894 hardcode_into_libs=yes
17897 # No shared lib support for Linux oldld, aout, or coff.
17898 linux*oldld* | linux*aout* | linux*coff*)
17902 # This must be Linux ELF.
17907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908 soname_spec='${libname}${release}${shared_ext}$major'
17909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17910 shlibpath_var=LD_LIBRARY_PATH
17911 shlibpath_overrides_runpath=no
17912 # This implies no fast_install, which is unacceptable.
17913 # Some rework will be needed to allow for fast_install
17914 # before this can be enabled.
17915 hardcode_into_libs=yes
17917 # Append ld.so.conf contents to the search path
17918 if test -f /etc/ld.so.conf; then
17919 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' ' '`
17920 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17923 # We used to test for /lib/ld.so.1 and disable shared libraries on
17924 # powerpc, because MkLinux only supported shared libraries with the
17925 # GNU dynamic linker. Since this was broken with cross compilers,
17926 # most powerpc-linux boxes support dynamic linking these days and
17927 # people can always --disable-shared, the test was removed, and we
17928 # assume the GNU/Linux dynamic linker is in use.
17929 dynamic_linker='GNU/Linux ld.so'
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 hardcode_into_libs=yes
17941 dynamic_linker='GNU ld.so'
17948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17951 dynamic_linker='NetBSD (a.out) ld.so'
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17954 soname_spec='${libname}${release}${shared_ext}$major'
17955 dynamic_linker='NetBSD ld.elf_so'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=yes
17959 hardcode_into_libs=yes
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=yes
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 shlibpath_var=LD_LIBRARY_PATH
17976 shlibpath_overrides_runpath=yes
17981 sys_lib_dlsearch_path_spec="/usr/lib"
17983 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17985 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17986 *) need_version=no ;;
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17990 shlibpath_var=LD_LIBRARY_PATH
17991 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17993 openbsd2.[89] | openbsd2.[89].*)
17994 shlibpath_overrides_runpath=no
17997 shlibpath_overrides_runpath=yes
18001 shlibpath_overrides_runpath=yes
18006 libname_spec='$name'
18009 library_names_spec='$libname${shared_ext} $libname.a'
18010 dynamic_linker='OS/2 ld.exe'
18011 shlibpath_var=LIBPATH
18014 osf3* | osf4* | osf5*)
18018 soname_spec='${libname}${release}${shared_ext}$major'
18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020 shlibpath_var=LD_LIBRARY_PATH
18021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030 soname_spec='${libname}${release}${shared_ext}$major'
18031 shlibpath_var=LD_LIBRARY_PATH
18032 shlibpath_overrides_runpath=yes
18033 hardcode_into_libs=yes
18034 # ldd complains unless libraries are executable
18035 postinstall_cmds='chmod +x $lib'
18040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 shlibpath_overrides_runpath=yes
18044 if test "$with_gnu_ld" = yes; then
18052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053 soname_spec='${libname}${release}${shared_ext}$major'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 case $host_vendor in
18057 shlibpath_overrides_runpath=no
18059 export_dynamic_flag_spec='${wl}-Blargedynsym'
18060 runpath_var=LD_RUN_PATH
18068 shlibpath_overrides_runpath=no
18069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18075 if test -d /usr/nec ;then
18077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18078 soname_spec='$libname${shared_ext}.$major'
18079 shlibpath_var=LD_LIBRARY_PATH
18083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18084 version_type=freebsd-elf
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18088 soname_spec='${libname}${release}${shared_ext}$major'
18089 shlibpath_var=LD_LIBRARY_PATH
18090 hardcode_into_libs=yes
18091 if test "$with_gnu_ld" = yes; then
18092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18093 shlibpath_overrides_runpath=no
18095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18096 shlibpath_overrides_runpath=yes
18099 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18103 sys_lib_dlsearch_path_spec='/usr/lib'
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 shlibpath_var=LD_LIBRARY_PATH
18117 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18118 echo "${ECHO_T}$dynamic_linker" >&6; }
18119 test "$dynamic_linker" = no && can_build_shared=no
18121 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18122 if test "$GCC" = yes; then
18123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18126 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18127 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18128 hardcode_action_GCJ=
18129 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18130 test -n "$runpath_var_GCJ" || \
18131 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18133 # We can hardcode non-existant directories.
18134 if test "$hardcode_direct_GCJ" != no &&
18135 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18136 # have to relink, otherwise we might link with an installed library
18137 # when we should be linking with a yet-to-be-installed one
18138 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18139 test "$hardcode_minus_L_GCJ" != no; then
18140 # Linking always hardcodes the temporary library directory.
18141 hardcode_action_GCJ=relink
18143 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18144 hardcode_action_GCJ=immediate
18147 # We cannot hardcode anything, or else we can only hardcode existing
18149 hardcode_action_GCJ=unsupported
18151 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18152 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18154 if test "$hardcode_action_GCJ" = relink; then
18155 # Fast installation is not supported
18156 enable_fast_install=no
18157 elif test "$shlibpath_overrides_runpath" = yes ||
18158 test "$enable_shared" = no; then
18159 # Fast installation is not necessary
18160 enable_fast_install=needless
18164 # The else clause should only fire when bootstrapping the
18165 # libtool distribution, otherwise you forgot to ship ltmain.sh
18166 # with your package, and you will get complaints that there are
18167 # no rules to generate ltmain.sh.
18168 if test -f "$ltmain"; then
18169 # See if we are running on zsh, and set the options which allow our commands through
18170 # without removal of \ escapes.
18171 if test -n "${ZSH_VERSION+set}" ; then
18172 setopt NO_GLOB_SUBST
18174 # Now quote all the things that may contain metacharacters while being
18175 # careful not to overquote the AC_SUBSTed values. We take copies of the
18176 # variables and quote the copies for generation of the libtool script.
18177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181 deplibs_check_method reload_flag reload_cmds need_locks \
18182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183 lt_cv_sys_global_symbol_to_c_name_address \
18184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185 old_postinstall_cmds old_postuninstall_cmds \
18189 lt_prog_compiler_wl_GCJ \
18190 lt_prog_compiler_pic_GCJ \
18191 lt_prog_compiler_static_GCJ \
18192 lt_prog_compiler_no_builtin_flag_GCJ \
18193 export_dynamic_flag_spec_GCJ \
18194 thread_safe_flag_spec_GCJ \
18195 whole_archive_flag_spec_GCJ \
18196 enable_shared_with_static_runtimes_GCJ \
18197 old_archive_cmds_GCJ \
18198 old_archive_from_new_cmds_GCJ \
18199 predep_objects_GCJ \
18200 postdep_objects_GCJ \
18203 compiler_lib_search_path_GCJ \
18205 archive_expsym_cmds_GCJ \
18206 postinstall_cmds_GCJ \
18207 postuninstall_cmds_GCJ \
18208 old_archive_from_expsyms_cmds_GCJ \
18209 allow_undefined_flag_GCJ \
18210 no_undefined_flag_GCJ \
18211 export_symbols_cmds_GCJ \
18212 hardcode_libdir_flag_spec_GCJ \
18213 hardcode_libdir_flag_spec_ld_GCJ \
18214 hardcode_libdir_separator_GCJ \
18215 hardcode_automatic_GCJ \
18217 module_expsym_cmds_GCJ \
18218 lt_cv_prog_compiler_c_o_GCJ \
18219 exclude_expsyms_GCJ \
18220 include_expsyms_GCJ; do
18223 old_archive_cmds_GCJ | \
18224 old_archive_from_new_cmds_GCJ | \
18225 archive_cmds_GCJ | \
18226 archive_expsym_cmds_GCJ | \
18227 module_cmds_GCJ | \
18228 module_expsym_cmds_GCJ | \
18229 old_archive_from_expsyms_cmds_GCJ | \
18230 export_symbols_cmds_GCJ | \
18231 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232 postinstall_cmds | postuninstall_cmds | \
18233 old_postinstall_cmds | old_postuninstall_cmds | \
18234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235 # Double-quote double-evaled strings.
18236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18245 *'\$0 --fallback-echo"')
18246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18252 cat <<__EOF__ >> "$cfgfile"
18253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18257 # Shell to use when invoking shell scripts.
18260 # Whether or not to build shared libraries.
18261 build_libtool_libs=$enable_shared
18263 # Whether or not to build static libraries.
18264 build_old_libs=$enable_static
18266 # Whether or not to add -lc for building shared libraries.
18267 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18269 # Whether or not to disallow shared libs when runtime libs are static
18270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18272 # Whether or not to optimize for fast installation.
18273 fast_install=$enable_fast_install
18276 host_alias=$host_alias
18280 # The build system.
18281 build_alias=$build_alias
18285 # An echo program that does not interpret backslashes.
18290 AR_FLAGS=$lt_AR_FLAGS
18295 # LTCC compiler flags.
18296 LTCFLAGS=$lt_LTCFLAGS
18298 # A language-specific compiler.
18299 CC=$lt_compiler_GCJ
18301 # Is the compiler the GNU C compiler?
18307 # The linker used to build libraries.
18310 # Whether we need hard or soft links.
18313 # A BSD-compatible nm program.
18316 # A symbol stripping program
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18322 # Used on cygwin: DLL creation program.
18325 # Used on cygwin: object dumper.
18328 # Used on cygwin: assembler.
18331 # The name of the directory that contains temporary libtool files.
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_GCJ
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18344 # Old archive suffix (normally "a").
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18350 # Executable file suffix (normally "").
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18363 # Must we lock files when doing compilation?
18364 need_locks=$lt_need_locks
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18396 # Library versioning type.
18397 version_type=$version_type
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18402 # List of archive names. First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18409 # Commands used to build and install an old-style archive.
18411 old_archive_cmds=$lt_old_archive_cmds_GCJ
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_GCJ
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_GCJ
18429 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18435 # Dependencies to place before the objects being linked to create a
18437 predep_objects=$lt_predep_objects_GCJ
18439 # Dependencies to place after the objects being linked to create a
18441 postdep_objects=$lt_postdep_objects_GCJ
18443 # Dependencies to place before the objects being linked to create a
18445 predeps=$lt_predeps_GCJ
18447 # Dependencies to place after the objects being linked to create a
18449 postdeps=$lt_postdeps_GCJ
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_GCJ
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_GCJ
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_GCJ
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_GCJ
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_GCJ
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_GCJ
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_GCJ"
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_GCJ
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_GCJ
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_GCJ
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18562 # If there is no Makefile yet, we rely on a make rule to execute
18563 # `config.status --recheck' to rerun these tests and create the
18564 # libtool script then.
18565 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566 if test -f "$ltmain_in"; then
18567 test -f Makefile && make "$ltmain"
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588 # Source file extension for RC test sources.
18591 # Object file extension for compiled RC test sources.
18595 # Code to be used in simple compile tests
18596 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18598 # Code to be used in simple link tests
18599 lt_simple_link_test_code="$lt_simple_compile_test_code"
18601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18603 # If no C compiler was specified, use CC.
18606 # If no C compiler flags were specified, use CFLAGS.
18607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18609 # Allow CC to be a program name with arguments.
18613 # save warnings/boilerplate of simple test code
18614 ac_outfile=conftest.$ac_objext
18615 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18617 _lt_compiler_boilerplate=`cat conftest.err`
18620 ac_outfile=conftest.$ac_objext
18621 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18623 _lt_linker_boilerplate=`cat conftest.err`
18627 # Allow CC to be a program name with arguments.
18632 for cc_temp in $compiler""; do
18634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18642 lt_cv_prog_compiler_c_o_RC=yes
18644 # The else clause should only fire when bootstrapping the
18645 # libtool distribution, otherwise you forgot to ship ltmain.sh
18646 # with your package, and you will get complaints that there are
18647 # no rules to generate ltmain.sh.
18648 if test -f "$ltmain"; then
18649 # See if we are running on zsh, and set the options which allow our commands through
18650 # without removal of \ escapes.
18651 if test -n "${ZSH_VERSION+set}" ; then
18652 setopt NO_GLOB_SUBST
18654 # Now quote all the things that may contain metacharacters while being
18655 # careful not to overquote the AC_SUBSTed values. We take copies of the
18656 # variables and quote the copies for generation of the libtool script.
18657 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18659 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18660 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18661 deplibs_check_method reload_flag reload_cmds need_locks \
18662 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18663 lt_cv_sys_global_symbol_to_c_name_address \
18664 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18665 old_postinstall_cmds old_postuninstall_cmds \
18669 lt_prog_compiler_wl_RC \
18670 lt_prog_compiler_pic_RC \
18671 lt_prog_compiler_static_RC \
18672 lt_prog_compiler_no_builtin_flag_RC \
18673 export_dynamic_flag_spec_RC \
18674 thread_safe_flag_spec_RC \
18675 whole_archive_flag_spec_RC \
18676 enable_shared_with_static_runtimes_RC \
18677 old_archive_cmds_RC \
18678 old_archive_from_new_cmds_RC \
18679 predep_objects_RC \
18680 postdep_objects_RC \
18683 compiler_lib_search_path_RC \
18685 archive_expsym_cmds_RC \
18686 postinstall_cmds_RC \
18687 postuninstall_cmds_RC \
18688 old_archive_from_expsyms_cmds_RC \
18689 allow_undefined_flag_RC \
18690 no_undefined_flag_RC \
18691 export_symbols_cmds_RC \
18692 hardcode_libdir_flag_spec_RC \
18693 hardcode_libdir_flag_spec_ld_RC \
18694 hardcode_libdir_separator_RC \
18695 hardcode_automatic_RC \
18697 module_expsym_cmds_RC \
18698 lt_cv_prog_compiler_c_o_RC \
18699 exclude_expsyms_RC \
18700 include_expsyms_RC; do
18703 old_archive_cmds_RC | \
18704 old_archive_from_new_cmds_RC | \
18705 archive_cmds_RC | \
18706 archive_expsym_cmds_RC | \
18708 module_expsym_cmds_RC | \
18709 old_archive_from_expsyms_cmds_RC | \
18710 export_symbols_cmds_RC | \
18711 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18712 postinstall_cmds | postuninstall_cmds | \
18713 old_postinstall_cmds | old_postuninstall_cmds | \
18714 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18715 # Double-quote double-evaled strings.
18716 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18725 *'\$0 --fallback-echo"')
18726 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18732 cat <<__EOF__ >> "$cfgfile"
18733 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18735 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18737 # Shell to use when invoking shell scripts.
18740 # Whether or not to build shared libraries.
18741 build_libtool_libs=$enable_shared
18743 # Whether or not to build static libraries.
18744 build_old_libs=$enable_static
18746 # Whether or not to add -lc for building shared libraries.
18747 build_libtool_need_lc=$archive_cmds_need_lc_RC
18749 # Whether or not to disallow shared libs when runtime libs are static
18750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18752 # Whether or not to optimize for fast installation.
18753 fast_install=$enable_fast_install
18756 host_alias=$host_alias
18760 # The build system.
18761 build_alias=$build_alias
18765 # An echo program that does not interpret backslashes.
18770 AR_FLAGS=$lt_AR_FLAGS
18775 # LTCC compiler flags.
18776 LTCFLAGS=$lt_LTCFLAGS
18778 # A language-specific compiler.
18781 # Is the compiler the GNU C compiler?
18787 # The linker used to build libraries.
18790 # Whether we need hard or soft links.
18793 # A BSD-compatible nm program.
18796 # A symbol stripping program
18799 # Used to examine libraries when file_magic_cmd begins "file"
18800 MAGIC_CMD=$MAGIC_CMD
18802 # Used on cygwin: DLL creation program.
18805 # Used on cygwin: object dumper.
18808 # Used on cygwin: assembler.
18811 # The name of the directory that contains temporary libtool files.
18814 # How to create reloadable object files.
18815 reload_flag=$lt_reload_flag
18816 reload_cmds=$lt_reload_cmds
18818 # How to pass a linker flag through the compiler.
18819 wl=$lt_lt_prog_compiler_wl_RC
18821 # Object file suffix (normally "o").
18822 objext="$ac_objext"
18824 # Old archive suffix (normally "a").
18827 # Shared library suffix (normally ".so").
18828 shrext_cmds='$shrext_cmds'
18830 # Executable file suffix (normally "").
18833 # Additional compiler flags for building library objects.
18834 pic_flag=$lt_lt_prog_compiler_pic_RC
18837 # What is the maximum length of a command?
18838 max_cmd_len=$lt_cv_sys_max_cmd_len
18840 # Does compiler simultaneously support -c and -o options?
18841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18843 # Must we lock files when doing compilation?
18844 need_locks=$lt_need_locks
18846 # Do we need the lib prefix for modules?
18847 need_lib_prefix=$need_lib_prefix
18849 # Do we need a version for libraries?
18850 need_version=$need_version
18852 # Whether dlopen is supported.
18853 dlopen_support=$enable_dlopen
18855 # Whether dlopen of programs is supported.
18856 dlopen_self=$enable_dlopen_self
18858 # Whether dlopen of statically linked programs is supported.
18859 dlopen_self_static=$enable_dlopen_self_static
18861 # Compiler flag to prevent dynamic linking.
18862 link_static_flag=$lt_lt_prog_compiler_static_RC
18864 # Compiler flag to turn off builtin functions.
18865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18867 # Compiler flag to allow reflexive dlopens.
18868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18870 # Compiler flag to generate shared objects directly from archives.
18871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18873 # Compiler flag to generate thread-safe objects.
18874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18876 # Library versioning type.
18877 version_type=$version_type
18879 # Format of library name prefix.
18880 libname_spec=$lt_libname_spec
18882 # List of archive names. First name is the real one, the rest are links.
18883 # The last name is the one that the linker finds with -lNAME.
18884 library_names_spec=$lt_library_names_spec
18886 # The coded name of the library, if different from the real name.
18887 soname_spec=$lt_soname_spec
18889 # Commands used to build and install an old-style archive.
18891 old_archive_cmds=$lt_old_archive_cmds_RC
18892 old_postinstall_cmds=$lt_old_postinstall_cmds
18893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18895 # Create an old-style archive from a shared archive.
18896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18898 # Create a temporary old-style archive to link instead of a shared archive.
18899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18901 # Commands used to build and install a shared archive.
18902 archive_cmds=$lt_archive_cmds_RC
18903 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18904 postinstall_cmds=$lt_postinstall_cmds
18905 postuninstall_cmds=$lt_postuninstall_cmds
18907 # Commands used to build a loadable module (assumed same as above if empty)
18908 module_cmds=$lt_module_cmds_RC
18909 module_expsym_cmds=$lt_module_expsym_cmds_RC
18911 # Commands to strip libraries.
18912 old_striplib=$lt_old_striplib
18913 striplib=$lt_striplib
18915 # Dependencies to place before the objects being linked to create a
18917 predep_objects=$lt_predep_objects_RC
18919 # Dependencies to place after the objects being linked to create a
18921 postdep_objects=$lt_postdep_objects_RC
18923 # Dependencies to place before the objects being linked to create a
18925 predeps=$lt_predeps_RC
18927 # Dependencies to place after the objects being linked to create a
18929 postdeps=$lt_postdeps_RC
18931 # The library search path used internally by the compiler when linking
18932 # a shared library.
18933 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18935 # Method to check whether dependent libraries are shared objects.
18936 deplibs_check_method=$lt_deplibs_check_method
18938 # Command to use when deplibs_check_method == file_magic.
18939 file_magic_cmd=$lt_file_magic_cmd
18941 # Flag that allows shared libraries with undefined symbols to be built.
18942 allow_undefined_flag=$lt_allow_undefined_flag_RC
18944 # Flag that forces no undefined symbols.
18945 no_undefined_flag=$lt_no_undefined_flag_RC
18947 # Commands used to finish a libtool library installation in a directory.
18948 finish_cmds=$lt_finish_cmds
18950 # Same as above, but a single script fragment to be evaled but not shown.
18951 finish_eval=$lt_finish_eval
18953 # Take the output of nm and produce a listing of raw symbols and C names.
18954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18956 # Transform the output of nm in a proper C declaration
18957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18959 # Transform the output of nm in a C name address pair
18960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18962 # This is the shared library runtime path variable.
18963 runpath_var=$runpath_var
18965 # This is the shared library path variable.
18966 shlibpath_var=$shlibpath_var
18968 # Is shlibpath searched before the hard-coded library search path?
18969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18971 # How to hardcode a shared library path into an executable.
18972 hardcode_action=$hardcode_action_RC
18974 # Whether we should hardcode library paths into libraries.
18975 hardcode_into_libs=$hardcode_into_libs
18977 # Flag to hardcode \$libdir into a binary during linking.
18978 # This must work even if \$libdir does not exist.
18979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18981 # If ld is used when linking, flag to hardcode \$libdir into
18982 # a binary during linking. This must work even if \$libdir does
18984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18986 # Whether we need a single -rpath flag with a separated argument.
18987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18990 # resulting binary.
18991 hardcode_direct=$hardcode_direct_RC
18993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18994 # resulting binary.
18995 hardcode_minus_L=$hardcode_minus_L_RC
18997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18998 # the resulting binary.
18999 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19001 # Set to yes if building a shared library automatically hardcodes DIR into the library
19002 # and all subsequent libraries and executables linked against it.
19003 hardcode_automatic=$hardcode_automatic_RC
19005 # Variables whose values should be saved in libtool wrapper scripts and
19006 # restored at relink time.
19007 variables_saved_for_relink="$variables_saved_for_relink"
19009 # Whether libtool must link a program against all its dependency libraries.
19010 link_all_deplibs=$link_all_deplibs_RC
19012 # Compile-time system search path for libraries
19013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19015 # Run-time system search path for libraries
19016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19018 # Fix the shell variable \$srcfile for the compiler.
19019 fix_srcfile_path="$fix_srcfile_path_RC"
19021 # Set to yes if exported symbols are required.
19022 always_export_symbols=$always_export_symbols_RC
19024 # The commands to list exported symbols.
19025 export_symbols_cmds=$lt_export_symbols_cmds_RC
19027 # The commands to extract the exported symbol list from a shared archive.
19028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms_RC
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms_RC
19036 # ### END LIBTOOL TAG CONFIG: $tagname
19042 # If there is no Makefile yet, we rely on a make rule to execute
19043 # `config.status --recheck' to rerun these tests and create the
19044 # libtool script then.
19045 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19046 if test -f "$ltmain_in"; then
19047 test -f Makefile && make "$ltmain"
19053 ac_cpp='$CPP $CPPFLAGS'
19054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19064 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19065 { (exit 1); exit 1; }; }
19069 # Append the new tag name to the list of available tags.
19070 if test -n "$tagname" ; then
19071 available_tags="$available_tags $tagname"
19077 # Now substitute the updated list of available tags.
19078 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19079 mv "${ofile}T" "$ofile"
19083 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19084 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19085 { (exit 1); exit 1; }; }
19091 # This can be used to rebuild libtool when needed
19092 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19094 # Always use our own libtool.
19095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19097 # Prevent multiple expansion
19110 # Check whether --with-system-libtool was given.
19111 if test "${with_system_libtool+set}" = set; then
19112 withval=$with_system_libtool; # Extract the first word of "libtool", so it can be a program name with args.
19113 set dummy libtool; ac_word=$2
19114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19116 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125 as_dummy="$PATH:/usr/local/bin"
19126 for as_dir in $as_dummy
19129 test -z "$as_dir" && as_dir=.
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19132 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19143 LIBTOOL=$ac_cv_path_LIBTOOL
19144 if test -n "$LIBTOOL"; then
19145 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19146 echo "${ECHO_T}$LIBTOOL" >&6; }
19148 { echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6; }
19155 LIBTOOL="`pwd`/libtool"
19175 # Check whether --enable-strict-dependencies was given.
19176 if test "${enable_strict_dependencies+set}" = set; then
19177 enableval=$enable_strict_dependencies;
19181 docdir='${datadir}/doc/freeradius'
19182 { echo "$as_me:$LINENO: checking docdir" >&5
19183 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19185 # Check whether --with-docdir was given.
19186 if test "${with_docdir+set}" = set; then
19187 withval=$with_docdir; case "$withval" in
19189 { { echo "$as_me:$LINENO: error: Need docdir" >&5
19190 echo "$as_me: error: Need docdir" >&2;}
19191 { (exit 1); exit 1; }; }
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; }
19211 logdir='${localstatedir}/log/radius'
19212 { echo "$as_me:$LINENO: checking logdir" >&5
19213 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19215 # Check whether --with-logdir was given.
19216 if test "${with_logdir+set}" = set; then
19217 withval=$with_logdir; case "$withval" in
19219 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19220 echo "$as_me: error: Need logdir" >&2;}
19221 { (exit 1); exit 1; }; }
19225 [\\/$]* | ?:[\\/]* )
19229 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19230 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19231 { (exit 1); exit 1; }; }
19238 { echo "$as_me:$LINENO: result: $logdir" >&5
19239 echo "${ECHO_T}$logdir" >&6; }
19241 radacctdir='${logdir}/radacct'
19242 { echo "$as_me:$LINENO: checking radacctdir" >&5
19243 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19245 # Check whether --with-radacctdir was given.
19246 if test "${with_radacctdir+set}" = set; then
19247 withval=$with_radacctdir; case "$withval" in
19249 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19250 echo "$as_me: error: Need radacctdir" >&2;}
19251 { (exit 1); exit 1; }; }
19255 [\\/$]* | ?:[\\/]* )
19256 radacctdir="$withval"
19259 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19260 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19261 { (exit 1); exit 1; }; }
19268 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19269 echo "${ECHO_T}$radacctdir" >&6; }
19271 raddbdir='${sysconfdir}/raddb'
19272 { echo "$as_me:$LINENO: checking raddbdir" >&5
19273 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19275 # Check whether --with-raddbdir was given.
19276 if test "${with_raddbdir+set}" = set; then
19277 withval=$with_raddbdir; case "$withval" in
19279 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19280 echo "$as_me: error: Need raddbdir" >&2;}
19281 { (exit 1); exit 1; }; }
19285 [\\/$]* | ?:[\\/]* )
19286 raddbdir="$withval"
19289 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19290 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19291 { (exit 1); exit 1; }; }
19298 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19299 echo "${ECHO_T}$raddbdir" >&6; }
19303 # Check whether --with-ascend-binary was given.
19304 if test "${with_ascend_binary+set}" = set; then
19305 withval=$with_ascend_binary; case "$withval" in
19314 if test "X$ASCEND_BINARY" = "Xyes"; then
19315 cat >>confdefs.h <<\_ACEOF
19316 #define ASCEND_BINARY 1
19323 # Check whether --with-threads was given.
19324 if test "${with_threads+set}" = set; then
19325 withval=$with_threads; case "$withval" in
19337 # Check whether --with-snmp was given.
19338 if test "${with_snmp+set}" = set; then
19339 withval=$with_snmp; case "$withval" in
19349 rad_enable_largefiles=no
19351 # Check whether --with-large-files was given.
19352 if test "${with_large_files+set}" = set; then
19353 withval=$with_large_files; case "$withval" in
19355 rad_enable_largefiles=yes
19367 # Check whether --with-static_modules was given.
19368 if test "${with_static_modules+set}" = set; then
19369 withval=$with_static_modules;
19370 for i in $withval; do
19371 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19379 # Check whether --with-modules was given.
19380 if test "${with_modules+set}" = set; then
19381 withval=$with_modules;
19382 for i in $withval; do
19383 MODULES="$MODULES $i"
19389 # Check whether --enable-developer was given.
19390 if test "${enable_developer+set}" = set; then
19391 enableval=$enable_developer; case "$enableval" in
19402 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19408 # Check whether --with-experimental-modules was given.
19409 if test "${with_experimental_modules+set}" = set; then
19410 withval=$with_experimental_modules; case "$withval" in
19420 OPENSSL_INCLUDE_DIR=
19422 # Check whether --with-openssl-includes was given.
19423 if test "${with_openssl_includes+set}" = set; then
19424 withval=$with_openssl_includes; case "$withval" in
19425 *) OPENSSL_INCLUDE_DIR="$withval"
19434 # Check whether --with-openssl-libraries was given.
19435 if test "${with_openssl_libraries+set}" = set; then
19436 withval=$with_openssl_libraries; case "$withval" in
19437 *) OPENSSL_LIB_DIR="$withval"
19446 # Check whether --with-rlm-FOO-lib-dir was given.
19447 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19448 withval=$with_rlm_FOO_lib_dir; case "$withval" in
19457 # Check whether --with-rlm-FOO-include-dir was given.
19458 if test "${with_rlm_FOO_include_dir+set}" = set; then
19459 withval=$with_rlm_FOO_include_dir; case "$withval" in
19470 # Check whether --with-udpfromto was given.
19471 if test "${with_udpfromto+set}" = set; then
19472 withval=$with_udpfromto; case "$withval" in
19483 if test "x$WITH_UDPFROMTO" = "xyes"; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define WITH_UDPFROMTO 1
19491 # Check whether --with-edir was given.
19492 if test "${with_edir+set}" = set; then
19493 withval=$with_edir;
19498 CHECKRAD=checkrad.pl
19499 # Extract the first word of "perl", so it can be a program name with args.
19500 set dummy perl; ac_word=$2
19501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19503 if test "${ac_cv_path_PERL+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19512 for as_dir in $PATH
19515 test -z "$as_dir" && as_dir=.
19516 for ac_exec_ext in '' $ac_executable_extensions; do
19517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19518 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19526 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19530 PERL=$ac_cv_path_PERL
19531 if test -n "$PERL"; then
19532 { echo "$as_me:$LINENO: result: $PERL" >&5
19533 echo "${ECHO_T}$PERL" >&6; }
19535 { echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6; }
19540 if test "x$ac_cv_path_PERL" = "x"; then
19541 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19542 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19544 # Extract the first word of "snmpget", so it can be a program name with args.
19545 set dummy snmpget; ac_word=$2
19546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19548 if test "${ac_cv_path_SNMPGET+set}" = set; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557 for as_dir in $PATH
19560 test -z "$as_dir" && as_dir=.
19561 for ac_exec_ext in '' $ac_executable_extensions; do
19562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19574 SNMPGET=$ac_cv_path_SNMPGET
19575 if test -n "$SNMPGET"; then
19576 { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19577 echo "${ECHO_T}$SNMPGET" >&6; }
19579 { echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6; }
19584 if test "x$ac_cv_path_SNMPGET" = "x"; then
19585 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19586 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19589 # Extract the first word of "snmpwalk", so it can be a program name with args.
19590 set dummy snmpwalk; ac_word=$2
19591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19593 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19598 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19605 test -z "$as_dir" && as_dir=.
19606 for ac_exec_ext in '' $ac_executable_extensions; do
19607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19608 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19619 SNMPWALK=$ac_cv_path_SNMPWALK
19620 if test -n "$SNMPWALK"; then
19621 { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19622 echo "${ECHO_T}$SNMPWALK" >&6; }
19624 { echo "$as_me:$LINENO: result: no" >&5
19625 echo "${ECHO_T}no" >&6; }
19629 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19630 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19631 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19634 # Extract the first word of "rusers", so it can be a program name with args.
19635 set dummy rusers; ac_word=$2
19636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19638 if test "${ac_cv_path_RUSERS+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19647 for as_dir in $PATH
19650 test -z "$as_dir" && as_dir=.
19651 for ac_exec_ext in '' $ac_executable_extensions; do
19652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19653 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19661 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19665 RUSERS=$ac_cv_path_RUSERS
19666 if test -n "$RUSERS"; then
19667 { echo "$as_me:$LINENO: result: $RUSERS" >&5
19668 echo "${ECHO_T}$RUSERS" >&6; }
19670 { echo "$as_me:$LINENO: result: no" >&5
19671 echo "${ECHO_T}no" >&6; }
19676 missing_dir=`cd $ac_aux_dir && pwd`
19677 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19678 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19679 # Run test in a subshell; some versions of sh will print an error if
19680 # an executable is not found, even if stderr is redirected.
19681 # Redirect stdin to placate older versions of autoconf. Sigh.
19682 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19684 { echo "$as_me:$LINENO: result: found" >&5
19685 echo "${ECHO_T}found" >&6; }
19687 ACLOCAL="$missing_dir/missing aclocal"
19688 { echo "$as_me:$LINENO: result: missing" >&5
19689 echo "${ECHO_T}missing" >&6; }
19692 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19693 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19694 # Run test in a subshell; some versions of sh will print an error if
19695 # an executable is not found, even if stderr is redirected.
19696 # Redirect stdin to placate older versions of autoconf. Sigh.
19697 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19699 { echo "$as_me:$LINENO: result: found" >&5
19700 echo "${ECHO_T}found" >&6; }
19702 AUTOCONF="$missing_dir/missing autoconf"
19703 { echo "$as_me:$LINENO: result: missing" >&5
19704 echo "${ECHO_T}missing" >&6; }
19707 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19708 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19709 # Run test in a subshell; some versions of sh will print an error if
19710 # an executable is not found, even if stderr is redirected.
19711 # Redirect stdin to placate older versions of autoconf. Sigh.
19712 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19713 AUTOHEADER=autoheader
19714 { echo "$as_me:$LINENO: result: found" >&5
19715 echo "${ECHO_T}found" >&6; }
19717 AUTOHEADER="$missing_dir/missing autoheader"
19718 { echo "$as_me:$LINENO: result: missing" >&5
19719 echo "${ECHO_T}missing" >&6; }
19723 # Extract the first word of "locate", so it can be a program name with args.
19724 set dummy locate; ac_word=$2
19725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19727 if test "${ac_cv_path_LOCATE+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19732 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19736 for as_dir in $PATH
19739 test -z "$as_dir" && as_dir=.
19740 for ac_exec_ext in '' $ac_executable_extensions; do
19741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19742 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19753 LOCATE=$ac_cv_path_LOCATE
19754 if test -n "$LOCATE"; then
19755 { echo "$as_me:$LINENO: result: $LOCATE" >&5
19756 echo "${ECHO_T}$LOCATE" >&6; }
19758 { echo "$as_me:$LINENO: result: no" >&5
19759 echo "${ECHO_T}no" >&6; }
19763 # Extract the first word of "dirname", so it can be a program name with args.
19764 set dummy dirname; ac_word=$2
19765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19767 if test "${ac_cv_path_DIRNAME+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19772 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776 for as_dir in $PATH
19779 test -z "$as_dir" && as_dir=.
19780 for ac_exec_ext in '' $ac_executable_extensions; do
19781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19782 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19793 DIRNAME=$ac_cv_path_DIRNAME
19794 if test -n "$DIRNAME"; then
19795 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19796 echo "${ECHO_T}$DIRNAME" >&6; }
19798 { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19803 # Extract the first word of "grep", so it can be a program name with args.
19804 set dummy grep; ac_word=$2
19805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19807 if test "${ac_cv_path_GREP+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19816 for as_dir in $PATH
19819 test -z "$as_dir" && as_dir=.
19820 for ac_exec_ext in '' $ac_executable_extensions; do
19821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19822 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19833 GREP=$ac_cv_path_GREP
19834 if test -n "$GREP"; then
19835 { echo "$as_me:$LINENO: result: $GREP" >&5
19836 echo "${ECHO_T}$GREP" >&6; }
19838 { echo "$as_me:$LINENO: result: no" >&5
19839 echo "${ECHO_T}no" >&6; }
19846 if test "x$WITH_THREADS" = "xyes"; then
19847 if test $ac_cv_prog_suncc = "yes"; then
19848 CFLAGS="$CFLAGS -mt"
19852 for ac_header in pthread.h
19854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19861 ac_res=`eval echo '${'$as_ac_Header'}'`
19862 { echo "$as_me:$LINENO: result: $ac_res" >&5
19863 echo "${ECHO_T}$ac_res" >&6; }
19865 # Is the header compilable?
19866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19868 cat >conftest.$ac_ext <<_ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h. */
19874 $ac_includes_default
19875 #include <$ac_header>
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_compile") 2>conftest.er1
19886 grep -v '^ *+' conftest.er1 >conftest.err
19888 cat conftest.err >&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } && {
19891 test -z "$ac_c_werror_flag" ||
19892 test ! -s conftest.err
19893 } && test -s conftest.$ac_objext; then
19894 ac_header_compiler=yes
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 ac_header_compiler=no
19902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19904 echo "${ECHO_T}$ac_header_compiler" >&6; }
19906 # Is the header present?
19907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19909 cat >conftest.$ac_ext <<_ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h. */
19915 #include <$ac_header>
19917 if { (ac_try="$ac_cpp conftest.$ac_ext"
19918 case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19925 grep -v '^ *+' conftest.er1 >conftest.err
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } >/dev/null && {
19930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19931 test ! -s conftest.err
19933 ac_header_preproc=yes
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19938 ac_header_preproc=no
19941 rm -f conftest.err conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943 echo "${ECHO_T}$ac_header_preproc" >&6; }
19945 # So? What about this header?
19946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19952 ac_header_preproc=yes
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 eval "$as_ac_Header=\$ac_header_preproc"
19977 ac_res=`eval echo '${'$as_ac_Header'}'`
19978 { echo "$as_me:$LINENO: result: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983 cat >>confdefs.h <<_ACEOF
19984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19995 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19997 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lpthread $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20014 char pthread_create ();
20018 return pthread_create ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_pthread_pthread_create=yes
20043 echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_cv_lib_pthread_pthread_create=no
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20054 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20055 if test $ac_cv_lib_pthread_pthread_create = yes; then
20056 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20057 LIBS="$LIBS -lpthread"
20059 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20060 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_check_lib_save_LIBS=$LIBS
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20079 char pthread_create ();
20083 return pthread_create ();
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && {
20102 test -z "$ac_c_werror_flag" ||
20103 test ! -s conftest.err
20104 } && test -s conftest$ac_exeext &&
20105 $as_test_x conftest$ac_exeext; then
20106 ac_cv_lib_c_r_pthread_create=yes
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20111 ac_cv_lib_c_r_pthread_create=no
20114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20115 conftest$ac_exeext conftest.$ac_ext
20116 LIBS=$ac_check_lib_save_LIBS
20118 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20119 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20120 if test $ac_cv_lib_c_r_pthread_create = yes; then
20121 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20132 if test "x$WITH_THREADS" != "xyes"; then
20134 ac_cv_header_pthread_h="no"
20138 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20139 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20140 if test "${ac_cv_search_sem_init+set}" = set; then
20141 echo $ECHO_N "(cached) $ECHO_C" >&6
20143 ac_func_search_save_LIBS=$LIBS
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20161 return sem_init ();
20166 for ac_lib in '' pthread sem posix4 rt; do
20167 if test -z "$ac_lib"; then
20168 ac_res="none required"
20171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest$ac_exeext &&
20190 $as_test_x conftest$ac_exeext; then
20191 ac_cv_search_sem_init=$ac_res
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20201 if test "${ac_cv_search_sem_init+set}" = set; then
20205 if test "${ac_cv_search_sem_init+set}" = set; then
20208 ac_cv_search_sem_init=no
20210 rm conftest.$ac_ext
20211 LIBS=$ac_func_search_save_LIBS
20213 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20214 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20215 ac_res=$ac_cv_search_sem_init
20216 if test "$ac_res" != no; then
20217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20220 { { 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
20221 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;}
20222 { (exit 1); exit 1; }; }
20229 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20230 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 ac_check_lib_save_LIBS=$LIBS
20235 LIBS="-lsocket $LIBS"
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20249 char getsockname ();
20253 return getsockname ();
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20276 ac_cv_lib_socket_getsockname=yes
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 ac_cv_lib_socket_getsockname=no
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20288 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20289 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20290 if test $ac_cv_lib_socket_getsockname = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_LIBSOCKET 1
20295 LIBS="-lsocket $LIBS"
20301 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20302 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20303 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20304 echo $ECHO_N "(cached) $ECHO_C" >&6
20306 ac_check_lib_save_LIBS=$LIBS
20307 LIBS="-lresolv $LIBS"
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20315 /* Override any GCC internal prototype to avoid an error.
20316 Use char because int might match the return type of a GCC
20317 builtin and then its argument prototype would still apply. */
20325 return inet_aton ();
20330 rm -f conftest.$ac_objext conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_link") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } && {
20344 test -z "$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20346 } && test -s conftest$ac_exeext &&
20347 $as_test_x conftest$ac_exeext; then
20348 ac_cv_lib_resolv_inet_aton=yes
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20353 ac_cv_lib_resolv_inet_aton=no
20356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20357 conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20360 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20361 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20362 if test $ac_cv_lib_resolv_inet_aton = yes; then
20363 cat >>confdefs.h <<_ACEOF
20364 #define HAVE_LIBRESOLV 1
20367 LIBS="-lresolv $LIBS"
20373 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20374 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 ac_check_lib_save_LIBS=$LIBS
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20397 return inet_ntoa ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_link") 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } && {
20416 test -z "$ac_c_werror_flag" ||
20417 test ! -s conftest.err
20418 } && test -s conftest$ac_exeext &&
20419 $as_test_x conftest$ac_exeext; then
20420 ac_cv_lib_nsl_inet_ntoa=yes
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 ac_cv_lib_nsl_inet_ntoa=no
20428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20429 conftest$ac_exeext conftest.$ac_ext
20430 LIBS=$ac_check_lib_save_LIBS
20432 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20433 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20434 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20435 cat >>confdefs.h <<_ACEOF
20436 #define HAVE_LIBNSL 1
20446 if test "x$OPENSSL_LIB_DIR" != "x"; then
20447 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20449 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20450 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20451 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lcrypto $LIBS"
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20463 /* Override any GCC internal prototype to avoid an error.
20464 Use char because int might match the return type of a GCC
20465 builtin and then its argument prototype would still apply. */
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (ac_try="$ac_link"
20480 case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_link") 2>conftest.er1
20487 grep -v '^ *+' conftest.er1 >conftest.err
20489 cat conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest$ac_exeext &&
20495 $as_test_x conftest$ac_exeext; then
20496 ac_cv_lib_crypto_DH_new=yes
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20501 ac_cv_lib_crypto_DH_new=no
20504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20505 conftest$ac_exeext conftest.$ac_ext
20506 LIBS=$ac_check_lib_save_LIBS
20508 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20509 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20510 if test $ac_cv_lib_crypto_DH_new = yes; then
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_LIBCRYPTO 1
20517 { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20518 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20519 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 ac_check_lib_save_LIBS=$LIBS
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20531 /* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (ac_try="$ac_link"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_link") 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } && {
20560 test -z "$ac_c_werror_flag" ||
20561 test ! -s conftest.err
20562 } && test -s conftest$ac_exeext &&
20563 $as_test_x conftest$ac_exeext; then
20564 ac_cv_lib_ssl_SSL_new=yes
20566 echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20569 ac_cv_lib_ssl_SSL_new=no
20572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20573 conftest$ac_exeext conftest.$ac_ext
20574 LIBS=$ac_check_lib_save_LIBS
20576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20577 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20578 if test $ac_cv_lib_ssl_SSL_new = yes; then
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_LIBSSL 1
20585 if test "x$OPENSSL_LIB_DIR" != "x"; then
20586 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20588 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20600 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20603 CFLAGS="$CFLAGS -DDARWIN"
20612 ac_header_dirent=no
20613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20614 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20615 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 #include <sys/types.h>
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 eval "$as_ac_Header=yes"
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 eval "$as_ac_Header=no"
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 ac_res=`eval echo '${'$as_ac_Header'}'`
20666 { echo "$as_me:$LINENO: result: $ac_res" >&5
20667 echo "${ECHO_T}$ac_res" >&6; }
20668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20669 cat >>confdefs.h <<_ACEOF
20670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20673 ac_header_dirent=$ac_hdr; break
20677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20678 if test $ac_header_dirent = dirent.h; then
20679 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20681 if test "${ac_cv_search_opendir+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20684 ac_func_search_save_LIBS=$LIBS
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 /* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
20707 for ac_lib in '' dir; do
20708 if test -z "$ac_lib"; then
20709 ac_res="none required"
20712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_link") 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest$ac_exeext &&
20731 $as_test_x conftest$ac_exeext; then
20732 ac_cv_search_opendir=$ac_res
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20742 if test "${ac_cv_search_opendir+set}" = set; then
20746 if test "${ac_cv_search_opendir+set}" = set; then
20749 ac_cv_search_opendir=no
20751 rm conftest.$ac_ext
20752 LIBS=$ac_func_search_save_LIBS
20754 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20755 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20756 ac_res=$ac_cv_search_opendir
20757 if test "$ac_res" != no; then
20758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20763 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20765 if test "${ac_cv_search_opendir+set}" = set; then
20766 echo $ECHO_N "(cached) $ECHO_C" >&6
20768 ac_func_search_save_LIBS=$LIBS
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20776 /* Override any GCC internal prototype to avoid an error.
20777 Use char because int might match the return type of a GCC
20778 builtin and then its argument prototype would still apply. */
20791 for ac_lib in '' x; do
20792 if test -z "$ac_lib"; then
20793 ac_res="none required"
20796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (ac_try="$ac_link"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_link") 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } && {
20812 test -z "$ac_c_werror_flag" ||
20813 test ! -s conftest.err
20814 } && test -s conftest$ac_exeext &&
20815 $as_test_x conftest$ac_exeext; then
20816 ac_cv_search_opendir=$ac_res
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 if test "${ac_cv_search_opendir+set}" = set; then
20830 if test "${ac_cv_search_opendir+set}" = set; then
20833 ac_cv_search_opendir=no
20835 rm conftest.$ac_ext
20836 LIBS=$ac_func_search_save_LIBS
20838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20840 ac_res=$ac_cv_search_opendir
20841 if test "$ac_res" != no; then
20842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20848 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20850 if test "${ac_cv_header_stdc+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20853 cat >conftest.$ac_ext <<_ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 #include <stdlib.h>
20860 #include <stdarg.h>
20861 #include <string.h>
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_compile") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } && {
20886 test -z "$ac_c_werror_flag" ||
20887 test ! -s conftest.err
20888 } && test -s conftest.$ac_objext; then
20889 ac_cv_header_stdc=yes
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_header_stdc=no
20897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20899 if test $ac_cv_header_stdc = yes; then
20900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20901 cat >conftest.$ac_ext <<_ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h. */
20907 #include <string.h>
20910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20911 $EGREP "memchr" >/dev/null 2>&1; then
20914 ac_cv_header_stdc=no
20920 if test $ac_cv_header_stdc = yes; then
20921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <stdlib.h>
20931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20932 $EGREP "free" >/dev/null 2>&1; then
20935 ac_cv_header_stdc=no
20941 if test $ac_cv_header_stdc = yes; then
20942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20943 if test "$cross_compiling" = yes; then
20946 cat >conftest.$ac_ext <<_ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20953 #include <stdlib.h>
20954 #if ((' ' & 0x0FF) == 0x020)
20955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20958 # define ISLOWER(c) \
20959 (('a' <= (c) && (c) <= 'i') \
20960 || ('j' <= (c) && (c) <= 'r') \
20961 || ('s' <= (c) && (c) <= 'z'))
20962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20970 for (i = 0; i < 256; i++)
20971 if (XOR (islower (i), ISLOWER (i))
20972 || toupper (i) != TOUPPER (i))
20977 rm -f conftest$ac_exeext
20978 if { (ac_try="$ac_link"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_link") 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20988 { (case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_try") 2>&5
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20999 echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ( exit $ac_status )
21004 ac_cv_header_stdc=no
21006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21014 if test $ac_cv_header_stdc = yes; then
21016 cat >>confdefs.h <<\_ACEOF
21017 #define STDC_HEADERS 1
21022 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21023 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21024 if test "${ac_cv_header_time+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <sys/types.h>
21034 #include <sys/time.h>
21040 if ((struct tm *) 0)
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1 >conftest.err
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.$ac_objext; then
21063 ac_cv_header_time=yes
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068 ac_cv_header_time=no
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21074 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21075 if test $ac_cv_header_time = yes; then
21077 cat >>confdefs.h <<\_ACEOF
21078 #define TIME_WITH_SYS_TIME 1
21083 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 cat >conftest.$ac_ext <<_ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <sys/types.h>
21095 #include <sys/wait.h>
21096 #ifndef WEXITSTATUS
21097 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21108 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_compile") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } && {
21127 test -z "$ac_c_werror_flag" ||
21128 test ! -s conftest.err
21129 } && test -s conftest.$ac_objext; then
21130 ac_cv_header_sys_wait_h=yes
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 ac_cv_header_sys_wait_h=no
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21141 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21142 if test $ac_cv_header_sys_wait_h = yes; then
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_SYS_WAIT_H 1
21214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222 { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21225 # Is the header compilable?
21226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h. */
21234 $ac_includes_default
21235 #include <$ac_header>
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest.$ac_objext; then
21254 ac_header_compiler=yes
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21259 ac_header_compiler=no
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21264 echo "${ECHO_T}$ac_header_compiler" >&6; }
21266 # Is the header present?
21267 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 #include <$ac_header>
21277 if { (ac_try="$ac_cpp conftest.$ac_ext"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21285 grep -v '^ *+' conftest.er1 >conftest.err
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); } >/dev/null && {
21290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21293 ac_header_preproc=yes
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_header_preproc=no
21301 rm -f conftest.err conftest.$ac_ext
21302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21303 echo "${ECHO_T}$ac_header_preproc" >&6; }
21305 # So? What about this header?
21306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21312 ac_header_preproc=yes
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21322 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21335 eval "$as_ac_Header=\$ac_header_preproc"
21337 ac_res=`eval echo '${'$as_ac_Header'}'`
21338 { echo "$as_me:$LINENO: result: $ac_res" >&5
21339 echo "${ECHO_T}$ac_res" >&6; }
21342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21343 cat >>confdefs.h <<_ACEOF
21344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21353 if test "${ac_cv_header_regex_h+set}" = set; then
21354 { echo "$as_me:$LINENO: checking for regex.h" >&5
21355 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21356 if test "${ac_cv_header_regex_h+set}" = set; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21360 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21362 # Is the header compilable?
21363 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21364 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 $ac_includes_default
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1 >conftest.err
21385 cat conftest.err >&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.$ac_objext; then
21391 ac_header_compiler=yes
21393 echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21396 ac_header_compiler=no
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6; }
21403 # Is the header present?
21404 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21405 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21414 if { (ac_try="$ac_cpp conftest.$ac_ext"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } >/dev/null && {
21427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21430 ac_header_preproc=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_header_preproc=no
21438 rm -f conftest.err conftest.$ac_ext
21439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21440 echo "${ECHO_T}$ac_header_preproc" >&6; }
21442 # So? What about this header?
21443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21445 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21446 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21447 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21448 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21449 ac_header_preproc=yes
21452 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21453 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21454 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21455 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21457 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21459 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21461 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21463 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21467 { echo "$as_me:$LINENO: checking for regex.h" >&5
21468 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21469 if test "${ac_cv_header_regex_h+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 ac_cv_header_regex_h=$ac_header_preproc
21474 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21475 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21478 if test $ac_cv_header_regex_h = yes; then
21479 cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_REGEX_H 1
21486 if test "x$ac_cv_header_regex_h" = "xyes"; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 #ifdef REG_EXTENDED
21501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21502 $EGREP "yes" >/dev/null 2>&1; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_REG_EXTENDED 1
21514 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21516 cat >>confdefs.h <<\_ACEOF
21522 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21524 cat >>confdefs.h <<\_ACEOF
21530 OPENSSL_INCLUDE="-DNO_OPENSSL"
21531 if test "x$OPENSSL_LIBS" = "x"; then
21532 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21533 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21535 old_CPPFLAGS=$CPPFLAGS
21536 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21537 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21539 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 ac_res=`eval echo '${'$as_ac_Header'}'`
21558 { echo "$as_me:$LINENO: result: $ac_res" >&5
21559 echo "${ECHO_T}$ac_res" >&6; }
21561 # Is the header compilable?
21562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 $ac_includes_default
21571 #include <$ac_header>
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21582 grep -v '^ *+' conftest.er1 >conftest.err
21584 cat conftest.err >&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.$ac_objext; then
21590 ac_header_compiler=yes
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ac_header_compiler=no
21598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21600 echo "${ECHO_T}$ac_header_compiler" >&6; }
21602 # Is the header present?
21603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 #include <$ac_header>
21613 if { (ac_try="$ac_cpp conftest.$ac_ext"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } >/dev/null && {
21626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21629 ac_header_preproc=yes
21631 echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_preproc=no
21637 rm -f conftest.err conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21639 echo "${ECHO_T}$ac_header_preproc" >&6; }
21641 # So? What about this header?
21642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21648 ac_header_preproc=yes
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21671 eval "$as_ac_Header=\$ac_header_preproc"
21673 ac_res=`eval echo '${'$as_ac_Header'}'`
21674 { echo "$as_me:$LINENO: result: $ac_res" >&5
21675 echo "${ECHO_T}$ac_res" >&6; }
21678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21679 cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21690 if test "x$OPENSSL_LIBS" != "x"; then
21691 { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21692 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #include <openssl/crypto.h>
21700 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21706 $EGREP "yes" >/dev/null 2>&1; then
21711 if test "x$goodssl" != "xyes"; then
21712 { echo "$as_me:$LINENO: result: no" >&5
21713 echo "${ECHO_T}no" >&6; }
21716 { echo "$as_me:$LINENO: result: yes" >&5
21717 echo "${ECHO_T}yes" >&6; }
21718 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21719 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21721 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21725 CPPFLAGS=$old_CPPFLAGS
21729 export OPENSSL_LIBS
21732 { echo "$as_me:$LINENO: checking for off_t" >&5
21733 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21734 if test "${ac_cv_type_off_t+set}" = set; then
21735 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 typedef off_t ac__type_new_;
21748 if ((ac__type_new_ *) 0)
21750 if (sizeof (ac__type_new_))
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_compile") 2>conftest.er1
21765 grep -v '^ *+' conftest.er1 >conftest.err
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest.$ac_objext; then
21773 ac_cv_type_off_t=yes
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ac_cv_type_off_t=no
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21784 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21785 if test $ac_cv_type_off_t = yes; then
21789 cat >>confdefs.h <<_ACEOF
21790 #define off_t long int
21795 { echo "$as_me:$LINENO: checking for pid_t" >&5
21796 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21797 if test "${ac_cv_type_pid_t+set}" = set; then
21798 echo $ECHO_N "(cached) $ECHO_C" >&6
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21806 $ac_includes_default
21807 typedef pid_t ac__type_new_;
21811 if ((ac__type_new_ *) 0)
21813 if (sizeof (ac__type_new_))
21819 rm -f conftest.$ac_objext
21820 if { (ac_try="$ac_compile"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_compile") 2>conftest.er1
21828 grep -v '^ *+' conftest.er1 >conftest.err
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } && {
21833 test -z "$ac_c_werror_flag" ||
21834 test ! -s conftest.err
21835 } && test -s conftest.$ac_objext; then
21836 ac_cv_type_pid_t=yes
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21841 ac_cv_type_pid_t=no
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21847 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21848 if test $ac_cv_type_pid_t = yes; then
21852 cat >>confdefs.h <<_ACEOF
21858 { echo "$as_me:$LINENO: checking for size_t" >&5
21859 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21860 if test "${ac_cv_type_size_t+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 $ac_includes_default
21870 typedef size_t ac__type_new_;
21874 if ((ac__type_new_ *) 0)
21876 if (sizeof (ac__type_new_))
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.$ac_objext; then
21899 ac_cv_type_size_t=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_cv_type_size_t=no
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21910 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21911 if test $ac_cv_type_size_t = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define size_t unsigned int
21921 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21922 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21923 if test "${ac_cv_type_uid_t+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 #include <sys/types.h>
21935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21936 $EGREP "uid_t" >/dev/null 2>&1; then
21937 ac_cv_type_uid_t=yes
21939 ac_cv_type_uid_t=no
21944 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21945 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21946 if test $ac_cv_type_uid_t = no; then
21948 cat >>confdefs.h <<\_ACEOF
21953 cat >>confdefs.h <<\_ACEOF
21961 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21962 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21963 if test "${ac_cv_type_socklen_t+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 ac_cv_type_socklen_t=no
21967 cat >conftest.$ac_ext <<_ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h. */
21973 #ifdef HAVE_SYS_TYPES_H
21974 #include <sys/types.h>
21976 #ifdef HAVE_SYS_SOCKET_H
21977 #include <sys/socket.h>
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 ac_cv_type_socklen_t=yes
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22017 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22018 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22020 if test "$ac_cv_type_socklen_t" != "yes"; then
22021 cat >>confdefs.h <<\_ACEOF
22022 #define socklen_t int
22029 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22030 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22031 if test "${ac_cv_type_uint8_t+set}" = set; then
22032 echo $ECHO_N "(cached) $ECHO_C" >&6
22034 ac_cv_type_uint8_t=no
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 #ifdef HAVE_INTTYPES_H
22042 #include <inttypes.h>
22044 #ifdef HAVE_STDINT_H
22045 #include <stdint.h>
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22073 ac_cv_type_uint8_t=yes
22075 echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22086 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22088 if test "$ac_cv_type_uint8_t" != "yes"; then
22089 cat >>confdefs.h <<\_ACEOF
22090 #define uint8_t unsigned char
22097 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22098 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22099 if test "${ac_cv_type_uint16_t+set}" = set; then
22100 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 ac_cv_type_uint16_t=no
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #ifdef HAVE_INTTYPES_H
22110 #include <inttypes.h>
22112 #ifdef HAVE_STDINT_H
22113 #include <stdint.h>
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_compile") 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } && {
22138 test -z "$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22140 } && test -s conftest.$ac_objext; then
22141 ac_cv_type_uint16_t=yes
22143 echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22154 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22156 if test "$ac_cv_type_uint16_t" != "yes"; then
22157 cat >>confdefs.h <<\_ACEOF
22158 #define uint16_t unsigned short
22165 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22166 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22167 if test "${ac_cv_type_uint32_t+set}" = set; then
22168 echo $ECHO_N "(cached) $ECHO_C" >&6
22170 ac_cv_type_uint32_t=no
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 #ifdef HAVE_INTTYPES_H
22178 #include <inttypes.h>
22180 #ifdef HAVE_STDINT_H
22181 #include <stdint.h>
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196 *) ac_try_echo=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_compile") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest.$ac_objext; then
22209 ac_cv_type_uint32_t=yes
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22222 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22224 if test "$ac_cv_type_uint32_t" != "yes"; then
22225 cat >>confdefs.h <<\_ACEOF
22226 #define uint32_t unsigned int
22283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22297 #define $ac_func innocuous_$ac_func
22299 /* System header to define __stub macros and hopefully few prototypes,
22300 which can conflict with char $ac_func (); below.
22301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22302 <limits.h> exists even on freestanding compilers. */
22305 # include <limits.h>
22307 # include <assert.h>
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22319 /* The GNU C library defines this for functions which it implements
22320 to always fail with ENOSYS. Some functions are actually named
22321 something starting with __ and the normal name is an alias. */
22322 #if defined __stub_$ac_func || defined __stub___$ac_func
22329 return $ac_func ();
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_link") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest$ac_exeext &&
22351 $as_test_x conftest$ac_exeext; then
22352 eval "$as_ac_var=yes"
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 eval "$as_ac_var=no"
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361 conftest$ac_exeext conftest.$ac_ext
22363 ac_res=`eval echo '${'$as_ac_var'}'`
22364 { echo "$as_me:$LINENO: result: $ac_res" >&5
22365 echo "${ECHO_T}$ac_res" >&6; }
22366 if test `eval echo '${'$as_ac_var'}'` = yes; then
22367 cat >>confdefs.h <<_ACEOF
22368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22385 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22386 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22387 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 cat >conftest.$ac_ext <<_ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22398 #include <string.h>
22399 #ifdef HAVE_UNISTD_H
22400 #include <unistd.h>
22402 #ifdef HAVE_CRYPT_H
22405 #ifdef HAVE_ERRNO_H
22408 #ifdef HAVE_RESOURCE_H
22409 #include <resource.h>
22411 #ifdef HAVE_GETOPT_H
22412 #include <getopt.h>
22414 #ifdef HAVE_MALLOC_H
22415 #include <malloc.h>
22420 #ifdef HAVE_UTMPX_H
22423 #ifdef HAVE_SYS_SELECT_H
22424 #include <sys/select.h>
22426 #ifdef HAVE_DLFCN_H
22429 #ifdef HAVE_REGEX_H
22432 #ifdef HAVE_SYSLOG_H
22433 #include <syslog.h>
22435 #ifdef HAVE_INTTYPES_H
22436 #include <inttypes.h>
22438 #ifdef HAVE_STDINT_H
22439 #include <stdint.h>
22441 #ifdef HAVE_ARPA_INET_H
22442 #include <arpa/inet.h>
22448 char *(*pfn) = (char *(*)) $ac_func
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_compile") 2>conftest.er1
22462 grep -v '^ *+' conftest.er1 >conftest.err
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest.$ac_objext; then
22470 eval "radius_cv_decl_needed_$ac_func=no"
22472 echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22475 eval "radius_cv_decl_needed_$ac_func=yes"
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22482 { echo "$as_me:$LINENO: result: yes" >&5
22483 echo "${ECHO_T}yes" >&6; }
22484 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22485 cat >>confdefs.h <<_ACEOF
22486 #define $radius_tr_decl 1
22490 { echo "$as_me:$LINENO: result: no" >&5
22491 echo "${ECHO_T}no" >&6; }
22497 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22498 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22499 if test "${ac_cv_type_signal+set}" = set; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22502 cat >conftest.$ac_ext <<_ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22508 #include <sys/types.h>
22509 #include <signal.h>
22514 return *(signal (0, 0)) (0) == 1;
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_compile") 2>conftest.er1
22528 grep -v '^ *+' conftest.er1 >conftest.err
22530 cat conftest.err >&5
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest.$ac_objext; then
22536 ac_cv_type_signal=int
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ac_cv_type_signal=void
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22547 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22549 cat >>confdefs.h <<_ACEOF
22550 #define RETSIGTYPE $ac_cv_type_signal
22555 if test "x$ac_cv_header_utmpx_h" = "xyes"
22558 { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22559 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22562 cat >conftest.$ac_ext <<_ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22571 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22577 int foo = offsetof(struct utmpx, ut_xtime)
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_compile") 2>conftest.er1
22591 grep -v '^ *+' conftest.er1 >conftest.err
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest.$ac_objext; then
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22610 if test "x$has_element" != "x"; then
22611 { echo "$as_me:$LINENO: result: yes" >&5
22612 echo "${ECHO_T}yes" >&6; }
22613 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22615 { echo "$as_me:$LINENO: result: no" >&5
22616 echo "${ECHO_T}no" >&6; }
22617 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22620 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22622 cat >>confdefs.h <<\_ACEOF
22623 #define ut_xtime ut_tv.tv_sec
22630 { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22631 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22634 cat >conftest.$ac_ext <<_ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22641 #include <netinet/in.h>
22643 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22649 int foo = offsetof(struct in_pktinfo, ipi_addr)
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661 (eval "$ac_compile") 2>conftest.er1
22663 grep -v '^ *+' conftest.er1 >conftest.err
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } && {
22668 test -z "$ac_c_werror_flag" ||
22669 test ! -s conftest.err
22670 } && test -s conftest.$ac_objext; then
22673 echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22682 if test "x$has_element" != "x"; then
22683 { echo "$as_me:$LINENO: result: yes" >&5
22684 echo "${ECHO_T}yes" >&6; }
22685 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22687 { echo "$as_me:$LINENO: result: no" >&5
22688 echo "${ECHO_T}no" >&6; }
22689 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22692 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22694 cat >>confdefs.h <<\_ACEOF
22695 #define HAVE_IP_PKTINFO 1
22701 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22702 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22703 if test "${ac_cv_c_const+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22716 /* FIXME: Include the comments suggested by Paul. */
22717 #ifndef __cplusplus
22718 /* Ultrix mips cc rejects this. */
22719 typedef int charset[2];
22721 /* SunOS 4.1.1 cc rejects this. */
22722 char const *const *pcpcc;
22724 /* NEC SVR4.0.2 mips cc rejects this. */
22725 struct point {int x, y;};
22726 static struct point const zero = {0,0};
22727 /* AIX XL C 1.02.0.0 rejects this.
22728 It does not let you subtract one const X* pointer from another in
22729 an arm of an if-expression whose if-part is not a constant
22731 const char *g = "string";
22732 pcpcc = &g + (g ? g-g : 0);
22733 /* HPUX 7.0 cc rejects these. */
22735 ppc = (char**) pcpcc;
22736 pcpcc = (char const *const *) ppc;
22737 { /* SCO 3.2v4 cc rejects this. */
22739 char const *s = 0 ? (char *) 0 : (char const *) 0;
22744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22745 int x[] = {25, 17};
22746 const int *foo = &x[0];
22749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22750 typedef const int *iptr;
22754 { /* AIX XL C 1.02.0.0 rejects this saying
22755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22756 struct s { int j; const int *ap[3]; };
22757 struct s *b; b->j = 5;
22759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22760 const int foo = 10;
22761 if (!foo) return 0;
22763 return !cs[0] && !zero.x;
22770 rm -f conftest.$ac_objext
22771 if { (ac_try="$ac_compile"
22772 case "(($ac_try" in
22773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774 *) ac_try_echo=$ac_try;;
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777 (eval "$ac_compile") 2>conftest.er1
22779 grep -v '^ *+' conftest.er1 >conftest.err
22781 cat conftest.err >&5
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } && {
22784 test -z "$ac_c_werror_flag" ||
22785 test ! -s conftest.err
22786 } && test -s conftest.$ac_objext; then
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22798 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22799 if test $ac_cv_c_const = no; then
22801 cat >>confdefs.h <<\_ACEOF
22808 { echo "$as_me:$LINENO: checking type of OS" >&5
22809 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22811 { echo "$as_me:$LINENO: result: $OS" >&5
22812 echo "${ECHO_T}$OS" >&6; }
22813 if test "$OS" = "OS/2"; then
22820 if test "x$GCC" = "xyes"; then
22821 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22824 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22825 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22826 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22827 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22828 CFLAGS="$CFLAGS $devflags"
22830 { echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22831 echo "${ECHO_T}yes. Using $devflags" >&6; }
22834 CFLAGS="$CFLAGS -DNDEBUG"
22836 { echo "$as_me:$LINENO: result: no." >&5
22837 echo "${ECHO_T}no." >&6; }
22841 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22842 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22843 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lcrypt $LIBS"
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22855 /* Override any GCC internal prototype to avoid an error.
22856 Use char because int might match the return type of a GCC
22857 builtin and then its argument prototype would still apply. */
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (ac_try="$ac_link"
22872 case "(($ac_try" in
22873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874 *) ac_try_echo=$ac_try;;
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877 (eval "$ac_link") 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } && {
22884 test -z "$ac_c_werror_flag" ||
22885 test ! -s conftest.err
22886 } && test -s conftest$ac_exeext &&
22887 $as_test_x conftest$ac_exeext; then
22888 ac_cv_lib_crypt_crypt=yes
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 ac_cv_lib_crypt_crypt=no
22896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897 conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22900 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22901 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22902 if test $ac_cv_lib_crypt_crypt = yes; then
22907 if test "$CRYPTLIB" != ""; then
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_CRYPT 1
22913 { echo "$as_me:$LINENO: checking for crypt" >&5
22914 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22915 if test "${ac_cv_func_crypt+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22918 cat >conftest.$ac_ext <<_ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22926 #define crypt innocuous_crypt
22928 /* System header to define __stub macros and hopefully few prototypes,
22929 which can conflict with char crypt (); below.
22930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22931 <limits.h> exists even on freestanding compilers. */
22934 # include <limits.h>
22936 # include <assert.h>
22941 /* Override any GCC internal prototype to avoid an error.
22942 Use char because int might match the return type of a GCC
22943 builtin and then its argument prototype would still apply. */
22948 /* The GNU C library defines this for functions which it implements
22949 to always fail with ENOSYS. Some functions are actually named
22950 something starting with __ and the normal name is an alias. */
22951 #if defined __stub_crypt || defined __stub___crypt
22963 rm -f conftest.$ac_objext conftest$ac_exeext
22964 if { (ac_try="$ac_link"
22965 case "(($ac_try" in
22966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967 *) ac_try_echo=$ac_try;;
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970 (eval "$ac_link") 2>conftest.er1
22972 grep -v '^ *+' conftest.er1 >conftest.err
22974 cat conftest.err >&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest$ac_exeext &&
22980 $as_test_x conftest$ac_exeext; then
22981 ac_cv_func_crypt=yes
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_cv_func_crypt=no
22989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22990 conftest$ac_exeext conftest.$ac_ext
22992 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22993 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
22994 if test $ac_cv_func_crypt = yes; then
22995 cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_CRYPT 1
23003 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23004 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23005 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23008 ac_check_lib_save_LIBS=$LIBS
23009 LIBS="-lcipher $LIBS"
23010 cat >conftest.$ac_ext <<_ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h. */
23017 /* Override any GCC internal prototype to avoid an error.
23018 Use char because int might match the return type of a GCC
23019 builtin and then its argument prototype would still apply. */
23032 rm -f conftest.$ac_objext conftest$ac_exeext
23033 if { (ac_try="$ac_link"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_link") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest$ac_exeext &&
23049 $as_test_x conftest$ac_exeext; then
23050 ac_cv_lib_cipher_setkey=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_cv_lib_cipher_setkey=no
23058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23059 conftest$ac_exeext conftest.$ac_ext
23060 LIBS=$ac_check_lib_save_LIBS
23062 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23063 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23064 if test $ac_cv_lib_cipher_setkey = yes; then
23065 CRYPTLIB="${CRYPTLIB} -lcipher"
23071 if test "x$WITH_SNMP" = "xyes"; then
23076 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23077 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23086 #ifdef HAVE_SYS_TYPES_H
23087 #include <sys/types.h>
23089 #ifdef HAVE_STDINT_H
23090 #include <stdint.h>
23092 #ifdef HAVE_STDIO_H
23095 #ifdef HAVE_NETDB_H
23098 #ifdef HAVE_UNISTD_H
23099 #include <unistd.h>
23101 #include <ucd-snmp/ucd-snmp-config.h>
23102 #include <ucd-snmp/asn1.h>
23103 #include <ucd-snmp/snmp.h>
23104 #include <ucd-snmp/snmp_impl.h>
23113 rm -f conftest.$ac_objext
23114 if { (ac_try="$ac_compile"
23115 case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23120 (eval "$ac_compile") 2>conftest.er1
23122 grep -v '^ *+' conftest.er1 >conftest.err
23124 cat conftest.err >&5
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); } && {
23127 test -z "$ac_c_werror_flag" ||
23128 test ! -s conftest.err
23129 } && test -s conftest.$ac_objext; then
23130 SNMP_INCLUDE="";ucdsnmp=yes
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140 if test "x$ucdsnmp" = "x"; then
23141 old_CFLAGS="$CFLAGS"
23142 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23143 CFLAGS="$old_CFLAGS -I$try"
23144 cat >conftest.$ac_ext <<_ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23151 #ifdef HAVE_SYS_TYPES_H
23152 #include <sys/types.h>
23154 #ifdef HAVE_STDINT_H
23155 #include <stdint.h>
23157 #ifdef HAVE_STDIO_H
23160 #ifdef HAVE_NETDB_H
23163 #ifdef HAVE_UNISTD_H
23164 #include <unistd.h>
23166 #include <ucd-snmp/ucd-snmp-config.h>
23167 #include <ucd-snmp/asn1.h>
23168 #include <ucd-snmp/snmp.h>
23169 #include <ucd-snmp/snmp_impl.h>
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 if test "x$ucdsnmp" != "x"; then
23208 CFLAGS="$old_CFLAGS"
23211 if test "x$ucdsnmp" = "x"; then
23212 old_CFLAGS="$CFLAGS"
23213 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23214 CFLAGS="$old_CFLAGS -I$try"
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23222 #ifdef HAVE_SYS_TYPES_H
23223 #include <sys/types.h>
23225 #ifdef HAVE_STDINT_H
23226 #include <stdint.h>
23228 #ifdef HAVE_STDIO_H
23231 #ifdef HAVE_NETDB_H
23234 #ifdef HAVE_UNISTD_H
23235 #include <unistd.h>
23239 #include <snmp_impl.h>
23248 rm -f conftest.$ac_objext
23249 if { (ac_try="$ac_compile"
23250 case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23257 grep -v '^ *+' conftest.er1 >conftest.err
23259 cat conftest.err >&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 SNMP_INCLUDE="";ucdsnmp=no
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274 if test "x$ucdsnmp" != "x"; then
23278 CFLAGS="$old_CFLAGS"
23281 if test "x$ucdsnmp" = "x"; then
23282 old_CFLAGS="$CFLAGS"
23283 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23284 CFLAGS="$old_CFLAGS -I$try"
23285 cat >conftest.$ac_ext <<_ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h. */
23292 #ifdef HAVE_SYS_TYPES_H
23293 #include <sys/types.h>
23295 #ifdef HAVE_STDINT_H
23296 #include <stdint.h>
23298 #ifdef HAVE_STDIO_H
23301 #ifdef HAVE_NETDB_H
23304 #ifdef HAVE_UNISTD_H
23305 #include <unistd.h>
23309 #include <snmp_impl.h>
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 SNMP_INCLUDE="-I$try";ucdsnmp=no
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 if test "x$ucdsnmp" != "x"; then
23348 CFLAGS="$old_CFLAGS"
23351 if test "x$ucdsnmp" = "x"; then
23352 { echo "$as_me:$LINENO: result: no" >&5
23353 echo "${ECHO_T}no" >&6; }
23355 if test "x$ucdsnmp" = "xyes"; then
23356 { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23357 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23358 cat >>confdefs.h <<\_ACEOF
23359 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23363 { echo "$as_me:$LINENO: result: yes" >&5
23364 echo "${ECHO_T}yes" >&6; }
23365 cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23370 { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23371 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23374 LIBS="$old_LIBS -lsnmp"
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 extern char snmp_build_var_op();
23385 snmp_build_var_op()
23390 rm -f conftest.$ac_objext conftest$ac_exeext
23391 if { (ac_try="$ac_link"
23392 case "(($ac_try" in
23393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394 *) ac_try_echo=$ac_try;;
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397 (eval "$ac_link") 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest$ac_exeext &&
23407 $as_test_x conftest$ac_exeext; then
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417 conftest$ac_exeext conftest.$ac_ext
23419 if test "x$SNMP_LIBS" = "x"; then
23420 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23421 LIBS="$old_LIBS -L$try -lsnmp"
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 extern char snmp_build_var_op();
23432 snmp_build_var_op()
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_link") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest$ac_exeext &&
23454 $as_test_x conftest$ac_exeext; then
23455 SNMP_LIBS="-L$try -lsnmp"
23457 echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23464 conftest$ac_exeext conftest.$ac_ext
23465 if test "x$SNMP_LIBS" != "x"; then
23468 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 extern char snmp_build_var_op();
23479 snmp_build_var_op()
23484 rm -f conftest.$ac_objext conftest$ac_exeext
23485 if { (ac_try="$ac_link"
23486 case "(($ac_try" in
23487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488 *) ac_try_echo=$ac_try;;
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491 (eval "$ac_link") 2>conftest.er1
23493 grep -v '^ *+' conftest.er1 >conftest.err
23495 cat conftest.err >&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } && {
23498 test -z "$ac_c_werror_flag" ||
23499 test ! -s conftest.err
23500 } && test -s conftest$ac_exeext &&
23501 $as_test_x conftest$ac_exeext; then
23502 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23504 echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23511 conftest$ac_exeext conftest.$ac_ext
23512 if test "x$SNMP_LIBS" != "x"; then
23515 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 extern char snmp_build_var_op();
23526 snmp_build_var_op()
23531 rm -f conftest.$ac_objext conftest$ac_exeext
23532 if { (ac_try="$ac_link"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_link") 2>conftest.er1
23540 grep -v '^ *+' conftest.er1 >conftest.err
23542 cat conftest.err >&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } && {
23545 test -z "$ac_c_werror_flag" ||
23546 test ! -s conftest.err
23547 } && test -s conftest$ac_exeext &&
23548 $as_test_x conftest$ac_exeext; then
23549 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23558 conftest$ac_exeext conftest.$ac_ext
23559 if test "x$SNMP_LIBS" != "x"; then
23566 CFLAGS="$old_CFLAGS"
23567 if test "x$SNMP_LIBS" = "x"; then
23568 { echo "$as_me:$LINENO: result: no" >&5
23569 echo "${ECHO_T}no" >&6; }
23572 { echo "$as_me:$LINENO: result: yes" >&5
23573 echo "${ECHO_T}yes" >&6; }
23574 cat >>confdefs.h <<\_ACEOF
23575 #define WITH_SNMP 1
23578 cat >>confdefs.h <<\_ACEOF
23579 #define HAVE_LIBSNMP 1
23587 gethostbyaddrrstyle=""
23588 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23589 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23592 cat >>confdefs.h <<\_ACEOF
23593 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23596 gethostbyaddrrstyle=BSD
23597 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23598 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23601 if test "x$gethostbyaddrrstyle" = "x"; then
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23615 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23620 rm -f conftest.$ac_objext conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_link") 2>conftest.er1
23629 grep -v '^ *+' conftest.er1 >conftest.err
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest$ac_exeext &&
23637 $as_test_x conftest$ac_exeext; then
23639 cat >>confdefs.h <<\_ACEOF
23640 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23643 gethostbyaddrrstyle=GNU
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23653 conftest$ac_exeext conftest.$ac_ext
23655 if test "x$gethostbyaddrrstyle" = "x"; then
23656 cat >conftest.$ac_ext <<_ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h. */
23669 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (ac_try="$ac_link"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_link") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest$ac_exeext &&
23691 $as_test_x conftest$ac_exeext; then
23693 cat >>confdefs.h <<\_ACEOF
23694 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23697 gethostbyaddrrstyle=SYSV
23700 echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23707 conftest$ac_exeext conftest.$ac_ext
23709 if test "x$gethostbyaddrrstyle" = "x"; then
23710 cat >conftest.$ac_ext <<_ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h. */
23723 gethostbyaddr(NULL, 0, 0)
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_link") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest$ac_exeext &&
23745 $as_test_x conftest$ac_exeext; then
23747 cat >>confdefs.h <<\_ACEOF
23748 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23751 gethostbyaddrrstyle=BSD
23754 echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761 conftest$ac_exeext conftest.$ac_ext
23764 if test "x$gethostbyaddrrstyle" = "x"; then
23765 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23766 echo "${ECHO_T}none! It must not exist, here." >&6; }
23768 { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23769 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23772 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23773 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23774 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23777 gethostbynamerstyle=""
23778 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23779 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23793 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (ac_try="$ac_link"
23800 case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805 (eval "$ac_link") 2>conftest.er1
23807 grep -v '^ *+' conftest.er1 >conftest.err
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } && {
23812 test -z "$ac_c_werror_flag" ||
23813 test ! -s conftest.err
23814 } && test -s conftest$ac_exeext &&
23815 $as_test_x conftest$ac_exeext; then
23817 cat >>confdefs.h <<\_ACEOF
23818 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23821 gethostbynamerstyle=GNU
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23832 if test "x$gethostbynamerstyle" = "x"; then
23833 cat >conftest.$ac_ext <<_ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h. */
23846 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (ac_try="$ac_link"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_link") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest$ac_exeext &&
23868 $as_test_x conftest$ac_exeext; then
23870 cat >>confdefs.h <<\_ACEOF
23871 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23874 gethostbynamerstyle=SYSV
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23884 conftest$ac_exeext conftest.$ac_ext
23886 if test "x$gethostbynamerstyle" = "x"; then
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23900 gethostbyname(NULL)
23905 rm -f conftest.$ac_objext conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_link") 2>conftest.er1
23914 grep -v '^ *+' conftest.er1 >conftest.err
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } && {
23919 test -z "$ac_c_werror_flag" ||
23920 test ! -s conftest.err
23921 } && test -s conftest$ac_exeext &&
23922 $as_test_x conftest$ac_exeext; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23928 gethostbynamerstyle=BSD
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938 conftest$ac_exeext conftest.$ac_ext
23941 if test "x$gethostbynamerstyle" = "x"; then
23942 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23943 echo "${ECHO_T}none! It must not exist, here." >&6; }
23945 { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23946 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
23949 if test "x$gethostbynamerstyle" = "xBSD"; then
23950 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23951 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23955 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23956 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
23957 cat >conftest.$ac_ext <<_ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23969 ctime_r(NULL, NULL, 0)
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && {
23988 test -z "$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 } && test -s conftest$ac_exeext &&
23991 $as_test_x conftest$ac_exeext; then
23993 cat >>confdefs.h <<\_ACEOF
23994 #define CTIMERSTYLE SOLARISSTYLE
23997 ctimerstyle="SOLARIS"
24000 echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24007 conftest$ac_exeext conftest.$ac_ext
24008 if test "x$ctimerstyle" = "x"; then
24009 cat >conftest.$ac_ext <<_ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24021 ctime_r(NULL, NULL)
24026 rm -f conftest.$ac_objext conftest$ac_exeext
24027 if { (ac_try="$ac_link"
24028 case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033 (eval "$ac_link") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1 >conftest.err
24037 cat conftest.err >&5
24038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && {
24040 test -z "$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 } && test -s conftest$ac_exeext &&
24043 $as_test_x conftest$ac_exeext; then
24045 cat >>confdefs.h <<\_ACEOF
24046 #define CTIMERSTYLE POSIXSTYLE
24049 ctimerstyle="POSIX"
24052 echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24059 conftest$ac_exeext conftest.$ac_ext
24062 if test "x$ctimerstyle" = "x"; then
24063 { echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24064 echo "${ECHO_T}none! It must not exist, here." >&6; }
24066 { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24067 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24071 if test x"$rad_enable_largefiles" = xyes ; then
24072 { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24073 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24076 { echo "$as_me:$LINENO: result: no" >&5
24077 echo "${ECHO_T}no" >&6; }
24078 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24079 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24080 { (exit 1); exit 1; }; }
24083 { echo "$as_me:$LINENO: result: ok" >&5
24084 echo "${ECHO_T}ok" >&6; }
24085 LFS_CFLAGS="-D_LARGE_FILES"
24090 { echo "$as_me:$LINENO: result: ok" >&5
24091 echo "${ECHO_T}ok" >&6; }
24092 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24097 { echo "$as_me:$LINENO: result: no" >&5
24098 echo "${ECHO_T}no" >&6; }
24099 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24100 echo "$as_me: error: Large files not supported on this platform" >&2;}
24101 { (exit 1); exit 1; }; }
24104 { echo "$as_me:$LINENO: result: maybe" >&5
24105 echo "${ECHO_T}maybe" >&6; }
24106 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24110 cat >>confdefs.h <<\_ACEOF
24111 #define _GNU_SOURCE 1
24116 { echo "$as_me:$LINENO: result: ok" >&5
24117 echo "${ECHO_T}ok" >&6; }
24118 # Extract the first word of "getconf", so it can be a program name with args.
24119 set dummy getconf; ac_word=$2
24120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24122 if test "${ac_cv_path_GETCONF+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24131 for as_dir in $PATH
24134 test -z "$as_dir" && as_dir=.
24135 for ac_exec_ext in '' $ac_executable_extensions; do
24136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24137 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 GETCONF=$ac_cv_path_GETCONF
24149 if test -n "$GETCONF"; then
24150 { echo "$as_me:$LINENO: result: $GETCONF" >&5
24151 echo "${ECHO_T}$GETCONF" >&6; }
24153 { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24158 if test -z "$GETCONF" ; then
24159 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24160 echo "$as_me: error: getconf required to configure large file support" >&2;}
24161 { (exit 1); exit 1; }; }
24163 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24164 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24165 LFS_LIBS=`$GETCONF LFS_LIBS`
24168 { echo "$as_me:$LINENO: result: maybe" >&5
24169 echo "${ECHO_T}maybe" >&6; }
24170 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24185 export top_builddir
24186 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24187 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24194 if test "x$EXPERIMENTAL" = "xyes"; then
24195 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24196 mysubdirs=`echo $bar`
24198 for bar in `cat src/modules/stable`; do
24199 if test -f src/modules/$bar/configure; then
24200 mysubdirs="$mysubdirs src/modules/$bar"
24205 if test "x$EXPERIMENTAL" = "xyes"; then
24206 for foo in `ls -1 src/modules | grep rlm_`; do
24207 MODULES="$MODULES $foo"
24210 for foo in `cat src/modules/stable`; do
24211 MODULES="$MODULES $foo"
24215 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24223 USE_SHARED_LIBS=$enable_shared
24225 USE_STATIC_LIBS=$enable_static
24233 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"
24235 cat >confcache <<\_ACEOF
24236 # This file is a shell script that caches the results of configure
24237 # tests run on this system so they can be shared between configure
24238 # scripts and configure runs, see configure's option --config-cache.
24239 # It is not useful on other systems. If it contains results you don't
24240 # want to keep, you may remove or edit it.
24242 # config.status only pays attention to the cache file if you give it
24243 # the --recheck option to rerun configure.
24245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24247 # following values.
24251 # The following way of writing the cache mishandles newlines in values,
24252 # but we know of no workaround that is simple, portable, and efficient.
24253 # So, we kill variables containing newlines.
24254 # Ultrix sh set writes to stderr and can't be redirected directly,
24255 # and sets the high bit in the cache file unless we assign to the vars.
24257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24258 eval ac_val=\$$ac_var
24262 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24263 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24266 _ | IFS | as_nl) ;; #(
24267 *) $as_unset $ac_var ;;
24273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24274 *${as_nl}ac_space=\ *)
24275 # `set' does not quote correctly, so add quotes (double-quote
24276 # substitution turns \\\\ into \\, and sed turns \\ into \).
24279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24282 # `set' quotes correctly as required by POSIX, so do not add quotes.
24283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24297 if test -w "$cache_file"; then
24298 test "x$cache_file" != "x/dev/null" &&
24299 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24300 echo "$as_me: updating cache $cache_file" >&6;}
24301 cat confcache >$cache_file
24303 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24304 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24310 # Let make expand exec_prefix.
24311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24313 DEFS=-DHAVE_CONFIG_H
24317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24318 # 1. Remove the extension, and $U if already installed.
24319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24320 ac_i=`echo "$ac_i" | sed "$ac_script"`
24321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24322 # will be set to the directory where LIBOBJS objects are built.
24323 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24324 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24326 LIBOBJS=$ac_libobjs
24328 LTLIBOBJS=$ac_ltlibobjs
24332 : ${CONFIG_STATUS=./config.status}
24333 ac_clean_files_save=$ac_clean_files
24334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24337 cat >$CONFIG_STATUS <<_ACEOF
24339 # Generated by $as_me.
24340 # Run this file to recreate the current configuration.
24341 # Compiler output produced by configure, useful for debugging
24342 # configure, is in config.log if it exists.
24345 ac_cs_recheck=false
24347 SHELL=\${CONFIG_SHELL-$SHELL}
24350 cat >>$CONFIG_STATUS <<\_ACEOF
24351 ## --------------------- ##
24352 ## M4sh Initialization. ##
24353 ## --------------------- ##
24355 # Be more Bourne compatible
24356 DUALCASE=1; export DUALCASE # for MKS sh
24357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24360 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24361 # is contrary to our usage. Disable this feature.
24362 alias -g '${1+"$@"}'='"$@"'
24363 setopt NO_GLOB_SUBST
24365 case `(set -o) 2>/dev/null` in
24366 *posix*) set -o posix ;;
24375 # Avoid depending upon Character Ranges.
24376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24379 as_cr_digits='0123456789'
24380 as_cr_alnum=$as_cr_Letters$as_cr_digits
24382 # The user is always right.
24383 if test "${PATH_SEPARATOR+set}" != set; then
24384 echo "#! /bin/sh" >conf$$.sh
24385 echo "exit 0" >>conf$$.sh
24387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24395 # Support unset when possible.
24396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24404 # We need space, tab and new line, in precisely that order. Quoting is
24405 # there to prevent editors from complaining about space-tab.
24406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24407 # splitting by setting IFS to empty value.)
24412 # Find who we are. Look in the path if we contain no directory separator.
24414 *[\\/]* ) as_myself=$0 ;;
24415 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24416 for as_dir in $PATH
24419 test -z "$as_dir" && as_dir=.
24420 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24426 # We did not find ourselves, most probably we were run as `sh COMMAND'
24427 # in which case we are not to be found in the path.
24428 if test "x$as_myself" = x; then
24431 if test ! -f "$as_myself"; then
24432 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24433 { (exit 1); exit 1; }
24436 # Work around bugs in pre-3.0 UWIN ksh.
24437 for as_var in ENV MAIL MAILPATH
24438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24446 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24447 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24448 LC_TELEPHONE LC_TIME
24450 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24451 eval $as_var=C; export $as_var
24453 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24457 # Required to use basename.
24458 if expr a : '\(a\)' >/dev/null 2>&1 &&
24459 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24466 as_basename=basename
24472 # Name of the executable.
24473 as_me=`$as_basename -- "$0" ||
24474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24475 X"$0" : 'X\(//\)$' \| \
24476 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24478 sed '/^.*\/\([^/][^/]*\)\/*$/{
24497 as_lineno_1=$LINENO
24498 as_lineno_2=$LINENO
24499 test "x$as_lineno_1" != "x$as_lineno_2" &&
24500 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24502 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24503 # uniformly replaced by the line number. The first 'sed' inserts a
24504 # line-number line after each line using $LINENO; the second 'sed'
24505 # does the real work. The second script uses 'N' to pair each
24506 # line-number line with the line containing $LINENO, and appends
24507 # trailing '-' during substitution so that $LINENO is not a special
24508 # case at line end.
24509 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24510 # scripts with optimization help from Paolo Bonzini. Blame Lee
24511 # E. McMahon (1931-1989) for sed's syntax. :-)
24523 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24526 ' >$as_me.lineno &&
24527 chmod +x "$as_me.lineno" ||
24528 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24529 { (exit 1); exit 1; }; }
24531 # Don't try to exec as it changes $[0], causing all sort of problems
24532 # (the dirname of $[0] is not the place where we might find the
24533 # original and so on. Autoconf is especially sensitive to this).
24534 . "./$as_me.lineno"
24535 # Exit status is that of the last command.
24540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24546 ECHO_C= ECHO_N= ECHO_T=
24547 case `echo -n x` in
24549 case `echo 'x\c'` in
24550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24557 if expr a : '\(a\)' >/dev/null 2>&1 &&
24558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24564 rm -f conf$$ conf$$.exe conf$$.file
24565 if test -d conf$$.dir; then
24566 rm -f conf$$.dir/conf$$.file
24572 if ln -s conf$$.file conf$$ 2>/dev/null; then
24574 # ... but there are two gotchas:
24575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24577 # In both cases, we have to default to `cp -p'.
24578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24580 elif ln conf$$.file conf$$ 2>/dev/null; then
24585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24586 rmdir conf$$.dir 2>/dev/null
24588 if mkdir -p . 2>/dev/null; then
24591 test -d ./-p && rmdir ./-p
24595 if test -x / >/dev/null 2>&1; then
24596 as_test_x='test -x'
24598 if ls -dL / >/dev/null 2>&1; then
24605 if test -d "$1"; then
24611 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24612 ???[sx]*):;;*)false;;esac;fi
24616 as_executable_p=$as_test_x
24618 # Sed expression to map a string onto a valid CPP name.
24619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24621 # Sed expression to map a string onto a valid variable name.
24622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24627 # Save the log message, to keep $[0] and so on meaningful, and to
24628 # report actual input values of CONFIG_FILES etc. instead of their
24629 # values after options handling.
24631 This file was extended by $as_me, which was
24632 generated by GNU Autoconf 2.61. Invocation command line was
24634 CONFIG_FILES = $CONFIG_FILES
24635 CONFIG_HEADERS = $CONFIG_HEADERS
24636 CONFIG_LINKS = $CONFIG_LINKS
24637 CONFIG_COMMANDS = $CONFIG_COMMANDS
24640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24645 cat >>$CONFIG_STATUS <<_ACEOF
24646 # Files that config.status was made for.
24647 config_files="$ac_config_files"
24648 config_headers="$ac_config_headers"
24652 cat >>$CONFIG_STATUS <<\_ACEOF
24654 \`$as_me' instantiates files from templates according to the
24655 current configuration.
24657 Usage: $0 [OPTIONS] [FILE]...
24659 -h, --help print this help, then exit
24660 -V, --version print version number and configuration settings, then exit
24661 -q, --quiet do not print progress messages
24662 -d, --debug don't remove temporary files
24663 --recheck update $as_me by reconfiguring in the same conditions
24664 --file=FILE[:TEMPLATE]
24665 instantiate the configuration file FILE
24666 --header=FILE[:TEMPLATE]
24667 instantiate the configuration header FILE
24669 Configuration files:
24672 Configuration headers:
24675 Report bugs to <bug-autoconf@gnu.org>."
24678 cat >>$CONFIG_STATUS <<_ACEOF
24681 configured by $0, generated by GNU Autoconf 2.61,
24682 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24684 Copyright (C) 2006 Free Software Foundation, Inc.
24685 This config.status script is free software; the Free Software Foundation
24686 gives unlimited permission to copy, distribute and modify it."
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24693 # If no file are specified by the user, then we need to provide default
24694 # value. By we need to know if files were specified by the user.
24700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24712 # Handling of the options.
24713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24716 echo "$ac_cs_version"; exit ;;
24717 --debug | --debu | --deb | --de | --d | -d )
24719 --file | --fil | --fi | --f )
24721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24722 ac_need_defaults=false;;
24723 --header | --heade | --head | --hea )
24725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24726 ac_need_defaults=false;;
24728 # Conflict between --help and --header
24729 { echo "$as_me: error: ambiguous option: $1
24730 Try \`$0 --help' for more information." >&2
24731 { (exit 1); exit 1; }; };;
24732 --help | --hel | -h )
24733 echo "$ac_cs_usage"; exit ;;
24734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24738 # This is an error.
24739 -*) { echo "$as_me: error: unrecognized option: $1
24740 Try \`$0 --help' for more information." >&2
24741 { (exit 1); exit 1; }; } ;;
24743 *) ac_config_targets="$ac_config_targets $1"
24744 ac_need_defaults=false ;;
24750 ac_configure_extra_args=
24752 if $ac_cs_silent; then
24754 ac_configure_extra_args="$ac_configure_extra_args --silent"
24758 cat >>$CONFIG_STATUS <<_ACEOF
24759 if \$ac_cs_recheck; then
24760 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24761 CONFIG_SHELL=$SHELL
24762 export CONFIG_SHELL
24763 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24767 cat >>$CONFIG_STATUS <<\_ACEOF
24771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24772 ## Running $as_me. ##
24778 cat >>$CONFIG_STATUS <<_ACEOF
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24783 # Handling of arguments.
24784 for ac_config_target in $ac_config_targets
24786 case $ac_config_target in
24787 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24788 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24789 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24790 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24791 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24792 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24793 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24794 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24795 "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24796 "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24797 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24798 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24799 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24800 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24801 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24803 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24805 { (exit 1); exit 1; }; };;
24810 # If the user did not use the arguments to specify the items to instantiate,
24811 # then the envvar interface is used. Set only those that are not.
24812 # We use the long form for the default assignment because of an extremely
24813 # bizarre bug on SunOS 4.1.3.
24814 if $ac_need_defaults; then
24815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24819 # Have a temporary directory for convenience. Make it in the build tree
24820 # simply because there is no reason against having it here, and in addition,
24821 # creating and moving files from /tmp can sometimes cause problems.
24822 # Hook for its removal unless debugging.
24823 # Note that there is a small window in which the directory will not be cleaned:
24824 # after its creation but before its name has been assigned to `$tmp'.
24828 trap 'exit_status=$?
24829 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24831 trap '{ (exit 1); exit 1; }' 1 2 13 15
24833 # Create a (secure) tmp directory for tmp files.
24836 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24837 test -n "$tmp" && test -d "$tmp"
24840 tmp=./conf$$-$RANDOM
24841 (umask 077 && mkdir "$tmp")
24844 echo "$me: cannot create a temporary directory in ." >&2
24845 { (exit 1); exit 1; }
24849 # Set up the sed scripts for CONFIG_FILES section.
24852 # No need to generate the scripts if there are no CONFIG_FILES.
24853 # This happens for instance when ./config.status config.h
24854 if test -n "$CONFIG_FILES"; then
24861 for ac_last_try in false false false false false :; do
24862 cat >conf$$subs.sed <<_ACEOF
24863 SHELL!$SHELL$ac_delim
24864 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24865 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24866 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24867 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24868 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24869 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24870 exec_prefix!$exec_prefix$ac_delim
24871 prefix!$prefix$ac_delim
24872 program_transform_name!$program_transform_name$ac_delim
24873 bindir!$bindir$ac_delim
24874 sbindir!$sbindir$ac_delim
24875 libexecdir!$libexecdir$ac_delim
24876 datarootdir!$datarootdir$ac_delim
24877 datadir!$datadir$ac_delim
24878 sysconfdir!$sysconfdir$ac_delim
24879 sharedstatedir!$sharedstatedir$ac_delim
24880 localstatedir!$localstatedir$ac_delim
24881 includedir!$includedir$ac_delim
24882 oldincludedir!$oldincludedir$ac_delim
24883 docdir!$docdir$ac_delim
24884 infodir!$infodir$ac_delim
24885 htmldir!$htmldir$ac_delim
24886 dvidir!$dvidir$ac_delim
24887 pdfdir!$pdfdir$ac_delim
24888 psdir!$psdir$ac_delim
24889 libdir!$libdir$ac_delim
24890 localedir!$localedir$ac_delim
24891 mandir!$mandir$ac_delim
24892 DEFS!$DEFS$ac_delim
24893 ECHO_C!$ECHO_C$ac_delim
24894 ECHO_N!$ECHO_N$ac_delim
24895 ECHO_T!$ECHO_T$ac_delim
24896 LIBS!$LIBS$ac_delim
24897 build_alias!$build_alias$ac_delim
24898 host_alias!$host_alias$ac_delim
24899 target_alias!$target_alias$ac_delim
24901 CFLAGS!$CFLAGS$ac_delim
24902 LDFLAGS!$LDFLAGS$ac_delim
24903 CPPFLAGS!$CPPFLAGS$ac_delim
24904 ac_ct_CC!$ac_ct_CC$ac_delim
24905 EXEEXT!$EXEEXT$ac_delim
24906 OBJEXT!$OBJEXT$ac_delim
24908 GREP!$GREP$ac_delim
24909 EGREP!$EGREP$ac_delim
24910 RANLIB!$RANLIB$ac_delim
24911 abs_top_builddir!$abs_top_builddir$ac_delim
24912 GMAKE!$GMAKE$ac_delim
24913 MAKE!$MAKE$ac_delim
24914 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
24915 LIBTOOL!$LIBTOOL$ac_delim
24916 build!$build$ac_delim
24917 build_cpu!$build_cpu$ac_delim
24918 build_vendor!$build_vendor$ac_delim
24919 build_os!$build_os$ac_delim
24920 host!$host$ac_delim
24921 host_cpu!$host_cpu$ac_delim
24922 host_vendor!$host_vendor$ac_delim
24923 host_os!$host_os$ac_delim
24924 LN_S!$LN_S$ac_delim
24925 ECHO!$ECHO$ac_delim
24927 STRIP!$STRIP$ac_delim
24929 CXXFLAGS!$CXXFLAGS$ac_delim
24930 ac_ct_CXX!$ac_ct_CXX$ac_delim
24931 CXXCPP!$CXXCPP$ac_delim
24933 FFLAGS!$FFLAGS$ac_delim
24934 ac_ct_F77!$ac_ct_F77$ac_delim
24935 logdir!$logdir$ac_delim
24936 radacctdir!$radacctdir$ac_delim
24937 raddbdir!$raddbdir$ac_delim
24938 PERL!$PERL$ac_delim
24939 SNMPGET!$SNMPGET$ac_delim
24940 SNMPWALK!$SNMPWALK$ac_delim
24941 RUSERS!$RUSERS$ac_delim
24942 ACLOCAL!$ACLOCAL$ac_delim
24943 AUTOCONF!$AUTOCONF$ac_delim
24944 AUTOHEADER!$AUTOHEADER$ac_delim
24945 LOCATE!$LOCATE$ac_delim
24946 DIRNAME!$DIRNAME$ac_delim
24947 REGEX!$REGEX$ac_delim
24948 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
24949 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
24950 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
24951 LIBPREFIX!$LIBPREFIX$ac_delim
24952 CRYPTLIB!$CRYPTLIB$ac_delim
24953 SNMP_LIBS!$SNMP_LIBS$ac_delim
24954 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
24955 GETCONF!$GETCONF$ac_delim
24956 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
24957 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
24958 LFS_LIBS!$LFS_LIBS$ac_delim
24959 HOSTINFO!$HOSTINFO$ac_delim
24962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24964 elif $ac_last_try; then
24965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24967 { (exit 1); exit 1; }; }
24969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24973 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24974 if test -n "$ac_eof"; then
24975 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24976 ac_eof=`expr $ac_eof + 1`
24979 cat >>$CONFIG_STATUS <<_ACEOF
24980 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24985 s/^/s,@/; s/!/@,|#_!!_#|/
24988 s/'"$ac_delim"'$/,g/; t
24990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24991 ' >>$CONFIG_STATUS <conf$$subs.sed
24992 rm -f conf$$subs.sed
24993 cat >>$CONFIG_STATUS <<_ACEOF
24999 for ac_last_try in false false false false false :; do
25000 cat >conf$$subs.sed <<_ACEOF
25001 LIBLTDL!$LIBLTDL$ac_delim
25002 INCLTDL!$INCLTDL$ac_delim
25003 subdirs!$subdirs$ac_delim
25004 MODULES!$MODULES$ac_delim
25005 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25006 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25007 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25008 STATIC_MODULES!$STATIC_MODULES$ac_delim
25009 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25010 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25011 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25012 LIBOBJS!$LIBOBJS$ac_delim
25013 LTLIBOBJS!$LTLIBOBJS$ac_delim
25016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25018 elif $ac_last_try; then
25019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25021 { (exit 1); exit 1; }; }
25023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25028 if test -n "$ac_eof"; then
25029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25030 ac_eof=`expr $ac_eof + 1`
25033 cat >>$CONFIG_STATUS <<_ACEOF
25034 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25039 s/^/s,@/; s/!/@,|#_!!_#|/
25042 s/'"$ac_delim"'$/,g/; t
25044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25045 ' >>$CONFIG_STATUS <conf$$subs.sed
25046 rm -f conf$$subs.sed
25047 cat >>$CONFIG_STATUS <<_ACEOF
25054 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25055 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25056 # trailing colons and then remove the whole line if VPATH becomes empty
25057 # (actually we leave an empty line to preserve line numbers).
25058 if test "x$srcdir" = x.; then
25059 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25060 s/:*\$(srcdir):*/:/
25061 s/:*\${srcdir}:*/:/
25063 s/^\([^=]*=[ ]*\):*/\1/
25069 cat >>$CONFIG_STATUS <<\_ACEOF
25070 fi # test -n "$CONFIG_FILES"
25073 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
25076 :[FHLC]) ac_mode=$ac_tag; continue;;
25078 case $ac_mode$ac_tag in
25080 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25081 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25082 { (exit 1); exit 1; }; };;
25083 :[FH]-) ac_tag=-:-;;
25084 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25101 -) ac_f="$tmp/stdin";;
25102 *) # Look for the file first in the build tree, then in the source tree
25103 # (if the path is not absolute). The absolute path cannot be DOS-style,
25104 # because $ac_f cannot contain `:'.
25108 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25110 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25111 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25112 { (exit 1); exit 1; }; };;
25114 ac_file_inputs="$ac_file_inputs $ac_f"
25117 # Let's still pretend it is `configure' which instantiates (i.e., don't
25118 # use $as_me), people would be surprised to read:
25119 # /* config.h. Generated by config.status. */
25120 configure_input="Generated from "`IFS=:
25121 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25122 if test x"$ac_file" != x-; then
25123 configure_input="$ac_file. $configure_input"
25124 { echo "$as_me:$LINENO: creating $ac_file" >&5
25125 echo "$as_me: creating $ac_file" >&6;}
25129 *:-:* | *:-) cat >"$tmp/stdin";;
25134 ac_dir=`$as_dirname -- "$ac_file" ||
25135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136 X"$ac_file" : 'X\(//\)[^/]' \| \
25137 X"$ac_file" : 'X\(//\)$' \| \
25138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25144 /^X\(\/\/\)[^/].*/{
25159 -*) as_dir=./$as_dir;;
25161 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25165 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25166 *) as_qdir=$as_dir;;
25168 as_dirs="'$as_qdir' $as_dirs"
25169 as_dir=`$as_dirname -- "$as_dir" ||
25170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171 X"$as_dir" : 'X\(//\)[^/]' \| \
25172 X"$as_dir" : 'X\(//\)$' \| \
25173 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25179 /^X\(\/\/\)[^/].*/{
25192 test -d "$as_dir" && break
25194 test -z "$as_dirs" || eval "mkdir $as_dirs"
25195 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25197 { (exit 1); exit 1; }; }; }
25201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25203 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25204 # A ".." for each directory in $ac_dir_suffix.
25205 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25206 case $ac_top_builddir_sub in
25207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25211 ac_abs_top_builddir=$ac_pwd
25212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25213 # for backward compatibility:
25214 ac_top_builddir=$ac_top_build_prefix
25217 .) # We are building in place.
25219 ac_top_srcdir=$ac_top_builddir_sub
25220 ac_abs_top_srcdir=$ac_pwd ;;
25221 [\\/]* | ?:[\\/]* ) # Absolute name.
25222 ac_srcdir=$srcdir$ac_dir_suffix;
25223 ac_top_srcdir=$srcdir
25224 ac_abs_top_srcdir=$srcdir ;;
25225 *) # Relative name.
25226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25227 ac_top_srcdir=$ac_top_build_prefix$srcdir
25228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25241 cat >>$CONFIG_STATUS <<\_ACEOF
25242 # If the template does not know about datarootdir, expand it.
25243 # FIXME: This hack should be removed a few years after 2.60.
25244 ac_datarootdir_hack=; ac_datarootdir_seen=
25246 case `sed -n '/datarootdir/ {
25255 ' $ac_file_inputs` in
25256 *datarootdir*) ac_datarootdir_seen=yes;;
25257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25258 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25259 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25261 cat >>$CONFIG_STATUS <<_ACEOF
25262 ac_datarootdir_hack='
25263 s&@datadir@&$datadir&g
25264 s&@docdir@&$docdir&g
25265 s&@infodir@&$infodir&g
25266 s&@localedir@&$localedir&g
25267 s&@mandir@&$mandir&g
25268 s&\\\${datarootdir}&$datarootdir&g' ;;
25272 # Neutralize VPATH when `$srcdir' = `.'.
25273 # Shell code in configure.ac might set extrasub.
25274 # FIXME: do we really want to maintain this feature?
25275 cat >>$CONFIG_STATUS <<_ACEOF
25279 cat >>$CONFIG_STATUS <<\_ACEOF
25281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25282 s&@configure_input@&$configure_input&;t t
25283 s&@top_builddir@&$ac_top_builddir_sub&;t t
25284 s&@srcdir@&$ac_srcdir&;t t
25285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25286 s&@top_srcdir@&$ac_top_srcdir&;t t
25287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25288 s&@builddir@&$ac_builddir&;t t
25289 s&@abs_builddir@&$ac_abs_builddir&;t t
25290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25291 $ac_datarootdir_hack
25292 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25295 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25297 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25298 which seems to be undefined. Please make sure it is defined." >&5
25299 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25300 which seems to be undefined. Please make sure it is defined." >&2;}
25304 -) cat "$tmp/out"; rm -f "$tmp/out";;
25305 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25314 # Transform confdefs.h into a sed script `conftest.defines', that
25315 # substitutes the proper values into config.h.in to produce config.h.
25316 rm -f conftest.defines conftest.tail
25317 # First, append a space to every undef/define line, to ease matching.
25318 echo 's/$/ /' >conftest.defines
25319 # Then, protect against being on the right side of a sed subst, or in
25320 # an unquoted here document, in config.status. If some macros were
25321 # called several times there might be several #defines for the same
25322 # symbol, which is useless. But do not sort them, since the last
25323 # AC_DEFINE must be honored.
25324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25325 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25326 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25327 # PARAMS is the parameter list in the macro definition--in most cases, it's
25328 # just an empty string.
25329 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25330 ac_dB='\\)[ (].*,\\1define\\2'
25338 s/^[ ]*#[ ]*define[ ][ ]*//
25343 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25344 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25345 ' >>conftest.defines
25347 # Remove the space that was appended to ease matching.
25348 # Then replace #undef with comments. This is necessary, for
25349 # example, in the case of _POSIX_SOURCE, which is predefined and required
25350 # on some systems where configure will not decide to define it.
25351 # (The regexp can be short, since the line contains either #define or #undef.)
25353 s,^[ #]*u.*,/* & */,' >>conftest.defines
25355 # Break up conftest.defines:
25356 ac_max_sed_lines=50
25358 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25359 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25360 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25362 ac_in='$ac_file_inputs'
25363 ac_out='"$tmp/out1"'
25364 ac_nxt='"$tmp/out2"'
25368 # Write a here document:
25369 cat >>$CONFIG_STATUS <<_ACEOF
25370 # First, check the format of the line:
25371 cat >"\$tmp/defines.sed" <<\\CEOF
25372 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25373 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25377 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25379 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25380 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25381 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25382 grep . conftest.tail >/dev/null || break
25383 rm -f conftest.defines
25384 mv conftest.tail conftest.defines
25386 rm -f conftest.defines conftest.tail
25388 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25389 cat >>$CONFIG_STATUS <<\_ACEOF
25390 if test x"$ac_file" != x-; then
25391 echo "/* $configure_input */" >"$tmp/config.h"
25392 cat "$ac_result" >>"$tmp/config.h"
25393 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25394 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25395 echo "$as_me: $ac_file is unchanged" >&6;}
25398 mv "$tmp/config.h" $ac_file
25401 echo "/* $configure_input */"
25413 { (exit 0); exit 0; }
25415 chmod +x $CONFIG_STATUS
25416 ac_clean_files=$ac_clean_files_save
25419 # configure is writing to config.log, and then calls config.status.
25420 # config.status does its own redirection, appending to config.log.
25421 # Unfortunately, on DOS this fails, as config.log is still kept open
25422 # by configure, so config.status won't be able to write to it; its
25423 # output is simply discarded. So we exec the FD to /dev/null,
25424 # effectively closing config.log, so it can be properly (re)opened and
25425 # appended to by config.status. When coming back to configure, we
25426 # need to make the FD available again.
25427 if test "$no_create" != yes; then
25429 ac_config_status_args=
25430 test "$silent" = yes &&
25431 ac_config_status_args="$ac_config_status_args --quiet"
25433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25436 # would make configure fail if this is the last instruction.
25437 $ac_cs_success || { (exit 1); exit 1; }
25441 # CONFIG_SUBDIRS section.
25443 if test "$no_recursion" != yes; then
25445 # Remove --cache-file and --srcdir arguments so they do not pile up.
25446 ac_sub_configure_args=
25448 eval "set x $ac_configure_args"
25452 if test -n "$ac_prev"; then
25457 -cache-file | --cache-file | --cache-fil | --cache-fi \
25458 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25459 ac_prev=cache_file ;;
25460 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25461 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25464 --config-cache | -C)
25466 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25468 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25470 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25472 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25476 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25478 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25482 # Always prepend --prefix to ensure using the same prefix
25483 # in subdir configurations.
25484 ac_arg="--prefix=$prefix"
25486 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25488 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25491 if test "$silent" = yes; then
25492 ac_sub_configure_args="--silent $ac_sub_configure_args"
25496 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25498 # Do not complain, so a configure script can configure whichever
25499 # parts of a large source tree are present.
25500 test -d "$srcdir/$ac_dir" || continue
25502 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25503 echo "$as_me:$LINENO: $ac_msg" >&5
25507 -*) as_dir=./$as_dir;;
25509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25514 *) as_qdir=$as_dir;;
25516 as_dirs="'$as_qdir' $as_dirs"
25517 as_dir=`$as_dirname -- "$as_dir" ||
25518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25519 X"$as_dir" : 'X\(//\)[^/]' \| \
25520 X"$as_dir" : 'X\(//\)$' \| \
25521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25527 /^X\(\/\/\)[^/].*/{
25540 test -d "$as_dir" && break
25542 test -z "$as_dirs" || eval "mkdir $as_dirs"
25543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25545 { (exit 1); exit 1; }; }; }
25549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25552 # A ".." for each directory in $ac_dir_suffix.
25553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25554 case $ac_top_builddir_sub in
25555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25559 ac_abs_top_builddir=$ac_pwd
25560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25561 # for backward compatibility:
25562 ac_top_builddir=$ac_top_build_prefix
25565 .) # We are building in place.
25567 ac_top_srcdir=$ac_top_builddir_sub
25568 ac_abs_top_srcdir=$ac_pwd ;;
25569 [\\/]* | ?:[\\/]* ) # Absolute name.
25570 ac_srcdir=$srcdir$ac_dir_suffix;
25571 ac_top_srcdir=$srcdir
25572 ac_abs_top_srcdir=$srcdir ;;
25573 *) # Relative name.
25574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25575 ac_top_srcdir=$ac_top_build_prefix$srcdir
25576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25583 # Check for guested configure; otherwise get Cygnus style configure.
25584 if test -f "$ac_srcdir/configure.gnu"; then
25585 ac_sub_configure=$ac_srcdir/configure.gnu
25586 elif test -f "$ac_srcdir/configure"; then
25587 ac_sub_configure=$ac_srcdir/configure
25588 elif test -f "$ac_srcdir/configure.in"; then
25589 # This should be Cygnus configure.
25590 ac_sub_configure=$ac_aux_dir/configure
25592 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25597 # The recursion is here.
25598 if test -n "$ac_sub_configure"; then
25599 # Make the cache file name correct relative to the subdirectory.
25600 case $cache_file in
25601 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25602 *) # Relative name.
25603 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25606 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25607 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25608 # The eval makes quoting arguments work.
25609 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25610 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25611 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25612 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25613 { (exit 1); exit 1; }; }
25621 ac_config_commands="$ac_config_commands default-1"
25623 ac_config_commands="$ac_config_commands default-2"
25625 ac_config_commands="$ac_config_commands default-3"
25627 ac_config_commands="$ac_config_commands default-4"