2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for freeradius $Id$.
5 # Report bugs to <http://bugs.freeradius.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.freeradius.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='freeradius'
592 PACKAGE_TARNAME='freeradius'
593 PACKAGE_VERSION='$Id$'
594 PACKAGE_STRING='freeradius $Id$'
595 PACKAGE_BUGREPORT='http://bugs.freeradius.org'
596 PACKAGE_URL='http://www.freeradius.org'
598 ac_unique_file="src/main/radiusd.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='LTLIBOBJS
716 RADIUSD_VERSION_STRING
744 program_transform_name
757 enable_option_checking
769 enable_strict_dependencies
782 with_experimental_modules
784 with_openssl_includes
785 with_openssl_libraries
787 with_rlm_FOO_include_dir
789 with_talloc_include_dir
791 ac_precious_vars='build_alias
804 ac_subdirs_all='$mysubdirs'
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of freeradius $Id$:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-developer enables features of interest to developers.
1418 --disable-largefile omit support for large files
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-strict-dependencies Fail configure on lack of module dependancy.
1425 --enable-boilermake use the boilermake build system (default=yes).
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-system-libltdl Use the libltdl installed in your system (default=use dlopen)
1431 --with-system-libtool Use the libtool installed in your system (default=use our own)
1432 --with-pic try to use only PIC/non-PIC objects [default=use
1434 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1435 --with-sysroot=DIR Search for dependent libraries within DIR
1436 (or the compiler's sysroot if not specified).
1437 --with-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1438 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1439 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1440 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1441 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1442 --with-threads Use threads, if available. (default=yes)
1443 --with-tcp Compile in TCP support. (default=yes)
1444 --with-vmps Compile in VMPS support. (default=yes)
1445 --with-dhcp Compile in DHCP support. (default=yes)
1446 --with-static-modules=QUOTED-MODULE-LIST
1447 --with-modules=QUOTED-MODULE-LIST
1448 --with-experimental-modules Use experimental and unstable modules. (default=no, unless --enable-developer=yes)
1449 --with-openssl Use OpenSSL. (default=yes)
1450 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1451 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1452 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1453 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1454 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1455 --with-talloc-include-dir=DIR
1456 Directory where the talloc includes may be found
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1469 CXXCPP C++ preprocessor
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1474 Report bugs to <http://bugs.freeradius.org>.
1475 freeradius home page: <http://www.freeradius.org>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1538 freeradius configure $Id$
1539 generated by GNU Autoconf 2.69
1541 Copyright (C) 2012 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_cxx_try_compile LINENO
1591 # ----------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_cxx_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_cxx_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_cxx_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 ( $as_echo "## ----------------------------------------- ##
1736 ## Report this to http://bugs.freeradius.org ##
1737 ## ----------------------------------------- ##"
1738 ) | sed "s/^/$as_me: WARNING: /" >&2
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 eval "$3=\$ac_header_compiler"
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_header_mongrel
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=$ac_status
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1798 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1799 # -------------------------------------------------------
1800 # Tests whether HEADER exists and can be compiled using the include files in
1801 # INCLUDES, setting the cache variable VAR accordingly.
1802 ac_fn_c_check_header_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 } # ac_fn_c_check_header_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_cxx_try_cpp LINENO
1943 # ------------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_cxx_try_cpp ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } > conftest.i && {
1964 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1965 test ! -s conftest.err
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_cxx_try_cpp
1979 # ac_fn_cxx_try_link LINENO
1980 # -------------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_link ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 rm -f conftest.$ac_objext conftest$ac_exeext
1986 if { { ac_try="$ac_link"
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>conftest.err
1995 if test -s conftest.err; then
1996 grep -v '^ *+' conftest.err >conftest.er1
1997 cat conftest.er1 >&5
1998 mv -f conftest.er1 conftest.err
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && {
2002 test -z "$ac_cxx_werror_flag" ||
2003 test ! -s conftest.err
2004 } && test -s conftest$ac_exeext && {
2005 test "$cross_compiling" = yes ||
2006 test -x conftest$ac_exeext
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2023 } # ac_fn_cxx_try_link
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2063 if ac_fn_c_try_compile "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_type
2079 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2080 # ---------------------------------------------
2081 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2083 ac_fn_c_check_decl ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 as_decl_name=`echo $2|sed 's/ *(.*//'`
2087 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2089 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 #ifndef $as_decl_name
2101 (void) $as_decl_use;
2103 (void) $as_decl_name;
2111 if ac_fn_c_try_compile "$LINENO"; then :
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_decl
2124 cat >config.log <<_ACEOF
2125 This file contains any messages produced by compilers while
2126 running configure, to aid debugging if configure makes a mistake.
2128 It was created by freeradius $as_me $Id$, which was
2129 generated by GNU Autoconf 2.69. Invocation command line was
2141 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2142 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2143 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2144 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2145 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2147 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2148 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2150 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2151 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2152 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2153 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2154 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2155 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2156 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 $as_echo "PATH: $as_dir"
2181 # Keep a trace of the command line.
2182 # Strip out --no-create and --no-recursion so they do not pile up.
2183 # Strip out --silent because we don't want to record it for future runs.
2184 # Also quote any args containing shell meta-characters.
2185 # Make two passes to allow for proper duplicate-argument suppression.
2189 ac_must_keep_next=false
2195 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2197 | -silent | --silent | --silen | --sile | --sil)
2200 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205 as_fn_append ac_configure_args1 " '$ac_arg'"
2206 if test $ac_must_keep_next = true; then
2207 ac_must_keep_next=false # Got value, back to normal.
2210 *=* | --config-cache | -C | -disable-* | --disable-* \
2211 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2212 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2213 | -with-* | --with-* | -without-* | --without-* | --x)
2214 case "$ac_configure_args0 " in
2215 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218 -* ) ac_must_keep_next=true ;;
2221 as_fn_append ac_configure_args " '$ac_arg'"
2226 { ac_configure_args0=; unset ac_configure_args0;}
2227 { ac_configure_args1=; unset ac_configure_args1;}
2229 # When interrupted or exit'd, cleanup temporary files, and complete
2230 # config.log. We remove comments because anyway the quotes in there
2231 # would cause problems or look ugly.
2232 # WARNING: Use '\'' to represent an apostrophe within the trap.
2233 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2234 trap 'exit_status=$?
2235 # Save into config.log some information that might help in debugging.
2239 $as_echo "## ---------------- ##
2240 ## Cache variables. ##
2241 ## ---------------- ##"
2243 # The following way of writing the cache mishandles newlines in values,
2245 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2246 eval ac_val=\$$ac_var
2250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2254 _ | IFS | as_nl) ;; #(
2255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2256 *) { eval $ac_var=; unset $ac_var;} ;;
2261 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2262 *${as_nl}ac_space=\ *)
2264 "s/'\''/'\''\\\\'\'''\''/g;
2265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2275 $as_echo "## ----------------- ##
2276 ## Output variables. ##
2277 ## ----------------- ##"
2279 for ac_var in $ac_subst_vars
2281 eval ac_val=\$$ac_var
2283 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 $as_echo "$ac_var='\''$ac_val'\''"
2289 if test -n "$ac_subst_files"; then
2290 $as_echo "## ------------------- ##
2291 ## File substitutions. ##
2292 ## ------------------- ##"
2294 for ac_var in $ac_subst_files
2296 eval ac_val=\$$ac_var
2298 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300 $as_echo "$ac_var='\''$ac_val'\''"
2305 if test -s confdefs.h; then
2306 $as_echo "## ----------- ##
2313 test "$ac_signal" != 0 &&
2314 $as_echo "$as_me: caught signal $ac_signal"
2315 $as_echo "$as_me: exit $exit_status"
2317 rm -f core *.core core.conftest.* &&
2318 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2321 for ac_signal in 1 2 13 15; do
2322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2327 rm -f -r conftest* confdefs.h
2329 $as_echo "/* confdefs.h */" > confdefs.h
2331 # Predefined preprocessor variables.
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_NAME "$PACKAGE_NAME"
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_STRING "$PACKAGE_STRING"
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_URL "$PACKAGE_URL"
2358 # Let the site file select an alternate cache file if it wants to.
2359 # Prefer an explicitly selected file to automatically selected ones.
2362 if test -n "$CONFIG_SITE"; then
2363 # We do not want a PATH search for config.site.
2364 case $CONFIG_SITE in #((
2365 -*) ac_site_file1=./$CONFIG_SITE;;
2366 */*) ac_site_file1=$CONFIG_SITE;;
2367 *) ac_site_file1=./$CONFIG_SITE;;
2369 elif test "x$prefix" != xNONE; then
2370 ac_site_file1=$prefix/share/config.site
2371 ac_site_file2=$prefix/etc/config.site
2373 ac_site_file1=$ac_default_prefix/share/config.site
2374 ac_site_file2=$ac_default_prefix/etc/config.site
2376 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2378 test "x$ac_site_file" = xNONE && continue
2379 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2381 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2382 sed 's/^/| /' "$ac_site_file" >&5
2384 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2386 as_fn_error $? "failed to load site script $ac_site_file
2387 See \`config.log' for more details" "$LINENO" 5; }
2391 if test -r "$cache_file"; then
2392 # Some versions of bash will fail to source /dev/null (special files
2393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2396 $as_echo "$as_me: loading cache $cache_file" >&6;}
2398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2399 *) . "./$cache_file";;
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2404 $as_echo "$as_me: creating cache $cache_file" >&6;}
2408 # Check that the precious variables saved in the cache have kept the same
2410 ac_cache_corrupted=false
2411 for ac_var in $ac_precious_vars; do
2412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2413 eval ac_new_set=\$ac_env_${ac_var}_set
2414 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2415 eval ac_new_val=\$ac_env_${ac_var}_value
2416 case $ac_old_set,$ac_new_set in
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2420 ac_cache_corrupted=: ;;
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2423 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2424 ac_cache_corrupted=: ;;
2427 if test "x$ac_old_val" != "x$ac_new_val"; then
2428 # differences in whitespace do not lead to failure.
2429 ac_old_val_w=`echo x $ac_old_val`
2430 ac_new_val_w=`echo x $ac_new_val`
2431 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2433 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2434 ac_cache_corrupted=:
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2437 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2438 eval $ac_var=\$ac_old_val
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2441 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2443 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2446 # Pass precious variables to config.status.
2447 if test "$ac_new_set" = set; then
2449 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 *) ac_arg=$ac_var=$ac_new_val ;;
2452 case " $ac_configure_args " in
2453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2454 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2458 if $ac_cache_corrupted; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2462 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2463 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465 ## -------------------- ##
2466 ## Main body of script. ##
2467 ## -------------------- ##
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2481 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2482 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2483 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2485 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2486 -v minor="$RADIUSD_MINOR_VERSION" \
2487 -v incrm="$RADIUSD_INCRM_VERSION" \
2488 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2490 RADIUSD_VERSION_STRING=`cat VERSION`
2495 cat >>confdefs.h <<_ACEOF
2496 #define RADIUSD_VERSION ${RADIUSD_VERSION}
2500 cat >>confdefs.h <<_ACEOF
2501 #define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}"
2506 # Check whether --enable-developer was given.
2507 if test "${enable_developer+set}" = set; then :
2508 enableval=$enable_developer; case "$enableval" in
2519 if test -d $srcdir/.git; then
2520 if test "x$developer" != "xno"; then
2525 if test "x$developer" = "xyes"; then
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2542 $as_echo_n "checking for $ac_word... " >&6; }
2543 if ${ac_cv_prog_CC+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 if test -n "$CC"; then
2547 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 if test -n "$CC"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2569 $as_echo "$CC" >&6; }
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2572 $as_echo "no" >&6; }
2577 if test -z "$ac_cv_prog_CC"; then
2579 # Extract the first word of "gcc", so it can be a program name with args.
2580 set dummy gcc; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596 ac_cv_prog_ac_ct_CC="gcc"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2609 $as_echo "$ac_ct_CC" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2615 if test "x$ac_ct_CC" = x; then
2618 case $cross_compiling:$ac_tool_warned in
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2622 ac_tool_warned=yes ;;
2630 if test -z "$CC"; then
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}cc; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_CC+:} false; then :
2637 $as_echo_n "(cached) " >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2649 ac_cv_prog_CC="${ac_tool_prefix}cc"
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2671 if test -z "$CC"; then
2672 # Extract the first word of "cc", so it can be a program name with args.
2673 set dummy cc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2691 ac_prog_rejected=yes
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 if test $ac_prog_rejected = yes; then
2703 # We found a bogon in the path, so make sure we never use it.
2704 set dummy $ac_cv_prog_CC
2706 if test $# != 0; then
2707 # We chose a different compiler from the bogus one.
2708 # However, it has the same basename, so the bogon will be chosen
2709 # first if we set CC to just the basename; use the full file name.
2711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2717 if test -n "$CC"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2719 $as_echo "$CC" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2727 if test -z "$CC"; then
2728 if test -n "$ac_tool_prefix"; then
2729 for ac_prog in cl.exe
2731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_CC+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2768 test -n "$CC" && break
2771 if test -z "$CC"; then
2773 for ac_prog in cl.exe
2775 # Extract the first word of "$ac_prog", so it can be a program name with args.
2776 set dummy $ac_prog; ac_word=$2
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2778 $as_echo_n "checking for $ac_word... " >&6; }
2779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test -n "$ac_ct_CC"; then
2783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_ac_ct_CC="$ac_prog"
2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2803 if test -n "$ac_ct_CC"; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2805 $as_echo "$ac_ct_CC" >&6; }
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2812 test -n "$ac_ct_CC" && break
2815 if test "x$ac_ct_CC" = x; then
2818 case $cross_compiling:$ac_tool_warned in
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833 as_fn_error $? "no acceptable C compiler found in \$PATH
2834 See \`config.log' for more details" "$LINENO" 5; }
2836 # Provide some information about the compiler.
2837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2840 for ac_option in --version -v -V -qversion; do
2841 { { ac_try="$ac_compiler $ac_option >&5"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2850 if test -s conftest.err; then
2852 ... rest of stderr output deleted ...
2853 10q' conftest.err >conftest.er1
2854 cat conftest.er1 >&5
2856 rm -f conftest.er1 conftest.err
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2872 ac_clean_files_save=$ac_clean_files
2873 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2874 # Try to create an executable without -o first, disregard a.out.
2875 # It will help us diagnose broken compilers, and finding out an intuition
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2878 $as_echo_n "checking whether the C compiler works... " >&6; }
2879 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2881 # The possible output files:
2882 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2885 for ac_file in $ac_files
2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2889 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2894 if { { ac_try="$ac_link_default"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_link_default") 2>&5
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }; then :
2905 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2906 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2907 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2908 # so that the user can short-circuit this test for compilers unknown to
2910 for ac_file in $ac_files ''
2912 test -f "$ac_file" || continue
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2917 # We found the default executable, but exeext='' is most
2921 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 # We set ac_cv_exeext here because the later test for it is not
2926 # safe: cross compilers may not add the suffix if given an `-o'
2927 # argument, so we may need to know it at that point already.
2928 # Even if this section looks crufty: it has the advantage of
2935 test "$ac_cv_exeext" = no && ac_cv_exeext=
2940 if test -z "$ac_file"; then :
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error 77 "C compiler cannot create executables
2949 See \`config.log' for more details" "$LINENO" 5; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2955 $as_echo_n "checking for C compiler default output file name... " >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2957 $as_echo "$ac_file" >&6; }
2958 ac_exeext=$ac_cv_exeext
2960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2961 ac_clean_files=$ac_clean_files_save
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2963 $as_echo_n "checking for suffix of executables... " >&6; }
2964 if { { ac_try="$ac_link"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2970 $as_echo "$ac_try_echo"; } >&5
2971 (eval "$ac_link") 2>&5
2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2974 test $ac_status = 0; }; then :
2975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2977 # work properly (i.e., refer to `conftest.exe'), while it won't with
2979 for ac_file in conftest.exe conftest conftest.*; do
2980 test -f "$ac_file" || continue
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2992 See \`config.log' for more details" "$LINENO" 5; }
2994 rm -f conftest conftest$ac_cv_exeext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2996 $as_echo "$ac_cv_exeext" >&6; }
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3007 FILE *f = fopen ("conftest.out", "w");
3008 return ferror (f) || fclose (f) != 0;
3014 ac_clean_files="$ac_clean_files conftest.out"
3015 # Check that the compiler produces executables we can run. If not, either
3016 # the compiler is broken, or we cross compile.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3018 $as_echo_n "checking whether we are cross compiling... " >&6; }
3019 if test "$cross_compiling" != yes; then
3020 { { ac_try="$ac_link"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link") 2>&5
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }
3031 if { ac_try='./conftest$ac_cv_exeext'
3032 { { case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_try") 2>&5
3040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3041 test $ac_status = 0; }; }; then
3044 if test "$cross_compiling" = maybe; then
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "cannot run C compiled programs.
3050 If you meant to cross compile, use \`--host'.
3051 See \`config.log' for more details" "$LINENO" 5; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3056 $as_echo "$cross_compiling" >&6; }
3058 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3059 ac_clean_files=$ac_clean_files_save
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3061 $as_echo_n "checking for suffix of object files... " >&6; }
3062 if ${ac_cv_objext+:} false; then :
3063 $as_echo_n "(cached) " >&6
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3076 rm -f conftest.o conftest.obj
3077 if { { ac_try="$ac_compile"
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_compile") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
3088 for ac_file in conftest.o conftest.obj conftest.*; do
3089 test -f "$ac_file" || continue;
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3097 $as_echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "cannot compute suffix of object files: cannot compile
3103 See \`config.log' for more details" "$LINENO" 5; }
3105 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3108 $as_echo "$ac_cv_objext" >&6; }
3109 OBJEXT=$ac_cv_objext
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3112 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3113 if ${ac_cv_c_compiler_gnu+:} false; then :
3114 $as_echo_n "(cached) " >&6
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3130 if ac_fn_c_try_compile "$LINENO"; then :
3135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3136 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3140 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3141 if test $ac_compiler_gnu = yes; then
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3149 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3150 if ${ac_cv_prog_cc_g+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 ac_save_c_werror_flag=$ac_c_werror_flag
3154 ac_c_werror_flag=yes
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3168 if ac_fn_c_try_compile "$LINENO"; then :
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3183 if ac_fn_c_try_compile "$LINENO"; then :
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3199 if ac_fn_c_try_compile "$LINENO"; then :
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3210 $as_echo "$ac_cv_prog_cc_g" >&6; }
3211 if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213 elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3220 if test "$GCC" = yes; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3228 if ${ac_cv_prog_cc_c89+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 ac_cv_prog_cc_c89=no
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3252 s = g (p, va_arg (v,int));
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_c89=$ac_arg
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3295 rm -f conftest.$ac_ext
3300 case "x$ac_cv_prog_cc_c89" in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3303 $as_echo "none needed" >&6; } ;;
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3306 $as_echo "unsupported" >&6; } ;;
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 if test "x$ac_cv_prog_cc_c89" != xno; then :
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 ac_cpp='$CXXCPP $CPPFLAGS'
3324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3327 if test -z "$CXX"; then
3328 if test -n "$CCC"; then
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_prog_CXX+:} false; then :
3339 $as_echo_n "(cached) " >&6
3341 if test -n "$CXX"; then
3342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 if test -n "$CXX"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3364 $as_echo "$CXX" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3371 test -n "$CXX" && break
3374 if test -z "$CXX"; then
3376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3383 $as_echo_n "(cached) " >&6
3385 if test -n "$ac_ct_CXX"; then
3386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3395 ac_cv_prog_ac_ct_CXX="$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3406 if test -n "$ac_ct_CXX"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3408 $as_echo "$ac_ct_CXX" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3415 test -n "$ac_ct_CXX" && break
3418 if test "x$ac_ct_CXX" = x; then
3421 case $cross_compiling:$ac_tool_warned in
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3433 # Provide some information about the compiler.
3434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3437 for ac_option in --version -v -V -qversion; do
3438 { { ac_try="$ac_compiler $ac_option >&5"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3447 if test -s conftest.err; then
3449 ... rest of stderr output deleted ...
3450 10q' conftest.err >conftest.er1
3451 cat conftest.er1 >&5
3453 rm -f conftest.er1 conftest.err
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3460 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3477 if ac_fn_cxx_try_compile "$LINENO"; then :
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3488 if test $ac_compiler_gnu = yes; then
3493 ac_test_CXXFLAGS=${CXXFLAGS+set}
3494 ac_save_CXXFLAGS=$CXXFLAGS
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3497 if ${ac_cv_prog_cxx_g+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3501 ac_cxx_werror_flag=yes
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_cxx_try_compile "$LINENO"; then :
3516 ac_cv_prog_cxx_g=yes
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3530 if ac_fn_cxx_try_compile "$LINENO"; then :
3533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_cxx_try_compile "$LINENO"; then :
3547 ac_cv_prog_cxx_g=yes
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3558 if test "$ac_test_CXXFLAGS" = set; then
3559 CXXFLAGS=$ac_save_CXXFLAGS
3560 elif test $ac_cv_prog_cxx_g = yes; then
3561 if test "$GXX" = yes; then
3567 if test "$GXX" = yes; then
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3587 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3588 # On Suns, sometimes $CPP names a directory.
3589 if test -n "$CPP" && test -d "$CPP"; then
3592 if test -z "$CPP"; then
3593 if ${ac_cv_prog_CPP+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 # Double quotes because CPP needs to be expanded
3597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3600 for ac_c_preproc_warn_flag in '' yes
3602 # Use a header file that comes with gcc, so configuring glibc
3603 # with a fresh cross-compiler works.
3604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605 # <limits.h> exists even on freestanding compilers.
3606 # On the NeXT, cc -E runs the code through the compiler's parser,
3607 # not just through cpp. "Syntax error" is here to catch this case.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3611 # include <limits.h>
3613 # include <assert.h>
3617 if ac_fn_c_try_cpp "$LINENO"; then :
3620 # Broken: fails on valid input.
3623 rm -f conftest.err conftest.i conftest.$ac_ext
3625 # OK, works on sane cases. Now check whether nonexistent headers
3626 # can be detected and how.
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632 # Broken: success on invalid input.
3635 # Passes both tests.
3639 rm -f conftest.err conftest.i conftest.$ac_ext
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.i conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3657 $as_echo "$CPP" >&6; }
3659 for ac_c_preproc_warn_flag in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if ac_fn_c_try_cpp "$LINENO"; then :
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.i conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <ac_nonexistent.h>
3690 if ac_fn_c_try_cpp "$LINENO"; then :
3691 # Broken: success on invalid input.
3694 # Passes both tests.
3698 rm -f conftest.err conftest.i conftest.$ac_ext
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.i conftest.err conftest.$ac_ext
3703 if $ac_preproc_ok; then :
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3709 See \`config.log' for more details" "$LINENO" 5; }
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3720 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3721 if ${ac_cv_path_GREP+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -z "$GREP"; then
3725 ac_path_GREP_found=false
3726 # Loop through the user's path and test for each of PROGNAME-LIST
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3731 test -z "$as_dir" && as_dir=.
3732 for ac_prog in grep ggrep; do
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3735 as_fn_executable_p "$ac_path_GREP" || continue
3736 # Check for GNU ac_path_GREP and select it if it is found.
3737 # Check for GNU $ac_path_GREP
3738 case `"$ac_path_GREP" --version 2>&1` in
3740 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3743 $as_echo_n 0123456789 >"conftest.in"
3746 cat "conftest.in" "conftest.in" >"conftest.tmp"
3747 mv "conftest.tmp" "conftest.in"
3748 cp "conftest.in" "conftest.nl"
3749 $as_echo 'GREP' >> "conftest.nl"
3750 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3752 as_fn_arith $ac_count + 1 && ac_count=$as_val
3753 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3754 # Best one so far, save it but keep looking for a better one
3755 ac_cv_path_GREP="$ac_path_GREP"
3756 ac_path_GREP_max=$ac_count
3758 # 10*(2^10) chars as input seems more than enough
3759 test $ac_count -gt 10 && break
3761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764 $ac_path_GREP_found && break 3
3769 if test -z "$ac_cv_path_GREP"; then
3770 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3773 ac_cv_path_GREP=$GREP
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3778 $as_echo "$ac_cv_path_GREP" >&6; }
3779 GREP="$ac_cv_path_GREP"
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3783 $as_echo_n "checking for egrep... " >&6; }
3784 if ${ac_cv_path_EGREP+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3788 then ac_cv_path_EGREP="$GREP -E"
3790 if test -z "$EGREP"; then
3791 ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 as_fn_executable_p "$ac_path_EGREP" || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803 # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3809 $as_echo_n 0123456789 >"conftest.in"
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
3815 $as_echo 'EGREP' >> "conftest.nl"
3816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818 as_fn_arith $ac_count + 1 && ac_count=$as_val
3819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830 $ac_path_EGREP_found && break 3
3835 if test -z "$ac_cv_path_EGREP"; then
3836 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3839 ac_cv_path_EGREP=$EGREP
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3845 $as_echo "$ac_cv_path_EGREP" >&6; }
3846 EGREP="$ac_cv_path_EGREP"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3850 $as_echo_n "checking for ANSI C header files... " >&6; }
3851 if ${ac_cv_header_stdc+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3870 ac_cv_header_stdc=yes
3872 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 $EGREP "memchr" >/dev/null 2>&1; then :
3887 ac_cv_header_stdc=no
3893 if test $ac_cv_header_stdc = yes; then
3894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 $EGREP "free" >/dev/null 2>&1; then :
3904 ac_cv_header_stdc=no
3910 if test $ac_cv_header_stdc = yes; then
3911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3912 if test "$cross_compiling" = yes; then :
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3942 if ac_fn_c_try_run "$LINENO"; then :
3945 ac_cv_header_stdc=no
3947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3948 conftest.$ac_objext conftest.beam conftest.$ac_ext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3954 $as_echo "$ac_cv_header_stdc" >&6; }
3955 if test $ac_cv_header_stdc = yes; then
3957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3961 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3962 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3963 inttypes.h stdint.h unistd.h
3965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3969 cat >>confdefs.h <<_ACEOF
3970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3980 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3987 if test "$MINIX" = yes; then
3989 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3992 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3995 $as_echo "#define _MINIX 1" >>confdefs.h
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4001 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4002 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4003 $as_echo_n "(cached) " >&6
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4008 # define __EXTENSIONS__ 1
4009 $ac_includes_default
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_safe_to_define___extensions__=yes
4021 ac_cv_safe_to_define___extensions__=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4026 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4027 test $ac_cv_safe_to_define___extensions__ = yes &&
4028 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4030 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4032 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4034 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4036 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4041 if test $ac_cv_c_compiler_gnu = yes; then
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4043 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4044 if ${ac_cv_prog_gcc_traditional+:} false; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_pattern="Autoconf.*'x'"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4055 ac_cv_prog_gcc_traditional=yes
4057 ac_cv_prog_gcc_traditional=no
4062 if test $ac_cv_prog_gcc_traditional = no; then
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4070 ac_cv_prog_gcc_traditional=yes
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4077 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4078 if test $ac_cv_prog_gcc_traditional = yes; then
4079 CC="$CC -traditional"
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4084 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4085 if ${ac_cv_prog_suncc+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 cat > conftest.c <<EOF
4093 if { ac_try='${CC-cc} -E conftest.c'
4094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4099 ac_cv_prog_suncc=yes
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4105 $as_echo "$ac_cv_prog_suncc" >&6; }
4106 if test -n "$ac_tool_prefix"; then
4107 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4108 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110 $as_echo_n "checking for $ac_word... " >&6; }
4111 if ${ac_cv_prog_RANLIB+:} false; then :
4112 $as_echo_n "(cached) " >&6
4114 if test -n "$RANLIB"; then
4115 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 RANLIB=$ac_cv_prog_RANLIB
4135 if test -n "$RANLIB"; then
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4137 $as_echo "$RANLIB" >&6; }
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4145 if test -z "$ac_cv_prog_RANLIB"; then
4146 ac_ct_RANLIB=$RANLIB
4147 # Extract the first word of "ranlib", so it can be a program name with args.
4148 set dummy ranlib; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$ac_ct_RANLIB"; then
4155 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_RANLIB="ranlib"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4175 if test -n "$ac_ct_RANLIB"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4177 $as_echo "$ac_ct_RANLIB" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4183 if test "x$ac_ct_RANLIB" = x; then
4186 case $cross_compiling:$ac_tool_warned in
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190 ac_tool_warned=yes ;;
4192 RANLIB=$ac_ct_RANLIB
4195 RANLIB="$ac_cv_prog_RANLIB"
4199 if test "x$GCC" = "xyes"; then
4200 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4203 # Check whether --enable-largefile was given.
4204 if test "${enable_largefile+set}" = set; then :
4205 enableval=$enable_largefile;
4208 if test "$enable_largefile" != no; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4211 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4212 if ${ac_cv_sys_largefile_CC+:} false; then :
4213 $as_echo_n "(cached) " >&6
4215 ac_cv_sys_largefile_CC=no
4216 if test "$GCC" != yes; then
4219 # IRIX 6.2 and later do not support large files by default,
4220 # so use the C compiler's -n32 option if that helps.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <sys/types.h>
4224 /* Check that off_t can represent 2**63 - 1 correctly.
4225 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4226 since some C++ compilers masquerading as C compilers
4227 incorrectly reject 9223372036854775807. */
4228 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4229 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4230 && LARGE_OFF_T % 2147483647 == 1)
4240 if ac_fn_c_try_compile "$LINENO"; then :
4243 rm -f core conftest.err conftest.$ac_objext
4245 if ac_fn_c_try_compile "$LINENO"; then :
4246 ac_cv_sys_largefile_CC=' -n32'; break
4248 rm -f core conftest.err conftest.$ac_objext
4252 rm -f conftest.$ac_ext
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4256 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4257 if test "$ac_cv_sys_largefile_CC" != no; then
4258 CC=$CC$ac_cv_sys_largefile_CC
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4262 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4263 if ${ac_cv_sys_file_offset_bits+:} false; then :
4264 $as_echo_n "(cached) " >&6
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4269 #include <sys/types.h>
4270 /* Check that off_t can represent 2**63 - 1 correctly.
4271 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4272 since some C++ compilers masquerading as C compilers
4273 incorrectly reject 9223372036854775807. */
4274 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4275 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4276 && LARGE_OFF_T % 2147483647 == 1)
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_sys_file_offset_bits=no; break
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #define _FILE_OFFSET_BITS 64
4293 #include <sys/types.h>
4294 /* Check that off_t can represent 2**63 - 1 correctly.
4295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4296 since some C++ compilers masquerading as C compilers
4297 incorrectly reject 9223372036854775807. */
4298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4300 && LARGE_OFF_T % 2147483647 == 1)
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311 ac_cv_sys_file_offset_bits=64; break
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_sys_file_offset_bits=unknown
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4319 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4320 case $ac_cv_sys_file_offset_bits in #(
4323 cat >>confdefs.h <<_ACEOF
4324 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4329 if test $ac_cv_sys_file_offset_bits = unknown; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4331 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4332 if ${ac_cv_sys_large_files+:} false; then :
4333 $as_echo_n "(cached) " >&6
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <sys/types.h>
4339 /* Check that off_t can represent 2**63 - 1 correctly.
4340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4341 since some C++ compilers masquerading as C compilers
4342 incorrectly reject 9223372036854775807. */
4343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4345 && LARGE_OFF_T % 2147483647 == 1)
4355 if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_sys_large_files=no; break
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #define _LARGE_FILES 1
4362 #include <sys/types.h>
4363 /* Check that off_t can represent 2**63 - 1 correctly.
4364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4365 since some C++ compilers masquerading as C compilers
4366 incorrectly reject 9223372036854775807. */
4367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4369 && LARGE_OFF_T % 2147483647 == 1)
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380 ac_cv_sys_large_files=1; break
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_cv_sys_large_files=unknown
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4388 $as_echo "$ac_cv_sys_large_files" >&6; }
4389 case $ac_cv_sys_large_files in #(
4392 cat >>confdefs.h <<_ACEOF
4393 #define _LARGE_FILES $ac_cv_sys_large_files
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4405 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4406 if ${ac_cv_c_bigendian+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 ac_cv_c_bigendian=unknown
4410 # See if we're dealing with a universal compiler.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #ifndef __APPLE_CC__
4414 not a universal capable compiler
4419 if ac_fn_c_try_compile "$LINENO"; then :
4421 # Check for potential -arch flags. It is not universal unless
4422 # there are at least two -arch flags with different values.
4425 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4426 if test -n "$ac_prev"; then
4428 i?86 | x86_64 | ppc | ppc64)
4429 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4432 ac_cv_c_bigendian=universal
4438 elif test "x$ac_word" = "x-arch"; then
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 if test $ac_cv_c_bigendian = unknown; then
4445 # See if sys/param.h defines the BYTE_ORDER macro.
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4448 #include <sys/types.h>
4449 #include <sys/param.h>
4454 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4455 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 # It does; now see whether it defined to BIG_ENDIAN or not.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4474 #if BYTE_ORDER != BIG_ENDIAN
4482 if ac_fn_c_try_compile "$LINENO"; then :
4483 ac_cv_c_bigendian=yes
4485 ac_cv_c_bigendian=no
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 if test $ac_cv_c_bigendian = unknown; then
4492 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4500 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 # It does; now see whether it defined to _BIG_ENDIAN or not.
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_c_bigendian=yes
4528 ac_cv_c_bigendian=no
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 if test $ac_cv_c_bigendian = unknown; then
4535 # Compile a test program.
4536 if test "$cross_compiling" = yes; then :
4537 # Try to guess by grepping values from an object file.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 short int ascii_mm[] =
4541 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4542 short int ascii_ii[] =
4543 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4544 int use_ascii (int i) {
4545 return ascii_mm[i] + ascii_ii[i];
4547 short int ebcdic_ii[] =
4548 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4549 short int ebcdic_mm[] =
4550 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4551 int use_ebcdic (int i) {
4552 return ebcdic_mm[i] + ebcdic_ii[i];
4559 return use_ascii (foo) == use_ebcdic (foo);
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4566 ac_cv_c_bigendian=yes
4568 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4569 if test "$ac_cv_c_bigendian" = unknown; then
4570 ac_cv_c_bigendian=no
4572 # finding both strings is unlikely to happen, but who knows?
4573 ac_cv_c_bigendian=unknown
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 $ac_includes_default
4586 /* Are we little or big endian? From Harbison&Steele. */
4590 char c[sizeof (long int)];
4593 return u.c[sizeof (long int) - 1] == 1;
4599 if ac_fn_c_try_run "$LINENO"; then :
4600 ac_cv_c_bigendian=no
4602 ac_cv_c_bigendian=yes
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4605 conftest.$ac_objext conftest.beam conftest.$ac_ext
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4611 $as_echo "$ac_cv_c_bigendian" >&6; }
4612 case $ac_cv_c_bigendian in #(
4614 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4620 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4624 as_fn_error $? "unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4629 # Extract the first word of "gmake", so it can be a program name with args.
4630 set dummy gmake; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_GMAKE+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$GMAKE"; then
4637 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_GMAKE="yes"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4657 GMAKE=$ac_cv_prog_GMAKE
4658 if test -n "$GMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4660 $as_echo "$GMAKE" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4667 if test $GMAKE = no; then
4668 # Extract the first word of "make", so it can be a program name with args.
4669 set dummy make; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_path_MAKE+:} false; then :
4673 $as_echo_n "(cached) " >&6
4677 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4699 MAKE=$ac_cv_path_MAKE
4700 if test -n "$MAKE"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4702 $as_echo "$MAKE" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4710 # Extract the first word of "gmake", so it can be a program name with args.
4711 set dummy gmake; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if ${ac_cv_path_MAKE+:} false; then :
4715 $as_echo_n "(cached) " >&6
4719 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4741 MAKE=$ac_cv_path_MAKE
4742 if test -n "$MAKE"; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4744 $as_echo "$MAKE" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4752 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4753 if test -z "$makever"; then
4754 as_fn_error $? "GNU Make is not installed. Please download and install it
4755 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4758 # Extract the first word of "git", so it can be a program name with args.
4759 set dummy git; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_GIT+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 if test -n "$GIT"; then
4766 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_GIT="yes"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4787 if test -n "$GIT"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4789 $as_echo "$GIT" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4798 # Check whether --with-system-libltdl was given.
4799 if test "${with_system_libltdl+set}" = set; then :
4800 withval=$with_system_libltdl;
4802 with_system_libltdl=no
4806 if test "x$with_system_libltdl" = "xyes" ; then :
4808 INCLTDL=-DWITH_SYSTEM_LTDL
4812 # Check whether --with-system-libtool was given.
4813 if test "${with_system_libtool+set}" = set; then :
4814 withval=$with_system_libtool;
4816 with_system_libtool=no
4821 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4822 if test -f "$ac_dir/install-sh"; then
4824 ac_install_sh="$ac_aux_dir/install-sh -c"
4826 elif test -f "$ac_dir/install.sh"; then
4828 ac_install_sh="$ac_aux_dir/install.sh -c"
4830 elif test -f "$ac_dir/shtool"; then
4832 ac_install_sh="$ac_aux_dir/shtool install -c"
4836 if test -z "$ac_aux_dir"; then
4837 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4840 # These three variables are undocumented and unsupported,
4841 # and are intended to be withdrawn in a future Autoconf release.
4842 # They can cause serious problems if a builder's source tree is in a directory
4843 # whose full name contains unusual characters.
4844 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4845 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4846 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4852 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4858 macro_revision='1.3293'
4871 # Make sure we can run config.sub.
4872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4876 $as_echo_n "checking build system type... " >&6; }
4877 if ${ac_cv_build+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 ac_build_alias=$build_alias
4881 test "x$ac_build_alias" = x &&
4882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4883 test "x$ac_build_alias" = x &&
4884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4890 $as_echo "$ac_cv_build" >&6; }
4891 case $ac_cv_build in
4893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4896 ac_save_IFS=$IFS; IFS='-'
4902 # Remember, the first character of IFS is used to create $*,
4903 # except with old shells:
4906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4910 $as_echo_n "checking host system type... " >&6; }
4911 if ${ac_cv_host+:} false; then :
4912 $as_echo_n "(cached) " >&6
4914 if test "x$host_alias" = x; then
4915 ac_cv_host=$ac_cv_build
4917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4923 $as_echo "$ac_cv_host" >&6; }
4926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4929 ac_save_IFS=$IFS; IFS='-'
4935 # Remember, the first character of IFS is used to create $*,
4936 # except with old shells:
4939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4942 # Backslashify metacharacters that are still active within
4943 # double-quoted strings.
4944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4946 # Same as above, but do not quote variable references.
4947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4949 # Sed substitution to delay expansion of an escaped shell variable in a
4950 # double_quote_subst'ed string.
4951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4953 # Sed substitution to delay expansion of an escaped single quote.
4954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4956 # Sed substitution to avoid accidental globbing in evaled expressions
4957 no_glob_subst='s/\*/\\\*/g'
4959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4964 $as_echo_n "checking how to print strings... " >&6; }
4965 # Test print first, because it will be a builtin if present.
4966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4967 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 # Use this function as a fallback that always works.
4973 func_fallback_echo ()
4975 eval 'cat <<_LTECHO_EOF
4979 ECHO='func_fallback_echo'
4982 # func_echo_all arg...
4983 # Invoke $ECHO with all args, space-separated.
4990 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4991 $as_echo "printf" >&6; } ;;
4992 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4993 $as_echo "print -r" >&6; } ;;
4994 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4995 $as_echo "cat" >&6; } ;;
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5013 if ${ac_cv_path_SED+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5017 for ac_i in 1 2 3 4 5 6 7; do
5018 ac_script="$ac_script$as_nl$ac_script"
5020 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5021 { ac_script=; unset ac_script;}
5022 if test -z "$SED"; then
5023 ac_path_SED_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_prog in sed gsed; do
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5033 as_fn_executable_p "$ac_path_SED" || continue
5034 # Check for GNU ac_path_SED and select it if it is found.
5035 # Check for GNU $ac_path_SED
5036 case `"$ac_path_SED" --version 2>&1` in
5038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5041 $as_echo_n 0123456789 >"conftest.in"
5044 cat "conftest.in" "conftest.in" >"conftest.tmp"
5045 mv "conftest.tmp" "conftest.in"
5046 cp "conftest.in" "conftest.nl"
5047 $as_echo '' >> "conftest.nl"
5048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050 as_fn_arith $ac_count + 1 && ac_count=$as_val
5051 if test $ac_count -gt ${ac_path_SED_max-0}; then
5052 # Best one so far, save it but keep looking for a better one
5053 ac_cv_path_SED="$ac_path_SED"
5054 ac_path_SED_max=$ac_count
5056 # 10*(2^10) chars as input seems more than enough
5057 test $ac_count -gt 10 && break
5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 $ac_path_SED_found && break 3
5067 if test -z "$ac_cv_path_SED"; then
5068 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5076 $as_echo "$ac_cv_path_SED" >&6; }
5077 SED="$ac_cv_path_SED"
5080 test -z "$SED" && SED=sed
5081 Xsed="$SED -e 1s/^X//"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5094 $as_echo_n "checking for fgrep... " >&6; }
5095 if ${ac_cv_path_FGREP+:} false; then :
5096 $as_echo_n "(cached) " >&6
5098 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5099 then ac_cv_path_FGREP="$GREP -F"
5101 if test -z "$FGREP"; then
5102 ac_path_FGREP_found=false
5103 # Loop through the user's path and test for each of PROGNAME-LIST
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5108 test -z "$as_dir" && as_dir=.
5109 for ac_prog in fgrep; do
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5112 as_fn_executable_p "$ac_path_FGREP" || continue
5113 # Check for GNU ac_path_FGREP and select it if it is found.
5114 # Check for GNU $ac_path_FGREP
5115 case `"$ac_path_FGREP" --version 2>&1` in
5117 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5120 $as_echo_n 0123456789 >"conftest.in"
5123 cat "conftest.in" "conftest.in" >"conftest.tmp"
5124 mv "conftest.tmp" "conftest.in"
5125 cp "conftest.in" "conftest.nl"
5126 $as_echo 'FGREP' >> "conftest.nl"
5127 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5129 as_fn_arith $ac_count + 1 && ac_count=$as_val
5130 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5131 # Best one so far, save it but keep looking for a better one
5132 ac_cv_path_FGREP="$ac_path_FGREP"
5133 ac_path_FGREP_max=$ac_count
5135 # 10*(2^10) chars as input seems more than enough
5136 test $ac_count -gt 10 && break
5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5141 $ac_path_FGREP_found && break 3
5146 if test -z "$ac_cv_path_FGREP"; then
5147 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5150 ac_cv_path_FGREP=$FGREP
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5156 $as_echo "$ac_cv_path_FGREP" >&6; }
5157 FGREP="$ac_cv_path_FGREP"
5160 test -z "$GREP" && GREP=grep
5180 # Check whether --with-gnu-ld was given.
5181 if test "${with_gnu_ld+set}" = set; then :
5182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5188 if test "$GCC" = yes; then
5189 # Check if gcc -print-prog-name=ld gives a path.
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5191 $as_echo_n "checking for ld used by $CC... " >&6; }
5194 # gcc leaves a trailing carriage return which upsets mingw
5195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5200 # Accept absolute paths.
5202 re_direlt='/[^/][^/]*/\.\./'
5203 # Canonicalize the pathname of ld
5204 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5205 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5206 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5208 test -z "$LD" && LD="$ac_prog"
5211 # If it fails, then pretend we aren't using GCC.
5215 # If it is relative, then search for the first ld in PATH.
5219 elif test "$with_gnu_ld" = yes; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5221 $as_echo_n "checking for GNU ld... " >&6; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5224 $as_echo_n "checking for non-GNU ld... " >&6; }
5226 if ${lt_cv_path_LD+:} false; then :
5227 $as_echo_n "(cached) " >&6
5229 if test -z "$LD"; then
5230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5231 for ac_dir in $PATH; do
5233 test -z "$ac_dir" && ac_dir=.
5234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235 lt_cv_path_LD="$ac_dir/$ac_prog"
5236 # Check to see if the program is GNU ld. I'd rather use --version,
5237 # but apparently some variants of GNU ld only accept -v.
5238 # Break only if it was the GNU/non-GNU ld that we prefer.
5239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5240 *GNU* | *'with BFD'*)
5241 test "$with_gnu_ld" != no && break
5244 test "$with_gnu_ld" != yes && break
5251 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5256 if test -n "$LD"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5258 $as_echo "$LD" >&6; }
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5263 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5266 if ${lt_cv_prog_gnu_ld+:} false; then :
5267 $as_echo_n "(cached) " >&6
5269 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272 lt_cv_prog_gnu_ld=yes
5275 lt_cv_prog_gnu_ld=no
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5281 with_gnu_ld=$lt_cv_prog_gnu_ld
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5292 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5293 if ${lt_cv_path_NM+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -n "$NM"; then
5297 # Let the user override the test.
5300 lt_nm_to_check="${ac_tool_prefix}nm"
5301 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5302 lt_nm_to_check="$lt_nm_to_check nm"
5304 for lt_tmp_nm in $lt_nm_to_check; do
5305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5306 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5308 test -z "$ac_dir" && ac_dir=.
5309 tmp_nm="$ac_dir/$lt_tmp_nm"
5310 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5311 # Check to see if the nm accepts a BSD-compat flag.
5312 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5313 # nm: unknown option "B" ignored
5314 # Tru64's nm complains that /dev/null is an invalid object file
5315 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5316 */dev/null* | *'Invalid file or object type'*)
5317 lt_cv_path_NM="$tmp_nm -B"
5321 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5323 lt_cv_path_NM="$tmp_nm -p"
5327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5328 continue # so that we can try to find one that supports BSD flags
5337 : ${lt_cv_path_NM=no}
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5341 $as_echo "$lt_cv_path_NM" >&6; }
5342 if test "$lt_cv_path_NM" != "no"; then
5345 # Didn't find any BSD compatible name lister, look for dumpbin.
5346 if test -n "$DUMPBIN"; then :
5347 # Let the user override the test.
5349 if test -n "$ac_tool_prefix"; then
5350 for ac_prog in dumpbin "link -dump"
5352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_DUMPBIN+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 if test -n "$DUMPBIN"; then
5360 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 DUMPBIN=$ac_cv_prog_DUMPBIN
5380 if test -n "$DUMPBIN"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5382 $as_echo "$DUMPBIN" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5389 test -n "$DUMPBIN" && break
5392 if test -z "$DUMPBIN"; then
5393 ac_ct_DUMPBIN=$DUMPBIN
5394 for ac_prog in dumpbin "link -dump"
5396 # Extract the first word of "$ac_prog", so it can be a program name with args.
5397 set dummy $ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 if test -n "$ac_ct_DUMPBIN"; then
5404 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5424 if test -n "$ac_ct_DUMPBIN"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5426 $as_echo "$ac_ct_DUMPBIN" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5433 test -n "$ac_ct_DUMPBIN" && break
5436 if test "x$ac_ct_DUMPBIN" = x; then
5439 case $cross_compiling:$ac_tool_warned in
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5445 DUMPBIN=$ac_ct_DUMPBIN
5449 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5451 DUMPBIN="$DUMPBIN -symbols"
5459 if test "$DUMPBIN" != ":"; then
5463 test -z "$NM" && NM=nm
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5471 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5472 if ${lt_cv_nm_interface+:} false; then :
5473 $as_echo_n "(cached) " >&6
5475 lt_cv_nm_interface="BSD nm"
5476 echo "int some_variable = 0;" > conftest.$ac_ext
5477 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5478 (eval "$ac_compile" 2>conftest.err)
5479 cat conftest.err >&5
5480 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5481 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5482 cat conftest.err >&5
5483 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5484 cat conftest.out >&5
5485 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5486 lt_cv_nm_interface="MS dumpbin"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5491 $as_echo "$lt_cv_nm_interface" >&6; }
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5494 $as_echo_n "checking whether ln -s works... " >&6; }
5496 if test "$LN_S" = "ln -s"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5498 $as_echo "yes" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5501 $as_echo "no, using $LN_S" >&6; }
5504 # find the maximum length of command line arguments
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5506 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5507 if ${lt_cv_sys_max_cmd_len+:} false; then :
5508 $as_echo_n "(cached) " >&6
5515 # On DJGPP, this test can blow up pretty badly due to problems in libc
5516 # (any single argument exceeding 2000 bytes causes a buffer overrun
5517 # during glob expansion). Even if it were fixed, the result of this
5518 # check would be larger than it should be.
5519 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5523 # Under GNU Hurd, this test is not required because there is
5524 # no limit to the length of command line arguments.
5525 # Libtool will interpret -1 as no limit whatsoever
5526 lt_cv_sys_max_cmd_len=-1;
5529 cygwin* | mingw* | cegcc*)
5530 # On Win9x/ME, this test blows up -- it succeeds, but takes
5531 # about 5 minutes as the teststring grows exponentially.
5532 # Worse, since 9x/ME are not pre-emptively multitasking,
5533 # you end up with a "frozen" computer, even though with patience
5534 # the test eventually succeeds (with a max line length of 256k).
5535 # Instead, let's just punt: use the minimum linelength reported by
5536 # all of the supported platforms: 8192 (on NT/2K/XP).
5537 lt_cv_sys_max_cmd_len=8192;
5541 # On MiNT this can take a long time and run out of memory.
5542 lt_cv_sys_max_cmd_len=8192;
5546 # On AmigaOS with pdksh, this test takes hours, literally.
5547 # So we just punt and use a minimum line length of 8192.
5548 lt_cv_sys_max_cmd_len=8192;
5551 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5552 # This has been around since 386BSD, at least. Likely further.
5553 if test -x /sbin/sysctl; then
5554 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5555 elif test -x /usr/sbin/sysctl; then
5556 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5558 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5560 # And add a safety zone
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5566 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5567 lt_cv_sys_max_cmd_len=196608
5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573 # nice to cause kernel panics so lets avoid the loop below.
5574 # First set a reasonable default.
5575 lt_cv_sys_max_cmd_len=16384
5577 if test -x /sbin/sysconfig; then
5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5584 lt_cv_sys_max_cmd_len=102400
5586 sysv5* | sco5v6* | sysv4.2uw2*)
5587 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5588 if test -n "$kargmax"; then
5589 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5591 lt_cv_sys_max_cmd_len=32768
5595 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5596 if test -n "$lt_cv_sys_max_cmd_len"; then
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5600 # Make teststring a little bigger before we do anything with it.
5601 # a 1K string should be a reasonable start.
5602 for i in 1 2 3 4 5 6 7 8 ; do
5603 teststring=$teststring$teststring
5605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606 # If test is not a shell built-in, we'll probably end up computing a
5607 # maximum length that is only half of the actual maximum length, but
5609 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5610 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611 test $i != 17 # 1/2 MB should be enough
5614 teststring=$teststring$teststring
5616 # Only check the string length outside the loop.
5617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5619 # Add a significant safety factor because C++ compilers can tack on
5620 # massive amounts of additional arguments before passing them to the
5621 # linker. It appears as though 1/2 is a usable value.
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5629 if test -n $lt_cv_sys_max_cmd_len ; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5648 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5649 # Try some XSI features
5652 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5654 && eval 'test $(( 1 + 1 )) -eq 2 \
5655 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5658 $as_echo "$xsi_shell" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5662 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5664 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5666 && lt_shell_append=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5668 $as_echo "$lt_shell_append" >&6; }
5671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5681 # test EBCDIC or ASCII
5682 case `echo X|tr X '\101'` in
5683 A) # ASCII based system
5684 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5685 lt_SP2NL='tr \040 \012'
5686 lt_NL2SP='tr \015\012 \040\040'
5688 *) # EBCDIC based system
5689 lt_SP2NL='tr \100 \n'
5690 lt_NL2SP='tr \r\n \100\100'
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5703 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5704 if ${lt_cv_to_host_file_cmd+:} false; then :
5705 $as_echo_n "(cached) " >&6
5710 *-*-mingw* ) # actually msys
5711 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5714 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5716 * ) # otherwise, assume *nix
5717 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5723 *-*-mingw* ) # actually msys
5724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5727 lt_cv_to_host_file_cmd=func_convert_file_noop
5729 * ) # otherwise, assume *nix
5730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5734 * ) # unhandled hosts (and "normal" native builds)
5735 lt_cv_to_host_file_cmd=func_convert_file_noop
5741 to_host_file_cmd=$lt_cv_to_host_file_cmd
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5743 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5750 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5751 if ${lt_cv_to_tool_file_cmd+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 #assume ordinary cross tools, or native build.
5755 lt_cv_to_tool_file_cmd=func_convert_file_noop
5759 *-*-mingw* ) # actually msys
5760 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5770 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5778 if ${lt_cv_ld_reload_flag+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 lt_cv_ld_reload_flag='-r'
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5785 reload_flag=$lt_cv_ld_reload_flag
5786 case $reload_flag in
5788 *) reload_flag=" $reload_flag" ;;
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5792 cygwin* | mingw* | pw32* | cegcc*)
5793 if test "$GCC" != yes; then
5798 if test "$GCC" = yes; then
5799 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_OBJDUMP+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$OBJDUMP"; then
5823 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 OBJDUMP=$ac_cv_prog_OBJDUMP
5843 if test -n "$OBJDUMP"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5845 $as_echo "$OBJDUMP" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_OBJDUMP"; then
5854 ac_ct_OBJDUMP=$OBJDUMP
5855 # Extract the first word of "objdump", so it can be a program name with args.
5856 set dummy objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -n "$ac_ct_OBJDUMP"; then
5863 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5883 if test -n "$ac_ct_OBJDUMP"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5885 $as_echo "$ac_ct_OBJDUMP" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_OBJDUMP" = x; then
5894 case $cross_compiling:$ac_tool_warned in
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5900 OBJDUMP=$ac_ct_OBJDUMP
5903 OBJDUMP="$ac_cv_prog_OBJDUMP"
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5918 if ${lt_cv_deplibs_check_method+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [[regex]]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given extended regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5937 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946 lt_cv_file_magic_cmd='/usr/bin/file -L'
5947 lt_cv_file_magic_test_file=/shlib/libc.so
5951 # func_win32_libid is a shell function defined in ltmain.sh
5952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5953 lt_cv_file_magic_cmd='func_win32_libid'
5957 # Base MSYS/MinGW do not provide the 'file' command needed by
5958 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5959 # unless we find 'file', for example because we are cross-compiling.
5960 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5961 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963 lt_cv_file_magic_cmd='func_win32_libid'
5965 # Keep this pattern in sync with the one in func_win32_libid.
5966 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5967 lt_cv_file_magic_cmd='$OBJDUMP -f'
5972 # use the weaker test based on 'objdump'. See mingw*.
5973 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5977 darwin* | rhapsody*)
5978 lt_cv_deplibs_check_method=pass_all
5981 freebsd* | dragonfly*)
5982 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5985 # Not sure whether the presence of OpenBSD here was a mistake.
5986 # Let's accept both of them until this is cleared up.
5987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988 lt_cv_file_magic_cmd=/usr/bin/file
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5993 lt_cv_deplibs_check_method=pass_all
5998 lt_cv_deplibs_check_method=pass_all
6002 lt_cv_deplibs_check_method=pass_all
6005 hpux10.20* | hpux11*)
6006 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6028 irix5* | irix6* | nonstopux*)
6030 *-32|*"-32 ") libmagic=32-bit;;
6031 *-n32|*"-n32 ") libmagic=N32;;
6032 *-64|*"-64 ") libmagic=64-bit;;
6033 *) libmagic=never-match;;
6035 lt_cv_deplibs_check_method=pass_all
6038 # This must be Linux ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6040 lt_cv_deplibs_check_method=pass_all
6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6058 lt_cv_deplibs_check_method=pass_all
6062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069 osf3* | osf4* | osf5*)
6070 lt_cv_deplibs_check_method=pass_all
6074 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_deplibs_check_method=pass_all
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082 lt_cv_deplibs_check_method=pass_all
6086 case $host_vendor in
6088 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]'
6089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6092 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_file_magic_cmd='/bin/file'
6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6099 lt_cv_file_magic_cmd='/bin/file'
6100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101 lt_cv_file_magic_test_file=/lib/libc.so
6104 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6113 lt_cv_deplibs_check_method=pass_all
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6123 if test "$build" = "$host"; then
6126 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6129 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6135 file_magic_cmd=$lt_cv_file_magic_cmd
6136 deplibs_check_method=$lt_cv_deplibs_check_method
6137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_DLLTOOL+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -n "$DLLTOOL"; then
6169 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 DLLTOOL=$ac_cv_prog_DLLTOOL
6189 if test -n "$DLLTOOL"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6191 $as_echo "$DLLTOOL" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6199 if test -z "$ac_cv_prog_DLLTOOL"; then
6200 ac_ct_DLLTOOL=$DLLTOOL
6201 # Extract the first word of "dlltool", so it can be a program name with args.
6202 set dummy dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$ac_ct_DLLTOOL"; then
6209 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6229 if test -n "$ac_ct_DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6231 $as_echo "$ac_ct_DLLTOOL" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6237 if test "x$ac_ct_DLLTOOL" = x; then
6240 case $cross_compiling:$ac_tool_warned in
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6246 DLLTOOL=$ac_ct_DLLTOOL
6249 DLLTOOL="$ac_cv_prog_DLLTOOL"
6252 test -z "$DLLTOOL" && DLLTOOL=dlltool
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6264 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6265 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 lt_cv_sharedlib_from_linklib_cmd='unknown'
6271 cygwin* | mingw* | pw32* | cegcc*)
6272 # two different shell functions defined in ltmain.sh
6273 # decide which to use based on capabilities of $DLLTOOL
6274 case `$DLLTOOL --help 2>&1` in
6275 *--identify-strict*)
6276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6284 # fallback: assume linklib IS sharedlib
6285 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6291 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6292 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6293 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6301 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_AR+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$AR"; then
6312 ac_cv_prog_AR="$AR" # Let the user override the test.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 if test -n "$AR"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6334 $as_echo "$AR" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6341 test -n "$AR" && break
6344 if test -z "$AR"; then
6348 # Extract the first word of "$ac_prog", so it can be a program name with args.
6349 set dummy $ac_prog; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$ac_ct_AR"; then
6356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365 ac_cv_prog_ac_ct_AR="$ac_prog"
6366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6376 if test -n "$ac_ct_AR"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6378 $as_echo "$ac_ct_AR" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6385 test -n "$ac_ct_AR" && break
6388 if test "x$ac_ct_AR" = x; then
6391 case $cross_compiling:$ac_tool_warned in
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6415 $as_echo_n "checking for archiver @FILE support... " >&6; }
6416 if ${lt_cv_ar_at_file+:} false; then :
6417 $as_echo_n "(cached) " >&6
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 echo conftest.$ac_objext > conftest.lst
6433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6435 (eval $lt_ar_try) 2>&5
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }
6439 if test "$ac_status" -eq 0; then
6440 # Ensure the archiver fails upon bogus file names.
6441 rm -f conftest.$ac_objext libconftest.a
6442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6443 (eval $lt_ar_try) 2>&5
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }
6447 if test "$ac_status" -ne 0; then
6451 rm -f conftest.* libconftest.a
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6458 $as_echo "$lt_cv_ar_at_file" >&6; }
6460 if test "x$lt_cv_ar_at_file" = xno; then
6463 archiver_list_spec=$lt_cv_ar_at_file
6472 if test -n "$ac_tool_prefix"; then
6473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}strip; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_STRIP+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if test -n "$STRIP"; then
6481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 STRIP=$ac_cv_prog_STRIP
6501 if test -n "$STRIP"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6503 $as_echo "$STRIP" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6511 if test -z "$ac_cv_prog_STRIP"; then
6513 # Extract the first word of "strip", so it can be a program name with args.
6514 set dummy strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$ac_ct_STRIP"; then
6521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_ac_ct_STRIP="strip"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6541 if test -n "$ac_ct_STRIP"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6543 $as_echo "$ac_ct_STRIP" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6549 if test "x$ac_ct_STRIP" = x; then
6552 case $cross_compiling:$ac_tool_warned in
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6561 STRIP="$ac_cv_prog_STRIP"
6564 test -z "$STRIP" && STRIP=:
6571 if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_RANLIB+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 if test -n "$RANLIB"; then
6580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 RANLIB=$ac_cv_prog_RANLIB
6600 if test -n "$RANLIB"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6602 $as_echo "$RANLIB" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6610 if test -z "$ac_cv_prog_RANLIB"; then
6611 ac_ct_RANLIB=$RANLIB
6612 # Extract the first word of "ranlib", so it can be a program name with args.
6613 set dummy ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$ac_ct_RANLIB"; then
6620 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_RANLIB="ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6640 if test -n "$ac_ct_RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6642 $as_echo "$ac_ct_RANLIB" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6648 if test "x$ac_ct_RANLIB" = x; then
6651 case $cross_compiling:$ac_tool_warned in
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6657 RANLIB=$ac_ct_RANLIB
6660 RANLIB="$ac_cv_prog_RANLIB"
6663 test -z "$RANLIB" && RANLIB=:
6670 # Determine commands to create old-style static archives.
6671 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6672 old_postinstall_cmds='chmod 644 $oldlib'
6673 old_postuninstall_cmds=
6675 if test -n "$RANLIB"; then
6678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6684 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6689 lock_old_archive_extraction=yes ;;
6691 lock_old_archive_extraction=no ;;
6714 for ac_prog in gawk mawk nawk awk
6716 # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_AWK+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$AWK"; then
6724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_AWK="$ac_prog"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 if test -n "$AWK"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6746 $as_echo "$AWK" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6753 test -n "$AWK" && break
6774 # If no C compiler was specified, use CC.
6777 # If no C compiler flags were specified, use CFLAGS.
6778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6780 # Allow CC to be a program name with arguments.
6784 # Check for command to grab the raw symbol name followed by C symbol from nm.
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6786 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6787 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6788 $as_echo_n "(cached) " >&6
6791 # These are sane defaults that work on at least a few old systems.
6792 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6794 # Character class describing NM global symbol codes.
6795 symcode='[BCDEGRST]'
6797 # Regexp to match symbols that can be accessed directly from C.
6798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6800 # Define system-specific variables.
6805 cygwin* | mingw* | pw32* | cegcc*)
6806 symcode='[ABCDGISTW]'
6809 if test "$host_cpu" = ia64; then
6810 symcode='[ABCDEGRST]'
6814 symcode='[BCDEGRST]'
6817 symcode='[BCDEGQRST]'
6828 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6836 # If we're using GNU nm, then use its standard symbol codes.
6837 case `$NM -V 2>&1` in
6838 *GNU* | *'with BFD'*)
6839 symcode='[ABCDGIRSTW]' ;;
6842 # Transform an extracted symbol line into a proper C declaration.
6843 # Some systems (esp. on ia64) link data and code symbols differently,
6844 # so use this general approach.
6845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6847 # Transform an extracted symbol line into symbol name and symbol address
6848 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6849 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6851 # Handle CRLF in mingw tool chain
6855 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6859 # Try without a prefix underscore, then with it.
6860 for ac_symprfx in "" "_"; do
6862 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6863 symxfrm="\\1 $ac_symprfx\\2 \\2"
6865 # Write the raw and C identifiers.
6866 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6867 # Fake it for dumpbin and say T for any non-static function
6868 # and D for any global variable.
6869 # Also find C++ and __fastcall symbols from MSVC++,
6870 # which start with @ or ?.
6871 lt_cv_sys_global_symbol_pipe="$AWK '"\
6872 " {last_section=section; section=\$ 3};"\
6873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6874 " \$ 0!~/External *\|/{next};"\
6875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6876 " {if(hide[section]) next};"\
6877 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6878 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6879 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6880 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6881 " ' prfx=^$ac_symprfx"
6883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6885 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6887 # Check to see that the pipe works correctly.
6891 cat > conftest.$ac_ext <<_LT_EOF
6896 void nm_test_func(void);
6897 void nm_test_func(void){}
6901 int main(){nm_test_var='a';nm_test_func();return(0);}
6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905 (eval $ac_compile) 2>&5
6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908 test $ac_status = 0; }; then
6909 # Now try to grab the symbols.
6911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6912 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; } && test -s "$nlist"; then
6916 # Try sorting and uniquifying the output.
6917 if sort "$nlist" | uniq > "$nlist"T; then
6918 mv -f "$nlist"T "$nlist"
6923 # Make sure that we snagged all the symbols we need.
6924 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6925 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6926 cat <<_LT_EOF > conftest.$ac_ext
6927 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6928 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6929 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6930 relocations are performed -- see ld's documentation on pseudo-relocs. */
6931 # define LT_DLSYM_CONST
6932 #elif defined(__osf__)
6933 /* This system does not cope well with relocations in const data. */
6934 # define LT_DLSYM_CONST
6936 # define LT_DLSYM_CONST const
6944 # Now generate the symbol file.
6945 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6947 cat <<_LT_EOF >> conftest.$ac_ext
6949 /* The mapping between symbol names and symbols. */
6950 LT_DLSYM_CONST struct {
6954 lt__PROGRAM__LTX_preloaded_symbols[] =
6956 { "@PROGRAM@", (void *) 0 },
6958 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6959 cat <<\_LT_EOF >> conftest.$ac_ext
6963 /* This works around a problem in FreeBSD linker */
6964 #ifdef FREEBSD_WORKAROUND
6965 static const void *lt_preloaded_setup() {
6966 return lt__PROGRAM__LTX_preloaded_symbols;
6974 # Now try linking the two files.
6975 mv conftest.$ac_objext conftstm.$ac_objext
6976 lt_globsym_save_LIBS=$LIBS
6977 lt_globsym_save_CFLAGS=$CFLAGS
6978 LIBS="conftstm.$ac_objext"
6979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6981 (eval $ac_link) 2>&5
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6987 LIBS=$lt_globsym_save_LIBS
6988 CFLAGS=$lt_globsym_save_CFLAGS
6990 echo "cannot find nm_test_func in $nlist" >&5
6993 echo "cannot find nm_test_var in $nlist" >&5
6996 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999 echo "$progname: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7002 rm -rf conftest* conftst*
7004 # Do not use the global_symbol_pipe unless it works.
7005 if test "$pipe_works" = yes; then
7008 lt_cv_sys_global_symbol_pipe=
7014 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7015 lt_cv_sys_global_symbol_to_cdecl=
7017 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7019 $as_echo "failed" >&6; }
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7022 $as_echo "ok" >&6; }
7025 # Response file support.
7026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7027 nm_file_list_spec='@'
7028 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7029 nm_file_list_spec='@'
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7059 $as_echo_n "checking for sysroot... " >&6; }
7061 # Check whether --with-sysroot was given.
7062 if test "${with_sysroot+set}" = set; then :
7063 withval=$with_sysroot;
7070 case ${with_sysroot} in #(
7072 if test "$GCC" = yes; then
7073 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7077 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7083 $as_echo "${with_sysroot}" >&6; }
7084 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7089 $as_echo "${lt_sysroot:-no}" >&6; }
7095 # Check whether --enable-libtool-lock was given.
7096 if test "${enable_libtool_lock+set}" = set; then :
7097 enableval=$enable_libtool_lock;
7100 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7102 # Some flags need to be propagated to the compiler or linker for good
7106 # Find out which ABI we are using.
7107 echo 'int i;' > conftest.$ac_ext
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7109 (eval $ac_compile) 2>&5
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; }; then
7113 case `/usr/bin/file conftest.$ac_objext` in
7125 # Find out which ABI we are using.
7126 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7128 (eval $ac_compile) 2>&5
7130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131 test $ac_status = 0; }; then
7132 if test "$lt_cv_prog_gnu_ld" = yes; then
7133 case `/usr/bin/file conftest.$ac_objext` in
7135 LD="${LD-ld} -melf32bsmip"
7138 LD="${LD-ld} -melf32bmipn32"
7141 LD="${LD-ld} -melf64bmip"
7145 case `/usr/bin/file conftest.$ac_objext` in
7161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7163 # Find out which ABI we are using.
7164 echo 'int i;' > conftest.$ac_ext
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 case `/usr/bin/file conftest.o` in
7173 x86_64-*kfreebsd*-gnu)
7174 LD="${LD-ld} -m elf_i386_fbsd"
7177 LD="${LD-ld} -m elf_i386"
7179 ppc64-*linux*|powerpc64-*linux*)
7180 LD="${LD-ld} -m elf32ppclinux"
7183 LD="${LD-ld} -m elf_s390"
7186 LD="${LD-ld} -m elf32_sparc"
7192 x86_64-*kfreebsd*-gnu)
7193 LD="${LD-ld} -m elf_x86_64_fbsd"
7196 LD="${LD-ld} -m elf_x86_64"
7198 ppc*-*linux*|powerpc*-*linux*)
7199 LD="${LD-ld} -m elf64ppc"
7201 s390*-*linux*|s390*-*tpf*)
7202 LD="${LD-ld} -m elf64_s390"
7205 LD="${LD-ld} -m elf64_sparc"
7215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7216 SAVE_CFLAGS="$CFLAGS"
7217 CFLAGS="$CFLAGS -belf"
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7219 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7220 if ${lt_cv_cc_needs_belf+:} false; then :
7221 $as_echo_n "(cached) " >&6
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7240 if ac_fn_c_try_link "$LINENO"; then :
7241 lt_cv_cc_needs_belf=yes
7243 lt_cv_cc_needs_belf=no
7245 rm -f core conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7255 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7258 CFLAGS="$SAVE_CFLAGS"
7262 # Find out which ABI we are using.
7263 echo 'int i;' > conftest.$ac_ext
7264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7265 (eval $ac_compile) 2>&5
7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7268 test $ac_status = 0; }; then
7269 case `/usr/bin/file conftest.o` in
7271 case $lt_cv_prog_gnu_ld in
7272 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7274 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7286 need_locks="$enable_libtool_lock"
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}mt; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$MANIFEST_TOOL"; then
7297 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7317 if test -n "$MANIFEST_TOOL"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7319 $as_echo "$MANIFEST_TOOL" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7327 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7328 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7329 # Extract the first word of "mt", so it can be a program name with args.
7330 set dummy mt; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 if test -n "$ac_ct_MANIFEST_TOOL"; then
7337 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7357 if test -n "$ac_ct_MANIFEST_TOOL"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7359 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7365 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7368 case $cross_compiling:$ac_tool_warned in
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7374 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7377 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7380 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7382 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7383 if ${lt_cv_path_mainfest_tool+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 lt_cv_path_mainfest_tool=no
7387 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7388 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7389 cat conftest.err >&5
7390 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7391 lt_cv_path_mainfest_tool=yes
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7396 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7397 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7407 rhapsody* | darwin*)
7408 if test -n "$ac_tool_prefix"; then
7409 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$DSYMUTIL"; then
7417 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7437 if test -n "$DSYMUTIL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7439 $as_echo "$DSYMUTIL" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7447 if test -z "$ac_cv_prog_DSYMUTIL"; then
7448 ac_ct_DSYMUTIL=$DSYMUTIL
7449 # Extract the first word of "dsymutil", so it can be a program name with args.
7450 set dummy dsymutil; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7454 $as_echo_n "(cached) " >&6
7456 if test -n "$ac_ct_DSYMUTIL"; then
7457 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7477 if test -n "$ac_ct_DSYMUTIL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7479 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7485 if test "x$ac_ct_DSYMUTIL" = x; then
7488 case $cross_compiling:$ac_tool_warned in
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7492 ac_tool_warned=yes ;;
7494 DSYMUTIL=$ac_ct_DSYMUTIL
7497 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7500 if test -n "$ac_tool_prefix"; then
7501 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7502 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_NMEDIT+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$NMEDIT"; then
7509 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 NMEDIT=$ac_cv_prog_NMEDIT
7529 if test -n "$NMEDIT"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7531 $as_echo "$NMEDIT" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7539 if test -z "$ac_cv_prog_NMEDIT"; then
7540 ac_ct_NMEDIT=$NMEDIT
7541 # Extract the first word of "nmedit", so it can be a program name with args.
7542 set dummy nmedit; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7546 $as_echo_n "(cached) " >&6
7548 if test -n "$ac_ct_NMEDIT"; then
7549 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7569 if test -n "$ac_ct_NMEDIT"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7571 $as_echo "$ac_ct_NMEDIT" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7577 if test "x$ac_ct_NMEDIT" = x; then
7580 case $cross_compiling:$ac_tool_warned in
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7586 NMEDIT=$ac_ct_NMEDIT
7589 NMEDIT="$ac_cv_prog_NMEDIT"
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_LIPO+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$LIPO"; then
7601 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 LIPO=$ac_cv_prog_LIPO
7621 if test -n "$LIPO"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7623 $as_echo "$LIPO" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_LIPO"; then
7633 # Extract the first word of "lipo", so it can be a program name with args.
7634 set dummy lipo; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$ac_ct_LIPO"; then
7641 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_ac_ct_LIPO="lipo"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7661 if test -n "$ac_ct_LIPO"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7663 $as_echo "$ac_ct_LIPO" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_LIPO" = x; then
7672 case $cross_compiling:$ac_tool_warned in
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7681 LIPO="$ac_cv_prog_LIPO"
7684 if test -n "$ac_tool_prefix"; then
7685 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7686 set dummy ${ac_tool_prefix}otool; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_OTOOL+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 if test -n "$OTOOL"; then
7693 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 OTOOL=$ac_cv_prog_OTOOL
7713 if test -n "$OTOOL"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7715 $as_echo "$OTOOL" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7723 if test -z "$ac_cv_prog_OTOOL"; then
7725 # Extract the first word of "otool", so it can be a program name with args.
7726 set dummy otool; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7730 $as_echo_n "(cached) " >&6
7732 if test -n "$ac_ct_OTOOL"; then
7733 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_ac_ct_OTOOL="otool"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7753 if test -n "$ac_ct_OTOOL"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7755 $as_echo "$ac_ct_OTOOL" >&6; }
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7761 if test "x$ac_ct_OTOOL" = x; then
7764 case $cross_compiling:$ac_tool_warned in
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7768 ac_tool_warned=yes ;;
7773 OTOOL="$ac_cv_prog_OTOOL"
7776 if test -n "$ac_tool_prefix"; then
7777 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7778 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_OTOOL64+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 if test -n "$OTOOL64"; then
7785 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 OTOOL64=$ac_cv_prog_OTOOL64
7805 if test -n "$OTOOL64"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7807 $as_echo "$OTOOL64" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7815 if test -z "$ac_cv_prog_OTOOL64"; then
7816 ac_ct_OTOOL64=$OTOOL64
7817 # Extract the first word of "otool64", so it can be a program name with args.
7818 set dummy otool64; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7822 $as_echo_n "(cached) " >&6
7824 if test -n "$ac_ct_OTOOL64"; then
7825 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_OTOOL64="otool64"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7845 if test -n "$ac_ct_OTOOL64"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7847 $as_echo "$ac_ct_OTOOL64" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7853 if test "x$ac_ct_OTOOL64" = x; then
7856 case $cross_compiling:$ac_tool_warned in
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7862 OTOOL64=$ac_ct_OTOOL64
7865 OTOOL64="$ac_cv_prog_OTOOL64"
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7895 $as_echo_n "checking for -single_module linker flag... " >&6; }
7896 if ${lt_cv_apple_cc_single_mod+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 lt_cv_apple_cc_single_mod=no
7900 if test -z "${LT_MULTI_MODULE}"; then
7901 # By default we will add the -single_module flag. You can override
7902 # by either setting the environment variable LT_MULTI_MODULE
7903 # non-empty at configure time, or by adding -multi_module to the
7905 rm -rf libconftest.dylib*
7906 echo "int foo(void){return 1;}" > conftest.c
7907 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7908 -dynamiclib -Wl,-single_module conftest.c" >&5
7909 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7912 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7913 lt_cv_apple_cc_single_mod=yes
7915 cat conftest.err >&5
7917 rm -rf libconftest.dylib*
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7922 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7924 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7925 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 lt_cv_ld_exported_symbols_list=no
7929 save_LDFLAGS=$LDFLAGS
7930 echo "_main" > conftest.sym
7931 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7943 if ac_fn_c_try_link "$LINENO"; then :
7944 lt_cv_ld_exported_symbols_list=yes
7946 lt_cv_ld_exported_symbols_list=no
7948 rm -f core conftest.err conftest.$ac_objext \
7949 conftest$ac_exeext conftest.$ac_ext
7950 LDFLAGS="$save_LDFLAGS"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7954 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7956 $as_echo_n "checking for -force_load linker flag... " >&6; }
7957 if ${lt_cv_ld_force_load+:} false; then :
7958 $as_echo_n "(cached) " >&6
7960 lt_cv_ld_force_load=no
7961 cat > conftest.c << _LT_EOF
7962 int forced_loaded() { return 2;}
7964 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7965 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7966 echo "$AR cru libconftest.a conftest.o" >&5
7967 $AR cru libconftest.a conftest.o 2>&5
7968 echo "$RANLIB libconftest.a" >&5
7969 $RANLIB libconftest.a 2>&5
7970 cat > conftest.c << _LT_EOF
7971 int main() { return 0;}
7973 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7974 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7976 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7977 lt_cv_ld_force_load=yes
7979 cat conftest.err >&5
7981 rm -f conftest.err libconftest.a conftest conftest.c
7982 rm -rf conftest.dSYM
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7986 $as_echo "$lt_cv_ld_force_load" >&6; }
7988 rhapsody* | darwin1.[012])
7989 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7991 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7992 darwin*) # darwin 5.x on
7993 # if running on 10.5 or later, the deployment target defaults
7994 # to the OS version, if on x86, and 10.4, the deployment
7995 # target defaults to 10.4. Don't you love it?
7996 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7997 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8006 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8007 _lt_dar_single_mod='$single_module'
8009 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8010 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8012 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8014 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8015 _lt_dsymutil='~$DSYMUTIL $lib || :'
8022 for ac_header in dlfcn.h
8024 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8026 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8027 cat >>confdefs.h <<_ACEOF
8028 #define HAVE_DLFCN_H 1
8038 func_stripname_cnf ()
8041 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8042 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8044 } # func_stripname_cnf
8046 if test "x$with_system_libtool" = "xyes" ; then :
8047 # Extract the first word of "libtool", so it can be a program name with args.
8048 set dummy libtool; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_path_LIBTOOL+:} false; then :
8052 $as_echo_n "(cached) " >&6
8056 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 as_dummy="$PATH:/usr/local/bin"
8061 for as_dir in $as_dummy
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 LIBTOOL=$ac_cv_path_LIBTOOL
8079 if test -n "$LIBTOOL"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8081 $as_echo "$LIBTOOL" >&6; }
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8103 # Check whether --enable-shared was given.
8104 if test "${enable_shared+set}" = set; then :
8105 enableval=$enable_shared; p=${PACKAGE-default}
8107 yes) enable_shared=yes ;;
8108 no) enable_shared=no ;;
8111 # Look at the argument we got. We use all the common list separators.
8112 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113 for pkg in $enableval; do
8115 if test "X$pkg" = "X$p"; then
8134 # Check whether --enable-static was given.
8135 if test "${enable_static+set}" = set; then :
8136 enableval=$enable_static; p=${PACKAGE-default}
8138 yes) enable_static=yes ;;
8139 no) enable_static=no ;;
8142 # Look at the argument we got. We use all the common list separators.
8143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144 for pkg in $enableval; do
8146 if test "X$pkg" = "X$p"; then
8166 # Check whether --with-pic was given.
8167 if test "${with_pic+set}" = set; then :
8168 withval=$with_pic; pic_mode="$withval"
8174 test -z "$pic_mode" && pic_mode=default
8182 # Check whether --enable-fast-install was given.
8183 if test "${enable_fast_install+set}" = set; then :
8184 enableval=$enable_fast_install; p=${PACKAGE-default}
8186 yes) enable_fast_install=yes ;;
8187 no) enable_fast_install=no ;;
8189 enable_fast_install=no
8190 # Look at the argument we got. We use all the common list separators.
8191 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8192 for pkg in $enableval; do
8194 if test "X$pkg" = "X$p"; then
8195 enable_fast_install=yes
8202 enable_fast_install=yes
8240 test -z "$LN_S" && LN_S="ln -s"
8255 if test -n "${ZSH_VERSION+set}" ; then
8256 setopt NO_GLOB_SUBST
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 rm -f .libs 2>/dev/null
8265 mkdir .libs 2>/dev/null
8266 if test -d .libs; then
8269 # MS-DOS does not allow filenames that begin with a dot.
8272 rmdir .libs 2>/dev/null
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir=$lt_cv_objdir
8282 cat >>confdefs.h <<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8291 # AIX sometimes has problems with the GCC collect2 program. For some
8292 # reason, if we set the COLLECT_NAMES environment variable, the problems
8293 # vanish in a puff of smoke.
8294 if test "X${COLLECT_NAMES+set}" != Xset; then
8296 export COLLECT_NAMES
8303 can_build_shared=yes
8305 # All known linkers require a `.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8309 with_gnu_ld="$lt_cv_prog_gnu_ld"
8312 old_CFLAGS="$CFLAGS"
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC=cc
8316 test -z "$LTCC" && LTCC=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8318 test -z "$LD" && LD=ld
8319 test -z "$ac_objext" && ac_objext=o
8321 for cc_temp in $compiler""; do
8323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8329 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332 # Only perform the check for file, if the check method requires it
8333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8334 case $deplibs_check_method in
8336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/${ac_tool_prefix}file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8401 if test -z "$lt_cv_path_MAGIC_CMD"; then
8402 if test -n "$ac_tool_prefix"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8404 $as_echo_n "checking for file... " >&6; }
8405 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8406 $as_echo_n "(cached) " >&6
8410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413 lt_save_MAGIC_CMD="$MAGIC_CMD"
8414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8416 for ac_dir in $ac_dummy; do
8418 test -z "$ac_dir" && ac_dir=.
8419 if test -f $ac_dir/file; then
8420 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8421 if test -n "$file_magic_test_file"; then
8422 case $deplibs_check_method in
8424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8427 $EGREP "$file_magic_regex" > /dev/null; then
8432 *** Warning: the command libtool uses to detect shared libraries,
8433 *** $file_magic_cmd, produces output that libtool cannot recognize.
8434 *** The result is that libtool may fail to recognize shared libraries
8435 *** as such. This will affect the creation of libtool libraries that
8436 *** depend on shared libraries, but programs linked with such libtool
8437 *** libraries will work regardless of this problem. Nevertheless, you
8438 *** may want to report the problem to your system manager and/or to
8439 *** bug-libtool@gnu.org
8449 MAGIC_CMD="$lt_save_MAGIC_CMD"
8454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8455 if test -n "$MAGIC_CMD"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8457 $as_echo "$MAGIC_CMD" >&6; }
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8473 # Use C for the default configuration in the libtool script
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 # Source file extension for C test sources.
8486 # Object file extension for compiled C test sources.
8490 # Code to be used in simple compile tests
8491 lt_simple_compile_test_code="int some_variable = 0;"
8493 # Code to be used in simple link tests
8494 lt_simple_link_test_code='int main(){return(0);}'
8502 # If no C compiler was specified, use CC.
8505 # If no C compiler flags were specified, use CFLAGS.
8506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508 # Allow CC to be a program name with arguments.
8511 # Save the default compiler, since it gets overwritten when the other
8512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8513 compiler_DEFAULT=$CC
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8529 if test -n "$compiler"; then
8531 lt_prog_compiler_no_builtin_flag=
8533 if test "$GCC" = yes; then
8534 case $cc_basename in
8536 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8538 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544 $as_echo_n "(cached) " >&6
8546 lt_cv_prog_compiler_rtti_exceptions=no
8547 ac_outfile=conftest.$ac_objext
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549 lt_compiler_flag="-fno-rtti -fno-exceptions"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 # The option is referenced via a variable to avoid confusing sed.
8555 lt_compile=`echo "$ac_compile" | $SED \
8556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558 -e 's:$: $lt_compiler_flag:'`
8559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval "$lt_compile" 2>conftest.err)
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 if (exit $ac_status) && test -s "$ac_outfile"; then
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings other than the usual output.
8567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_rtti_exceptions=yes
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8592 lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8597 if test "$GCC" = yes; then
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_static='-static'
8603 # All AIX code is PIC.
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8613 # see comment about AmigaOS4 .so support
8614 lt_prog_compiler_pic='-fPIC'
8617 # FIXME: we need at least 68020 code to build shared libraries, but
8618 # adding the `-m68020' flag to GCC prevents building anything better,
8620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8626 # PIC is the default for these OSes.
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8633 # (--disable-auto-import) libraries
8634 lt_prog_compiler_pic='-DDLL_EXPORT'
8637 darwin* | rhapsody*)
8638 # PIC is the default on this platform
8639 # Common symbols not allowed in MH_DYLIB files
8640 lt_prog_compiler_pic='-fno-common'
8644 # PIC is the default for Haiku.
8645 # The "-static" flag exists, but is broken.
8646 lt_prog_compiler_static=
8650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8652 # sets the default TLS model and affects inlining.
8658 lt_prog_compiler_pic='-fPIC'
8664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8665 # Instead, we relocate shared libraries at runtime.
8669 # Just because we use GCC doesn't mean we suddenly get shared libraries
8670 # on systems that don't support them.
8671 lt_prog_compiler_can_build_shared=no
8676 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 lt_prog_compiler_pic='-fPIC -shared'
8682 if test -d /usr/nec; then
8683 lt_prog_compiler_pic=-Kconform_pic
8688 lt_prog_compiler_pic='-fPIC'
8692 case $cc_basename in
8693 nvcc*) # Cuda Compiler Driver 2.2
8694 lt_prog_compiler_wl='-Xlinker '
8695 lt_prog_compiler_pic='-Xcompiler -fPIC'
8699 # PORTME Check for flag to pass linker flags through the system compiler.
8702 lt_prog_compiler_wl='-Wl,'
8703 if test "$host_cpu" = ia64; then
8704 # AIX 5 now supports IA64 processor
8705 lt_prog_compiler_static='-Bstatic'
8707 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8711 mingw* | cygwin* | pw32* | os2* | cegcc*)
8712 # This hack is so that the source file can tell whether it is being
8713 # built for inclusion in a dll (and should export symbols for example).
8714 lt_prog_compiler_pic='-DDLL_EXPORT'
8717 hpux9* | hpux10* | hpux11*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8726 lt_prog_compiler_pic='+Z'
8729 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8730 lt_prog_compiler_static='${wl}-a ${wl}archive'
8733 irix5* | irix6* | nonstopux*)
8734 lt_prog_compiler_wl='-Wl,'
8735 # PIC (with -KPIC) is the default.
8736 lt_prog_compiler_static='-non_shared'
8739 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8740 case $cc_basename in
8741 # old Intel for x86_64 which still supported -KPIC.
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-static'
8747 # icc used to be incompatible with GCC.
8748 # ICC 10 doesn't accept -KPIC any more.
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fPIC'
8752 lt_prog_compiler_static='-static'
8754 # Lahey Fortran 8.1.
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='--shared'
8758 lt_prog_compiler_static='--static'
8761 # NAG Fortran compiler
8762 lt_prog_compiler_wl='-Wl,-Wl,,'
8763 lt_prog_compiler_pic='-PIC'
8764 lt_prog_compiler_static='-Bstatic'
8766 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767 # Portland Group compilers (*not* the Pentium gcc compiler,
8768 # which looks to be a dead project)
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-fpic'
8771 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Wl,'
8775 # All Alpha code is PIC.
8776 lt_prog_compiler_static='-non_shared'
8778 xl* | bgxl* | bgf* | mpixl*)
8779 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-qpic'
8782 lt_prog_compiler_static='-qstaticlink'
8785 case `$CC -V 2>&1 | sed 5q` in
8786 *Sun\ F* | *Sun*Fortran*)
8787 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_wl=''
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 lt_prog_compiler_wl='-Wl,'
8804 lt_prog_compiler_pic='-KPIC'
8805 lt_prog_compiler_static='-Bstatic'
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
8811 lt_prog_compiler_pic='-fPIC -shared'
8814 osf3* | osf4* | osf5*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # All OSF/1 code is PIC.
8817 lt_prog_compiler_static='-non_shared'
8821 lt_prog_compiler_static='-non_shared'
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-Bstatic'
8827 case $cc_basename in
8828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8829 lt_prog_compiler_wl='-Qoption ld ';;
8831 lt_prog_compiler_wl='-Wl,';;
8836 lt_prog_compiler_wl='-Qoption ld '
8837 lt_prog_compiler_pic='-PIC'
8838 lt_prog_compiler_static='-Bstatic'
8841 sysv4 | sysv4.2uw2* | sysv4.3*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8848 if test -d /usr/nec ;then
8849 lt_prog_compiler_pic='-Kconform_pic'
8850 lt_prog_compiler_static='-Bstatic'
8854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8855 lt_prog_compiler_wl='-Wl,'
8856 lt_prog_compiler_pic='-KPIC'
8857 lt_prog_compiler_static='-Bstatic'
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_can_build_shared=no
8866 lt_prog_compiler_pic='-pic'
8867 lt_prog_compiler_static='-Bstatic'
8871 lt_prog_compiler_can_build_shared=no
8877 # For platforms which do not support PIC, -DPIC is meaningless:
8879 lt_prog_compiler_pic=
8882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8888 if ${lt_cv_prog_compiler_pic+:} false; then :
8889 $as_echo_n "(cached) " >&6
8891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8894 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8898 # Check to make sure the PIC flag actually works.
8900 if test -n "$lt_prog_compiler_pic"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8903 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8904 $as_echo_n "(cached) " >&6
8906 lt_cv_prog_compiler_pic_works=no
8907 ac_outfile=conftest.$ac_objext
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 # The option is referenced via a variable to avoid confusing sed.
8915 lt_compile=`echo "$ac_compile" | $SED \
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918 -e 's:$: $lt_compiler_flag:'`
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920 (eval "$lt_compile" 2>conftest.err)
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 if (exit $ac_status) && test -s "$ac_outfile"; then
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings other than the usual output.
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_pic_works=yes
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8939 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8940 case $lt_prog_compiler_pic in
8942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8945 lt_prog_compiler_pic=
8946 lt_prog_compiler_can_build_shared=no
8962 # Check to make sure the static flag actually works.
8964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8967 if ${lt_cv_prog_compiler_static_works+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 lt_cv_prog_compiler_static_works=no
8971 save_LDFLAGS="$LDFLAGS"
8972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8975 # The linker can only warn and ignore the option if not recognized
8976 # So say no if there are warnings
8977 if test -s conftest.err; then
8978 # Append any errors to the config.log.
8979 cat conftest.err 1>&5
8980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_static_works=yes
8986 lt_cv_prog_compiler_static_works=yes
8990 LDFLAGS="$save_LDFLAGS"
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8996 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8999 lt_prog_compiler_static=
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
9011 $as_echo_n "(cached) " >&6
9013 lt_cv_prog_compiler_c_o=no
9014 $RM -r conftest 2>/dev/null
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
9021 # Insert the option either (1) after the last *FLAGS variable, or
9022 # (2) before a word containing "conftest.", or (3) at the end.
9023 # Note that $ac_compile itself does not contain backslashes and begins
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
9025 lt_compile=`echo "$ac_compile" | $SED \
9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028 -e 's:$: $lt_compiler_flag:'`
9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9030 (eval "$lt_compile" 2>out/conftest.err)
9032 cat out/conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9036 # The compiler can only warn and ignore the option if not recognized
9037 # So say no if there are warnings
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9041 lt_cv_prog_compiler_c_o=yes
9046 # SGI C++ compiler will create directory out/ii_files/ for
9047 # template instantiation
9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9049 $RM out/* && rmdir out
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
9066 $as_echo_n "(cached) " >&6
9068 lt_cv_prog_compiler_c_o=no
9069 $RM -r conftest 2>/dev/null
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
9076 # Insert the option either (1) after the last *FLAGS variable, or
9077 # (2) before a word containing "conftest.", or (3) at the end.
9078 # Note that $ac_compile itself does not contain backslashes and begins
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
9080 lt_compile=`echo "$ac_compile" | $SED \
9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083 -e 's:$: $lt_compiler_flag:'`
9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9085 (eval "$lt_compile" 2>out/conftest.err)
9087 cat out/conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9091 # The compiler can only warn and ignore the option if not recognized
9092 # So say no if there are warnings
9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096 lt_cv_prog_compiler_c_o=yes
9101 # SGI C++ compiler will create directory out/ii_files/ for
9102 # template instantiation
9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104 $RM out/* && rmdir out
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9116 hard_links="nottested"
9117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9118 # do not overwrite the value of need_locks provided by the user
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9120 $as_echo_n "checking if we can lock with hard links... " >&6; }
9123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9125 ln conftest.a conftest.b 2>&5 || hard_links=no
9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9128 $as_echo "$hard_links" >&6; }
9129 if test "$hard_links" = no; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9131 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9147 allow_undefined_flag=
9148 always_export_symbols=no
9150 archive_expsym_cmds=
9151 compiler_needs_object=no
9152 enable_shared_with_static_runtimes=no
9153 export_dynamic_flag_spec=
9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9155 hardcode_automatic=no
9157 hardcode_direct_absolute=no
9158 hardcode_libdir_flag_spec=
9159 hardcode_libdir_flag_spec_ld=
9160 hardcode_libdir_separator=
9162 hardcode_shlibpath_var=unsupported
9164 link_all_deplibs=unknown
9167 old_archive_from_new_cmds=
9168 old_archive_from_expsyms_cmds=
9169 thread_safe_flag_spec=
9170 whole_archive_flag_spec=
9171 # include_expsyms should be a list of space-separated symbols to be *always*
9172 # included in the symbol list
9174 # exclude_expsyms can be an extended regexp of symbols to exclude
9175 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9176 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9177 # as well as any symbol that contains `d'.
9178 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9179 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9180 # platforms (ab)use it in PIC code, but their linkers get confused if
9181 # the symbol is explicitly referenced. Since portable code cannot
9182 # rely on this symbol name, it's probably fine to never include it in
9183 # preloaded symbol tables.
9184 # Exclude shared library initialization/finalization symbols.
9185 extract_expsyms_cmds=
9188 cygwin* | mingw* | pw32* | cegcc*)
9189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9190 # When not using gcc, we currently assume that we are using
9191 # Microsoft Visual C++.
9192 if test "$GCC" != yes; then
9197 # we just hope/assume this is gcc and not c89 (= MSVC++)
9207 # On some targets, GNU ld is compatible enough with the native linker
9208 # that we're better off using the native interface for both.
9209 lt_use_gnu_ld_interface=no
9210 if test "$with_gnu_ld" = yes; then
9213 # The AIX port of GNU ld has always aspired to compatibility
9214 # with the native linker. However, as the warning in the GNU ld
9215 # block says, versions before 2.19.5* couldn't really create working
9216 # shared libraries, regardless of the interface used.
9217 case `$LD -v 2>&1` in
9218 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9219 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9220 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9222 lt_use_gnu_ld_interface=yes
9227 lt_use_gnu_ld_interface=yes
9232 if test "$lt_use_gnu_ld_interface" = yes; then
9233 # If archive_cmds runs LD, not CC, wlarc should be empty
9236 # Set some defaults for GNU ld with shared library support. These
9237 # are reset later if shared libraries are not supported. Putting them
9238 # here allows them to be overridden if necessary.
9239 runpath_var=LD_RUN_PATH
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 export_dynamic_flag_spec='${wl}--export-dynamic'
9242 # ancient GNU ld didn't support --whole-archive et. al.
9243 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9244 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9246 whole_archive_flag_spec=
9248 supports_anon_versioning=no
9249 case `$LD -v 2>&1` in
9250 *GNU\ gold*) supports_anon_versioning=yes ;;
9251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9254 *\ 2.11.*) ;; # other 2.11 versions
9255 *) supports_anon_versioning=yes ;;
9258 # See if GNU ld supports shared libraries.
9261 # On AIX/PPC, the GNU linker is very broken
9262 if test "$host_cpu" != ia64; then
9266 *** Warning: the GNU linker, at least up to release 2.19, is reported
9267 *** to be unable to reliably create shared libraries on AIX.
9268 *** Therefore, libtool is disabling shared libraries support. If you
9269 *** really care for shared libraries, you may want to install binutils
9270 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9271 *** You will then need to restart the configuration process.
9280 # see comment about AmigaOS4 .so support
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds=''
9285 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)'
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_minus_L=yes
9293 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9294 allow_undefined_flag=unsupported
9295 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9296 # support --undefined. This deserves some investigation. FIXME
9297 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303 cygwin* | mingw* | pw32* | cegcc*)
9304 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9305 # as there is no search path for DLLs.
9306 hardcode_libdir_flag_spec='-L$libdir'
9307 export_dynamic_flag_spec='${wl}--export-all-symbols'
9308 allow_undefined_flag=unsupported
9309 always_export_symbols=no
9310 enable_shared_with_static_runtimes=yes
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9312 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9314 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9315 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316 # If the export-symbols file already is a .def file (1st line
9317 # is EXPORTS), use it as is; otherwise, prepend...
9318 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9319 cp $export_symbols $output_objdir/$soname.def;
9321 echo EXPORTS > $output_objdir/$soname.def;
9322 cat $export_symbols >> $output_objdir/$soname.def;
9324 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 link_all_deplibs=yes
9337 hardcode_shlibpath_var=no
9338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9339 export_dynamic_flag_spec='${wl}-E'
9340 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9341 # Instead, shared libraries are loaded at an image base (0x10000000 by
9342 # default) and relocated if they conflict, which is a slow very memory
9343 # consuming and fragmenting process. To avoid this, we pick a random,
9344 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9345 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9346 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9347 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'
9350 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9352 if test "$host_os" = linux-dietlibc; then
9353 case $cc_basename in
9354 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9357 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9358 && test "$tmp_diet" = no
9360 tmp_addflag=' $pic_flag'
9361 tmp_sharedflag='-shared'
9362 case $cc_basename,$host_cpu in
9363 pgcc*) # Portland Group C compiler
9364 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9365 tmp_addflag=' $pic_flag'
9367 pgf77* | pgf90* | pgf95* | pgfortran*)
9368 # Portland Group f77 and f90 compilers
9369 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9370 tmp_addflag=' $pic_flag -Mnomain' ;;
9371 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9372 tmp_addflag=' -i_dynamic' ;;
9373 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9374 tmp_addflag=' -i_dynamic -nofor_main' ;;
9375 ifc* | ifort*) # Intel Fortran compiler
9376 tmp_addflag=' -nofor_main' ;;
9377 lf95*) # Lahey Fortran 8.1
9378 whole_archive_flag_spec=
9379 tmp_sharedflag='--shared' ;;
9380 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9381 tmp_sharedflag='-qmkshrobj'
9383 nvcc*) # Cuda Compiler Driver 2.2
9384 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9385 compiler_needs_object=yes
9388 case `$CC -V 2>&1 | sed 5q` in
9389 *Sun\ C*) # Sun C 5.9
9390 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9391 compiler_needs_object=yes
9392 tmp_sharedflag='-G' ;;
9393 *Sun\ F*) # Sun Fortran 8.3
9394 tmp_sharedflag='-G' ;;
9396 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 if test "x$supports_anon_versioning" = xyes; then
9399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9401 echo "local: *; };" >> $output_objdir/$libname.ver~
9402 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405 case $cc_basename in
9406 xlf* | bgf* | bgxlf* | mpixlf*)
9407 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9408 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9409 hardcode_libdir_flag_spec=
9410 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9411 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9412 if test "x$supports_anon_versioning" = xyes; then
9413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415 echo "local: *; };" >> $output_objdir/$libname.ver~
9416 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441 *** create shared libraries on Solaris systems. Therefore, libtool
9442 *** is disabling shared libraries support. We urge you to upgrade GNU
9443 *** binutils to release 2.9.1 or newer. Another option is to modify
9444 *** your PATH or compiler configuration so that the native linker is
9445 *** used, and then restart.
9448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457 case `$LD -v 2>&1` in
9458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9463 *** reliably create shared libraries on SCO systems. Therefore, libtool
9464 *** is disabling shared libraries support. We urge you to upgrade GNU
9465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9466 *** your PATH or compiler configuration so that the native linker is
9467 *** used, and then restart.
9472 # For security reasons, it is highly recommended that you always
9473 # use absolute paths for naming shared libraries, and exclude the
9474 # DT_RUNPATH tag from executables and libraries. But doing so
9475 # requires that you compile everything twice, which is a pain.
9476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491 hardcode_shlibpath_var=no
9495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 if test "$ld_shlibs" = no; then
9506 hardcode_libdir_flag_spec=
9507 export_dynamic_flag_spec=
9508 whole_archive_flag_spec=
9511 # PORTME fill in a description of your system's linker (not GNU ld)
9514 allow_undefined_flag=unsupported
9515 always_export_symbols=yes
9516 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'
9517 # Note: this linker hardcodes the directories in LIBPATH if there
9518 # are no directories specified by -L.
9519 hardcode_minus_L=yes
9520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9521 # Neither direct hardcoding nor static linking is supported with a
9523 hardcode_direct=unsupported
9528 if test "$host_cpu" = ia64; then
9529 # On IA64, the linker does run time linking by default, so we don't
9530 # have to do anything special.
9531 aix_use_runtimelinking=no
9532 exp_sym_flag='-Bexport'
9535 # If we're using GNU nm, then we don't want the "-C" option.
9536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9537 # Also, AIX nm treats weak defined symbols like other global
9538 # defined symbols, whereas GNU nm marks them as "W".
9539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9540 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9542 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'
9544 aix_use_runtimelinking=no
9546 # Test if we are trying to use run time linking or normal
9547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9548 # need to do runtime linking.
9549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9550 for ld_flag in $LDFLAGS; do
9551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9552 aix_use_runtimelinking=yes
9559 exp_sym_flag='-bexport'
9560 no_entry_flag='-bnoentry'
9563 # When large executables or shared objects are built, AIX ld can
9564 # have problems creating the table of contents. If linking a library
9565 # or program results in "error TOC overflow" add -mminimal-toc to
9566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9571 hardcode_direct_absolute=yes
9572 hardcode_libdir_separator=':'
9573 link_all_deplibs=yes
9574 file_list_spec='${wl}-f,'
9576 if test "$GCC" = yes; then
9577 case $host_os in aix4.[012]|aix4.[012].*)
9578 # We only want to do this on AIX 4.2 and lower, the check
9579 # below for broken collect2 doesn't work under 4.3+
9580 collect2name=`${CC} -print-prog-name=collect2`
9581 if test -f "$collect2name" &&
9582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9584 # We have reworked collect2
9587 # We have old collect2
9588 hardcode_direct=unsupported
9589 # It fails to find uninstalled libraries when the uninstalled
9590 # path is not listed in the libpath. Setting hardcode_minus_L
9591 # to unsupported forces relinking
9592 hardcode_minus_L=yes
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_libdir_separator=
9598 shared_flag='-shared'
9599 if test "$aix_use_runtimelinking" = yes; then
9600 shared_flag="$shared_flag "'${wl}-G'
9604 if test "$host_cpu" = ia64; then
9605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9606 # chokes on -Wl,-G. The following line is correct:
9609 if test "$aix_use_runtimelinking" = yes; then
9610 shared_flag='${wl}-G'
9612 shared_flag='${wl}-bM:SRE'
9617 export_dynamic_flag_spec='${wl}-bexpall'
9618 # It seems that -bexpall does not export symbols beginning with
9619 # underscore (_), so it is better to generate a list of symbols to export.
9620 always_export_symbols=yes
9621 if test "$aix_use_runtimelinking" = yes; then
9622 # Warning - without using the other runtime loading flags (-brtl),
9623 # -berok will link without error, but may produce a broken library.
9624 allow_undefined_flag='-berok'
9625 # Determine the default libpath from the value encoded in an
9627 if test "${lt_cv_aix_libpath+set}" = set; then
9628 aix_libpath=$lt_cv_aix_libpath
9630 if ${lt_cv_aix_libpath_+:} false; then :
9631 $as_echo_n "(cached) " >&6
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9644 if ac_fn_c_try_link "$LINENO"; then :
9646 lt_aix_libpath_sed='
9647 /Import File Strings/,/^$/ {
9649 s/^0 *\([^ ]*\) *$/\1/
9653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654 # Check for a 64-bit object if we didn't find anything.
9655 if test -z "$lt_cv_aix_libpath_"; then
9656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test -z "$lt_cv_aix_libpath_"; then
9662 lt_cv_aix_libpath_="/usr/lib:/lib"
9667 aix_libpath=$lt_cv_aix_libpath_
9670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9673 if test "$host_cpu" = ia64; then
9674 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9675 allow_undefined_flag="-z nodefs"
9676 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"
9678 # Determine the default libpath from the value encoded in an
9680 if test "${lt_cv_aix_libpath+set}" = set; then
9681 aix_libpath=$lt_cv_aix_libpath
9683 if ${lt_cv_aix_libpath_+:} false; then :
9684 $as_echo_n "(cached) " >&6
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9697 if ac_fn_c_try_link "$LINENO"; then :
9699 lt_aix_libpath_sed='
9700 /Import File Strings/,/^$/ {
9702 s/^0 *\([^ ]*\) *$/\1/
9706 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707 # Check for a 64-bit object if we didn't find anything.
9708 if test -z "$lt_cv_aix_libpath_"; then
9709 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 if test -z "$lt_cv_aix_libpath_"; then
9715 lt_cv_aix_libpath_="/usr/lib:/lib"
9720 aix_libpath=$lt_cv_aix_libpath_
9723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9724 # Warning - without using the other run time loading flags,
9725 # -berok will link without error, but may produce a broken library.
9726 no_undefined_flag=' ${wl}-bernotok'
9727 allow_undefined_flag=' ${wl}-berok'
9728 if test "$with_gnu_ld" = yes; then
9729 # We only use this code for GNU lds that support --whole-archive.
9730 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9732 # Exported symbols can be pulled into shared objects from archives
9733 whole_archive_flag_spec='$convenience'
9735 archive_cmds_need_lc=yes
9736 # This is similar to how AIX traditionally builds its shared libraries.
9737 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'
9745 # see comment about AmigaOS4 .so support
9746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747 archive_expsym_cmds=''
9750 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)'
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_minus_L=yes
9758 export_dynamic_flag_spec=-rdynamic
9761 cygwin* | mingw* | pw32* | cegcc*)
9762 # When not using gcc, we currently assume that we are using
9763 # Microsoft Visual C++.
9764 # hardcode_libdir_flag_spec is actually meaningless, as there is
9765 # no search path for DLLs.
9766 case $cc_basename in
9769 hardcode_libdir_flag_spec=' '
9770 allow_undefined_flag=unsupported
9771 always_export_symbols=yes
9773 # Tell ltmain to make .lib files, not .a files.
9775 # Tell ltmain to make .dll files, not .so files.
9777 # FIXME: Setting linknames here is a bad hack.
9778 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9782 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9784 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9786 # The linker will not automatically build a static lib if we build a DLL.
9787 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9788 enable_shared_with_static_runtimes=yes
9789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9791 old_postinstall_cmds='chmod 644 $oldlib'
9792 postlink_cmds='lt_outputfile="@OUTPUT@"~
9793 lt_tool_outputfile="@TOOL_OUTPUT@"~
9794 case $lt_outputfile in
9797 lt_outputfile="$lt_outputfile.exe"
9798 lt_tool_outputfile="$lt_tool_outputfile.exe"
9801 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9802 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9803 $RM "$lt_outputfile.manifest";
9807 # Assume MSVC wrapper
9808 hardcode_libdir_flag_spec=' '
9809 allow_undefined_flag=unsupported
9810 # Tell ltmain to make .lib files, not .a files.
9812 # Tell ltmain to make .dll files, not .so files.
9814 # FIXME: Setting linknames here is a bad hack.
9815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9816 # The linker will automatically build a .lib file if we build a DLL.
9817 old_archive_from_new_cmds='true'
9818 # FIXME: Should let the user specify the lib program.
9819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9820 enable_shared_with_static_runtimes=yes
9825 darwin* | rhapsody*)
9828 archive_cmds_need_lc=no
9830 hardcode_automatic=yes
9831 hardcode_shlibpath_var=unsupported
9832 if test "$lt_cv_ld_force_load" = "yes"; then
9833 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9835 whole_archive_flag_spec=''
9837 link_all_deplibs=yes
9838 allow_undefined_flag="$_lt_dar_allow_undefined"
9839 case $cc_basename in
9840 ifort*) _lt_dar_can_shared=yes ;;
9841 *) _lt_dar_can_shared=$GCC ;;
9843 if test "$_lt_dar_can_shared" = "yes"; then
9844 output_verbose_link_cmd=func_echo_all
9845 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9846 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9847 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9848 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_shlibpath_var=no
9866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867 # support. Future versions do this automatically, but an explicit c++rt0.o
9868 # does not break anything, and helps significantly (at the cost of a little
9871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872 hardcode_libdir_flag_spec='-R$libdir'
9874 hardcode_shlibpath_var=no
9877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_minus_L=yes
9882 hardcode_shlibpath_var=no
9885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886 freebsd* | dragonfly*)
9887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9888 hardcode_libdir_flag_spec='-R$libdir'
9890 hardcode_shlibpath_var=no
9894 if test "$GCC" = yes; then
9895 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9897 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'
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_separator=:
9903 # hardcode_minus_L: Not really in the search PATH,
9904 # but as the default location of the library.
9905 hardcode_minus_L=yes
9906 export_dynamic_flag_spec='${wl}-E'
9910 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9915 if test "$with_gnu_ld" = no; then
9916 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_flag_spec_ld='+b $libdir'
9918 hardcode_libdir_separator=:
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9922 # hardcode_minus_L: Not really in the search PATH,
9923 # but as the default location of the library.
9924 hardcode_minus_L=yes
9929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951 # Older versions of the 11.00 compiler do not understand -b yet
9952 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954 $as_echo_n "checking if $CC understands -b... " >&6; }
9955 if ${lt_cv_prog_compiler__b+:} false; then :
9956 $as_echo_n "(cached) " >&6
9958 lt_cv_prog_compiler__b=no
9959 save_LDFLAGS="$LDFLAGS"
9960 LDFLAGS="$LDFLAGS -b"
9961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963 # The linker can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 if test -s conftest.err; then
9966 # Append any errors to the config.log.
9967 cat conftest.err 1>&5
9968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970 if diff conftest.exp conftest.er2 >/dev/null; then
9971 lt_cv_prog_compiler__b=yes
9974 lt_cv_prog_compiler__b=yes
9978 LDFLAGS="$save_LDFLAGS"
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9984 if test x"$lt_cv_prog_compiler__b" = xyes; then
9985 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9993 if test "$with_gnu_ld" = no; then
9994 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995 hardcode_libdir_separator=:
10000 hardcode_shlibpath_var=no
10003 hardcode_direct=yes
10004 hardcode_direct_absolute=yes
10005 export_dynamic_flag_spec='${wl}-E'
10007 # hardcode_minus_L: Not really in the search PATH,
10008 # but as the default location of the library.
10009 hardcode_minus_L=yes
10015 irix5* | irix6* | nonstopux*)
10016 if test "$GCC" = yes; then
10017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10018 # Try to use the -exported_symbol ld option, if it does not
10019 # work, assume that -exports_file does not work either and
10020 # implicitly export all symbols.
10021 # This should be the same for all languages, so no per-tag cache variable.
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10023 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10024 if ${lt_cv_irix_exported_symbol+:} false; then :
10025 $as_echo_n "(cached) " >&6
10027 save_LDFLAGS="$LDFLAGS"
10028 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10031 int foo (void) { return 0; }
10033 if ac_fn_c_try_link "$LINENO"; then :
10034 lt_cv_irix_exported_symbol=yes
10036 lt_cv_irix_exported_symbol=no
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10040 LDFLAGS="$save_LDFLAGS"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10043 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10044 if test "$lt_cv_irix_exported_symbol" = yes; then
10045 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10051 archive_cmds_need_lc='no'
10052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10053 hardcode_libdir_separator=:
10055 link_all_deplibs=yes
10059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10062 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_direct=yes
10072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10073 hardcode_libdir_separator=:
10074 hardcode_shlibpath_var=no
10081 if test -f /usr/libexec/ld.so; then
10082 hardcode_direct=yes
10083 hardcode_shlibpath_var=no
10084 hardcode_direct_absolute=yes
10085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10089 export_dynamic_flag_spec='${wl}-E'
10092 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10094 hardcode_libdir_flag_spec='-R$libdir'
10097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10098 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 hardcode_minus_L=yes
10110 allow_undefined_flag=unsupported
10111 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'
10112 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10116 if test "$GCC" = yes; then
10117 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10120 allow_undefined_flag=' -expect_unresolved \*'
10121 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10123 archive_cmds_need_lc='no'
10124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10125 hardcode_libdir_separator=:
10128 osf4* | osf5*) # as osf3* with the addition of -msym flag
10129 if test "$GCC" = yes; then
10130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10131 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134 allow_undefined_flag=' -expect_unresolved \*'
10135 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10136 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10137 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10139 # Both c and cxx compiler support -rpath directly
10140 hardcode_libdir_flag_spec='-rpath $libdir'
10142 archive_cmds_need_lc='no'
10143 hardcode_libdir_separator=:
10147 no_undefined_flag=' -z defs'
10148 if test "$GCC" = yes; then
10150 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10154 case `$CC -V 2>&1` in
10157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10159 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10163 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10169 hardcode_libdir_flag_spec='-R$libdir'
10170 hardcode_shlibpath_var=no
10172 solaris2.[0-5] | solaris2.[0-5].*) ;;
10174 # The compiler driver will combine and reorder linker options,
10175 # but understands `-z linker_flag'. GCC discards it without `$wl',
10176 # but is careful enough not to reorder.
10177 # Supported since Solaris 2.6 (maybe 2.5.1?)
10178 if test "$GCC" = yes; then
10179 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10181 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10185 link_all_deplibs=yes
10189 if test "x$host_vendor" = xsequent; then
10190 # Use $CC to link under sequent, because it throws in some extra .o
10191 # files that make .init and .fini sections work.
10192 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 hardcode_direct=yes
10198 hardcode_minus_L=yes
10199 hardcode_shlibpath_var=no
10203 case $host_vendor in
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=yes # is this really true???
10209 ## LD is ld it makes a PLAMLIB
10210 ## CC just makes a GrossModule.
10211 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10212 reload_cmds='$CC -r -o $output$reload_objs'
10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10220 runpath_var='LD_RUN_PATH'
10221 hardcode_shlibpath_var=no
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_shlibpath_var=no
10227 export_dynamic_flag_spec='-Bexport'
10231 if test -d /usr/nec; then
10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_shlibpath_var=no
10234 runpath_var=LD_RUN_PATH
10235 hardcode_runpath_var=yes
10240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10241 no_undefined_flag='${wl}-z,text'
10242 archive_cmds_need_lc=no
10243 hardcode_shlibpath_var=no
10244 runpath_var='LD_RUN_PATH'
10246 if test "$GCC" = yes; then
10247 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 sysv5* | sco3.2v5* | sco5v6*)
10256 # Note: We can NOT use -z defs as we might desire, because we do not
10257 # link with -lc, and that would cause any symbols used from libc to
10258 # always be unresolved, which means just about no library would
10259 # ever link correctly. If we're not using GNU ld we use -z text
10260 # though, which does catch some bad symbols but isn't as heavy-handed
10262 no_undefined_flag='${wl}-z,text'
10263 allow_undefined_flag='${wl}-z,nodefs'
10264 archive_cmds_need_lc=no
10265 hardcode_shlibpath_var=no
10266 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10267 hardcode_libdir_separator=':'
10268 link_all_deplibs=yes
10269 export_dynamic_flag_spec='${wl}-Bexport'
10270 runpath_var='LD_RUN_PATH'
10272 if test "$GCC" = yes; then
10273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_shlibpath_var=no
10292 if test x$host_vendor = xsni; then
10294 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10295 export_dynamic_flag_spec='${wl}-Blargedynsym'
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10302 $as_echo "$ld_shlibs" >&6; }
10303 test "$ld_shlibs" = no && can_build_shared=no
10305 with_gnu_ld=$with_gnu_ld
10322 # Do we need to explicitly link libc?
10324 case "x$archive_cmds_need_lc" in
10326 # Assume -lc should be added
10327 archive_cmds_need_lc=yes
10329 if test "$enable_shared" = yes && test "$GCC" = yes; then
10330 case $archive_cmds in
10332 # FIXME: we may have to deal with multi-command sequences.
10335 # Test whether the compiler implicitly links with -lc since on some
10336 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10337 # to ld, don't add -lc before -lgcc.
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10339 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10340 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10341 $as_echo_n "(cached) " >&6
10344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10347 (eval $ac_compile) 2>&5
10349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350 test $ac_status = 0; } 2>conftest.err; then
10353 libobjs=conftest.$ac_objext
10355 wl=$lt_prog_compiler_wl
10356 pic_flag=$lt_prog_compiler_pic
10362 lt_save_allow_undefined_flag=$allow_undefined_flag
10363 allow_undefined_flag=
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10365 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; }
10370 lt_cv_archive_cmds_need_lc=no
10372 lt_cv_archive_cmds_need_lc=yes
10374 allow_undefined_flag=$lt_save_allow_undefined_flag
10376 cat conftest.err 1>&5
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10382 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10383 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10547 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10549 if test "$GCC" = yes; then
10551 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10552 *) lt_awk_arg="/^libraries:/" ;;
10555 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10556 *) lt_sed_strip_eq="s,=/,/,g" ;;
10558 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10559 case $lt_search_path_spec in
10561 # if the path contains ";" then we assume it to be the separator
10562 # otherwise default to the standard path separator (i.e. ":") - it is
10563 # assumed that no part of a normal pathname contains ";" but that should
10564 # okay in the real world where ";" in dirpaths is itself problematic.
10565 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10568 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10571 # Ok, now we have the path, separated by spaces, we can step through it
10572 # and add multilib dir if necessary.
10573 lt_tmp_lt_search_path_spec=
10574 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10575 for lt_sys_path in $lt_search_path_spec; do
10576 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10577 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10579 test -d "$lt_sys_path" && \
10580 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10583 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10584 BEGIN {RS=" "; FS="/|\n";} {
10587 for (lt_i = NF; lt_i > 0; lt_i--) {
10588 if ($lt_i != "" && $lt_i != ".") {
10589 if ($lt_i == "..") {
10592 if (lt_count == 0) {
10593 lt_foo="/" $lt_i lt_foo;
10600 if (lt_foo != "") { lt_freq[lt_foo]++; }
10601 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10603 # AWK program above erroneously prepends '/' to C:/dos/paths
10606 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10607 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10609 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10613 library_names_spec=
10614 libname_spec='lib$name'
10618 postuninstall_cmds=
10622 shlibpath_overrides_runpath=unknown
10624 dynamic_linker="$host_os ld.so"
10625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10626 need_lib_prefix=unknown
10627 hardcode_into_libs=no
10629 # when you set need_version to no, make sure it does not cause -set_version
10630 # flags to be left without arguments
10631 need_version=unknown
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10637 shlibpath_var=LIBPATH
10639 # AIX 3 has no versioning support, so we append a major version to the name.
10640 soname_spec='${libname}${release}${shared_ext}$major'
10647 hardcode_into_libs=yes
10648 if test "$host_cpu" = ia64; then
10649 # AIX 5 supports IA64
10650 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10651 shlibpath_var=LD_LIBRARY_PATH
10653 # With GCC up to 2.95.x, collect2 would create an import file
10654 # for dependence libraries. The import file would start with
10655 # the line `#! .'. This would cause the generated library to
10656 # depend on `.', always an invalid library. This was fixed in
10657 # development snapshots of GCC prior to 3.0.
10659 aix4 | aix4.[01] | aix4.[01].*)
10660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10662 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10665 can_build_shared=no
10669 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10670 # soname into executable. Probably we can add versioning support to
10671 # collect2, so additional links can be useful in future.
10672 if test "$aix_use_runtimelinking" = yes; then
10673 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10674 # instead of lib<name>.a to let people know that these are not
10675 # typical AIX shared libraries.
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 # We preserve .a as extension for shared libraries through AIX4.2
10679 # and later when we are not doing run time linking.
10680 library_names_spec='${libname}${release}.a $libname.a'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10683 shlibpath_var=LIBPATH
10690 # Since July 2007 AmigaOS4 officially supports .so libraries.
10691 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 library_names_spec='$libname.ixlibrary $libname.a'
10696 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10697 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10703 library_names_spec='${libname}${shared_ext}'
10704 dynamic_linker="$host_os ld.so"
10705 shlibpath_var=LIBRARY_PATH
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10714 shlibpath_var=LD_LIBRARY_PATH
10715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10717 # the default ld.so.conf also contains /usr/contrib/lib and
10718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10719 # libtool to hard-code these into programs
10722 cygwin* | mingw* | pw32* | cegcc*)
10723 version_type=windows
10728 case $GCC,$cc_basename in
10731 library_names_spec='$libname.dll.a'
10732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10733 postinstall_cmds='base_file=`basename \${file}`~
10734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10735 dldir=$destdir/`dirname \$dlpath`~
10736 test -d \$dldir || mkdir -p \$dldir~
10737 $install_prog $dir/$dlname \$dldir/$dlname~
10738 chmod a+x \$dldir/$dlname~
10739 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10740 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10743 dlpath=$dir/\$dldll~
10745 shlibpath_overrides_runpath=yes
10749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10750 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10752 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10755 # MinGW DLLs use traditional 'lib' prefix
10756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759 # pw32 DLLs use 'pw' prefix rather than 'lib'
10760 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763 dynamic_linker='Win32 ld.exe'
10768 libname_spec='$name'
10769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 library_names_spec='${libname}.dll.lib'
10774 sys_lib_search_path_spec=
10777 for lt_path in $LIB
10780 # Let DOS variable expansion print the short 8.3 style file name.
10781 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10782 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10785 # Convert to MSYS style.
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10789 # Convert to unix form, then to dos form, then back to unix form
10790 # but this time dos style (no spaces!) so that the unix form looks
10791 # like /cygdrive/c/PROGRA~1:/cygdr...
10792 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10793 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10794 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797 sys_lib_search_path_spec="$LIB"
10798 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10799 # It is most probably a Windows format PATH.
10800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10804 # FIXME: find the short name or the path components, as spaces are
10805 # common. (e.g. "Program Files" -> "PROGRA~1")
10809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10810 postinstall_cmds='base_file=`basename \${file}`~
10811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10812 dldir=$destdir/`dirname \$dlpath`~
10813 test -d \$dldir || mkdir -p \$dldir~
10814 $install_prog $dir/$dlname \$dldir/$dlname'
10815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10816 dlpath=$dir/\$dldll~
10818 shlibpath_overrides_runpath=yes
10819 dynamic_linker='Win32 link.exe'
10823 # Assume MSVC wrapper
10824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10825 dynamic_linker='Win32 ld.exe'
10828 # FIXME: first we should search . and the directory the executable is in
10832 darwin* | rhapsody*)
10833 dynamic_linker="$host_os dyld"
10834 version_type=darwin
10837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10838 soname_spec='${libname}${release}${major}$shared_ext'
10839 shlibpath_overrides_runpath=yes
10840 shlibpath_var=DYLD_LIBRARY_PATH
10841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10860 freebsd* | dragonfly*)
10861 # DragonFly does not have aout. When/if they implement a new
10862 # versioning mechanism, adjust this.
10863 if test -x /usr/bin/objformat; then
10864 objformat=`/usr/bin/objformat`
10867 freebsd[123]*) objformat=aout ;;
10868 *) objformat=elf ;;
10871 version_type=freebsd-$objformat
10872 case $version_type in
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10883 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10888 freebsd3.[01]* | freebsdelf3.[01]*)
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10894 shlibpath_overrides_runpath=no
10895 hardcode_into_libs=yes
10897 *) # from 4.6 on, and DragonFly
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909 soname_spec='${libname}${release}${shared_ext}$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 hardcode_into_libs=yes
10918 dynamic_linker="$host_os runtime_loader"
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 shlibpath_var=LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10924 hardcode_into_libs=yes
10927 hpux9* | hpux10* | hpux11*)
10928 # Give a soname corresponding to the major version so that dld.sl refuses to
10929 # link against other versions.
10936 hardcode_into_libs=yes
10937 dynamic_linker="$host_os dld.so"
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 if test "X$HPUX_IA64_MODE" = X32; then
10943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10951 hardcode_into_libs=yes
10952 dynamic_linker="$host_os dld.sl"
10953 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10962 dynamic_linker="$host_os dld.sl"
10963 shlibpath_var=SHLIB_PATH
10964 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10969 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10970 postinstall_cmds='chmod 555 $lib'
10971 # or fails outright, so override atomically:
10972 install_override_mode=555
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10981 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10987 irix5* | irix6* | nonstopux*)
10989 nonstopux*) version_type=nonstopux ;;
10991 if test "$lt_cv_prog_gnu_ld" = yes; then
10999 soname_spec='${libname}${release}${shared_ext}$major'
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002 irix5* | nonstopux*)
11003 libsuff= shlibsuff=
11006 case $LD in # libtool.m4 will add one of these switches to LD
11007 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11008 libsuff= shlibsuff= libmagic=32-bit;;
11009 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11010 libsuff=32 shlibsuff=N32 libmagic=N32;;
11011 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11012 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11013 *) libsuff= shlibsuff= libmagic=never-match;;
11017 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11018 shlibpath_overrides_runpath=no
11019 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11020 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11021 hardcode_into_libs=yes
11024 # No shared lib support for Linux oldld, aout, or coff.
11025 linux*oldld* | linux*aout* | linux*coff*)
11029 # This must be Linux ELF.
11030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11035 soname_spec='${libname}${release}${shared_ext}$major'
11036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 shlibpath_overrides_runpath=no
11040 # Some binutils ld are patched to set DT_RUNPATH
11041 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11042 $as_echo_n "(cached) " >&6
11044 lt_cv_shlibpath_overrides_runpath=no
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11062 lt_cv_shlibpath_overrides_runpath=yes
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LDFLAGS=$save_LDFLAGS
11068 libdir=$save_libdir
11072 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11074 # This implies no fast_install, which is unacceptable.
11075 # Some rework will be needed to allow for fast_install
11076 # before this can be enabled.
11077 hardcode_into_libs=yes
11079 # Append ld.so.conf contents to the search path
11080 if test -f /etc/ld.so.conf; then
11081 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11085 # We used to test for /lib/ld.so.1 and disable shared libraries on
11086 # powerpc, because MkLinux only supported shared libraries with the
11087 # GNU dynamic linker. Since this was broken with cross compilers,
11088 # most powerpc-linux boxes support dynamic linking these days and
11089 # people can always --disable-shared, the test was removed, and we
11090 # assume the GNU/Linux dynamic linker is in use.
11091 dynamic_linker='GNU/Linux ld.so'
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11101 dynamic_linker='NetBSD (a.out) ld.so'
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 dynamic_linker='NetBSD ld.elf_so'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 hardcode_into_libs=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11128 dynamic_linker='ldqnx.so'
11133 sys_lib_dlsearch_path_spec="/usr/lib"
11135 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11138 *) need_version=no ;;
11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11142 shlibpath_var=LD_LIBRARY_PATH
11143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145 openbsd2.[89] | openbsd2.[89].*)
11146 shlibpath_overrides_runpath=no
11149 shlibpath_overrides_runpath=yes
11153 shlibpath_overrides_runpath=yes
11158 libname_spec='$name'
11161 library_names_spec='$libname${shared_ext} $libname.a'
11162 dynamic_linker='OS/2 ld.exe'
11163 shlibpath_var=LIBPATH
11166 osf3* | osf4* | osf5*)
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11174 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11190 # ldd complains unless libraries are executable
11191 postinstall_cmds='chmod +x $lib'
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11200 if test "$with_gnu_ld" = yes; then
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 case $host_vendor in
11213 shlibpath_overrides_runpath=no
11215 runpath_var=LD_RUN_PATH
11223 shlibpath_overrides_runpath=no
11224 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11230 if test -d /usr/nec ;then
11232 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11233 soname_spec='$libname${shared_ext}.$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11239 version_type=freebsd-elf
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=yes
11246 hardcode_into_libs=yes
11247 if test "$with_gnu_ld" = yes; then
11248 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11253 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11257 sys_lib_dlsearch_path_spec='/usr/lib'
11261 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=no
11268 hardcode_into_libs=yes
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11283 $as_echo "$dynamic_linker" >&6; }
11284 test "$dynamic_linker" = no && can_build_shared=no
11286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11287 if test "$GCC" = yes; then
11288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11291 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11292 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11295 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11392 if test -n "$hardcode_libdir_flag_spec" ||
11393 test -n "$runpath_var" ||
11394 test "X$hardcode_automatic" = "Xyes" ; then
11396 # We can hardcode non-existent directories.
11397 if test "$hardcode_direct" != no &&
11398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11399 # have to relink, otherwise we might link with an installed library
11400 # when we should be linking with a yet-to-be-installed one
11401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11402 test "$hardcode_minus_L" != no; then
11403 # Linking always hardcodes the temporary library directory.
11404 hardcode_action=relink
11406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11407 hardcode_action=immediate
11410 # We cannot hardcode anything, or else we can only hardcode existing
11412 hardcode_action=unsupported
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11415 $as_echo "$hardcode_action" >&6; }
11417 if test "$hardcode_action" = relink ||
11418 test "$inherit_rpath" = yes; then
11419 # Fast installation is not supported
11420 enable_fast_install=no
11421 elif test "$shlibpath_overrides_runpath" = yes ||
11422 test "$enable_shared" = no; then
11423 # Fast installation is not necessary
11424 enable_fast_install=needless
11432 if test "x$enable_dlopen" != xyes; then
11433 enable_dlopen=unknown
11434 enable_dlopen_self=unknown
11435 enable_dlopen_self_static=unknown
11442 lt_cv_dlopen="load_add_on"
11444 lt_cv_dlopen_self=yes
11447 mingw* | pw32* | cegcc*)
11448 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen="dlopen"
11458 # if libdl is installed we need to link against it
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11461 if ${ac_cv_lib_dl_dlopen+:} false; then :
11462 $as_echo_n "(cached) " >&6
11464 ac_check_lib_save_LIBS=$LIBS
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_dl_dlopen=yes
11487 ac_cv_lib_dl_dlopen=no
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11495 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 lt_cv_dlopen="dyld"
11501 lt_cv_dlopen_self=yes
11508 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11509 if test "x$ac_cv_func_shl_load" = xyes; then :
11510 lt_cv_dlopen="shl_load"
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11513 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11514 if ${ac_cv_lib_dld_shl_load+:} false; then :
11515 $as_echo_n "(cached) " >&6
11517 ac_check_lib_save_LIBS=$LIBS
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11532 return shl_load ();
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_dld_shl_load=yes
11540 ac_cv_lib_dld_shl_load=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11547 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11548 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11551 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11552 if test "x$ac_cv_func_dlopen" = xyes; then :
11553 lt_cv_dlopen="dlopen"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11556 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11557 if ${ac_cv_lib_dl_dlopen+:} false; then :
11558 $as_echo_n "(cached) " >&6
11560 ac_check_lib_save_LIBS=$LIBS
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_dl_dlopen=yes
11583 ac_cv_lib_dl_dlopen=no
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11590 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11591 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11595 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11596 if ${ac_cv_lib_svld_dlopen+:} false; then :
11597 $as_echo_n "(cached) " >&6
11599 ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-lsvld $LIBS"
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 ac_cv_lib_svld_dlopen=yes
11622 ac_cv_lib_svld_dlopen=no
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS=$ac_check_lib_save_LIBS
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11629 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11630 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11635 if ${ac_cv_lib_dld_dld_link+:} false; then :
11636 $as_echo_n "(cached) " >&6
11638 ac_check_lib_save_LIBS=$LIBS
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11653 return dld_link ();
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 ac_cv_lib_dld_dld_link=yes
11661 ac_cv_lib_dld_dld_link=no
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 LIBS=$ac_check_lib_save_LIBS
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11670 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11691 if test "x$lt_cv_dlopen" != xno; then
11697 case $lt_cv_dlopen in
11699 save_CPPFLAGS="$CPPFLAGS"
11700 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702 save_LDFLAGS="$LDFLAGS"
11703 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11706 LIBS="$lt_cv_dlopen_libs $LIBS"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11709 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11710 if ${lt_cv_dlopen_self+:} false; then :
11711 $as_echo_n "(cached) " >&6
11713 if test "$cross_compiling" = yes; then :
11714 lt_cv_dlopen_self=cross
11716 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11717 lt_status=$lt_dlunknown
11718 cat > conftest.$ac_ext <<_LT_EOF
11719 #line $LINENO "configure"
11720 #include "confdefs.h"
11729 # define LT_DLGLOBAL RTLD_GLOBAL
11732 # define LT_DLGLOBAL DL_GLOBAL
11734 # define LT_DLGLOBAL 0
11738 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11739 find out it does not work in some platform. */
11740 #ifndef LT_DLLAZY_OR_NOW
11742 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11745 # define LT_DLLAZY_OR_NOW DL_LAZY
11748 # define LT_DLLAZY_OR_NOW RTLD_NOW
11751 # define LT_DLLAZY_OR_NOW DL_NOW
11753 # define LT_DLLAZY_OR_NOW 0
11760 /* When -fvisbility=hidden is used, assume the code has been annotated
11761 correspondingly for the symbols needed. */
11762 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11763 int fnord () __attribute__((visibility("default")));
11766 int fnord () { return 42; }
11769 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11770 int status = $lt_dlunknown;
11774 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11778 else puts (dlerror ());
11780 /* dlclose (self); */
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11789 (eval $ac_link) 2>&5
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11793 (./conftest; exit; ) >&5 2>/dev/null
11795 case x$lt_status in
11796 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11801 # compilation failed
11802 lt_cv_dlopen_self=no
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11810 $as_echo "$lt_cv_dlopen_self" >&6; }
11812 if test "x$lt_cv_dlopen_self" = xyes; then
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11815 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11816 if ${lt_cv_dlopen_self_static+:} false; then :
11817 $as_echo_n "(cached) " >&6
11819 if test "$cross_compiling" = yes; then :
11820 lt_cv_dlopen_self_static=cross
11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11823 lt_status=$lt_dlunknown
11824 cat > conftest.$ac_ext <<_LT_EOF
11825 #line $LINENO "configure"
11826 #include "confdefs.h"
11835 # define LT_DLGLOBAL RTLD_GLOBAL
11838 # define LT_DLGLOBAL DL_GLOBAL
11840 # define LT_DLGLOBAL 0
11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11845 find out it does not work in some platform. */
11846 #ifndef LT_DLLAZY_OR_NOW
11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11851 # define LT_DLLAZY_OR_NOW DL_LAZY
11854 # define LT_DLLAZY_OR_NOW RTLD_NOW
11857 # define LT_DLLAZY_OR_NOW DL_NOW
11859 # define LT_DLLAZY_OR_NOW 0
11866 /* When -fvisbility=hidden is used, assume the code has been annotated
11867 correspondingly for the symbols needed. */
11868 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11869 int fnord () __attribute__((visibility("default")));
11872 int fnord () { return 42; }
11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876 int status = $lt_dlunknown;
11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11884 else puts (dlerror ());
11886 /* dlclose (self); */
11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11895 (eval $ac_link) 2>&5
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11899 (./conftest; exit; ) >&5 2>/dev/null
11901 case x$lt_status in
11902 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11907 # compilation failed
11908 lt_cv_dlopen_self_static=no
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11916 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11919 CPPFLAGS="$save_CPPFLAGS"
11920 LDFLAGS="$save_LDFLAGS"
11925 case $lt_cv_dlopen_self in
11926 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11927 *) enable_dlopen_self=unknown ;;
11930 case $lt_cv_dlopen_self_static in
11931 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11932 *) enable_dlopen_self_static=unknown ;;
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11955 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11956 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11960 $as_echo "yes" >&6; }
11962 # FIXME - insert some real tests, host_os isn't really good enough
11965 if test -n "$STRIP" ; then
11966 striplib="$STRIP -x"
11967 old_striplib="$STRIP -S"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11993 # Report which library types will actually be built
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11995 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11997 $as_echo "$can_build_shared" >&6; }
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12000 $as_echo_n "checking whether to build shared libraries... " >&6; }
12001 test "$can_build_shared" = "no" && enable_shared=no
12003 # On AIX, shared libraries and static libraries use the same namespace, and
12004 # are all built from PIC.
12007 test "$enable_shared" = yes && enable_static=no
12008 if test -n "$RANLIB"; then
12009 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12010 postinstall_cmds='$RANLIB $lib'
12015 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12016 test "$enable_shared" = yes && enable_static=no
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12021 $as_echo "$enable_shared" >&6; }
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12024 $as_echo_n "checking whether to build static libraries... " >&6; }
12025 # Make sure either enable_shared or enable_static is yes.
12026 test "$enable_shared" = yes || enable_static=yes
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12028 $as_echo "$enable_static" >&6; }
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12042 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12043 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12044 (test "X$CXX" != "Xg++"))) ; then
12046 ac_cpp='$CXXCPP $CPPFLAGS'
12047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12051 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12052 if test -z "$CXXCPP"; then
12053 if ${ac_cv_prog_CXXCPP+:} false; then :
12054 $as_echo_n "(cached) " >&6
12056 # Double quotes because CXXCPP needs to be expanded
12057 for CXXCPP in "$CXX -E" "/lib/cpp"
12059 ac_preproc_ok=false
12060 for ac_cxx_preproc_warn_flag in '' yes
12062 # Use a header file that comes with gcc, so configuring glibc
12063 # with a fresh cross-compiler works.
12064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12065 # <limits.h> exists even on freestanding compilers.
12066 # On the NeXT, cc -E runs the code through the compiler's parser,
12067 # not just through cpp. "Syntax error" is here to catch this case.
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 # include <limits.h>
12073 # include <assert.h>
12077 if ac_fn_cxx_try_cpp "$LINENO"; then :
12080 # Broken: fails on valid input.
12083 rm -f conftest.err conftest.i conftest.$ac_ext
12085 # OK, works on sane cases. Now check whether nonexistent headers
12086 # can be detected and how.
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 #include <ac_nonexistent.h>
12091 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: success on invalid input.
12095 # Passes both tests.
12099 rm -f conftest.err conftest.i conftest.$ac_ext
12102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12103 rm -f conftest.i conftest.err conftest.$ac_ext
12104 if $ac_preproc_ok; then :
12109 ac_cv_prog_CXXCPP=$CXXCPP
12112 CXXCPP=$ac_cv_prog_CXXCPP
12114 ac_cv_prog_CXXCPP=$CXXCPP
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12117 $as_echo "$CXXCPP" >&6; }
12118 ac_preproc_ok=false
12119 for ac_cxx_preproc_warn_flag in '' yes
12121 # Use a header file that comes with gcc, so configuring glibc
12122 # with a fresh cross-compiler works.
12123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 # <limits.h> exists even on freestanding compilers.
12125 # On the NeXT, cc -E runs the code through the compiler's parser,
12126 # not just through cpp. "Syntax error" is here to catch this case.
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12130 # include <limits.h>
12132 # include <assert.h>
12136 if ac_fn_cxx_try_cpp "$LINENO"; then :
12139 # Broken: fails on valid input.
12142 rm -f conftest.err conftest.i conftest.$ac_ext
12144 # OK, works on sane cases. Now check whether nonexistent headers
12145 # can be detected and how.
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #include <ac_nonexistent.h>
12150 if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: success on invalid input.
12154 # Passes both tests.
12158 rm -f conftest.err conftest.i conftest.$ac_ext
12161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12162 rm -f conftest.i conftest.err conftest.$ac_ext
12163 if $ac_preproc_ok; then :
12166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12168 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12169 See \`config.log' for more details" "$LINENO" 5; }
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179 _lt_caught_CXX_error=yes
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188 archive_cmds_need_lc_CXX=no
12189 allow_undefined_flag_CXX=
12190 always_export_symbols_CXX=no
12191 archive_expsym_cmds_CXX=
12192 compiler_needs_object_CXX=no
12193 export_dynamic_flag_spec_CXX=
12194 hardcode_direct_CXX=no
12195 hardcode_direct_absolute_CXX=no
12196 hardcode_libdir_flag_spec_CXX=
12197 hardcode_libdir_flag_spec_ld_CXX=
12198 hardcode_libdir_separator_CXX=
12199 hardcode_minus_L_CXX=no
12200 hardcode_shlibpath_var_CXX=unsupported
12201 hardcode_automatic_CXX=no
12202 inherit_rpath_CXX=no
12204 module_expsym_cmds_CXX=
12205 link_all_deplibs_CXX=unknown
12206 old_archive_cmds_CXX=$old_archive_cmds
12207 reload_flag_CXX=$reload_flag
12208 reload_cmds_CXX=$reload_cmds
12209 no_undefined_flag_CXX=
12210 whole_archive_flag_spec_CXX=
12211 enable_shared_with_static_runtimes_CXX=no
12213 # Source file extension for C++ test sources.
12216 # Object file extension for compiled C++ test sources.
12220 # No sense in running all these tests if we already determined that
12221 # the CXX compiler isn't working. Some variables (like enable_shared)
12222 # are currently assumed to apply to all compilers on this platform,
12223 # and will be corrupted by setting them based on a non-working compiler.
12224 if test "$_lt_caught_CXX_error" != yes; then
12225 # Code to be used in simple compile tests
12226 lt_simple_compile_test_code="int some_variable = 0;"
12228 # Code to be used in simple link tests
12229 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12238 # If no C compiler was specified, use CC.
12241 # If no C compiler flags were specified, use CFLAGS.
12242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244 # Allow CC to be a program name with arguments.
12248 # save warnings/boilerplate of simple test code
12249 ac_outfile=conftest.$ac_objext
12250 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12251 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12252 _lt_compiler_boilerplate=`cat conftest.err`
12255 ac_outfile=conftest.$ac_objext
12256 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12257 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12258 _lt_linker_boilerplate=`cat conftest.err`
12262 # Allow CC to be a program name with arguments.
12264 lt_save_CFLAGS=$CFLAGS
12268 lt_save_with_gnu_ld=$with_gnu_ld
12269 lt_save_path_LD=$lt_cv_path_LD
12270 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12273 $as_unset lt_cv_prog_gnu_ld
12275 if test -n "${lt_cv_path_LDCXX+set}"; then
12276 lt_cv_path_LD=$lt_cv_path_LDCXX
12278 $as_unset lt_cv_path_LD
12280 test -z "${LDCXX+set}" || LD=$LDCXX
12285 for cc_temp in $compiler""; do
12287 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12288 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12293 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12296 if test -n "$compiler"; then
12297 # We don't want -fno-exception when compiling C++ code, so set the
12298 # no_builtin_flag separately
12299 if test "$GXX" = yes; then
12300 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12302 lt_prog_compiler_no_builtin_flag_CXX=
12305 if test "$GXX" = yes; then
12306 # Set up default GNU C++ configuration
12310 # Check whether --with-gnu-ld was given.
12311 if test "${with_gnu_ld+set}" = set; then :
12312 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12318 if test "$GCC" = yes; then
12319 # Check if gcc -print-prog-name=ld gives a path.
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12321 $as_echo_n "checking for ld used by $CC... " >&6; }
12324 # gcc leaves a trailing carriage return which upsets mingw
12325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12330 # Accept absolute paths.
12332 re_direlt='/[^/][^/]*/\.\./'
12333 # Canonicalize the pathname of ld
12334 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12335 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12336 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12338 test -z "$LD" && LD="$ac_prog"
12341 # If it fails, then pretend we aren't using GCC.
12345 # If it is relative, then search for the first ld in PATH.
12346 with_gnu_ld=unknown
12349 elif test "$with_gnu_ld" = yes; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12351 $as_echo_n "checking for GNU ld... " >&6; }
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12354 $as_echo_n "checking for non-GNU ld... " >&6; }
12356 if ${lt_cv_path_LD+:} false; then :
12357 $as_echo_n "(cached) " >&6
12359 if test -z "$LD"; then
12360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12361 for ac_dir in $PATH; do
12363 test -z "$ac_dir" && ac_dir=.
12364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12365 lt_cv_path_LD="$ac_dir/$ac_prog"
12366 # Check to see if the program is GNU ld. I'd rather use --version,
12367 # but apparently some variants of GNU ld only accept -v.
12368 # Break only if it was the GNU/non-GNU ld that we prefer.
12369 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12370 *GNU* | *'with BFD'*)
12371 test "$with_gnu_ld" != no && break
12374 test "$with_gnu_ld" != yes && break
12381 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12385 LD="$lt_cv_path_LD"
12386 if test -n "$LD"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12388 $as_echo "$LD" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12396 if ${lt_cv_prog_gnu_ld+:} false; then :
12397 $as_echo_n "(cached) " >&6
12399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12400 case `$LD -v 2>&1 </dev/null` in
12401 *GNU* | *'with BFD'*)
12402 lt_cv_prog_gnu_ld=yes
12405 lt_cv_prog_gnu_ld=no
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12411 with_gnu_ld=$lt_cv_prog_gnu_ld
12419 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12420 # archiving commands below assume that GNU ld is being used.
12421 if test "$with_gnu_ld" = yes; then
12422 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12428 # If archive_cmds runs LD, not CC, wlarc should be empty
12429 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12430 # investigate it a little bit more. (MM)
12433 # ancient GNU ld didn't support --whole-archive et. al.
12434 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12435 $GREP 'no-whole-archive' > /dev/null; then
12436 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12438 whole_archive_flag_spec_CXX=
12444 # A generic and very simple default shared library creation
12445 # command for GNU C++ for the case where it uses the native
12446 # linker, instead of GNU ld. If possible, this setting should
12447 # overridden to take advantage of the native linker features on
12448 # the platform it is being used on.
12449 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12452 # Commands to make compiler produce verbose output that lists
12453 # what "hidden" libraries, object files and flags are used when
12454 # linking a shared library.
12455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12463 # PORTME: fill in a description of your system's C++ link characteristics
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12465 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12469 # FIXME: insert proper C++ library support
12473 if test "$host_cpu" = ia64; then
12474 # On IA64, the linker does run time linking by default, so we don't
12475 # have to do anything special.
12476 aix_use_runtimelinking=no
12477 exp_sym_flag='-Bexport'
12480 aix_use_runtimelinking=no
12482 # Test if we are trying to use run time linking or normal
12483 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12484 # need to do runtime linking.
12485 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12486 for ld_flag in $LDFLAGS; do
12489 aix_use_runtimelinking=yes
12497 exp_sym_flag='-bexport'
12498 no_entry_flag='-bnoentry'
12501 # When large executables or shared objects are built, AIX ld can
12502 # have problems creating the table of contents. If linking a library
12503 # or program results in "error TOC overflow" add -mminimal-toc to
12504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12507 archive_cmds_CXX=''
12508 hardcode_direct_CXX=yes
12509 hardcode_direct_absolute_CXX=yes
12510 hardcode_libdir_separator_CXX=':'
12511 link_all_deplibs_CXX=yes
12512 file_list_spec_CXX='${wl}-f,'
12514 if test "$GXX" = yes; then
12515 case $host_os in aix4.[012]|aix4.[012].*)
12516 # We only want to do this on AIX 4.2 and lower, the check
12517 # below for broken collect2 doesn't work under 4.3+
12518 collect2name=`${CC} -print-prog-name=collect2`
12519 if test -f "$collect2name" &&
12520 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12522 # We have reworked collect2
12525 # We have old collect2
12526 hardcode_direct_CXX=unsupported
12527 # It fails to find uninstalled libraries when the uninstalled
12528 # path is not listed in the libpath. Setting hardcode_minus_L
12529 # to unsupported forces relinking
12530 hardcode_minus_L_CXX=yes
12531 hardcode_libdir_flag_spec_CXX='-L$libdir'
12532 hardcode_libdir_separator_CXX=
12535 shared_flag='-shared'
12536 if test "$aix_use_runtimelinking" = yes; then
12537 shared_flag="$shared_flag "'${wl}-G'
12541 if test "$host_cpu" = ia64; then
12542 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12543 # chokes on -Wl,-G. The following line is correct:
12546 if test "$aix_use_runtimelinking" = yes; then
12547 shared_flag='${wl}-G'
12549 shared_flag='${wl}-bM:SRE'
12554 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12555 # It seems that -bexpall does not export symbols beginning with
12556 # underscore (_), so it is better to generate a list of symbols to
12558 always_export_symbols_CXX=yes
12559 if test "$aix_use_runtimelinking" = yes; then
12560 # Warning - without using the other runtime loading flags (-brtl),
12561 # -berok will link without error, but may produce a broken library.
12562 allow_undefined_flag_CXX='-berok'
12563 # Determine the default libpath from the value encoded in an empty
12565 if test "${lt_cv_aix_libpath+set}" = set; then
12566 aix_libpath=$lt_cv_aix_libpath
12568 if ${lt_cv_aix_libpath__CXX+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12582 if ac_fn_cxx_try_link "$LINENO"; then :
12584 lt_aix_libpath_sed='
12585 /Import File Strings/,/^$/ {
12587 s/^0 *\([^ ]*\) *$/\1/
12591 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12592 # Check for a 64-bit object if we didn't find anything.
12593 if test -z "$lt_cv_aix_libpath__CXX"; then
12594 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 if test -z "$lt_cv_aix_libpath__CXX"; then
12600 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12605 aix_libpath=$lt_cv_aix_libpath__CXX
12608 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12610 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12612 if test "$host_cpu" = ia64; then
12613 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12614 allow_undefined_flag_CXX="-z nodefs"
12615 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"
12617 # Determine the default libpath from the value encoded in an
12618 # empty executable.
12619 if test "${lt_cv_aix_libpath+set}" = set; then
12620 aix_libpath=$lt_cv_aix_libpath
12622 if ${lt_cv_aix_libpath__CXX+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12636 if ac_fn_cxx_try_link "$LINENO"; then :
12638 lt_aix_libpath_sed='
12639 /Import File Strings/,/^$/ {
12641 s/^0 *\([^ ]*\) *$/\1/
12645 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12646 # Check for a 64-bit object if we didn't find anything.
12647 if test -z "$lt_cv_aix_libpath__CXX"; then
12648 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 if test -z "$lt_cv_aix_libpath__CXX"; then
12654 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12659 aix_libpath=$lt_cv_aix_libpath__CXX
12662 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12663 # Warning - without using the other run time loading flags,
12664 # -berok will link without error, but may produce a broken library.
12665 no_undefined_flag_CXX=' ${wl}-bernotok'
12666 allow_undefined_flag_CXX=' ${wl}-berok'
12667 if test "$with_gnu_ld" = yes; then
12668 # We only use this code for GNU lds that support --whole-archive.
12669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12671 # Exported symbols can be pulled into shared objects from archives
12672 whole_archive_flag_spec_CXX='$convenience'
12674 archive_cmds_need_lc_CXX=yes
12675 # This is similar to how AIX traditionally builds its shared
12677 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'
12683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12684 allow_undefined_flag_CXX=unsupported
12685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12686 # support --undefined. This deserves some investigation. FIXME
12687 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12694 case $cc_basename in
12696 # FIXME: insert proper C++ library support
12702 cygwin* | mingw* | pw32* | cegcc*)
12703 case $GXX,$cc_basename in
12706 # hardcode_libdir_flag_spec is actually meaningless, as there is
12707 # no search path for DLLs.
12708 hardcode_libdir_flag_spec_CXX=' '
12709 allow_undefined_flag_CXX=unsupported
12710 always_export_symbols_CXX=yes
12711 file_list_spec_CXX='@'
12712 # Tell ltmain to make .lib files, not .a files.
12714 # Tell ltmain to make .dll files, not .so files.
12716 # FIXME: Setting linknames here is a bad hack.
12717 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12718 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12719 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12721 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12723 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12725 # The linker will not automatically build a static lib if we build a DLL.
12726 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12727 enable_shared_with_static_runtimes_CXX=yes
12729 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12730 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12731 lt_tool_outputfile="@TOOL_OUTPUT@"~
12732 case $lt_outputfile in
12735 lt_outputfile="$lt_outputfile.exe"
12736 lt_tool_outputfile="$lt_tool_outputfile.exe"
12739 func_to_tool_file "$lt_outputfile"~
12740 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12741 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12742 $RM "$lt_outputfile.manifest";
12747 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12748 # as there is no search path for DLLs.
12749 hardcode_libdir_flag_spec_CXX='-L$libdir'
12750 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12751 allow_undefined_flag_CXX=unsupported
12752 always_export_symbols_CXX=no
12753 enable_shared_with_static_runtimes_CXX=yes
12755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12756 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'
12757 # If the export-symbols file already is a .def file (1st line
12758 # is EXPORTS), use it as is; otherwise, prepend...
12759 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12760 cp $export_symbols $output_objdir/$soname.def;
12762 echo EXPORTS > $output_objdir/$soname.def;
12763 cat $export_symbols >> $output_objdir/$soname.def;
12765 $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'
12772 darwin* | rhapsody*)
12775 archive_cmds_need_lc_CXX=no
12776 hardcode_direct_CXX=no
12777 hardcode_automatic_CXX=yes
12778 hardcode_shlibpath_var_CXX=unsupported
12779 if test "$lt_cv_ld_force_load" = "yes"; then
12780 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12782 whole_archive_flag_spec_CXX=''
12784 link_all_deplibs_CXX=yes
12785 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12786 case $cc_basename in
12787 ifort*) _lt_dar_can_shared=yes ;;
12788 *) _lt_dar_can_shared=$GCC ;;
12790 if test "$_lt_dar_can_shared" = "yes"; then
12791 output_verbose_link_cmd=func_echo_all
12792 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12793 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12794 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12795 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12796 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12797 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12798 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12808 case $cc_basename in
12810 # FIXME: insert proper C++ library support
12814 # Green Hills C++ Compiler
12815 # FIXME: insert proper C++ library support
12819 # FIXME: insert proper C++ library support
12826 # C++ shared libraries reported to be fairly broken before
12832 archive_cmds_need_lc_CXX=no
12835 freebsd* | dragonfly*)
12836 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12845 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12846 link_all_deplibs_CXX=yes
12850 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12851 hardcode_libdir_separator_CXX=:
12852 export_dynamic_flag_spec_CXX='${wl}-E'
12853 hardcode_direct_CXX=yes
12854 hardcode_minus_L_CXX=yes # Not in the search PATH,
12855 # but as the default
12856 # location of the library.
12858 case $cc_basename in
12860 # FIXME: insert proper C++ library support
12864 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'
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12869 # There doesn't appear to be a way to prevent this compiler from
12870 # explicitly linking system object files so we need to strip them
12871 # from the output so that they don't get included in the library
12873 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12876 if test "$GXX" = yes; then
12877 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
12879 # FIXME: insert proper C++ library support
12887 if test $with_gnu_ld = no; then
12888 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12889 hardcode_libdir_separator_CXX=:
12895 export_dynamic_flag_spec_CXX='${wl}-E'
12901 hardcode_direct_CXX=no
12902 hardcode_shlibpath_var_CXX=no
12905 hardcode_direct_CXX=yes
12906 hardcode_direct_absolute_CXX=yes
12907 hardcode_minus_L_CXX=yes # Not in the search PATH,
12908 # but as the default
12909 # location of the library.
12913 case $cc_basename in
12915 # FIXME: insert proper C++ library support
12921 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12924 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12927 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930 # Commands to make compiler produce verbose output that lists
12931 # what "hidden" libraries, object files and flags are used when
12932 # linking a shared library.
12934 # There doesn't appear to be a way to prevent this compiler from
12935 # explicitly linking system object files so we need to strip them
12936 # from the output so that they don't get included in the library
12938 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; func_echo_all "$list"'
12941 if test "$GXX" = yes; then
12942 if test $with_gnu_ld = no; then
12945 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12948 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12951 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12956 # FIXME: insert proper C++ library support
12964 hardcode_direct_CXX=no
12965 hardcode_shlibpath_var_CXX=no
12966 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12967 export_dynamic_flag_spec_CXX='${wl}-E'
12968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12969 # Instead, shared libraries are loaded at an image base (0x10000000 by
12970 # default) and relocated if they conflict, which is a slow very memory
12971 # consuming and fragmenting process. To avoid this, we pick a random,
12972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12974 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'
12975 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'
12978 case $cc_basename in
12981 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12983 # Archives containing C++ object files must be created using
12984 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12985 # necessary to make sure instantiated templates are included
12987 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12990 if test "$GXX" = yes; then
12991 if test "$with_gnu_ld" = no; then
12992 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12994 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12997 link_all_deplibs_CXX=yes
13000 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13001 hardcode_libdir_separator_CXX=:
13002 inherit_rpath_CXX=yes
13005 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13006 case $cc_basename in
13008 # Kuck and Associates, Inc. (KAI) C++ Compiler
13010 # KCC will only create a shared library if the output file
13011 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13012 # to its proper name (with version) after linking.
13013 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'
13014 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'
13015 # Commands to make compiler produce verbose output that lists
13016 # what "hidden" libraries, object files and flags are used when
13017 # linking a shared library.
13019 # There doesn't appear to be a way to prevent this compiler from
13020 # explicitly linking system object files so we need to strip them
13021 # from the output so that they don't get included in the library
13023 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; func_echo_all "$list"'
13025 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028 # Archives containing C++ object files must be created using
13029 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13030 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13035 # version 8.0 and above of icpc choke on multiply defined symbols
13036 # if we add $predep_objects and $postdep_objects, however 7.1 and
13037 # earlier do not add the objects themselves.
13038 case `$CC -V 2>&1` in
13040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13041 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'
13043 *) # Version 8.0 or newer
13046 ia64*) tmp_idyn=' -i_dynamic';;
13048 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049 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'
13052 archive_cmds_need_lc_CXX=no
13053 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13054 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13058 # Portland Group C++ compiler
13060 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13061 prelink_cmds_CXX='tpldir=Template.dir~
13063 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13064 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13065 old_archive_cmds_CXX='tpldir=Template.dir~
13067 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13068 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13070 archive_cmds_CXX='tpldir=Template.dir~
13072 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13073 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13074 archive_expsym_cmds_CXX='tpldir=Template.dir~
13076 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13077 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13079 *) # Version 6 and above use weak symbols
13080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081 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'
13085 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13086 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13087 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13091 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 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'
13094 runpath_var=LD_RUN_PATH
13095 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13096 hardcode_libdir_separator_CXX=:
13098 # Commands to make compiler produce verbose output that lists
13099 # what "hidden" libraries, object files and flags are used when
13100 # linking a shared library.
13102 # There doesn't appear to be a way to prevent this compiler from
13103 # explicitly linking system object files so we need to strip them
13104 # from the output so that they don't get included in the library
13106 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13108 xl* | mpixl* | bgxl*)
13109 # IBM XL 8.0 on PPC, with GNU ld
13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13112 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13113 if test "x$supports_anon_versioning" = xyes; then
13114 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13116 echo "local: *; };" >> $output_objdir/$libname.ver~
13117 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13121 case `$CC -V 2>&1 | sed 5q` in
13124 no_undefined_flag_CXX=' -zdefs'
13125 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13126 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13127 hardcode_libdir_flag_spec_CXX='-R$libdir'
13128 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13129 compiler_needs_object_CXX=yes
13131 # Not sure whether something based on
13132 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13134 output_verbose_link_cmd='func_echo_all'
13136 # Archives containing C++ object files must be created using
13137 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13138 # necessary to make sure instantiated templates are included
13140 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13148 # FIXME: insert proper C++ library support
13153 # FIXME: insert proper C++ library support
13158 case $cc_basename in
13160 # FIXME: insert proper C++ library support
13164 # FIXME: insert proper C++ library support
13171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13172 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13174 hardcode_libdir_flag_spec_CXX='-R$libdir'
13175 hardcode_direct_CXX=yes
13176 hardcode_shlibpath_var_CXX=no
13178 # Workaround some broken pre-1.5 toolchains
13179 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13187 # C++ shared libraries are fairly broken
13192 if test -f /usr/libexec/ld.so; then
13193 hardcode_direct_CXX=yes
13194 hardcode_shlibpath_var_CXX=no
13195 hardcode_direct_absolute_CXX=yes
13196 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13197 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13199 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13200 export_dynamic_flag_spec_CXX='${wl}-E'
13201 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13203 output_verbose_link_cmd=func_echo_all
13209 osf3* | osf4* | osf5*)
13210 case $cc_basename in
13212 # Kuck and Associates, Inc. (KAI) C++ Compiler
13214 # KCC will only create a shared library if the output file
13215 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13216 # to its proper name (with version) after linking.
13217 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'
13219 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13220 hardcode_libdir_separator_CXX=:
13222 # Archives containing C++ object files must be created using
13223 # the KAI C++ compiler.
13225 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13226 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13230 # Rational C++ 2.4.1
13231 # FIXME: insert proper C++ library support
13237 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13238 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13239 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13242 allow_undefined_flag_CXX=' -expect_unresolved \*'
13243 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13244 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13245 echo "-hidden">> $lib.exp~
13246 $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~
13248 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13252 hardcode_libdir_separator_CXX=:
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13258 # There doesn't appear to be a way to prevent this compiler from
13259 # explicitly linking system object files so we need to strip them
13260 # from the output so that they don't get included in the library
13262 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13266 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13269 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13272 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13277 hardcode_libdir_separator_CXX=:
13279 # Commands to make compiler produce verbose output that lists
13280 # what "hidden" libraries, object files and flags are used when
13281 # linking a shared library.
13282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13285 # FIXME: insert proper C++ library support
13293 # FIXME: insert proper C++ library support
13298 case $cc_basename in
13301 # FIXME: insert proper C++ library support
13306 # FIXME: insert proper C++ library support
13310 # FIXME: insert proper C++ library support
13317 case $cc_basename in
13319 # Sun C++ 4.2, 5.x and Centerline C++
13320 archive_cmds_need_lc_CXX=yes
13321 no_undefined_flag_CXX=' -zdefs'
13322 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13323 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13324 $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'
13326 hardcode_libdir_flag_spec_CXX='-R$libdir'
13327 hardcode_shlibpath_var_CXX=no
13329 solaris2.[0-5] | solaris2.[0-5].*) ;;
13331 # The compiler driver will combine and reorder linker options,
13332 # but understands `-z linker_flag'.
13333 # Supported since Solaris 2.6 (maybe 2.5.1?)
13334 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13337 link_all_deplibs_CXX=yes
13339 output_verbose_link_cmd='func_echo_all'
13341 # Archives containing C++ object files must be created using
13342 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13343 # necessary to make sure instantiated templates are included
13345 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13348 # Green Hills C++ Compiler
13349 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13351 # The C++ compiler must be used to create the archive.
13352 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13355 # GNU C++ compiler with Solaris linker
13356 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13357 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13358 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13359 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13360 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13361 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13363 # Commands to make compiler produce verbose output that lists
13364 # what "hidden" libraries, object files and flags are used when
13365 # linking a shared library.
13366 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13368 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13370 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13371 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13372 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13374 # Commands to make compiler produce verbose output that lists
13375 # what "hidden" libraries, object files and flags are used when
13376 # linking a shared library.
13377 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13380 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13382 solaris2.[0-5] | solaris2.[0-5].*) ;;
13384 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13392 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13393 no_undefined_flag_CXX='${wl}-z,text'
13394 archive_cmds_need_lc_CXX=no
13395 hardcode_shlibpath_var_CXX=no
13396 runpath_var='LD_RUN_PATH'
13398 case $cc_basename in
13400 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13401 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13404 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13405 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13410 sysv5* | sco3.2v5* | sco5v6*)
13411 # Note: We can NOT use -z defs as we might desire, because we do not
13412 # link with -lc, and that would cause any symbols used from libc to
13413 # always be unresolved, which means just about no library would
13414 # ever link correctly. If we're not using GNU ld we use -z text
13415 # though, which does catch some bad symbols but isn't as heavy-handed
13417 no_undefined_flag_CXX='${wl}-z,text'
13418 allow_undefined_flag_CXX='${wl}-z,nodefs'
13419 archive_cmds_need_lc_CXX=no
13420 hardcode_shlibpath_var_CXX=no
13421 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13422 hardcode_libdir_separator_CXX=':'
13423 link_all_deplibs_CXX=yes
13424 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13425 runpath_var='LD_RUN_PATH'
13427 case $cc_basename in
13429 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13430 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13431 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13432 '"$old_archive_cmds_CXX"
13433 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13434 '"$reload_cmds_CXX"
13437 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13444 case $cc_basename in
13446 # NonStop-UX NCC 3.20
13447 # FIXME: insert proper C++ library support
13451 # FIXME: insert proper C++ library support
13458 # FIXME: insert proper C++ library support
13463 # FIXME: insert proper C++ library support
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13469 $as_echo "$ld_shlibs_CXX" >&6; }
13470 test "$ld_shlibs_CXX" = no && can_build_shared=no
13476 ## There is no encapsulation within the following macros, do not change
13477 ## the running order or otherwise move them around unless you know exactly
13478 ## what you are doing...
13479 # Dependencies to place before and after the object being linked:
13480 predep_objects_CXX=
13481 postdep_objects_CXX=
13484 compiler_lib_search_path_CXX=
13486 cat > conftest.$ac_ext <<_LT_EOF
13490 Foo (void) { a = 0; }
13497 _lt_libdeps_save_CFLAGS=$CFLAGS
13498 case "$CC $CFLAGS " in #(
13499 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13500 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13504 (eval $ac_compile) 2>&5
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 # Parse the compiler output and extract the necessary
13509 # objects, libraries and library flags.
13511 # Sentinel used to keep track of whether or not we are before
13512 # the conftest object file.
13513 pre_test_object_deps_done=no
13515 for p in `eval "$output_verbose_link_cmd"`; do
13516 case ${prev}${p} in
13519 # Some compilers place space between "-{L,R}" and the path.
13520 # Remove the space.
13521 if test $p = "-L" ||
13522 test $p = "-R"; then
13527 # Expand the sysroot to ease extracting the directories later.
13528 if test -z "$prev"; then
13530 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13531 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13532 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13536 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13538 if test "$pre_test_object_deps_done" = no; then
13541 # Internal compiler library paths should come after those
13542 # provided the user. The postdeps already come after the
13543 # user supplied libs so there is no need to process them.
13544 if test -z "$compiler_lib_search_path_CXX"; then
13545 compiler_lib_search_path_CXX="${prev}${p}"
13547 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13550 # The "-l" case would never come before the object being
13551 # linked, so don't bother handling this case.
13554 if test -z "$postdeps_CXX"; then
13555 postdeps_CXX="${prev}${p}"
13557 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13563 *.lto.$objext) ;; # Ignore GCC LTO objects
13565 # This assumes that the test object file only shows up
13566 # once in the compiler output.
13567 if test "$p" = "conftest.$objext"; then
13568 pre_test_object_deps_done=yes
13572 if test "$pre_test_object_deps_done" = no; then
13573 if test -z "$predep_objects_CXX"; then
13574 predep_objects_CXX="$p"
13576 predep_objects_CXX="$predep_objects_CXX $p"
13579 if test -z "$postdep_objects_CXX"; then
13580 postdep_objects_CXX="$p"
13582 postdep_objects_CXX="$postdep_objects_CXX $p"
13587 *) ;; # Ignore the rest.
13595 echo "libtool.m4: error: problem compiling CXX test program"
13598 $RM -f confest.$objext
13599 CFLAGS=$_lt_libdeps_save_CFLAGS
13601 # PORTME: override above test on systems where it is broken
13604 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13605 # hack all around it, let's just trust "g++" to DTRT.
13606 predep_objects_CXX=
13607 postdep_objects_CXX=
13612 case `$CC -V 2>&1 | sed 5q` in
13616 # The more standards-conforming stlport4 library is
13617 # incompatible with the Cstd library. Avoid specifying
13618 # it if it's in CXXFLAGS. Ignore libCrun as
13619 # -library=stlport4 depends on it.
13620 case " $CXX $CXXFLAGS " in
13621 *" -library=stlport4 "*)
13622 solaris_use_stlport4=yes
13626 if test "$solaris_use_stlport4" != yes; then
13627 postdeps_CXX='-library=Cstd -library=Crun'
13634 case $cc_basename in
13636 # The more standards-conforming stlport4 library is
13637 # incompatible with the Cstd library. Avoid specifying
13638 # it if it's in CXXFLAGS. Ignore libCrun as
13639 # -library=stlport4 depends on it.
13640 case " $CXX $CXXFLAGS " in
13641 *" -library=stlport4 "*)
13642 solaris_use_stlport4=yes
13646 # Adding this requires a known-good setup of shared libraries for
13647 # Sun compiler versions before 5.6, else PIC objects from an old
13648 # archive will be linked into the output, leading to subtle bugs.
13649 if test "$solaris_use_stlport4" != yes; then
13650 postdeps_CXX='-library=Cstd -library=Crun'
13658 case " $postdeps_CXX " in
13659 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13661 compiler_lib_search_dirs_CXX=
13662 if test -n "${compiler_lib_search_path_CXX}"; then
13663 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13696 lt_prog_compiler_wl_CXX=
13697 lt_prog_compiler_pic_CXX=
13698 lt_prog_compiler_static_CXX=
13701 # C++ specific cases for pic, static, wl, etc.
13702 if test "$GXX" = yes; then
13703 lt_prog_compiler_wl_CXX='-Wl,'
13704 lt_prog_compiler_static_CXX='-static'
13708 # All AIX code is PIC.
13709 if test "$host_cpu" = ia64; then
13710 # AIX 5 now supports IA64 processor
13711 lt_prog_compiler_static_CXX='-Bstatic'
13718 # see comment about AmigaOS4 .so support
13719 lt_prog_compiler_pic_CXX='-fPIC'
13722 # FIXME: we need at least 68020 code to build shared libraries, but
13723 # adding the `-m68020' flag to GCC prevents building anything better,
13725 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13730 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13731 # PIC is the default for these OSes.
13733 mingw* | cygwin* | os2* | pw32* | cegcc*)
13734 # This hack is so that the source file can tell whether it is being
13735 # built for inclusion in a dll (and should export symbols for example).
13736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13737 # (--disable-auto-import) libraries
13738 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13740 darwin* | rhapsody*)
13741 # PIC is the default on this platform
13742 # Common symbols not allowed in MH_DYLIB files
13743 lt_prog_compiler_pic_CXX='-fno-common'
13746 # DJGPP does not support shared libraries at all
13747 lt_prog_compiler_pic_CXX=
13750 # PIC is the default for Haiku.
13751 # The "-static" flag exists, but is broken.
13752 lt_prog_compiler_static_CXX=
13755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13756 # Instead, we relocate shared libraries at runtime.
13759 if test -d /usr/nec; then
13760 lt_prog_compiler_pic_CXX=-Kconform_pic
13764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13766 # sets the default TLS model and affects inlining.
13771 lt_prog_compiler_pic_CXX='-fPIC'
13776 # QNX uses GNU C++, but need to define -shared option too, otherwise
13777 # it will coredump.
13778 lt_prog_compiler_pic_CXX='-fPIC -shared'
13781 lt_prog_compiler_pic_CXX='-fPIC'
13787 # All AIX code is PIC.
13788 if test "$host_cpu" = ia64; then
13789 # AIX 5 now supports IA64 processor
13790 lt_prog_compiler_static_CXX='-Bstatic'
13792 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13796 case $cc_basename in
13798 # Green Hills C++ Compiler
13799 # _LT_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"
13803 mingw* | cygwin* | os2* | pw32* | cegcc*)
13804 # This hack is so that the source file can tell whether it is being
13805 # built for inclusion in a dll (and should export symbols for example).
13806 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13809 case $cc_basename in
13811 lt_prog_compiler_pic_CXX='-KPIC'
13814 # Green Hills C++ Compiler
13815 lt_prog_compiler_pic_CXX='-pic'
13821 freebsd* | dragonfly*)
13822 # FreeBSD uses GNU C++
13824 hpux9* | hpux10* | hpux11*)
13825 case $cc_basename in
13827 lt_prog_compiler_wl_CXX='-Wl,'
13828 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13829 if test "$host_cpu" != ia64; then
13830 lt_prog_compiler_pic_CXX='+Z'
13834 lt_prog_compiler_wl_CXX='-Wl,'
13835 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13841 lt_prog_compiler_pic_CXX='+Z'
13850 # This is c89, which is MS Visual C++ (no shared libs)
13851 # Anyone wants to do a port?
13853 irix5* | irix6* | nonstopux*)
13854 case $cc_basename in
13856 lt_prog_compiler_wl_CXX='-Wl,'
13857 lt_prog_compiler_static_CXX='-non_shared'
13858 # CC pic flag -KPIC is the default.
13864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13865 case $cc_basename in
13868 lt_prog_compiler_wl_CXX='--backend -Wl,'
13869 lt_prog_compiler_pic_CXX='-fPIC'
13872 # old Intel C++ for x86_64 which still supported -KPIC.
13873 lt_prog_compiler_wl_CXX='-Wl,'
13874 lt_prog_compiler_pic_CXX='-KPIC'
13875 lt_prog_compiler_static_CXX='-static'
13878 # Intel C++, used to be incompatible with GCC.
13879 # ICC 10 doesn't accept -KPIC any more.
13880 lt_prog_compiler_wl_CXX='-Wl,'
13881 lt_prog_compiler_pic_CXX='-fPIC'
13882 lt_prog_compiler_static_CXX='-static'
13885 # Portland Group C++ compiler
13886 lt_prog_compiler_wl_CXX='-Wl,'
13887 lt_prog_compiler_pic_CXX='-fpic'
13888 lt_prog_compiler_static_CXX='-Bstatic'
13892 # Make sure the PIC flag is empty. It appears that all Alpha
13893 # Linux and Compaq Tru64 Unix objects are PIC.
13894 lt_prog_compiler_pic_CXX=
13895 lt_prog_compiler_static_CXX='-non_shared'
13897 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13898 # IBM XL 8.0, 9.0 on PPC and BlueGene
13899 lt_prog_compiler_wl_CXX='-Wl,'
13900 lt_prog_compiler_pic_CXX='-qpic'
13901 lt_prog_compiler_static_CXX='-qstaticlink'
13904 case `$CC -V 2>&1 | sed 5q` in
13907 lt_prog_compiler_pic_CXX='-KPIC'
13908 lt_prog_compiler_static_CXX='-Bstatic'
13909 lt_prog_compiler_wl_CXX='-Qoption ld '
13920 case $cc_basename in
13922 lt_prog_compiler_pic_CXX='-W c,exportall'
13931 # QNX uses GNU C++, but need to define -shared option too, otherwise
13932 # it will coredump.
13933 lt_prog_compiler_pic_CXX='-fPIC -shared'
13935 osf3* | osf4* | osf5*)
13936 case $cc_basename in
13938 lt_prog_compiler_wl_CXX='--backend -Wl,'
13941 # Rational C++ 2.4.1
13942 lt_prog_compiler_pic_CXX='-pic'
13945 # Digital/Compaq C++
13946 lt_prog_compiler_wl_CXX='-Wl,'
13947 # Make sure the PIC flag is empty. It appears that all Alpha
13948 # Linux and Compaq Tru64 Unix objects are PIC.
13949 lt_prog_compiler_pic_CXX=
13950 lt_prog_compiler_static_CXX='-non_shared'
13959 case $cc_basename in
13961 # Sun C++ 4.2, 5.x and Centerline C++
13962 lt_prog_compiler_pic_CXX='-KPIC'
13963 lt_prog_compiler_static_CXX='-Bstatic'
13964 lt_prog_compiler_wl_CXX='-Qoption ld '
13967 # Green Hills C++ Compiler
13968 lt_prog_compiler_pic_CXX='-PIC'
13975 case $cc_basename in
13978 lt_prog_compiler_pic_CXX='-pic'
13979 lt_prog_compiler_static_CXX='-Bstatic'
13983 lt_prog_compiler_pic_CXX='-pic'
13989 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13990 case $cc_basename in
13992 lt_prog_compiler_wl_CXX='-Wl,'
13993 lt_prog_compiler_pic_CXX='-KPIC'
13994 lt_prog_compiler_static_CXX='-Bstatic'
13999 case $cc_basename in
14001 # NonStop-UX NCC 3.20
14002 lt_prog_compiler_pic_CXX='-KPIC'
14011 lt_prog_compiler_can_build_shared_CXX=no
14017 # For platforms which do not support PIC, -DPIC is meaningless:
14019 lt_prog_compiler_pic_CXX=
14022 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14028 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14029 $as_echo_n "(cached) " >&6
14031 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14034 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14035 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14038 # Check to make sure the PIC flag actually works.
14040 if test -n "$lt_prog_compiler_pic_CXX"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14043 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14044 $as_echo_n "(cached) " >&6
14046 lt_cv_prog_compiler_pic_works_CXX=no
14047 ac_outfile=conftest.$ac_objext
14048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14049 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14050 # Insert the option either (1) after the last *FLAGS variable, or
14051 # (2) before a word containing "conftest.", or (3) at the end.
14052 # Note that $ac_compile itself does not contain backslashes and begins
14053 # with a dollar sign (not a hyphen), so the echo should work correctly.
14054 # The option is referenced via a variable to avoid confusing sed.
14055 lt_compile=`echo "$ac_compile" | $SED \
14056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058 -e 's:$: $lt_compiler_flag:'`
14059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14060 (eval "$lt_compile" 2>conftest.err)
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 if (exit $ac_status) && test -s "$ac_outfile"; then
14065 # The compiler can only warn and ignore the option if not recognized
14066 # So say no if there are warnings other than the usual output.
14067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14070 lt_cv_prog_compiler_pic_works_CXX=yes
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14077 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14079 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14080 case $lt_prog_compiler_pic_CXX in
14082 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14085 lt_prog_compiler_pic_CXX=
14086 lt_prog_compiler_can_build_shared_CXX=no
14096 # Check to make sure the static flag actually works.
14098 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14100 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14101 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14102 $as_echo_n "(cached) " >&6
14104 lt_cv_prog_compiler_static_works_CXX=no
14105 save_LDFLAGS="$LDFLAGS"
14106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14109 # The linker can only warn and ignore the option if not recognized
14110 # So say no if there are warnings
14111 if test -s conftest.err; then
14112 # Append any errors to the config.log.
14113 cat conftest.err 1>&5
14114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14116 if diff conftest.exp conftest.er2 >/dev/null; then
14117 lt_cv_prog_compiler_static_works_CXX=yes
14120 lt_cv_prog_compiler_static_works_CXX=yes
14124 LDFLAGS="$save_LDFLAGS"
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14130 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14133 lt_prog_compiler_static_CXX=
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14141 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14142 $as_echo_n "(cached) " >&6
14144 lt_cv_prog_compiler_c_o_CXX=no
14145 $RM -r conftest 2>/dev/null
14149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14151 lt_compiler_flag="-o out/conftest2.$ac_objext"
14152 # Insert the option either (1) after the last *FLAGS variable, or
14153 # (2) before a word containing "conftest.", or (3) at the end.
14154 # Note that $ac_compile itself does not contain backslashes and begins
14155 # with a dollar sign (not a hyphen), so the echo should work correctly.
14156 lt_compile=`echo "$ac_compile" | $SED \
14157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159 -e 's:$: $lt_compiler_flag:'`
14160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14161 (eval "$lt_compile" 2>out/conftest.err)
14163 cat out/conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14167 # The compiler can only warn and ignore the option if not recognized
14168 # So say no if there are warnings
14169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14172 lt_cv_prog_compiler_c_o_CXX=yes
14177 # SGI C++ compiler will create directory out/ii_files/ for
14178 # template instantiation
14179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14180 $RM out/* && rmdir out
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14187 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14192 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14193 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14194 $as_echo_n "(cached) " >&6
14196 lt_cv_prog_compiler_c_o_CXX=no
14197 $RM -r conftest 2>/dev/null
14201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14203 lt_compiler_flag="-o out/conftest2.$ac_objext"
14204 # Insert the option either (1) after the last *FLAGS variable, or
14205 # (2) before a word containing "conftest.", or (3) at the end.
14206 # Note that $ac_compile itself does not contain backslashes and begins
14207 # with a dollar sign (not a hyphen), so the echo should work correctly.
14208 lt_compile=`echo "$ac_compile" | $SED \
14209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14211 -e 's:$: $lt_compiler_flag:'`
14212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14213 (eval "$lt_compile" 2>out/conftest.err)
14215 cat out/conftest.err >&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14219 # The compiler can only warn and ignore the option if not recognized
14220 # So say no if there are warnings
14221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14224 lt_cv_prog_compiler_c_o_CXX=yes
14229 # SGI C++ compiler will create directory out/ii_files/ for
14230 # template instantiation
14231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14232 $RM out/* && rmdir out
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14239 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14244 hard_links="nottested"
14245 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14246 # do not overwrite the value of need_locks provided by the user
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14248 $as_echo_n "checking if we can lock with hard links... " >&6; }
14251 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14253 ln conftest.a conftest.b 2>&5 || hard_links=no
14254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14256 $as_echo "$hard_links" >&6; }
14257 if test "$hard_links" = no; then
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14259 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14271 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14272 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14275 # If we're using GNU nm, then we don't want the "-C" option.
14276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14277 # Also, AIX nm treats weak defined symbols like other global defined
14278 # symbols, whereas GNU nm marks them as "W".
14279 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14280 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14282 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'
14286 export_symbols_cmds_CXX="$ltdll_cmds"
14288 cygwin* | mingw* | cegcc*)
14289 case $cc_basename in
14292 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14293 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14298 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14303 $as_echo "$ld_shlibs_CXX" >&6; }
14304 test "$ld_shlibs_CXX" = no && can_build_shared=no
14306 with_gnu_ld_CXX=$with_gnu_ld
14314 # Do we need to explicitly link libc?
14316 case "x$archive_cmds_need_lc_CXX" in
14318 # Assume -lc should be added
14319 archive_cmds_need_lc_CXX=yes
14321 if test "$enable_shared" = yes && test "$GCC" = yes; then
14322 case $archive_cmds_CXX in
14324 # FIXME: we may have to deal with multi-command sequences.
14327 # Test whether the compiler implicitly links with -lc since on some
14328 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14329 # to ld, don't add -lc before -lgcc.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14331 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14332 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14333 $as_echo_n "(cached) " >&6
14336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14339 (eval $ac_compile) 2>&5
14341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14342 test $ac_status = 0; } 2>conftest.err; then
14345 libobjs=conftest.$ac_objext
14347 wl=$lt_prog_compiler_wl_CXX
14348 pic_flag=$lt_prog_compiler_pic_CXX
14354 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14355 allow_undefined_flag_CXX=
14356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14357 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }
14362 lt_cv_archive_cmds_need_lc_CXX=no
14364 lt_cv_archive_cmds_need_lc_CXX=yes
14366 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14368 cat conftest.err 1>&5
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14374 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14375 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14448 library_names_spec=
14449 libname_spec='lib$name'
14453 postuninstall_cmds=
14457 shlibpath_overrides_runpath=unknown
14459 dynamic_linker="$host_os ld.so"
14460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14461 need_lib_prefix=unknown
14462 hardcode_into_libs=no
14464 # when you set need_version to no, make sure it does not cause -set_version
14465 # flags to be left without arguments
14466 need_version=unknown
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14472 shlibpath_var=LIBPATH
14474 # AIX 3 has no versioning support, so we append a major version to the name.
14475 soname_spec='${libname}${release}${shared_ext}$major'
14482 hardcode_into_libs=yes
14483 if test "$host_cpu" = ia64; then
14484 # AIX 5 supports IA64
14485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14486 shlibpath_var=LD_LIBRARY_PATH
14488 # With GCC up to 2.95.x, collect2 would create an import file
14489 # for dependence libraries. The import file would start with
14490 # the line `#! .'. This would cause the generated library to
14491 # depend on `.', always an invalid library. This was fixed in
14492 # development snapshots of GCC prior to 3.0.
14494 aix4 | aix4.[01] | aix4.[01].*)
14495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14497 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14500 can_build_shared=no
14504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14505 # soname into executable. Probably we can add versioning support to
14506 # collect2, so additional links can be useful in future.
14507 if test "$aix_use_runtimelinking" = yes; then
14508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14509 # instead of lib<name>.a to let people know that these are not
14510 # typical AIX shared libraries.
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 # We preserve .a as extension for shared libraries through AIX4.2
14514 # and later when we are not doing run time linking.
14515 library_names_spec='${libname}${release}.a $libname.a'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14518 shlibpath_var=LIBPATH
14525 # Since July 2007 AmigaOS4 officially supports .so libraries.
14526 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 library_names_spec='$libname.ixlibrary $libname.a'
14531 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14532 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14538 library_names_spec='${libname}${shared_ext}'
14539 dynamic_linker="$host_os ld.so"
14540 shlibpath_var=LIBRARY_PATH
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14551 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14552 # the default ld.so.conf also contains /usr/contrib/lib and
14553 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14554 # libtool to hard-code these into programs
14557 cygwin* | mingw* | pw32* | cegcc*)
14558 version_type=windows
14563 case $GCC,$cc_basename in
14566 library_names_spec='$libname.dll.a'
14567 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14568 postinstall_cmds='base_file=`basename \${file}`~
14569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14570 dldir=$destdir/`dirname \$dlpath`~
14571 test -d \$dldir || mkdir -p \$dldir~
14572 $install_prog $dir/$dlname \$dldir/$dlname~
14573 chmod a+x \$dldir/$dlname~
14574 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14575 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14577 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14578 dlpath=$dir/\$dldll~
14580 shlibpath_overrides_runpath=yes
14584 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14585 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14589 # MinGW DLLs use traditional 'lib' prefix
14590 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14593 # pw32 DLLs use 'pw' prefix rather than 'lib'
14594 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14597 dynamic_linker='Win32 ld.exe'
14602 libname_spec='$name'
14603 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14604 library_names_spec='${libname}.dll.lib'
14608 sys_lib_search_path_spec=
14611 for lt_path in $LIB
14614 # Let DOS variable expansion print the short 8.3 style file name.
14615 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14616 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14619 # Convert to MSYS style.
14620 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14623 # Convert to unix form, then to dos form, then back to unix form
14624 # but this time dos style (no spaces!) so that the unix form looks
14625 # like /cygdrive/c/PROGRA~1:/cygdr...
14626 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14627 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14628 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14631 sys_lib_search_path_spec="$LIB"
14632 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14633 # It is most probably a Windows format PATH.
14634 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14638 # FIXME: find the short name or the path components, as spaces are
14639 # common. (e.g. "Program Files" -> "PROGRA~1")
14643 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14644 postinstall_cmds='base_file=`basename \${file}`~
14645 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14646 dldir=$destdir/`dirname \$dlpath`~
14647 test -d \$dldir || mkdir -p \$dldir~
14648 $install_prog $dir/$dlname \$dldir/$dlname'
14649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14650 dlpath=$dir/\$dldll~
14652 shlibpath_overrides_runpath=yes
14653 dynamic_linker='Win32 link.exe'
14657 # Assume MSVC wrapper
14658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14659 dynamic_linker='Win32 ld.exe'
14662 # FIXME: first we should search . and the directory the executable is in
14666 darwin* | rhapsody*)
14667 dynamic_linker="$host_os dyld"
14668 version_type=darwin
14671 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14672 soname_spec='${libname}${release}${major}$shared_ext'
14673 shlibpath_overrides_runpath=yes
14674 shlibpath_var=DYLD_LIBRARY_PATH
14675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14693 freebsd* | dragonfly*)
14694 # DragonFly does not have aout. When/if they implement a new
14695 # versioning mechanism, adjust this.
14696 if test -x /usr/bin/objformat; then
14697 objformat=`/usr/bin/objformat`
14700 freebsd[123]*) objformat=aout ;;
14701 *) objformat=elf ;;
14704 version_type=freebsd-$objformat
14705 case $version_type in
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14716 shlibpath_var=LD_LIBRARY_PATH
14719 shlibpath_overrides_runpath=yes
14721 freebsd3.[01]* | freebsdelf3.[01]*)
14722 shlibpath_overrides_runpath=yes
14723 hardcode_into_libs=yes
14725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14727 shlibpath_overrides_runpath=no
14728 hardcode_into_libs=yes
14730 *) # from 4.6 on, and DragonFly
14731 shlibpath_overrides_runpath=yes
14732 hardcode_into_libs=yes
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 hardcode_into_libs=yes
14751 dynamic_linker="$host_os runtime_loader"
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 shlibpath_var=LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes
14756 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14757 hardcode_into_libs=yes
14760 hpux9* | hpux10* | hpux11*)
14761 # Give a soname corresponding to the major version so that dld.sl refuses to
14762 # link against other versions.
14769 hardcode_into_libs=yes
14770 dynamic_linker="$host_os dld.so"
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774 soname_spec='${libname}${release}${shared_ext}$major'
14775 if test "X$HPUX_IA64_MODE" = X32; then
14776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14784 hardcode_into_libs=yes
14785 dynamic_linker="$host_os dld.sl"
14786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14795 dynamic_linker="$host_os dld.sl"
14796 shlibpath_var=SHLIB_PATH
14797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799 soname_spec='${libname}${release}${shared_ext}$major'
14802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14803 postinstall_cmds='chmod 555 $lib'
14804 # or fails outright, so override atomically:
14805 install_override_mode=555
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=no
14817 hardcode_into_libs=yes
14820 irix5* | irix6* | nonstopux*)
14822 nonstopux*) version_type=nonstopux ;;
14824 if test "$lt_cv_prog_gnu_ld" = yes; then
14832 soname_spec='${libname}${release}${shared_ext}$major'
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14835 irix5* | nonstopux*)
14836 libsuff= shlibsuff=
14839 case $LD in # libtool.m4 will add one of these switches to LD
14840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14841 libsuff= shlibsuff= libmagic=32-bit;;
14842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14843 libsuff=32 shlibsuff=N32 libmagic=N32;;
14844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14846 *) libsuff= shlibsuff= libmagic=never-match;;
14850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14851 shlibpath_overrides_runpath=no
14852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14854 hardcode_into_libs=yes
14857 # No shared lib support for Linux oldld, aout, or coff.
14858 linux*oldld* | linux*aout* | linux*coff*)
14862 # This must be Linux ELF.
14863 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14870 shlibpath_var=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath=no
14873 # Some binutils ld are patched to set DT_RUNPATH
14874 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14875 $as_echo_n "(cached) " >&6
14877 lt_cv_shlibpath_overrides_runpath=no
14878 save_LDFLAGS=$LDFLAGS
14879 save_libdir=$libdir
14880 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14881 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14893 if ac_fn_cxx_try_link "$LINENO"; then :
14894 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14895 lt_cv_shlibpath_overrides_runpath=yes
14898 rm -f core conftest.err conftest.$ac_objext \
14899 conftest$ac_exeext conftest.$ac_ext
14900 LDFLAGS=$save_LDFLAGS
14901 libdir=$save_libdir
14905 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14907 # This implies no fast_install, which is unacceptable.
14908 # Some rework will be needed to allow for fast_install
14909 # before this can be enabled.
14910 hardcode_into_libs=yes
14912 # Append ld.so.conf contents to the search path
14913 if test -f /etc/ld.so.conf; then
14914 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14918 # We used to test for /lib/ld.so.1 and disable shared libraries on
14919 # powerpc, because MkLinux only supported shared libraries with the
14920 # GNU dynamic linker. Since this was broken with cross compilers,
14921 # most powerpc-linux boxes support dynamic linking these days and
14922 # people can always --disable-shared, the test was removed, and we
14923 # assume the GNU/Linux dynamic linker is in use.
14924 dynamic_linker='GNU/Linux ld.so'
14931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14934 dynamic_linker='NetBSD (a.out) ld.so'
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 dynamic_linker='NetBSD ld.elf_so'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 shlibpath_var=LD_LIBRARY_PATH
14949 shlibpath_overrides_runpath=yes
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=no
14960 hardcode_into_libs=yes
14961 dynamic_linker='ldqnx.so'
14966 sys_lib_dlsearch_path_spec="/usr/lib"
14968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14970 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14971 *) need_version=no ;;
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14975 shlibpath_var=LD_LIBRARY_PATH
14976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978 openbsd2.[89] | openbsd2.[89].*)
14979 shlibpath_overrides_runpath=no
14982 shlibpath_overrides_runpath=yes
14986 shlibpath_overrides_runpath=yes
14991 libname_spec='$name'
14994 library_names_spec='$libname${shared_ext} $libname.a'
14995 dynamic_linker='OS/2 ld.exe'
14996 shlibpath_var=LIBPATH
14999 osf3* | osf4* | osf5*)
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019 soname_spec='${libname}${release}${shared_ext}$major'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=yes
15022 hardcode_into_libs=yes
15023 # ldd complains unless libraries are executable
15024 postinstall_cmds='chmod +x $lib'
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15030 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=yes
15033 if test "$with_gnu_ld" = yes; then
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec='${libname}${release}${shared_ext}$major'
15043 shlibpath_var=LD_LIBRARY_PATH
15044 case $host_vendor in
15046 shlibpath_overrides_runpath=no
15048 runpath_var=LD_RUN_PATH
15056 shlibpath_overrides_runpath=no
15057 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15063 if test -d /usr/nec ;then
15065 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15066 soname_spec='$libname${shared_ext}.$major'
15067 shlibpath_var=LD_LIBRARY_PATH
15071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15072 version_type=freebsd-elf
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15076 soname_spec='${libname}${release}${shared_ext}$major'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 shlibpath_overrides_runpath=yes
15079 hardcode_into_libs=yes
15080 if test "$with_gnu_ld" = yes; then
15081 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15083 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15086 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15090 sys_lib_dlsearch_path_spec='/usr/lib'
15094 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 shlibpath_overrides_runpath=no
15101 hardcode_into_libs=yes
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15116 $as_echo "$dynamic_linker" >&6; }
15117 test "$dynamic_linker" = no && can_build_shared=no
15119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15120 if test "$GCC" = yes; then
15121 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15124 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15125 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15127 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15128 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15169 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15170 hardcode_action_CXX=
15171 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15172 test -n "$runpath_var_CXX" ||
15173 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15175 # We can hardcode non-existent directories.
15176 if test "$hardcode_direct_CXX" != no &&
15177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15178 # have to relink, otherwise we might link with an installed library
15179 # when we should be linking with a yet-to-be-installed one
15180 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15181 test "$hardcode_minus_L_CXX" != no; then
15182 # Linking always hardcodes the temporary library directory.
15183 hardcode_action_CXX=relink
15185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15186 hardcode_action_CXX=immediate
15189 # We cannot hardcode anything, or else we can only hardcode existing
15191 hardcode_action_CXX=unsupported
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15194 $as_echo "$hardcode_action_CXX" >&6; }
15196 if test "$hardcode_action_CXX" = relink ||
15197 test "$inherit_rpath_CXX" = yes; then
15198 # Fast installation is not supported
15199 enable_fast_install=no
15200 elif test "$shlibpath_overrides_runpath" = yes ||
15201 test "$enable_shared" = no; then
15202 # Fast installation is not necessary
15203 enable_fast_install=needless
15212 fi # test -n "$compiler"
15215 CFLAGS=$lt_save_CFLAGS
15219 with_gnu_ld=$lt_save_with_gnu_ld
15220 lt_cv_path_LDCXX=$lt_cv_path_LD
15221 lt_cv_path_LD=$lt_save_path_LD
15222 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15223 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15224 fi # test "$_lt_caught_CXX_error" != yes
15227 ac_cpp='$CPP $CPPFLAGS'
15228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15244 ac_config_commands="$ac_config_commands libtool"
15249 # Only expand once:
15254 LIBTOOL='${top_srcdir}/scripts/jlibtool'
15265 # Check whether --enable-strict-dependencies was given.
15266 if test "${enable_strict_dependencies+set}" = set; then :
15267 enableval=$enable_strict_dependencies;
15272 # Check whether --enable-boilermake was given.
15273 if test "${enable_boilermake+set}" = set; then :
15274 enableval=$enable_boilermake; case "$enableval" in
15287 if test "x$boilermake" == "xyes"; then
15291 docdir='${datadir}/doc/freeradius'
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15293 $as_echo_n "checking docdir... " >&6; }
15295 # Check whether --with-docdir was given.
15296 if test "${with_docdir+set}" = set; then :
15297 withval=$with_docdir; case "$withval" in
15303 [\\/$]* | ?:[\\/]* )
15307 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15315 $as_echo "$docdir" >&6; }
15316 if test "x$docdir" = xno; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15318 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15321 logdir='${localstatedir}/log/radius'
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15323 $as_echo_n "checking logdir... " >&6; }
15325 # Check whether --with-logdir was given.
15326 if test "${with_logdir+set}" = set; then :
15327 withval=$with_logdir; case "$withval" in
15329 as_fn_error $? "Need logdir" "$LINENO" 5
15333 [\\/$]* | ?:[\\/]* )
15337 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15345 $as_echo "$logdir" >&6; }
15347 radacctdir='${logdir}/radacct'
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15349 $as_echo_n "checking radacctdir... " >&6; }
15351 # Check whether --with-radacctdir was given.
15352 if test "${with_radacctdir+set}" = set; then :
15353 withval=$with_radacctdir; case "$withval" in
15355 as_fn_error $? "Need radacctdir" "$LINENO" 5
15359 [\\/$]* | ?:[\\/]* )
15360 radacctdir="$withval"
15363 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15371 $as_echo "$radacctdir" >&6; }
15373 raddbdir='${sysconfdir}/raddb'
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15375 $as_echo_n "checking raddbdir... " >&6; }
15377 # Check whether --with-raddbdir was given.
15378 if test "${with_raddbdir+set}" = set; then :
15379 withval=$with_raddbdir; case "$withval" in
15381 as_fn_error $? "Need raddbdir" "$LINENO" 5
15385 [\\/$]* | ?:[\\/]* )
15386 raddbdir="$withval"
15389 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15397 $as_echo "$raddbdir" >&6; }
15399 WITH_ASCEND_BINARY=yes
15401 # Check whether --with-ascend-binary was given.
15402 if test "${with_ascend_binary+set}" = set; then :
15403 withval=$with_ascend_binary; case "$withval" in
15407 WITH_ASCEND_BINARY=no
15412 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15414 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15420 # Check whether --with-threads was given.
15421 if test "${with_threads+set}" = set; then :
15422 withval=$with_threads; case "$withval" in
15434 # Check whether --with-tcp was given.
15435 if test "${with_tcp+set}" = set; then :
15436 withval=$with_tcp; case "$withval" in
15445 if test "x$WITH_TCP" = "xyes"; then
15447 $as_echo "#define WITH_TCP 1" >>confdefs.h
15453 # Check whether --with-vmps was given.
15454 if test "${with_vmps+set}" = set; then :
15455 withval=$with_vmps; case "$withval" in
15464 if test "x$WITH_VMPS" = "xyes"; then
15466 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15472 # Check whether --with-dhcp was given.
15473 if test "${with_dhcp+set}" = set; then :
15474 withval=$with_dhcp; case "$withval" in
15483 if test "x$WITH_DHCP" = "xyes"; then
15485 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15491 # Check whether --with-static_modules was given.
15492 if test "${with_static_modules+set}" = set; then :
15493 withval=$with_static_modules;
15494 for i in $withval; do
15495 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15503 # Check whether --with-modules was given.
15504 if test "${with_modules+set}" = set; then :
15505 withval=$with_modules;
15506 for i in $withval; do
15507 MODULES="$MODULES $i"
15515 # Check whether --with-experimental-modules was given.
15516 if test "${with_experimental_modules+set}" = set; then :
15517 withval=$with_experimental_modules; case "$withval" in
15532 # Check whether --with-openssl was given.
15533 if test "${with_openssl+set}" = set; then :
15534 withval=$with_openssl; case "$withval" in
15546 OPENSSL_INCLUDE_DIR=
15548 # Check whether --with-openssl-includes was given.
15549 if test "${with_openssl_includes+set}" = set; then :
15550 withval=$with_openssl_includes; case "$withval" in
15551 *) OPENSSL_INCLUDE_DIR="$withval"
15560 # Check whether --with-openssl-libraries was given.
15561 if test "${with_openssl_libraries+set}" = set; then :
15562 withval=$with_openssl_libraries; case "$withval" in
15563 *) OPENSSL_LIB_DIR="$withval"
15572 # Check whether --with-rlm-FOO-lib-dir was given.
15573 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15574 withval=$with_rlm_FOO_lib_dir; case "$withval" in
15583 # Check whether --with-rlm-FOO-include-dir was given.
15584 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15585 withval=$with_rlm_FOO_include_dir; case "$withval" in
15596 # Check whether --with-udpfromto was given.
15597 if test "${with_udpfromto+set}" = set; then :
15598 withval=$with_udpfromto; case "$withval" in
15609 if test "x$WITH_UDPFROMTO" = "xyes"; then
15611 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15617 # Extract the first word of "perl", so it can be a program name with args.
15618 set dummy perl; ac_word=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if ${ac_cv_path_PERL+:} false; then :
15622 $as_echo_n "(cached) " >&6
15626 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15644 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15648 PERL=$ac_cv_path_PERL
15649 if test -n "$PERL"; then
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15651 $as_echo "$PERL" >&6; }
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15654 $as_echo "no" >&6; }
15658 if test "x$ac_cv_path_PERL" = "x"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&5
15660 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad may not work" >&2;}
15662 # Extract the first word of "snmpget", so it can be a program name with args.
15663 set dummy snmpget; ac_word=$2
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15665 $as_echo_n "checking for $ac_word... " >&6; }
15666 if ${ac_cv_path_SNMPGET+:} false; then :
15667 $as_echo_n "(cached) " >&6
15671 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15675 for as_dir in $PATH
15678 test -z "$as_dir" && as_dir=.
15679 for ac_exec_ext in '' $ac_executable_extensions; do
15680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15681 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15692 SNMPGET=$ac_cv_path_SNMPGET
15693 if test -n "$SNMPGET"; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15695 $as_echo "$SNMPGET" >&6; }
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15698 $as_echo "no" >&6; }
15702 if test "x$ac_cv_path_SNMPGET" = "x"; then
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&5
15704 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad may not work" >&2;}
15707 # Extract the first word of "snmpwalk", so it can be a program name with args.
15708 set dummy snmpwalk; ac_word=$2
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15710 $as_echo_n "checking for $ac_word... " >&6; }
15711 if ${ac_cv_path_SNMPWALK+:} false; then :
15712 $as_echo_n "(cached) " >&6
15716 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15737 SNMPWALK=$ac_cv_path_SNMPWALK
15738 if test -n "$SNMPWALK"; then
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15740 $as_echo "$SNMPWALK" >&6; }
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15743 $as_echo "no" >&6; }
15747 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&5
15749 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad may not work" >&2;}
15752 # Extract the first word of "rusers", so it can be a program name with args.
15753 set dummy rusers; ac_word=$2
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15755 $as_echo_n "checking for $ac_word... " >&6; }
15756 if ${ac_cv_path_RUSERS+:} false; then :
15757 $as_echo_n "(cached) " >&6
15761 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15779 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15783 RUSERS=$ac_cv_path_RUSERS
15784 if test -n "$RUSERS"; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15786 $as_echo "$RUSERS" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15794 missing_dir=`cd $ac_aux_dir && pwd`
15795 # expand $ac_aux_dir to an absolute path
15796 am_aux_dir=`cd $ac_aux_dir && pwd`
15798 if test x"${MISSING+set}" != xset; then
15799 case $am_aux_dir in
15801 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15803 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15806 # Use eval to expand $SHELL
15807 if eval "$MISSING --run true"; then
15808 am_missing_run="$MISSING --run "
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15812 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15816 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15819 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15822 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15825 # Extract the first word of "locate", so it can be a program name with args.
15826 set dummy locate; ac_word=$2
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828 $as_echo_n "checking for $ac_word... " >&6; }
15829 if ${ac_cv_path_LOCATE+:} false; then :
15830 $as_echo_n "(cached) " >&6
15834 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15855 LOCATE=$ac_cv_path_LOCATE
15856 if test -n "$LOCATE"; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15858 $as_echo "$LOCATE" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15865 # Extract the first word of "dirname", so it can be a program name with args.
15866 set dummy dirname; ac_word=$2
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15868 $as_echo_n "checking for $ac_word... " >&6; }
15869 if ${ac_cv_path_DIRNAME+:} false; then :
15870 $as_echo_n "(cached) " >&6
15874 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15895 DIRNAME=$ac_cv_path_DIRNAME
15896 if test -n "$DIRNAME"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15898 $as_echo "$DIRNAME" >&6; }
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901 $as_echo "no" >&6; }
15905 # Extract the first word of "grep", so it can be a program name with args.
15906 set dummy grep; ac_word=$2
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908 $as_echo_n "checking for $ac_word... " >&6; }
15909 if ${ac_cv_path_GREP+:} false; then :
15910 $as_echo_n "(cached) " >&6
15914 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15921 test -z "$as_dir" && as_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15935 GREP=$ac_cv_path_GREP
15936 if test -n "$GREP"; then
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15938 $as_echo "$GREP" >&6; }
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941 $as_echo "no" >&6; }
15948 if test "x$WITH_THREADS" = "xyes"; then
15949 if test $ac_cv_prog_suncc = "yes"; then
15950 CFLAGS="$CFLAGS -mt"
15953 for ac_header in pthread.h
15955 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15956 if test "x$ac_cv_header_pthread_h" = xyes; then :
15957 cat >>confdefs.h <<_ACEOF
15958 #define HAVE_PTHREAD_H 1
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15969 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15970 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15971 $as_echo_n "(cached) " >&6
15973 ac_check_lib_save_LIBS=$LIBS
15974 LIBS="-lpthread $LIBS"
15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976 /* end confdefs.h. */
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15984 char pthread_create ();
15988 return pthread_create ();
15993 if ac_fn_c_try_link "$LINENO"; then :
15994 ac_cv_lib_pthread_pthread_create=yes
15996 ac_cv_lib_pthread_pthread_create=no
15998 rm -f core conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
16000 LIBS=$ac_check_lib_save_LIBS
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16003 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16004 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16005 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
16006 LIBS="-lpthread $LIBS"
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16009 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
16010 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
16011 $as_echo_n "(cached) " >&6
16013 ac_check_lib_save_LIBS=$LIBS
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16018 /* Override any GCC internal prototype to avoid an error.
16019 Use char because int might match the return type of a GCC
16020 builtin and then its argument prototype would still apply. */
16024 char pthread_create ();
16028 return pthread_create ();
16033 if ac_fn_c_try_link "$LINENO"; then :
16034 ac_cv_lib_c_r_pthread_create=yes
16036 ac_cv_lib_c_r_pthread_create=no
16038 rm -f core conftest.err conftest.$ac_objext \
16039 conftest$ac_exeext conftest.$ac_ext
16040 LIBS=$ac_check_lib_save_LIBS
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16043 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16044 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16045 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16056 if test "x$WITH_THREADS" != "xyes"; then
16058 ac_cv_header_pthread_h="no"
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16063 $as_echo_n "checking for library containing sem_init... " >&6; }
16064 if ${ac_cv_search_sem_init+:} false; then :
16065 $as_echo_n "(cached) " >&6
16067 ac_func_search_save_LIBS=$LIBS
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16071 /* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16081 return sem_init ();
16086 for ac_lib in '' pthread sem posix4 rt semaphore; do
16087 if test -z "$ac_lib"; then
16088 ac_res="none required"
16091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16093 if ac_fn_c_try_link "$LINENO"; then :
16094 ac_cv_search_sem_init=$ac_res
16096 rm -f core conftest.err conftest.$ac_objext \
16098 if ${ac_cv_search_sem_init+:} false; then :
16102 if ${ac_cv_search_sem_init+:} false; then :
16105 ac_cv_search_sem_init=no
16107 rm conftest.$ac_ext
16108 LIBS=$ac_func_search_save_LIBS
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16111 $as_echo "$ac_cv_search_sem_init" >&6; }
16112 ac_res=$ac_cv_search_sem_init
16113 if test "$ac_res" != no; then :
16114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16117 as_fn_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" "$LINENO" 5
16123 if test "x$WITH_THREADS" = "xyes"; then
16125 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16131 if ${ac_cv_lib_dl_dlopen+:} false; then :
16132 $as_echo_n "(cached) " >&6
16134 ac_check_lib_save_LIBS=$LIBS
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16139 /* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply. */
16154 if ac_fn_c_try_link "$LINENO"; then :
16155 ac_cv_lib_dl_dlopen=yes
16157 ac_cv_lib_dl_dlopen=no
16159 rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_LIBDL 1
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16176 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16177 if ${ac_cv_lib_socket_getsockname+:} false; then :
16178 $as_echo_n "(cached) " >&6
16180 ac_check_lib_save_LIBS=$LIBS
16181 LIBS="-lsocket $LIBS"
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 /* Override any GCC internal prototype to avoid an error.
16186 Use char because int might match the return type of a GCC
16187 builtin and then its argument prototype would still apply. */
16191 char getsockname ();
16195 return getsockname ();
16200 if ac_fn_c_try_link "$LINENO"; then :
16201 ac_cv_lib_socket_getsockname=yes
16203 ac_cv_lib_socket_getsockname=no
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16210 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16211 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16212 cat >>confdefs.h <<_ACEOF
16213 #define HAVE_LIBSOCKET 1
16216 LIBS="-lsocket $LIBS"
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16222 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16223 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16224 $as_echo_n "(cached) " >&6
16226 ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lresolv $LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16231 /* Override any GCC internal prototype to avoid an error.
16232 Use char because int might match the return type of a GCC
16233 builtin and then its argument prototype would still apply. */
16241 return inet_aton ();
16246 if ac_fn_c_try_link "$LINENO"; then :
16247 ac_cv_lib_resolv_inet_aton=yes
16249 ac_cv_lib_resolv_inet_aton=no
16251 rm -f core conftest.err conftest.$ac_objext \
16252 conftest$ac_exeext conftest.$ac_ext
16253 LIBS=$ac_check_lib_save_LIBS
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16256 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16257 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE_LIBRESOLV 1
16262 LIBS="-lresolv $LIBS"
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16268 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16269 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16270 $as_echo_n "(cached) " >&6
16272 ac_check_lib_save_LIBS=$LIBS
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16277 /* Override any GCC internal prototype to avoid an error.
16278 Use char because int might match the return type of a GCC
16279 builtin and then its argument prototype would still apply. */
16287 return inet_ntoa ();
16292 if ac_fn_c_try_link "$LINENO"; then :
16293 ac_cv_lib_nsl_inet_ntoa=yes
16295 ac_cv_lib_nsl_inet_ntoa=no
16297 rm -f core conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16299 LIBS=$ac_check_lib_save_LIBS
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16302 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16303 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16304 cat >>confdefs.h <<_ACEOF
16305 #define HAVE_LIBNSL 1
16314 if test "x$WITH_OPENSSL" = xyes; then
16316 old_LDFLAGS="$LDFLAGS"
16317 if test "x$OPENSSL_LIB_DIR" != "x"; then
16318 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16321 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16322 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16323 $as_echo_n "(cached) " >&6
16325 ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lcrypto $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16330 /* Override any GCC internal prototype to avoid an error.
16331 Use char because int might match the return type of a GCC
16332 builtin and then its argument prototype would still apply. */
16345 if ac_fn_c_try_link "$LINENO"; then :
16346 ac_cv_lib_crypto_DH_new=yes
16348 ac_cv_lib_crypto_DH_new=no
16350 rm -f core conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16355 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16356 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16358 LIBS="-lcrypto $LIBS"
16360 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16363 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16364 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16365 $as_echo_n "(cached) " >&6
16367 ac_check_lib_save_LIBS=$LIBS
16369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16372 /* Override any GCC internal prototype to avoid an error.
16373 Use char because int might match the return type of a GCC
16374 builtin and then its argument prototype would still apply. */
16387 if ac_fn_c_try_link "$LINENO"; then :
16388 ac_cv_lib_ssl_SSL_new=yes
16390 ac_cv_lib_ssl_SSL_new=no
16392 rm -f core conftest.err conftest.$ac_objext \
16393 conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16397 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16398 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16401 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16403 if test "x$OPENSSL_LIB_DIR" != "x"; then
16404 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16406 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16414 LDFLAGS="$old_LDFLAGS"
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16418 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16419 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16420 $as_echo_n "(cached) " >&6
16422 ac_check_lib_save_LIBS=$LIBS
16423 LIBS="-lws2_32 $LIBS"
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16427 /* Override any GCC internal prototype to avoid an error.
16428 Use char because int might match the return type of a GCC
16429 builtin and then its argument prototype would still apply. */
16442 if ac_fn_c_try_link "$LINENO"; then :
16443 ac_cv_lib_ws2_32_htonl=yes
16445 ac_cv_lib_ws2_32_htonl=no
16447 rm -f core conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
16449 LIBS=$ac_check_lib_save_LIBS
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16452 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16453 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16454 cat >>confdefs.h <<_ACEOF
16455 #define HAVE_LIBWS2_32 1
16458 LIBS="-lws2_32 $LIBS"
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16465 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16466 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16467 $as_echo_n "(cached) " >&6
16469 ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lpcap $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16474 /* Override any GCC internal prototype to avoid an error.
16475 Use char because int might match the return type of a GCC
16476 builtin and then its argument prototype would still apply. */
16480 char pcap_open_live ();
16484 return pcap_open_live ();
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 ac_cv_lib_pcap_pcap_open_live=yes
16492 ac_cv_lib_pcap_pcap_open_live=no
16494 rm -f core conftest.err conftest.$ac_objext \
16495 conftest$ac_exeext conftest.$ac_ext
16496 LIBS=$ac_check_lib_save_LIBS
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16499 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16500 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16503 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16508 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16514 $as_echo_n "checking for a readline compatible library... " >&6; }
16515 if ${vl_cv_lib_readline+:} false; then :
16516 $as_echo_n "(cached) " >&6
16520 for readline_lib in readline edit editline; do
16521 for termcap_lib in "" termcap curses ncurses; do
16522 if test -z "$termcap_lib"; then
16523 TRY_LIB="-l$readline_lib"
16525 TRY_LIB="-l$readline_lib -l$termcap_lib"
16527 LIBS="$ORIG_LIBS $TRY_LIB"
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16531 /* Override any GCC internal prototype to avoid an error.
16532 Use char because int might match the return type of a GCC
16533 builtin and then its argument prototype would still apply. */
16541 return readline ();
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 vl_cv_lib_readline="$TRY_LIB"
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -n "$vl_cv_lib_readline"; then
16552 LIBREADLINE="$TRY_LIB"
16556 if test -n "$vl_cv_lib_readline"; then
16560 if test -z "$vl_cv_lib_readline"; then
16561 vl_cv_lib_readline="no"
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16567 $as_echo "$vl_cv_lib_readline" >&6; }
16569 if test "$vl_cv_lib_readline" != "no"; then
16571 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16573 for ac_header in readline.h readline/readline.h
16575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16578 cat >>confdefs.h <<_ACEOF
16579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16587 $as_echo_n "checking whether readline supports history... " >&6; }
16588 if ${vl_cv_lib_readline_history+:} false; then :
16589 $as_echo_n "(cached) " >&6
16592 vl_cv_lib_readline_history="no"
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16596 /* Override any GCC internal prototype to avoid an error.
16597 Use char because int might match the return type of a GCC
16598 builtin and then its argument prototype would still apply. */
16602 char add_history ();
16606 return add_history ();
16611 if ac_fn_c_try_link "$LINENO"; then :
16612 vl_cv_lib_readline_history="yes"
16614 rm -f core conftest.err conftest.$ac_objext \
16615 conftest$ac_exeext conftest.$ac_ext
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16619 $as_echo "$vl_cv_lib_readline_history" >&6; }
16620 if test "$vl_cv_lib_readline_history" = "yes"; then
16622 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16624 for ac_header in history.h readline/history.h
16626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16627 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16629 cat >>confdefs.h <<_ACEOF
16630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16645 CFLAGS="$CFLAGS -D_ALL_SOURCE"
16648 CFLAGS="$CFLAGS -DDARWIN"
16649 LIBS="-framework DirectoryService $LIBS"
16653 ac_header_dirent=no
16654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16655 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16657 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16658 if eval \${$as_ac_Header+:} false; then :
16659 $as_echo_n "(cached) " >&6
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <sys/types.h>
16675 if ac_fn_c_try_compile "$LINENO"; then :
16676 eval "$as_ac_Header=yes"
16678 eval "$as_ac_Header=no"
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16682 eval ac_res=\$$as_ac_Header
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16685 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16686 cat >>confdefs.h <<_ACEOF
16687 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16690 ac_header_dirent=$ac_hdr; break
16694 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16695 if test $ac_header_dirent = dirent.h; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16697 $as_echo_n "checking for library containing opendir... " >&6; }
16698 if ${ac_cv_search_opendir+:} false; then :
16699 $as_echo_n "(cached) " >&6
16701 ac_func_search_save_LIBS=$LIBS
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16705 /* Override any GCC internal prototype to avoid an error.
16706 Use char because int might match the return type of a GCC
16707 builtin and then its argument prototype would still apply. */
16720 for ac_lib in '' dir; do
16721 if test -z "$ac_lib"; then
16722 ac_res="none required"
16725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16727 if ac_fn_c_try_link "$LINENO"; then :
16728 ac_cv_search_opendir=$ac_res
16730 rm -f core conftest.err conftest.$ac_objext \
16732 if ${ac_cv_search_opendir+:} false; then :
16736 if ${ac_cv_search_opendir+:} false; then :
16739 ac_cv_search_opendir=no
16741 rm conftest.$ac_ext
16742 LIBS=$ac_func_search_save_LIBS
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16745 $as_echo "$ac_cv_search_opendir" >&6; }
16746 ac_res=$ac_cv_search_opendir
16747 if test "$ac_res" != no; then :
16748 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16754 $as_echo_n "checking for library containing opendir... " >&6; }
16755 if ${ac_cv_search_opendir+:} false; then :
16756 $as_echo_n "(cached) " >&6
16758 ac_func_search_save_LIBS=$LIBS
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16777 for ac_lib in '' x; do
16778 if test -z "$ac_lib"; then
16779 ac_res="none required"
16782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16784 if ac_fn_c_try_link "$LINENO"; then :
16785 ac_cv_search_opendir=$ac_res
16787 rm -f core conftest.err conftest.$ac_objext \
16789 if ${ac_cv_search_opendir+:} false; then :
16793 if ${ac_cv_search_opendir+:} false; then :
16796 ac_cv_search_opendir=no
16798 rm conftest.$ac_ext
16799 LIBS=$ac_func_search_save_LIBS
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16802 $as_echo "$ac_cv_search_opendir" >&6; }
16803 ac_res=$ac_cv_search_opendir
16804 if test "$ac_res" != no; then :
16805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16812 $as_echo_n "checking for ANSI C header files... " >&6; }
16813 if ${ac_cv_header_stdc+:} false; then :
16814 $as_echo_n "(cached) " >&6
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818 #include <stdlib.h>
16819 #include <stdarg.h>
16820 #include <string.h>
16831 if ac_fn_c_try_compile "$LINENO"; then :
16832 ac_cv_header_stdc=yes
16834 ac_cv_header_stdc=no
16836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 if test $ac_cv_header_stdc = yes; then
16839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16842 #include <string.h>
16845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16846 $EGREP "memchr" >/dev/null 2>&1; then :
16849 ac_cv_header_stdc=no
16855 if test $ac_cv_header_stdc = yes; then
16856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #include <stdlib.h>
16862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16863 $EGREP "free" >/dev/null 2>&1; then :
16866 ac_cv_header_stdc=no
16872 if test $ac_cv_header_stdc = yes; then
16873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16874 if test "$cross_compiling" = yes; then :
16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16878 /* end confdefs.h. */
16880 #include <stdlib.h>
16881 #if ((' ' & 0x0FF) == 0x020)
16882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16885 # define ISLOWER(c) \
16886 (('a' <= (c) && (c) <= 'i') \
16887 || ('j' <= (c) && (c) <= 'r') \
16888 || ('s' <= (c) && (c) <= 'z'))
16889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16897 for (i = 0; i < 256; i++)
16898 if (XOR (islower (i), ISLOWER (i))
16899 || toupper (i) != TOUPPER (i))
16904 if ac_fn_c_try_run "$LINENO"; then :
16907 ac_cv_header_stdc=no
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16910 conftest.$ac_objext conftest.beam conftest.$ac_ext
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16916 $as_echo "$ac_cv_header_stdc" >&6; }
16917 if test $ac_cv_header_stdc = yes; then
16919 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16924 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16925 if ${ac_cv_header_time+:} false; then :
16926 $as_echo_n "(cached) " >&6
16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h. */
16930 #include <sys/types.h>
16931 #include <sys/time.h>
16937 if ((struct tm *) 0)
16943 if ac_fn_c_try_compile "$LINENO"; then :
16944 ac_cv_header_time=yes
16946 ac_cv_header_time=no
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16951 $as_echo "$ac_cv_header_time" >&6; }
16952 if test $ac_cv_header_time = yes; then
16954 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16959 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16960 if ${ac_cv_header_sys_wait_h+:} false; then :
16961 $as_echo_n "(cached) " >&6
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965 #include <sys/types.h>
16966 #include <sys/wait.h>
16967 #ifndef WEXITSTATUS
16968 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16971 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16979 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985 ac_cv_header_sys_wait_h=yes
16987 ac_cv_header_sys_wait_h=no
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16992 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16993 if test $ac_cv_header_sys_wait_h = yes; then
16995 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17044 cat >>confdefs.h <<_ACEOF
17045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17053 for ac_header in net/if.h
17055 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17056 # include <sys/socket.h>
17060 if test "x$ac_cv_header_net_if_h" = xyes; then :
17061 cat >>confdefs.h <<_ACEOF
17062 #define HAVE_NET_IF_H 1
17071 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17074 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17079 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17081 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17086 LIBS="$LIBS -lpcreposix"
17089 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17090 if test "x$ac_cv_header_regex_h" = xyes; then :
17092 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17097 if test "x$ac_cv_header_regex_h" = "xyes"; then
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17104 #ifdef REG_EXTENDED
17109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17110 $EGREP "yes" >/dev/null 2>&1; then :
17112 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17124 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17127 $as_echo "#define OSFC2 /**/" >>confdefs.h
17131 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17134 $as_echo "#define OSFSIA /**/" >>confdefs.h
17138 OPENSSL_INCLUDE="-DNO_OPENSSL"
17139 if test "x$WITH_OPENSSL" = xyes; then
17140 if test "x$OPENSSL_LIBS" = "x"; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17142 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17144 old_CPPFLAGS=$CPPFLAGS
17145 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17146 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17148 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17163 cat >>confdefs.h <<_ACEOF
17164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17174 if test "x$OPENSSL_LIBS" != "x"; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17176 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17179 #include <openssl/crypto.h>
17180 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17186 $EGREP "yes" >/dev/null 2>&1; then :
17191 if test "x$goodssl" != "xyes"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193 $as_echo "no" >&6; }
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197 $as_echo "yes" >&6; }
17198 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17199 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17201 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17205 CPPFLAGS=$old_CPPFLAGS
17210 export OPENSSL_LIBS
17212 if test "x$PCAP_LIBS" = x; then
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17214 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17216 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17217 if test "x$ac_cv_header_pcap_h" = xyes; then :
17219 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17224 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17231 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17232 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17233 $as_echo_n "(cached) " >&6
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lpcap $LIBS"
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17240 /* Override any GCC internal prototype to avoid an error.
17241 Use char because int might match the return type of a GCC
17242 builtin and then its argument prototype would still apply. */
17246 char pcap_fopen_offline ();
17250 return pcap_fopen_offline ();
17255 if ac_fn_c_try_link "$LINENO"; then :
17256 ac_cv_lib_pcap_pcap_fopen_offline=yes
17258 ac_cv_lib_pcap_pcap_fopen_offline=no
17260 rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17265 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17266 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17268 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17274 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17275 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17276 $as_echo_n "(cached) " >&6
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lpcap $LIBS"
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17289 char pcap_dump_fopen ();
17293 return pcap_dump_fopen ();
17298 if ac_fn_c_try_link "$LINENO"; then :
17299 ac_cv_lib_pcap_pcap_dump_fopen=yes
17301 ac_cv_lib_pcap_pcap_dump_fopen=no
17303 rm -f core conftest.err conftest.$ac_objext \
17304 conftest$ac_exeext conftest.$ac_ext
17305 LIBS=$ac_check_lib_save_LIBS
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17308 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17309 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17311 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17321 if test "x$ac_cv_type_off_t" = xyes; then :
17325 cat >>confdefs.h <<_ACEOF
17326 #define off_t long int
17331 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17332 if test "x$ac_cv_type_pid_t" = xyes; then :
17336 cat >>confdefs.h <<_ACEOF
17342 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17343 if test "x$ac_cv_type_size_t" = xyes; then :
17347 cat >>confdefs.h <<_ACEOF
17348 #define size_t unsigned int
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17354 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17355 if ${ac_cv_type_uid_t+:} false; then :
17356 $as_echo_n "(cached) " >&6
17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17360 #include <sys/types.h>
17363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17364 $EGREP "uid_t" >/dev/null 2>&1; then :
17365 ac_cv_type_uid_t=yes
17367 ac_cv_type_uid_t=no
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17373 $as_echo "$ac_cv_type_uid_t" >&6; }
17374 if test $ac_cv_type_uid_t = no; then
17376 $as_echo "#define uid_t int" >>confdefs.h
17379 $as_echo "#define gid_t int" >>confdefs.h
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17386 $as_echo_n "checking for socklen_t... " >&6; }
17387 if ${ac_cv_type_socklen_t+:} false; then :
17388 $as_echo_n "(cached) " >&6
17390 ac_cv_type_socklen_t=no
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 #ifdef HAVE_SYS_TYPES_H
17394 #include <sys/types.h>
17396 #ifdef HAVE_SYS_SOCKET_H
17397 #include <sys/socket.h>
17408 if ac_fn_c_try_compile "$LINENO"; then :
17409 ac_cv_type_socklen_t=yes
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17416 $as_echo "$ac_cv_type_socklen_t" >&6; }
17418 if test "$ac_cv_type_socklen_t" != "yes"; then
17420 $as_echo "#define socklen_t int" >>confdefs.h
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17427 $as_echo_n "checking for uint8_t... " >&6; }
17428 if ${ac_cv_type_uint8_t+:} false; then :
17429 $as_echo_n "(cached) " >&6
17431 ac_cv_type_uint8_t=no
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17434 #ifdef HAVE_INTTYPES_H
17435 #include <inttypes.h>
17437 #ifdef HAVE_STDINT_H
17438 #include <stdint.h>
17449 if ac_fn_c_try_compile "$LINENO"; then :
17450 ac_cv_type_uint8_t=yes
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17457 $as_echo "$ac_cv_type_uint8_t" >&6; }
17459 if test "$ac_cv_type_uint8_t" != "yes"; then
17461 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17468 $as_echo_n "checking for uint16_t... " >&6; }
17469 if ${ac_cv_type_uint16_t+:} false; then :
17470 $as_echo_n "(cached) " >&6
17472 ac_cv_type_uint16_t=no
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 #ifdef HAVE_INTTYPES_H
17476 #include <inttypes.h>
17478 #ifdef HAVE_STDINT_H
17479 #include <stdint.h>
17490 if ac_fn_c_try_compile "$LINENO"; then :
17491 ac_cv_type_uint16_t=yes
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17498 $as_echo "$ac_cv_type_uint16_t" >&6; }
17500 if test "$ac_cv_type_uint16_t" != "yes"; then
17502 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17509 $as_echo_n "checking for uint32_t... " >&6; }
17510 if ${ac_cv_type_uint32_t+:} false; then :
17511 $as_echo_n "(cached) " >&6
17513 ac_cv_type_uint32_t=no
17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 #ifdef HAVE_INTTYPES_H
17517 #include <inttypes.h>
17519 #ifdef HAVE_STDINT_H
17520 #include <stdint.h>
17531 if ac_fn_c_try_compile "$LINENO"; then :
17532 ac_cv_type_uint32_t=yes
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17539 $as_echo "$ac_cv_type_uint32_t" >&6; }
17541 if test "$ac_cv_type_uint32_t" != "yes"; then
17543 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17548 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17549 #ifdef HAVE_NETINET_IN_H
17550 #include <netinet/in.h>
17554 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17556 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17561 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17562 #ifdef HAVE_NETINET_IN_H
17563 #include <netinet/in.h>
17565 #ifdef HAVE_SYS_SOCKET_H
17566 #include <sys/socket.h>
17570 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17572 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17577 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17578 #ifdef HAVE_NETINET_IN_H
17579 #include <netinet/in.h>
17583 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17585 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17590 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17591 #ifdef HAVE_SYS_TYPES_H
17592 #include <sys/types.h>
17594 #ifdef HAVE_SYS_SOCKET_H
17595 #include <sys/socket.h>
17597 #ifdef HAVE_NETDB_H
17602 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17604 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17644 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17647 cat >>confdefs.h <<_ACEOF
17648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17665 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17666 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17667 $as_echo_n "(cached) " >&6
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17673 #include <string.h>
17674 #ifdef HAVE_UNISTD_H
17675 #include <unistd.h>
17677 #ifdef HAVE_CRYPT_H
17680 #ifdef HAVE_ERRNO_H
17683 #ifdef HAVE_RESOURCE_H
17684 #include <resource.h>
17686 #ifdef HAVE_GETOPT_H
17687 #include <getopt.h>
17689 #ifdef HAVE_MALLOC_H
17690 #include <malloc.h>
17695 #ifdef HAVE_UTMPX_H
17698 #ifdef HAVE_SYS_SELECT_H
17699 #include <sys/select.h>
17701 #ifdef HAVE_DLFCN_H
17704 #ifdef HAVE_REGEX_H
17707 #ifdef HAVE_SYSLOG_H
17708 #include <syslog.h>
17710 #ifdef HAVE_INTTYPES_H
17711 #include <inttypes.h>
17713 #ifdef HAVE_STDINT_H
17714 #include <stdint.h>
17716 #ifdef HAVE_ARPA_INET_H
17717 #include <arpa/inet.h>
17723 char *(*pfn) = (char *(*)) $ac_func
17728 if ac_fn_c_try_compile "$LINENO"; then :
17729 eval "radius_cv_decl_needed_$ac_func=no"
17731 eval "radius_cv_decl_needed_$ac_func=yes"
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17738 $as_echo "yes" >&6; }
17739 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17740 cat >>confdefs.h <<_ACEOF
17741 #define $radius_tr_decl 1
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17746 $as_echo "no" >&6; }
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17753 $as_echo_n "checking return type of signal handlers... " >&6; }
17754 if ${ac_cv_type_signal+:} false; then :
17755 $as_echo_n "(cached) " >&6
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17759 #include <sys/types.h>
17760 #include <signal.h>
17765 return *(signal (0, 0)) (0) == 1;
17770 if ac_fn_c_try_compile "$LINENO"; then :
17771 ac_cv_type_signal=int
17773 ac_cv_type_signal=void
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17778 $as_echo "$ac_cv_type_signal" >&6; }
17780 cat >>confdefs.h <<_ACEOF
17781 #define RETSIGTYPE $ac_cv_type_signal
17786 if test "x$ac_cv_header_utmpx_h" = "xyes"
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17790 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17797 #ifdef HAVE_STDDEF_H
17798 #include <stddef.h>
17801 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17807 int foo = offsetof(struct utmpx, ut_xtime)
17812 if ac_fn_c_try_compile "$LINENO"; then :
17817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17820 if test "x$has_element" != "x"; then
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17822 $as_echo "yes" >&6; }
17823 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17826 $as_echo "no" >&6; }
17827 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17830 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17833 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17840 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17844 /* end confdefs.h. */
17846 #include <netinet/in.h>
17847 #ifdef HAVE_STDDEF_H
17848 #include <stddef.h>
17851 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17857 int foo = offsetof(struct in_pktinfo, ipi_addr)
17862 if ac_fn_c_try_compile "$LINENO"; then :
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17869 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17870 if test "x$has_element" != "x"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17880 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17883 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17889 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17895 #include <netinet/in.h>
17896 #ifdef HAVE_STDDEF_H
17897 #include <stddef.h>
17900 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17906 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17911 if ac_fn_c_try_compile "$LINENO"; then :
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17919 if test "x$has_element" != "x"; then
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17921 $as_echo "yes" >&6; }
17922 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 $as_echo "no" >&6; }
17926 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17929 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17932 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17938 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17939 if ${ac_cv_c_const+:} false; then :
17940 $as_echo_n "(cached) " >&6
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17949 #ifndef __cplusplus
17950 /* Ultrix mips cc rejects this sort of thing. */
17951 typedef int charset[2];
17952 const charset cs = { 0, 0 };
17953 /* SunOS 4.1.1 cc rejects this. */
17954 char const *const *pcpcc;
17956 /* NEC SVR4.0.2 mips cc rejects this. */
17957 struct point {int x, y;};
17958 static struct point const zero = {0,0};
17959 /* AIX XL C 1.02.0.0 rejects this.
17960 It does not let you subtract one const X* pointer from another in
17961 an arm of an if-expression whose if-part is not a constant
17963 const char *g = "string";
17964 pcpcc = &g + (g ? g-g : 0);
17965 /* HPUX 7.0 cc rejects these. */
17967 ppc = (char**) pcpcc;
17968 pcpcc = (char const *const *) ppc;
17969 { /* SCO 3.2v4 cc rejects this sort of thing. */
17972 char const *s = 0 ? (char *) 0 : (char const *) 0;
17977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17978 int x[] = {25, 17};
17979 const int *foo = &x[0];
17982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17983 typedef const int *iptr;
17987 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17989 struct s { int j; const int *ap[3]; } bx;
17990 struct s *b = &bx; b->j = 5;
17992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17993 const int foo = 10;
17994 if (!foo) return 0;
17996 return !cs[0] && !zero.x;
18003 if ac_fn_c_try_compile "$LINENO"; then :
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18011 $as_echo "$ac_cv_c_const" >&6; }
18012 if test $ac_cv_c_const = no; then
18014 $as_echo "#define const /**/" >>confdefs.h
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
18020 $as_echo_n "checking type of OS... " >&6; }
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
18023 $as_echo "$OS" >&6; }
18024 if test "$OS" = "OS/2"; then
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
18032 $as_echo_n "checking for developer gcc flags... " >&6; }
18035 if test "x$developer" = "xyes"; then
18036 if test "x$GCC" = "xyes"; then
18037 devflags="-Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -Wformat-y2k -Wno-format-extra-args -Wno-format-zero-length -Wformat-nonliteral -Wformat-security -Wformat=2"
18038 CFLAGS="$CFLAGS $devflags"
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
18041 $as_echo "yes. Using $devflags" >&6; }
18044 if test "x$EXPERIMENTAL" != "xno"; then
18049 CFLAGS="$CFLAGS -DNDEBUG"
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18052 $as_echo "no." >&6; }
18055 if test -d $srcdir/.git -a "x$GIT" = "xyes"; then
18056 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18058 cat >>confdefs.h <<_ACEOF
18059 #define RADIUSD_VERSION_COMMIT "${RADIUSD_VERSION_COMMIT}"
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18066 $as_echo_n "checking for TLS... " >&6; }
18067 if test "$cross_compiling" = yes; then :
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18072 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18074 if ac_fn_c_try_run "$LINENO"; then :
18079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18080 conftest.$ac_objext conftest.beam conftest.$ac_ext
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18084 $as_echo "$have_tls" >&6; }
18085 if test "$have_tls" = "yes"; then
18087 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18094 LIBS="$LIBS $LIBLTDL"
18095 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18096 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18098 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18104 talloc_include_dir=
18106 # Check whether --with-talloc-include-dir was given.
18107 if test "${with_talloc_include_dir+set}" = set; then :
18108 withval=$with_talloc_include_dir; case "$withval" in
18110 as_fn_error $? "Need talloc-include-dir" "$LINENO" 5
18115 talloc_include_dir="$withval"
18122 smart_try_dir="$talloc_include_dir"
18125 ac_safe=`echo "talloc.h" | sed 'y%./+-%__pm%'`
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for talloc.h" >&5
18127 $as_echo_n "checking for talloc.h... " >&6; }
18129 old_CFLAGS="$CFLAGS"
18133 if test "x$smart_try_dir" != "x"; then
18134 for try in $smart_try_dir; do
18135 CFLAGS="$old_CFLAGS -I$try"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18139 #include <talloc.h>
18148 if ac_fn_c_try_compile "$LINENO"; then :
18149 smart_include="-I$try"
18153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18154 if test "x$smart_include" != "x"; then
18158 CFLAGS="$old_CFLAGS"
18161 if test "x$smart_include" = "x"; then
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18165 #include <talloc.h>
18174 if ac_fn_c_try_compile "$LINENO"; then :
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18182 if test "x$smart_include" = "x"; then
18185 if test "x$LOCATE" != "x"; then
18189 for x in `${LOCATE} $file 2>/dev/null`; do
18190 base=`echo $x | sed "s%/${file}%%"`
18191 if test "x$x" = "x$base"; then
18195 dir=`${DIRNAME} $x 2>/dev/null`
18196 exclude=`echo ${dir} | ${GREP} /home`
18197 if test "x$exclude" != "x"; then
18201 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
18202 if test "x$already" = "x"; then
18208 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
18211 for try in $smart_include_dir /usr/local/include /opt/include; do
18212 CFLAGS="$old_CFLAGS -I$try"
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18216 #include <talloc.h>
18225 if ac_fn_c_try_compile "$LINENO"; then :
18226 smart_include="-I$try"
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 if test "x$smart_include" != "x"; then
18235 CFLAGS="$old_CFLAGS"
18238 if test "x$smart_include" != "x"; then
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18240 $as_echo "yes" >&6; }
18241 eval "ac_cv_header_$ac_safe=yes"
18242 CFLAGS="$old_CFLAGS $smart_include"
18243 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246 $as_echo "no" >&6; }
18249 if test "x$ac_cv_header_talloc_h" != "xyes"; then
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&5
18252 $as_echo "$as_me: WARNING: talloc headers not found. Use --with-talloc-include-dir=<path>." >&2;}
18253 as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
18255 INCLUDE+="${SMART_CFLAGS}"
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18260 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18261 if ${ac_cv_lib_crypt_crypt+:} false; then :
18262 $as_echo_n "(cached) " >&6
18264 ac_check_lib_save_LIBS=$LIBS
18265 LIBS="-lcrypt $LIBS"
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18269 /* Override any GCC internal prototype to avoid an error.
18270 Use char because int might match the return type of a GCC
18271 builtin and then its argument prototype would still apply. */
18284 if ac_fn_c_try_link "$LINENO"; then :
18285 ac_cv_lib_crypt_crypt=yes
18287 ac_cv_lib_crypt_crypt=no
18289 rm -f core conftest.err conftest.$ac_objext \
18290 conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18294 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18295 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18300 if test "$CRYPTLIB" != ""; then
18302 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18305 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18306 if test "x$ac_cv_func_crypt" = xyes; then :
18308 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18315 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18316 if ${ac_cv_lib_cipher_setkey+:} false; then :
18317 $as_echo_n "(cached) " >&6
18319 ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-lcipher $LIBS"
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 /* Override any GCC internal prototype to avoid an error.
18325 Use char because int might match the return type of a GCC
18326 builtin and then its argument prototype would still apply. */
18339 if ac_fn_c_try_link "$LINENO"; then :
18340 ac_cv_lib_cipher_setkey=yes
18342 ac_cv_lib_cipher_setkey=no
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18349 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18350 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18351 CRYPTLIB="${CRYPTLIB} -lcipher"
18358 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18361 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18364 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18366 gethostbyaddrrstyle=""
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18368 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18371 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18372 #ifdef HAVE_NETDB_H
18377 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18383 cat >>confdefs.h <<_ACEOF
18384 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18386 if test $ac_have_decl = 1; then :
18391 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18393 gethostbyaddrrstyle=BSD
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18395 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18401 if test "x$gethostbyaddrrstyle" = "x"; then
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18411 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18416 if ac_fn_c_try_link "$LINENO"; then :
18419 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18421 gethostbyaddrrstyle=GNU
18424 rm -f core conftest.err conftest.$ac_objext \
18425 conftest$ac_exeext conftest.$ac_ext
18427 if test "x$gethostbyaddrrstyle" = "x"; then
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18437 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18442 if ac_fn_c_try_link "$LINENO"; then :
18445 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18447 gethostbyaddrrstyle=SYSV
18450 rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18453 if test "x$gethostbyaddrrstyle" = "x"; then
18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18455 /* end confdefs.h. */
18463 gethostbyaddr(NULL, 0, 0)
18468 if ac_fn_c_try_link "$LINENO"; then :
18471 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18473 gethostbyaddrrstyle=BSD
18476 rm -f core conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18480 if test "x$gethostbyaddrrstyle" = "x"; then
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18482 $as_echo "none! It must not exist, here." >&6; }
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18485 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18488 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18490 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18493 gethostbynamerstyle=""
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18495 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18505 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18510 if ac_fn_c_try_link "$LINENO"; then :
18513 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18515 gethostbynamerstyle=GNU
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 if test "x$gethostbynamerstyle" = "x"; then
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18530 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18535 if ac_fn_c_try_link "$LINENO"; then :
18538 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18540 gethostbynamerstyle=SYSV
18543 rm -f core conftest.err conftest.$ac_objext \
18544 conftest$ac_exeext conftest.$ac_ext
18546 if test "x$gethostbynamerstyle" = "x"; then
18547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h. */
18556 gethostbyname(NULL)
18561 if ac_fn_c_try_link "$LINENO"; then :
18564 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18566 gethostbynamerstyle=BSD
18569 rm -f core conftest.err conftest.$ac_objext \
18570 conftest$ac_exeext conftest.$ac_ext
18573 if test "x$gethostbynamerstyle" = "x"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18575 $as_echo "none! It must not exist, here." >&6; }
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18578 $as_echo "${gethostbynamerstyle}-style" >&6; }
18581 if test "x$gethostbynamerstyle" = "xBSD"; then
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18583 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18587 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18590 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18594 $as_echo_n "checking ctime_r() syntax... " >&6; }
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18603 ctime_r(NULL, NULL, 0)
18608 if ac_fn_c_try_link "$LINENO"; then :
18611 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18613 ctimerstyle="SOLARIS"
18616 rm -f core conftest.err conftest.$ac_objext \
18617 conftest$ac_exeext conftest.$ac_ext
18618 if test "x$ctimerstyle" = "x"; then
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h. */
18627 ctime_r(NULL, NULL)
18632 if ac_fn_c_try_link "$LINENO"; then :
18635 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18637 ctimerstyle="POSIX"
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18644 if test "x$ctimerstyle" = "x"; then
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18646 $as_echo "none! It must not exist, here." >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18649 $as_echo "${ctimerstyle}-style" >&6; }
18657 export top_builddir
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18659 $as_echo "top_builddir=$top_builddir" >&6; }
18667 if test "x$EXPERIMENTAL" = "xyes"; then
18668 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18669 MODULES="$MODULES $foo"
18672 for foo in `cat "${srcdir}"/src/modules/stable`; do
18673 MODULES="$MODULES $foo"
18678 for bar in $MODULES; do
18679 if test -f "${srcdir}"/src/modules/$bar/configure; then
18680 mysubdirs="$mysubdirs src/modules/$bar"
18686 subdirs="$subdirs $mysubdirs"
18691 ac_config_commands="$ac_config_commands stamp-h"
18693 ac_config_commands="$ac_config_commands build-radpaths-h"
18695 ac_config_commands="$ac_config_commands main-chmod"
18697 ac_config_commands="$ac_config_commands scripts-chmod"
18703 USE_SHARED_LIBS=$enable_shared
18705 USE_STATIC_LIBS=$enable_static
18710 unset ac_cv_env_LIBS_set
18711 unset ac_cv_env_LIBS_value
18713 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radrelay.conf ./raddb/radiusd.conf"
18715 cat >confcache <<\_ACEOF
18716 # This file is a shell script that caches the results of configure
18717 # tests run on this system so they can be shared between configure
18718 # scripts and configure runs, see configure's option --config-cache.
18719 # It is not useful on other systems. If it contains results you don't
18720 # want to keep, you may remove or edit it.
18722 # config.status only pays attention to the cache file if you give it
18723 # the --recheck option to rerun configure.
18725 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18726 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18727 # following values.
18731 # The following way of writing the cache mishandles newlines in values,
18732 # but we know of no workaround that is simple, portable, and efficient.
18733 # So, we kill variables containing newlines.
18734 # Ultrix sh set writes to stderr and can't be redirected directly,
18735 # and sets the high bit in the cache file unless we assign to the vars.
18737 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18738 eval ac_val=\$$ac_var
18742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18746 _ | IFS | as_nl) ;; #(
18747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18748 *) { eval $ac_var=; unset $ac_var;} ;;
18754 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18755 *${as_nl}ac_space=\ *)
18756 # `set' does not quote correctly, so add quotes: double-quote
18757 # substitution turns \\\\ into \\, and sed turns \\ into \.
18760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18763 # `set' quotes correctly as required by POSIX, so do not add quotes.
18764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18775 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18777 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18778 if test -w "$cache_file"; then
18779 if test "x$cache_file" != "x/dev/null"; then
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18781 $as_echo "$as_me: updating cache $cache_file" >&6;}
18782 if test ! -f "$cache_file" || test -h "$cache_file"; then
18783 cat confcache >"$cache_file"
18785 case $cache_file in #(
18787 mv -f confcache "$cache_file"$$ &&
18788 mv -f "$cache_file"$$ "$cache_file" ;; #(
18790 mv -f confcache "$cache_file" ;;
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18796 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18801 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18802 # Let make expand exec_prefix.
18803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18805 DEFS=-DHAVE_CONFIG_H
18810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18811 # 1. Remove the extension, and $U if already installed.
18812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18813 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18815 # will be set to the directory where LIBOBJS objects are built.
18816 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18817 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18819 LIBOBJS=$ac_libobjs
18821 LTLIBOBJS=$ac_ltlibobjs
18826 : "${CONFIG_STATUS=./config.status}"
18828 ac_clean_files_save=$ac_clean_files
18829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18833 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18835 # Generated by $as_me.
18836 # Run this file to recreate the current configuration.
18837 # Compiler output produced by configure, useful for debugging
18838 # configure, is in config.log if it exists.
18841 ac_cs_recheck=false
18844 SHELL=\${CONFIG_SHELL-$SHELL}
18847 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18848 ## -------------------- ##
18849 ## M4sh Initialization. ##
18850 ## -------------------- ##
18852 # Be more Bourne compatible
18853 DUALCASE=1; export DUALCASE # for MKS sh
18854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18857 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18858 # is contrary to our usage. Disable this feature.
18859 alias -g '${1+"$@"}'='"$@"'
18860 setopt NO_GLOB_SUBST
18862 case `(set -o) 2>/dev/null` in #(
18874 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18875 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18878 # Prefer a ksh shell builtin over an external printf program on Solaris,
18879 # but without wasting forks for bash or zsh.
18880 if test -z "$BASH_VERSION$ZSH_VERSION" \
18881 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18882 as_echo='print -r --'
18883 as_echo_n='print -rn --'
18884 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18885 as_echo='printf %s\n'
18886 as_echo_n='printf %s'
18888 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18889 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18890 as_echo_n='/usr/ucb/echo -n'
18892 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18893 as_echo_n_body='eval
18897 expr "X$arg" : "X\\(.*\\)$as_nl";
18898 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18900 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18902 export as_echo_n_body
18903 as_echo_n='sh -c $as_echo_n_body as_echo'
18905 export as_echo_body
18906 as_echo='sh -c $as_echo_body as_echo'
18909 # The user is always right.
18910 if test "${PATH_SEPARATOR+set}" != set; then
18912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18920 # We need space, tab and new line, in precisely that order. Quoting is
18921 # there to prevent editors from complaining about space-tab.
18922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18923 # splitting by setting IFS to empty value.)
18926 # Find who we are. Look in the path if we contain no directory separator.
18929 *[\\/]* ) as_myself=$0 ;;
18930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18931 for as_dir in $PATH
18934 test -z "$as_dir" && as_dir=.
18935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18941 # We did not find ourselves, most probably we were run as `sh COMMAND'
18942 # in which case we are not to be found in the path.
18943 if test "x$as_myself" = x; then
18946 if test ! -f "$as_myself"; then
18947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18951 # Unset variables that we do not need and which cause bugs (e.g. in
18952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18953 # suppresses any "Segmentation fault" message there. '((' could
18954 # trigger a bug in pdksh 5.2.14.
18955 for as_var in BASH_ENV ENV MAIL MAILPATH
18956 do eval test x\${$as_var+set} = xset \
18957 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18970 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18974 # ----------------------------------------
18975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18977 # script with STATUS, using 1 if that was 0.
18980 as_status=$1; test $as_status -eq 0 && as_status=1
18982 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18985 $as_echo "$as_me: error: $2" >&2
18986 as_fn_exit $as_status
18990 # as_fn_set_status STATUS
18991 # -----------------------
18992 # Set $? to STATUS, without forking.
18993 as_fn_set_status ()
18996 } # as_fn_set_status
18998 # as_fn_exit STATUS
18999 # -----------------
19000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19004 as_fn_set_status $1
19010 # Portably unset VAR.
19013 { eval $1=; unset $1;}
19015 as_unset=as_fn_unset
19016 # as_fn_append VAR VALUE
19017 # ----------------------
19018 # Append the text in VALUE to the end of the definition contained in VAR. Take
19019 # advantage of any shell optimizations that allow amortized linear growth over
19020 # repeated appends, instead of the typical quadratic growth present in naive
19022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19023 eval 'as_fn_append ()
19034 # as_fn_arith ARG...
19035 # ------------------
19036 # Perform arithmetic evaluation on the ARGs, and store the result in the
19037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19038 # must be portable across $(()) and expr.
19039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19040 eval 'as_fn_arith ()
19047 as_val=`expr "$@" || test $? -eq 1`
19052 if expr a : '\(a\)' >/dev/null 2>&1 &&
19053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19060 as_basename=basename
19065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19071 as_me=`$as_basename -- "$0" ||
19072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19073 X"$0" : 'X\(//\)$' \| \
19074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19076 sed '/^.*\/\([^/][^/]*\)\/*$/{
19090 # Avoid depending upon Character Ranges.
19091 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19094 as_cr_digits='0123456789'
19095 as_cr_alnum=$as_cr_Letters$as_cr_digits
19097 ECHO_C= ECHO_N= ECHO_T=
19098 case `echo -n x` in #(((((
19100 case `echo 'xy\c'` in
19101 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19103 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19110 rm -f conf$$ conf$$.exe conf$$.file
19111 if test -d conf$$.dir; then
19112 rm -f conf$$.dir/conf$$.file
19115 mkdir conf$$.dir 2>/dev/null
19117 if (echo >conf$$.file) 2>/dev/null; then
19118 if ln -s conf$$.file conf$$ 2>/dev/null; then
19120 # ... but there are two gotchas:
19121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19123 # In both cases, we have to default to `cp -pR'.
19124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19126 elif ln conf$$.file conf$$ 2>/dev/null; then
19134 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19135 rmdir conf$$.dir 2>/dev/null
19140 # Create "$as_dir" as a directory, including parents if necessary.
19145 -*) as_dir=./$as_dir;;
19147 test -d "$as_dir" || eval $as_mkdir_p || {
19151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19152 *) as_qdir=$as_dir;;
19154 as_dirs="'$as_qdir' $as_dirs"
19155 as_dir=`$as_dirname -- "$as_dir" ||
19156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19157 X"$as_dir" : 'X\(//\)[^/]' \| \
19158 X"$as_dir" : 'X\(//\)$' \| \
19159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19160 $as_echo X"$as_dir" |
19161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19165 /^X\(\/\/\)[^/].*/{
19178 test -d "$as_dir" && break
19180 test -z "$as_dirs" || eval "mkdir $as_dirs"
19181 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19185 if mkdir -p . 2>/dev/null; then
19186 as_mkdir_p='mkdir -p "$as_dir"'
19188 test -d ./-p && rmdir ./-p
19193 # as_fn_executable_p FILE
19194 # -----------------------
19195 # Test if FILE is an executable regular file.
19196 as_fn_executable_p ()
19198 test -f "$1" && test -x "$1"
19199 } # as_fn_executable_p
19200 as_test_x='test -x'
19201 as_executable_p=as_fn_executable_p
19203 # Sed expression to map a string onto a valid CPP name.
19204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19206 # Sed expression to map a string onto a valid variable name.
19207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19211 ## ----------------------------------- ##
19212 ## Main body of $CONFIG_STATUS script. ##
19213 ## ----------------------------------- ##
19215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19218 # Save the log message, to keep $0 and so on meaningful, and to
19219 # report actual input values of CONFIG_FILES etc. instead of their
19220 # values after options handling.
19222 This file was extended by freeradius $as_me $Id$, which was
19223 generated by GNU Autoconf 2.69. Invocation command line was
19225 CONFIG_FILES = $CONFIG_FILES
19226 CONFIG_HEADERS = $CONFIG_HEADERS
19227 CONFIG_LINKS = $CONFIG_LINKS
19228 CONFIG_COMMANDS = $CONFIG_COMMANDS
19231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19236 case $ac_config_files in *"
19237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19240 case $ac_config_headers in *"
19241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19246 # Files that config.status was made for.
19247 config_files="$ac_config_files"
19248 config_headers="$ac_config_headers"
19249 config_commands="$ac_config_commands"
19253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19255 \`$as_me' instantiates files and other configuration actions
19256 from templates according to the current configuration. Unless the files
19257 and actions are specified as TAGs, all are instantiated by default.
19259 Usage: $0 [OPTION]... [TAG]...
19261 -h, --help print this help, then exit
19262 -V, --version print version number and configuration settings, then exit
19263 --config print configuration, then exit
19264 -q, --quiet, --silent
19265 do not print progress messages
19266 -d, --debug don't remove temporary files
19267 --recheck update $as_me by reconfiguring in the same conditions
19268 --file=FILE[:TEMPLATE]
19269 instantiate the configuration file FILE
19270 --header=FILE[:TEMPLATE]
19271 instantiate the configuration header FILE
19273 Configuration files:
19276 Configuration headers:
19279 Configuration commands:
19282 Report bugs to <http://bugs.freeradius.org>.
19283 freeradius home page: <http://www.freeradius.org>."
19286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19287 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19289 freeradius config.status $Id$
19290 configured by $0, generated by GNU Autoconf 2.69,
19291 with options \\"\$ac_cs_config\\"
19293 Copyright (C) 2012 Free Software Foundation, Inc.
19294 This config.status script is free software; the Free Software Foundation
19295 gives unlimited permission to copy, distribute and modify it."
19300 test -n "\$AWK" || AWK=awk
19303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19304 # The default lists apply if the user does not specify any file.
19310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19327 # Handling of the options.
19328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19331 $as_echo "$ac_cs_version"; exit ;;
19332 --config | --confi | --conf | --con | --co | --c )
19333 $as_echo "$ac_cs_config"; exit ;;
19334 --debug | --debu | --deb | --de | --d | -d )
19336 --file | --fil | --fi | --f )
19339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19340 '') as_fn_error $? "missing file argument" ;;
19342 as_fn_append CONFIG_FILES " '$ac_optarg'"
19343 ac_need_defaults=false;;
19344 --header | --heade | --head | --hea )
19347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19350 ac_need_defaults=false;;
19352 # Conflict between --help and --header
19353 as_fn_error $? "ambiguous option: \`$1'
19354 Try \`$0 --help' for more information.";;
19355 --help | --hel | -h )
19356 $as_echo "$ac_cs_usage"; exit ;;
19357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19361 # This is an error.
19362 -*) as_fn_error $? "unrecognized option: \`$1'
19363 Try \`$0 --help' for more information." ;;
19365 *) as_fn_append ac_config_targets " $1"
19366 ac_need_defaults=false ;;
19372 ac_configure_extra_args=
19374 if $ac_cs_silent; then
19376 ac_configure_extra_args="$ac_configure_extra_args --silent"
19380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19381 if \$ac_cs_recheck; then
19382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19385 CONFIG_SHELL='$SHELL'
19386 export CONFIG_SHELL
19391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19396 ## Running $as_me. ##
19402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19408 # The HP-UX ksh and POSIX shell print the target directory to stdout
19409 # if CDPATH is set.
19410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19412 sed_quote_subst='$sed_quote_subst'
19413 double_quote_subst='$double_quote_subst'
19414 delay_variable_subst='$delay_variable_subst'
19415 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19416 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19417 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19418 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19419 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19420 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19421 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19422 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19423 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19424 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19425 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19426 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19427 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19428 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19429 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19430 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19431 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19432 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19433 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19434 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19435 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19436 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19437 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19438 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19439 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19440 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19441 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19442 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19443 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19444 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19445 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19446 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19447 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19448 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19449 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19450 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19451 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19452 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19453 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19454 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19455 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19456 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19457 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19458 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19459 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19460 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19461 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19462 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19463 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19464 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19465 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19466 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19467 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19468 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19469 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19471 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19472 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19473 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19474 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19475 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19476 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19477 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19478 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19479 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19480 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19481 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19482 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19483 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19484 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19485 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19486 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19487 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19488 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19489 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19490 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19491 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19492 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19493 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19494 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19495 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19496 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19497 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19498 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19499 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19500 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19501 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19502 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19503 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19504 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19505 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19506 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19507 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19508 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19509 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19510 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19511 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19512 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19513 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19514 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19515 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19516 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19517 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19518 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19519 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19520 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19521 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19522 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19523 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19524 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19525 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19526 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19527 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19528 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19529 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19530 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19531 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19532 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19533 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19534 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19535 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19536 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19537 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19538 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19539 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19540 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19541 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19542 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19543 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19544 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19545 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19546 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19547 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19548 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19549 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19550 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19551 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19552 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19553 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19554 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19555 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19556 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19557 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19558 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19559 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19560 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19561 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19562 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19563 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19564 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19565 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19566 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19567 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19568 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19569 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19570 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19571 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19572 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19573 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19574 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19575 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19576 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19577 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19578 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19579 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19580 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19581 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19582 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19583 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19584 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19585 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19586 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19587 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19588 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19589 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19590 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19591 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19592 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19593 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19594 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19595 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19596 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19597 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19598 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19599 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19602 LTCFLAGS='$LTCFLAGS'
19603 compiler='$compiler_DEFAULT'
19605 # A function that is used when there is no print builtin or printf.
19606 func_fallback_echo ()
19608 eval 'cat <<_LTECHO_EOF
19613 # Quote evaled strings.
19627 deplibs_check_method \
19632 sharedlib_from_linklib_cmd \
19635 archiver_list_spec \
19641 lt_cv_sys_global_symbol_pipe \
19642 lt_cv_sys_global_symbol_to_cdecl \
19643 lt_cv_sys_global_symbol_to_c_name_address \
19644 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19645 nm_file_list_spec \
19646 lt_prog_compiler_no_builtin_flag \
19647 lt_prog_compiler_pic \
19648 lt_prog_compiler_wl \
19649 lt_prog_compiler_static \
19650 lt_cv_prog_compiler_c_o \
19659 export_dynamic_flag_spec \
19660 whole_archive_flag_spec \
19661 compiler_needs_object \
19663 allow_undefined_flag \
19664 no_undefined_flag \
19665 hardcode_libdir_flag_spec \
19666 hardcode_libdir_flag_spec_ld \
19667 hardcode_libdir_separator \
19671 variables_saved_for_relink \
19673 library_names_spec \
19675 install_override_mode \
19679 compiler_lib_search_dirs \
19684 compiler_lib_search_path \
19688 lt_prog_compiler_no_builtin_flag_CXX \
19689 lt_prog_compiler_pic_CXX \
19690 lt_prog_compiler_wl_CXX \
19691 lt_prog_compiler_static_CXX \
19692 lt_cv_prog_compiler_c_o_CXX \
19693 export_dynamic_flag_spec_CXX \
19694 whole_archive_flag_spec_CXX \
19695 compiler_needs_object_CXX \
19697 allow_undefined_flag_CXX \
19698 no_undefined_flag_CXX \
19699 hardcode_libdir_flag_spec_CXX \
19700 hardcode_libdir_flag_spec_ld_CXX \
19701 hardcode_libdir_separator_CXX \
19702 exclude_expsyms_CXX \
19703 include_expsyms_CXX \
19704 file_list_spec_CXX \
19705 compiler_lib_search_dirs_CXX \
19706 predep_objects_CXX \
19707 postdep_objects_CXX \
19710 compiler_lib_search_path_CXX; do
19711 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19712 *[\\\\\\\`\\"\\\$]*)
19713 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19716 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19721 # Double-quote double-evaled strings.
19722 for var in reload_cmds \
19723 old_postinstall_cmds \
19724 old_postuninstall_cmds \
19726 extract_expsyms_cmds \
19727 old_archive_from_new_cmds \
19728 old_archive_from_expsyms_cmds \
19730 archive_expsym_cmds \
19732 module_expsym_cmds \
19733 export_symbols_cmds \
19737 postuninstall_cmds \
19739 sys_lib_search_path_spec \
19740 sys_lib_dlsearch_path_spec \
19742 old_archive_cmds_CXX \
19743 old_archive_from_new_cmds_CXX \
19744 old_archive_from_expsyms_cmds_CXX \
19746 archive_expsym_cmds_CXX \
19748 module_expsym_cmds_CXX \
19749 export_symbols_cmds_CXX \
19751 postlink_cmds_CXX; do
19752 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19753 *[\\\\\\\`\\"\\\$]*)
19754 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19757 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19762 xsi_shell='$xsi_shell'
19763 lt_shell_append='$lt_shell_append'
19765 # See if we are running on zsh, and set the options which allow our
19766 # commands through without removal of \ escapes INIT.
19767 if test -n "\${ZSH_VERSION+set}" ; then
19768 setopt NO_GLOB_SUBST
19774 TIMESTAMP='$TIMESTAMP'
19785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19787 # Handling of arguments.
19788 for ac_config_target in $ac_config_targets
19790 case $ac_config_target in
19791 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19793 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19794 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19795 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19796 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19797 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19798 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19799 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19800 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19801 "./src/main/checkrad") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad" ;;
19802 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19803 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19804 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19805 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19806 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19807 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19808 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19809 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19810 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19812 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19817 # If the user did not use the arguments to specify the items to instantiate,
19818 # then the envvar interface is used. Set only those that are not.
19819 # We use the long form for the default assignment because of an extremely
19820 # bizarre bug on SunOS 4.1.3.
19821 if $ac_need_defaults; then
19822 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19823 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19824 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19827 # Have a temporary directory for convenience. Make it in the build tree
19828 # simply because there is no reason against having it here, and in addition,
19829 # creating and moving files from /tmp can sometimes cause problems.
19830 # Hook for its removal unless debugging.
19831 # Note that there is a small window in which the directory will not be cleaned:
19832 # after its creation but before its name has been assigned to `$tmp'.
19836 trap 'exit_status=$?
19837 : "${ac_tmp:=$tmp}"
19838 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19840 trap 'as_fn_exit 1' 1 2 13 15
19842 # Create a (secure) tmp directory for tmp files.
19845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19849 tmp=./conf$$-$RANDOM
19850 (umask 077 && mkdir "$tmp")
19851 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19854 # Set up the scripts for CONFIG_FILES section.
19855 # No need to generate them if there are no CONFIG_FILES.
19856 # This happens for instance with `./config.status config.h'.
19857 if test -n "$CONFIG_FILES"; then
19860 ac_cr=`echo X | tr X '\015'`
19861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19862 # But we know of no other shell where ac_cr would be empty at this
19863 # point, so we can use a bashism as a fallback.
19864 if test "x$ac_cr" = x; then
19865 eval ac_cr=\$\'\\r\'
19867 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19871 ac_cs_awk_cr=$ac_cr
19874 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19879 echo "cat >conf$$subs.awk <<_ACEOF" &&
19880 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19882 } >conf$$subs.sh ||
19883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19884 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19886 for ac_last_try in false false false false false :; do
19887 . ./conf$$subs.sh ||
19888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19890 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19891 if test $ac_delim_n = $ac_delim_num; then
19893 elif $ac_last_try; then
19894 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19896 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19899 rm -f conf$$subs.sh
19901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19906 s/^/S["/; s/!.*/"]=/
19916 s/\(.\{148\}\)..*/\1/
19918 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19923 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19930 s/\(.\{148\}\)..*/\1/
19932 s/["\\]/\\&/g; s/^/"/; s/$/"/
19936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19941 ' <conf$$subs.awk | sed '
19946 ' >>$CONFIG_STATUS || ac_write_fail=1
19947 rm -f conf$$subs.awk
19948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19951 for (key in S) S_is_set[key] = 1
19957 nfields = split(line, field, "@")
19959 len = length(field[1])
19960 for (i = 2; i < nfields; i++) {
19962 keylen = length(key)
19963 if (S_is_set[key]) {
19965 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19966 len += length(value) + length(field[++i])
19977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19978 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19979 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19982 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19983 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19986 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19987 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19988 # trailing colons and then remove the whole line if VPATH becomes empty
19989 # (actually we leave an empty line to preserve line numbers).
19990 if test "x$srcdir" = x.; then
19991 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20010 fi # test -n "$CONFIG_FILES"
20012 # Set up the scripts for CONFIG_HEADERS section.
20013 # No need to generate them if there are no CONFIG_HEADERS.
20014 # This happens for instance with `./config.status Makefile'.
20015 if test -n "$CONFIG_HEADERS"; then
20016 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20020 # Transform confdefs.h into an awk script `defines.awk', embedded as
20021 # here-document in config.status, that substitutes the proper values into
20022 # config.h.in to produce config.h.
20024 # Create a delimiter string that does not exist in confdefs.h, to ease
20025 # handling of long lines.
20027 for ac_last_try in false false :; do
20028 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20029 if test -z "$ac_tt"; then
20031 elif $ac_last_try; then
20032 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20038 # For the awk script, D is an array of macro values keyed by name,
20039 # likewise P contains macro parameters if any. Preserve backslash
20040 # newline sequences.
20042 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20044 s/.\{148\}/&'"$ac_delim"'/g
20047 s/^[ ]*#[ ]*define[ ][ ]*/ /
20054 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20056 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20061 D["\1"]=" \3\\\\\\n"\\/p
20063 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20068 s/.\{148\}/&'"$ac_delim"'/g
20073 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20076 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20078 ' <confdefs.h | sed '
20079 s/'"$ac_delim"'/"\\\
20080 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20083 for (key in D) D_is_set[key] = 1
20086 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20088 split(line, arg, " ")
20089 if (arg[1] == "#") {
20093 defundef = substr(arg[1], 2)
20096 split(mac1, mac2, "(") #)
20098 prefix = substr(line, 1, index(line, defundef) - 1)
20099 if (D_is_set[macro]) {
20100 # Preserve the white space surrounding the "#".
20101 print prefix "define", macro P[macro] D[macro]
20104 # Replace #undef with comments. This is necessary, for example,
20105 # in the case of _POSIX_SOURCE, which is predefined and required
20106 # on some systems where configure will not decide to define it.
20107 if (defundef == "undef") {
20108 print "/*", prefix defundef, macro, "*/"
20116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20117 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20118 fi # test -n "$CONFIG_HEADERS"
20121 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20126 :[FHLC]) ac_mode=$ac_tag; continue;;
20128 case $ac_mode$ac_tag in
20130 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20131 :[FH]-) ac_tag=-:-;;
20132 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20149 -) ac_f="$ac_tmp/stdin";;
20150 *) # Look for the file first in the build tree, then in the source tree
20151 # (if the path is not absolute). The absolute path cannot be DOS-style,
20152 # because $ac_f cannot contain `:'.
20156 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20158 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20160 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20161 as_fn_append ac_file_inputs " '$ac_f'"
20164 # Let's still pretend it is `configure' which instantiates (i.e., don't
20165 # use $as_me), people would be surprised to read:
20166 # /* config.h. Generated by config.status. */
20167 configure_input='Generated from '`
20168 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20170 if test x"$ac_file" != x-; then
20171 configure_input="$ac_file. $configure_input"
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20173 $as_echo "$as_me: creating $ac_file" >&6;}
20175 # Neutralize special characters interpreted by sed in replacement strings.
20176 case $configure_input in #(
20177 *\&* | *\|* | *\\* )
20178 ac_sed_conf_input=`$as_echo "$configure_input" |
20179 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20180 *) ac_sed_conf_input=$configure_input;;
20184 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20190 ac_dir=`$as_dirname -- "$ac_file" ||
20191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20192 X"$ac_file" : 'X\(//\)[^/]' \| \
20193 X"$ac_file" : 'X\(//\)$' \| \
20194 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20195 $as_echo X"$ac_file" |
20196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20200 /^X\(\/\/\)[^/].*/{
20213 as_dir="$ac_dir"; as_fn_mkdir_p
20217 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20219 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20220 # A ".." for each directory in $ac_dir_suffix.
20221 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20222 case $ac_top_builddir_sub in
20223 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20224 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20227 ac_abs_top_builddir=$ac_pwd
20228 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20229 # for backward compatibility:
20230 ac_top_builddir=$ac_top_build_prefix
20233 .) # We are building in place.
20235 ac_top_srcdir=$ac_top_builddir_sub
20236 ac_abs_top_srcdir=$ac_pwd ;;
20237 [\\/]* | ?:[\\/]* ) # Absolute name.
20238 ac_srcdir=$srcdir$ac_dir_suffix;
20239 ac_top_srcdir=$srcdir
20240 ac_abs_top_srcdir=$srcdir ;;
20241 *) # Relative name.
20242 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20243 ac_top_srcdir=$ac_top_build_prefix$srcdir
20244 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20246 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258 # If the template does not know about datarootdir, expand it.
20259 # FIXME: This hack should be removed a few years after 2.60.
20260 ac_datarootdir_hack=; ac_datarootdir_seen=
20271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20272 *datarootdir*) ac_datarootdir_seen=yes;;
20273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20278 ac_datarootdir_hack='
20279 s&@datadir@&$datadir&g
20280 s&@docdir@&$docdir&g
20281 s&@infodir@&$infodir&g
20282 s&@localedir@&$localedir&g
20283 s&@mandir@&$mandir&g
20284 s&\\\${datarootdir}&$datarootdir&g' ;;
20288 # Neutralize VPATH when `$srcdir' = `.'.
20289 # Shell code in configure.ac might set extrasub.
20290 # FIXME: do we really want to maintain this feature?
20291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20292 ac_sed_extra="$ac_vpsub
20295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20298 s|@configure_input@|$ac_sed_conf_input|;t t
20299 s&@top_builddir@&$ac_top_builddir_sub&;t t
20300 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20301 s&@srcdir@&$ac_srcdir&;t t
20302 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20303 s&@top_srcdir@&$ac_top_srcdir&;t t
20304 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20305 s&@builddir@&$ac_builddir&;t t
20306 s&@abs_builddir@&$ac_abs_builddir&;t t
20307 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20308 $ac_datarootdir_hack
20310 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20318 which seems to be undefined. Please make sure it is defined" >&5
20319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20320 which seems to be undefined. Please make sure it is defined" >&2;}
20322 rm -f "$ac_tmp/stdin"
20324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20333 if test x"$ac_file" != x-; then
20335 $as_echo "/* $configure_input */" \
20336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20337 } >"$ac_tmp/config.h" \
20338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20344 mv "$ac_tmp/config.h" "$ac_file" \
20345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20348 $as_echo "/* $configure_input */" \
20349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20350 || as_fn_error $? "could not create -" "$LINENO" 5
20354 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20355 $as_echo "$as_me: executing $ac_file commands" >&6;}
20360 case $ac_file$ac_mode in
20363 # See if we are running on zsh, and set the options which allow our
20364 # commands through without removal of \ escapes.
20365 if test -n "${ZSH_VERSION+set}" ; then
20366 setopt NO_GLOB_SUBST
20369 cfgfile="${ofile}T"
20370 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20373 cat <<_LT_EOF >> "$cfgfile"
20376 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20377 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20382 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20384 # Written by Gordon Matzigkeit, 1996
20386 # This file is part of GNU Libtool.
20388 # GNU Libtool is free software; you can redistribute it and/or
20389 # modify it under the terms of the GNU General Public License as
20390 # published by the Free Software Foundation; either version 2 of
20391 # the License, or (at your option) any later version.
20393 # As a special exception to the GNU General Public License,
20394 # if you distribute this file as part of a program or library that
20395 # is built using GNU Libtool, you may include this file under the
20396 # same distribution terms that you use for the rest of that program.
20398 # GNU Libtool is distributed in the hope that it will be useful,
20399 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20401 # GNU General Public License for more details.
20403 # You should have received a copy of the GNU General Public License
20404 # along with GNU Libtool; see the file COPYING. If not, a copy
20405 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20406 # obtained by writing to the Free Software Foundation, Inc.,
20407 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20410 # The names of the tagged configurations supported by this script.
20411 available_tags="CXX "
20413 # ### BEGIN LIBTOOL CONFIG
20415 # Which release of libtool.m4 was used?
20416 macro_version=$macro_version
20417 macro_revision=$macro_revision
20419 # Whether or not to build shared libraries.
20420 build_libtool_libs=$enable_shared
20422 # Whether or not to build static libraries.
20423 build_old_libs=$enable_static
20425 # What type of objects to build.
20428 # Whether or not to optimize for fast installation.
20429 fast_install=$enable_fast_install
20431 # Shell to use when invoking shell scripts.
20434 # An echo program that protects backslashes.
20438 host_alias=$host_alias
20442 # The build system.
20443 build_alias=$build_alias
20447 # A sed program that does not truncate output.
20450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20451 Xsed="\$SED -e 1s/^X//"
20453 # A grep program that handles long lines.
20459 # A literal string matcher.
20462 # A BSD- or MS-compatible name lister.
20465 # Whether we need soft or hard links.
20468 # What is the maximum length of a command?
20469 max_cmd_len=$max_cmd_len
20471 # Object file suffix (normally "o").
20474 # Executable file suffix (normally "").
20477 # whether the shell understands "unset".
20480 # turn spaces into newlines.
20483 # turn newlines into spaces.
20486 # convert \$build file names to \$host format.
20487 to_host_file_cmd=$lt_cv_to_host_file_cmd
20489 # convert \$build files to toolchain format.
20490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20492 # An object symbol dumper.
20493 OBJDUMP=$lt_OBJDUMP
20495 # Method to check whether dependent libraries are shared objects.
20496 deplibs_check_method=$lt_deplibs_check_method
20498 # Command to use when deplibs_check_method = "file_magic".
20499 file_magic_cmd=$lt_file_magic_cmd
20501 # How to find potential files when deplibs_check_method = "file_magic".
20502 file_magic_glob=$lt_file_magic_glob
20504 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20505 want_nocaseglob=$lt_want_nocaseglob
20507 # DLL creation program.
20508 DLLTOOL=$lt_DLLTOOL
20510 # Command to associate shared and link libraries.
20511 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20516 # Flags to create an archive.
20517 AR_FLAGS=$lt_AR_FLAGS
20519 # How to feed a file listing to the archiver.
20520 archiver_list_spec=$lt_archiver_list_spec
20522 # A symbol stripping program.
20525 # Commands used to install an old-style archive.
20527 old_postinstall_cmds=$lt_old_postinstall_cmds
20528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20530 # Whether to use a lock for old archive extraction.
20531 lock_old_archive_extraction=$lock_old_archive_extraction
20536 # LTCC compiler flags.
20537 LTCFLAGS=$lt_CFLAGS
20539 # Take the output of nm and produce a listing of raw symbols and C names.
20540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20542 # Transform the output of nm in a proper C declaration.
20543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20545 # Transform the output of nm in a C name address pair.
20546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20548 # Transform the output of nm in a C name address pair when lib prefix is needed.
20549 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20551 # Specify filename containing input files for \$NM.
20552 nm_file_list_spec=$lt_nm_file_list_spec
20554 # The root where to search for dependent libraries,and in which our libraries should be installed.
20555 lt_sysroot=$lt_sysroot
20557 # The name of the directory that contains temporary libtool files.
20560 # Used to examine libraries when file_magic_cmd begins with "file".
20561 MAGIC_CMD=$MAGIC_CMD
20563 # Must we lock files when doing compilation?
20564 need_locks=$lt_need_locks
20567 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20569 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20570 DSYMUTIL=$lt_DSYMUTIL
20572 # Tool to change global to local symbols on Mac OS X.
20575 # Tool to manipulate fat objects and archives on Mac OS X.
20578 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20581 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20582 OTOOL64=$lt_OTOOL64
20584 # Old archive suffix (normally "a").
20587 # Shared library suffix (normally ".so").
20588 shrext_cmds=$lt_shrext_cmds
20590 # The commands to extract the exported symbol list from a shared archive.
20591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20593 # Variables whose values should be saved in libtool wrapper scripts and
20594 # restored at link time.
20595 variables_saved_for_relink=$lt_variables_saved_for_relink
20597 # Do we need the "lib" prefix for modules?
20598 need_lib_prefix=$need_lib_prefix
20600 # Do we need a version for libraries?
20601 need_version=$need_version
20603 # Library versioning type.
20604 version_type=$version_type
20606 # Shared library runtime path variable.
20607 runpath_var=$runpath_var
20609 # Shared library path variable.
20610 shlibpath_var=$shlibpath_var
20612 # Is shlibpath searched before the hard-coded library search path?
20613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20615 # Format of library name prefix.
20616 libname_spec=$lt_libname_spec
20618 # List of archive names. First name is the real one, the rest are links.
20619 # The last name is the one that the linker finds with -lNAME
20620 library_names_spec=$lt_library_names_spec
20622 # The coded name of the library, if different from the real name.
20623 soname_spec=$lt_soname_spec
20625 # Permission mode override for installation of shared libraries.
20626 install_override_mode=$lt_install_override_mode
20628 # Command to use after installation of a shared archive.
20629 postinstall_cmds=$lt_postinstall_cmds
20631 # Command to use after uninstallation of a shared archive.
20632 postuninstall_cmds=$lt_postuninstall_cmds
20634 # Commands used to finish a libtool library installation in a directory.
20635 finish_cmds=$lt_finish_cmds
20637 # As "finish_cmds", except a single script fragment to be evaled but
20639 finish_eval=$lt_finish_eval
20641 # Whether we should hardcode library paths into libraries.
20642 hardcode_into_libs=$hardcode_into_libs
20644 # Compile-time system search path for libraries.
20645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20647 # Run-time system search path for libraries.
20648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20650 # Whether dlopen is supported.
20651 dlopen_support=$enable_dlopen
20653 # Whether dlopen of programs is supported.
20654 dlopen_self=$enable_dlopen_self
20656 # Whether dlopen of statically linked programs is supported.
20657 dlopen_self_static=$enable_dlopen_self_static
20659 # Commands to strip libraries.
20660 old_striplib=$lt_old_striplib
20661 striplib=$lt_striplib
20664 # The linker used to build libraries.
20667 # How to create reloadable object files.
20668 reload_flag=$lt_reload_flag
20669 reload_cmds=$lt_reload_cmds
20671 # Commands used to build an old-style archive.
20672 old_archive_cmds=$lt_old_archive_cmds
20674 # A language specific compiler.
20677 # Is the compiler the GNU compiler?
20680 # Compiler flag to turn off builtin functions.
20681 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20683 # Additional compiler flags for building library objects.
20684 pic_flag=$lt_lt_prog_compiler_pic
20686 # How to pass a linker flag through the compiler.
20687 wl=$lt_lt_prog_compiler_wl
20689 # Compiler flag to prevent dynamic linking.
20690 link_static_flag=$lt_lt_prog_compiler_static
20692 # Does compiler simultaneously support -c and -o options?
20693 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20695 # Whether or not to add -lc for building shared libraries.
20696 build_libtool_need_lc=$archive_cmds_need_lc
20698 # Whether or not to disallow shared libs when runtime libs are static.
20699 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20701 # Compiler flag to allow reflexive dlopens.
20702 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20704 # Compiler flag to generate shared objects directly from archives.
20705 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20707 # Whether the compiler copes with passing no objects directly.
20708 compiler_needs_object=$lt_compiler_needs_object
20710 # Create an old-style archive from a shared archive.
20711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20713 # Create a temporary old-style archive to link instead of a shared archive.
20714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20716 # Commands used to build a shared archive.
20717 archive_cmds=$lt_archive_cmds
20718 archive_expsym_cmds=$lt_archive_expsym_cmds
20720 # Commands used to build a loadable module if different from building
20721 # a shared archive.
20722 module_cmds=$lt_module_cmds
20723 module_expsym_cmds=$lt_module_expsym_cmds
20725 # Whether we are building with GNU ld or not.
20726 with_gnu_ld=$lt_with_gnu_ld
20728 # Flag that allows shared libraries with undefined symbols to be built.
20729 allow_undefined_flag=$lt_allow_undefined_flag
20731 # Flag that enforces no undefined symbols.
20732 no_undefined_flag=$lt_no_undefined_flag
20734 # Flag to hardcode \$libdir into a binary during linking.
20735 # This must work even if \$libdir does not exist
20736 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20738 # If ld is used when linking, flag to hardcode \$libdir into a binary
20739 # during linking. This must work even if \$libdir does not exist.
20740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20742 # Whether we need a single "-rpath" flag with a separated argument.
20743 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20746 # DIR into the resulting binary.
20747 hardcode_direct=$hardcode_direct
20749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20750 # DIR into the resulting binary and the resulting library dependency is
20751 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20752 # library is relocated.
20753 hardcode_direct_absolute=$hardcode_direct_absolute
20755 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20756 # into the resulting binary.
20757 hardcode_minus_L=$hardcode_minus_L
20759 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20760 # into the resulting binary.
20761 hardcode_shlibpath_var=$hardcode_shlibpath_var
20763 # Set to "yes" if building a shared library automatically hardcodes DIR
20764 # into the library and all subsequent libraries and executables linked
20766 hardcode_automatic=$hardcode_automatic
20768 # Set to yes if linker adds runtime paths of dependent libraries
20769 # to runtime path list.
20770 inherit_rpath=$inherit_rpath
20772 # Whether libtool must link a program against all its dependency libraries.
20773 link_all_deplibs=$link_all_deplibs
20775 # Set to "yes" if exported symbols are required.
20776 always_export_symbols=$always_export_symbols
20778 # The commands to list exported symbols.
20779 export_symbols_cmds=$lt_export_symbols_cmds
20781 # Symbols that should not be listed in the preloaded symbols.
20782 exclude_expsyms=$lt_exclude_expsyms
20784 # Symbols that must always be exported.
20785 include_expsyms=$lt_include_expsyms
20787 # Commands necessary for linking programs (against libraries) with templates.
20788 prelink_cmds=$lt_prelink_cmds
20790 # Commands necessary for finishing linking programs.
20791 postlink_cmds=$lt_postlink_cmds
20793 # Specify filename containing input files.
20794 file_list_spec=$lt_file_list_spec
20796 # How to hardcode a shared library path into an executable.
20797 hardcode_action=$hardcode_action
20799 # The directories searched by this compiler when creating a shared library.
20800 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20802 # Dependencies to place before and after the objects being linked to
20803 # create a shared library.
20804 predep_objects=$lt_predep_objects
20805 postdep_objects=$lt_postdep_objects
20806 predeps=$lt_predeps
20807 postdeps=$lt_postdeps
20809 # The library search path used internally by the compiler when linking
20810 # a shared library.
20811 compiler_lib_search_path=$lt_compiler_lib_search_path
20813 # ### END LIBTOOL CONFIG
20819 cat <<\_LT_EOF >> "$cfgfile"
20820 # AIX sometimes has problems with the GCC collect2 program. For some
20821 # reason, if we set the COLLECT_NAMES environment variable, the problems
20822 # vanish in a puff of smoke.
20823 if test "X${COLLECT_NAMES+set}" != Xset; then
20825 export COLLECT_NAMES
20833 # We use sed instead of cat because bash on DJGPP gets confused if
20834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20835 # text mode, it properly converts lines to CR/LF. This bash problem
20836 # is reportedly fixed, but why not run on old versions too?
20837 sed '$q' "$ltmain" >> "$cfgfile" \
20838 || (rm -f "$cfgfile"; exit 1)
20840 if test x"$xsi_shell" = xyes; then
20841 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20845 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20846 \ * ) func_dirname_result="${3}" ;;\
20848 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20849 && mv -f "$cfgfile.tmp" "$cfgfile" \
20850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20851 test 0 -eq $? || _lt_function_replace_fail=:
20854 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20857 \ func_basename_result="${1##*/}"\
20858 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20859 && mv -f "$cfgfile.tmp" "$cfgfile" \
20860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20861 test 0 -eq $? || _lt_function_replace_fail=:
20864 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20865 func_dirname_and_basename ()\
20868 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20869 \ * ) func_dirname_result="${3}" ;;\
20871 \ func_basename_result="${1##*/}"\
20872 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20873 && mv -f "$cfgfile.tmp" "$cfgfile" \
20874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20875 test 0 -eq $? || _lt_function_replace_fail=:
20878 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20881 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20882 \ # positional parameters, so assign one to ordinary parameter first.\
20883 \ func_stripname_result=${3}\
20884 \ func_stripname_result=${func_stripname_result#"${1}"}\
20885 \ func_stripname_result=${func_stripname_result%"${2}"}\
20886 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20887 && mv -f "$cfgfile.tmp" "$cfgfile" \
20888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20889 test 0 -eq $? || _lt_function_replace_fail=:
20892 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20893 func_split_long_opt ()\
20895 \ func_split_long_opt_name=${1%%=*}\
20896 \ func_split_long_opt_arg=${1#*=}\
20897 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20898 && mv -f "$cfgfile.tmp" "$cfgfile" \
20899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20900 test 0 -eq $? || _lt_function_replace_fail=:
20903 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20904 func_split_short_opt ()\
20906 \ func_split_short_opt_arg=${1#??}\
20907 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20908 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20909 && mv -f "$cfgfile.tmp" "$cfgfile" \
20910 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20911 test 0 -eq $? || _lt_function_replace_fail=:
20914 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20918 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20919 \ *) func_lo2o_result=${1} ;;\
20921 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20922 && mv -f "$cfgfile.tmp" "$cfgfile" \
20923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20924 test 0 -eq $? || _lt_function_replace_fail=:
20927 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20930 func_xform_result=${1%.*}.lo\
20931 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20932 && mv -f "$cfgfile.tmp" "$cfgfile" \
20933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20934 test 0 -eq $? || _lt_function_replace_fail=:
20937 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20940 func_arith_result=$(( $* ))\
20941 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20942 && mv -f "$cfgfile.tmp" "$cfgfile" \
20943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20944 test 0 -eq $? || _lt_function_replace_fail=:
20947 sed -e '/^func_len ()$/,/^} # func_len /c\
20950 func_len_result=${#1}\
20951 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20952 && mv -f "$cfgfile.tmp" "$cfgfile" \
20953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20954 test 0 -eq $? || _lt_function_replace_fail=:
20958 if test x"$lt_shell_append" = xyes; then
20959 sed -e '/^func_append ()$/,/^} # func_append /c\
20962 eval "${1}+=\\${2}"\
20963 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20964 && mv -f "$cfgfile.tmp" "$cfgfile" \
20965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20966 test 0 -eq $? || _lt_function_replace_fail=:
20969 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20970 func_append_quoted ()\
20972 \ func_quote_for_eval "${2}"\
20973 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20974 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20975 && mv -f "$cfgfile.tmp" "$cfgfile" \
20976 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20977 test 0 -eq $? || _lt_function_replace_fail=:
20980 # Save a `func_append' function call where possible by direct use of '+='
20981 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20982 && mv -f "$cfgfile.tmp" "$cfgfile" \
20983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20984 test 0 -eq $? || _lt_function_replace_fail=:
20986 # Save a `func_append' function call even when '+=' is not available
20987 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20988 && mv -f "$cfgfile.tmp" "$cfgfile" \
20989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20990 test 0 -eq $? || _lt_function_replace_fail=:
20993 if test x"$_lt_function_replace_fail" = x":"; then
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20995 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20999 mv -f "$cfgfile" "$ofile" ||
21000 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21004 cat <<_LT_EOF >> "$ofile"
21006 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21008 # The linker used to build libraries.
21011 # How to create reloadable object files.
21012 reload_flag=$lt_reload_flag_CXX
21013 reload_cmds=$lt_reload_cmds_CXX
21015 # Commands used to build an old-style archive.
21016 old_archive_cmds=$lt_old_archive_cmds_CXX
21018 # A language specific compiler.
21019 CC=$lt_compiler_CXX
21021 # Is the compiler the GNU compiler?
21024 # Compiler flag to turn off builtin functions.
21025 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21027 # Additional compiler flags for building library objects.
21028 pic_flag=$lt_lt_prog_compiler_pic_CXX
21030 # How to pass a linker flag through the compiler.
21031 wl=$lt_lt_prog_compiler_wl_CXX
21033 # Compiler flag to prevent dynamic linking.
21034 link_static_flag=$lt_lt_prog_compiler_static_CXX
21036 # Does compiler simultaneously support -c and -o options?
21037 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21039 # Whether or not to add -lc for building shared libraries.
21040 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21042 # Whether or not to disallow shared libs when runtime libs are static.
21043 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21045 # Compiler flag to allow reflexive dlopens.
21046 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21048 # Compiler flag to generate shared objects directly from archives.
21049 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21051 # Whether the compiler copes with passing no objects directly.
21052 compiler_needs_object=$lt_compiler_needs_object_CXX
21054 # Create an old-style archive from a shared archive.
21055 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21057 # Create a temporary old-style archive to link instead of a shared archive.
21058 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21060 # Commands used to build a shared archive.
21061 archive_cmds=$lt_archive_cmds_CXX
21062 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21064 # Commands used to build a loadable module if different from building
21065 # a shared archive.
21066 module_cmds=$lt_module_cmds_CXX
21067 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21069 # Whether we are building with GNU ld or not.
21070 with_gnu_ld=$lt_with_gnu_ld_CXX
21072 # Flag that allows shared libraries with undefined symbols to be built.
21073 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21075 # Flag that enforces no undefined symbols.
21076 no_undefined_flag=$lt_no_undefined_flag_CXX
21078 # Flag to hardcode \$libdir into a binary during linking.
21079 # This must work even if \$libdir does not exist
21080 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21082 # If ld is used when linking, flag to hardcode \$libdir into a binary
21083 # during linking. This must work even if \$libdir does not exist.
21084 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21086 # Whether we need a single "-rpath" flag with a separated argument.
21087 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21090 # DIR into the resulting binary.
21091 hardcode_direct=$hardcode_direct_CXX
21093 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21094 # DIR into the resulting binary and the resulting library dependency is
21095 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21096 # library is relocated.
21097 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21099 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21100 # into the resulting binary.
21101 hardcode_minus_L=$hardcode_minus_L_CXX
21103 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21104 # into the resulting binary.
21105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21107 # Set to "yes" if building a shared library automatically hardcodes DIR
21108 # into the library and all subsequent libraries and executables linked
21110 hardcode_automatic=$hardcode_automatic_CXX
21112 # Set to yes if linker adds runtime paths of dependent libraries
21113 # to runtime path list.
21114 inherit_rpath=$inherit_rpath_CXX
21116 # Whether libtool must link a program against all its dependency libraries.
21117 link_all_deplibs=$link_all_deplibs_CXX
21119 # Set to "yes" if exported symbols are required.
21120 always_export_symbols=$always_export_symbols_CXX
21122 # The commands to list exported symbols.
21123 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21125 # Symbols that should not be listed in the preloaded symbols.
21126 exclude_expsyms=$lt_exclude_expsyms_CXX
21128 # Symbols that must always be exported.
21129 include_expsyms=$lt_include_expsyms_CXX
21131 # Commands necessary for linking programs (against libraries) with templates.
21132 prelink_cmds=$lt_prelink_cmds_CXX
21134 # Commands necessary for finishing linking programs.
21135 postlink_cmds=$lt_postlink_cmds_CXX
21137 # Specify filename containing input files.
21138 file_list_spec=$lt_file_list_spec_CXX
21140 # How to hardcode a shared library path into an executable.
21141 hardcode_action=$hardcode_action_CXX
21143 # The directories searched by this compiler when creating a shared library.
21144 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21146 # Dependencies to place before and after the objects being linked to
21147 # create a shared library.
21148 predep_objects=$lt_predep_objects_CXX
21149 postdep_objects=$lt_postdep_objects_CXX
21150 predeps=$lt_predeps_CXX
21151 postdeps=$lt_postdeps_CXX
21153 # The library search path used internally by the compiler when linking
21154 # a shared library.
21155 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21157 # ### END LIBTOOL TAG CONFIG: CXX
21161 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
21162 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
21163 "main-chmod":C) (cd ./src/main && chmod +x checkrad radlast radtest) ;;
21164 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
21172 ac_clean_files=$ac_clean_files_save
21174 test $ac_write_fail = 0 ||
21175 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21178 # configure is writing to config.log, and then calls config.status.
21179 # config.status does its own redirection, appending to config.log.
21180 # Unfortunately, on DOS this fails, as config.log is still kept open
21181 # by configure, so config.status won't be able to write to it; its
21182 # output is simply discarded. So we exec the FD to /dev/null,
21183 # effectively closing config.log, so it can be properly (re)opened and
21184 # appended to by config.status. When coming back to configure, we
21185 # need to make the FD available again.
21186 if test "$no_create" != yes; then
21188 ac_config_status_args=
21189 test "$silent" = yes &&
21190 ac_config_status_args="$ac_config_status_args --quiet"
21192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21195 # would make configure fail if this is the last instruction.
21196 $ac_cs_success || as_fn_exit 1
21200 # CONFIG_SUBDIRS section.
21202 if test "$no_recursion" != yes; then
21204 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21205 # so they do not pile up.
21206 ac_sub_configure_args=
21208 eval "set x $ac_configure_args"
21212 if test -n "$ac_prev"; then
21217 -cache-file | --cache-file | --cache-fil | --cache-fi \
21218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21219 ac_prev=cache_file ;;
21220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21224 --config-cache | -C)
21226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21234 --disable-option-checking)
21238 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21240 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21244 # Always prepend --prefix to ensure using the same prefix
21245 # in subdir configurations.
21246 ac_arg="--prefix=$prefix"
21248 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21250 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21253 if test "$silent" = yes; then
21254 ac_sub_configure_args="--silent $ac_sub_configure_args"
21257 # Always prepend --disable-option-checking to silence warnings, since
21258 # different subdirs can have different --enable and --with options.
21259 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21262 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21264 # Do not complain, so a configure script can configure whichever
21265 # parts of a large source tree are present.
21266 test -d "$srcdir/$ac_dir" || continue
21268 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21269 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21270 $as_echo "$ac_msg" >&6
21271 as_dir="$ac_dir"; as_fn_mkdir_p
21275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21278 # A ".." for each directory in $ac_dir_suffix.
21279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21280 case $ac_top_builddir_sub in
21281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21285 ac_abs_top_builddir=$ac_pwd
21286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21287 # for backward compatibility:
21288 ac_top_builddir=$ac_top_build_prefix
21291 .) # We are building in place.
21293 ac_top_srcdir=$ac_top_builddir_sub
21294 ac_abs_top_srcdir=$ac_pwd ;;
21295 [\\/]* | ?:[\\/]* ) # Absolute name.
21296 ac_srcdir=$srcdir$ac_dir_suffix;
21297 ac_top_srcdir=$srcdir
21298 ac_abs_top_srcdir=$srcdir ;;
21299 *) # Relative name.
21300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21301 ac_top_srcdir=$ac_top_build_prefix$srcdir
21302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21309 # Check for guested configure; otherwise get Cygnus style configure.
21310 if test -f "$ac_srcdir/configure.gnu"; then
21311 ac_sub_configure=$ac_srcdir/configure.gnu
21312 elif test -f "$ac_srcdir/configure"; then
21313 ac_sub_configure=$ac_srcdir/configure
21314 elif test -f "$ac_srcdir/configure.in"; then
21315 # This should be Cygnus configure.
21316 ac_sub_configure=$ac_aux_dir/configure
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21319 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21323 # The recursion is here.
21324 if test -n "$ac_sub_configure"; then
21325 # Make the cache file name correct relative to the subdirectory.
21326 case $cache_file in
21327 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21328 *) # Relative name.
21329 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21333 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21334 # The eval makes quoting arguments work.
21335 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21336 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21337 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21343 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21345 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}