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
638 RADIUSD_VERSION_COMMIT
639 RADIUSD_VERSION_STRING
641 RADIUSD_INCRM_VERSION
642 RADIUSD_MINOR_VERSION
643 RADIUSD_MAJOR_VERSION
747 program_transform_name
760 enable_option_checking
772 enable_strict_dependencies
784 with_experimental_modules
786 with_openssl_includes
787 with_openssl_libraries
789 with_rlm_FOO_include_dir
792 ac_precious_vars='build_alias
805 ac_subdirs_all='$mysubdirs'
807 # Initialize some variables set by options.
809 ac_init_version=false
810 ac_unrecognized_opts=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
821 program_transform_name=s,x,x,
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
965 -help | --help | --hel | --he | -h)
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=no ;;
1173 # Obsolete; use --with-x.
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1241 # Be sure to have absolute directory names.
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures freeradius $Id$ to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/freeradius]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of freeradius $Id$:";;
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-developer Enables features of interest to developers.
1419 --disable-largefile omit support for large files
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --enable-strict-dependencies Fail configure on lack of module dependancy.
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)
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1467 CXXCPP C++ preprocessor
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <http://bugs.freeradius.org>.
1473 freeradius home page: <http://www.freeradius.org>.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 freeradius configure $Id$
1537 generated by GNU Autoconf 2.69
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1586 } # ac_fn_c_try_compile
1588 # ac_fn_cxx_try_compile LINENO
1589 # ----------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_cxx_try_compile ()
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_cxx_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1624 } # ac_fn_cxx_try_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1663 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666 # the include files in INCLUDES and setting the cache variable VAR
1668 ac_fn_c_check_header_mongrel ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if eval \${$3+:} false; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675 $as_echo_n "(cached) " >&6
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 # Is the header compilable?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683 $as_echo_n "checking $2 usability... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1692 ac_header_compiler=no
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696 $as_echo "$ac_header_compiler" >&6; }
1698 # Is the header present?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700 $as_echo_n "checking $2 presence... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1705 if ac_fn_c_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1708 ac_header_preproc=no
1710 rm -f conftest.err conftest.i conftest.$ac_ext
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712 $as_echo "$ac_header_preproc" >&6; }
1714 # So? What about this header?
1715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ( $as_echo "## ----------------------------------------- ##
1734 ## Report this to http://bugs.freeradius.org ##
1735 ## ----------------------------------------- ##"
1736 ) | sed "s/^/$as_me: WARNING: /" >&2
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 eval "$3=\$ac_header_compiler"
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_mongrel
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1788 ac_retval=$ac_status
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 as_fn_set_status $ac_retval
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 } # ac_fn_c_check_header_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 test -x conftest$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_func LINENO FUNC VAR
1874 # ----------------------------------
1875 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1876 ac_fn_c_check_func ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1888 #define $2 innocuous_$2
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char $2 (); below.
1892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1893 <limits.h> exists even on freestanding compilers. */
1896 # include <limits.h>
1898 # include <assert.h>
1903 /* Override any GCC internal prototype to avoid an error.
1904 Use char because int might match the return type of a GCC
1905 builtin and then its argument prototype would still apply. */
1910 /* The GNU C library defines this for functions which it implements
1911 to always fail with ENOSYS. Some functions are actually named
1912 something starting with __ and the normal name is an alias. */
1913 #if defined __stub_$2 || defined __stub___$2
1925 if ac_fn_c_try_link "$LINENO"; then :
1930 rm -f core conftest.err conftest.$ac_objext \
1931 conftest$ac_exeext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_func
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1975 } # ac_fn_cxx_try_cpp
1977 # ac_fn_cxx_try_link LINENO
1978 # -------------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_link ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 rm -f conftest.$ac_objext conftest$ac_exeext
1984 if { { ac_try="$ac_link"
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>conftest.err
1993 if test -s conftest.err; then
1994 grep -v '^ *+' conftest.err >conftest.er1
1995 cat conftest.er1 >&5
1996 mv -f conftest.er1 conftest.err
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && {
2000 test -z "$ac_cxx_werror_flag" ||
2001 test ! -s conftest.err
2002 } && test -s conftest$ac_exeext && {
2003 test "$cross_compiling" = yes ||
2004 test -x conftest$ac_exeext
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2013 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2014 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2015 # interfere with the next link command; also delete a directory that is
2016 # left behind by Apple's compiler. We do this before executing the actions.
2017 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_cxx_try_link
2023 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2024 # -------------------------------------------
2025 # Tests whether TYPE exists after having included INCLUDES, setting cache
2026 # variable VAR accordingly.
2027 ac_fn_c_check_type ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if eval \${$3+:} false; then :
2033 $as_echo_n "(cached) " >&6
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2061 if ac_fn_c_try_compile "$LINENO"; then :
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_type
2077 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2078 # ---------------------------------------------
2079 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2081 ac_fn_c_check_decl ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 as_decl_name=`echo $2|sed 's/ *(.*//'`
2085 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2087 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2088 if eval \${$3+:} false; then :
2089 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 #ifndef $as_decl_name
2099 (void) $as_decl_use;
2101 (void) $as_decl_name;
2109 if ac_fn_c_try_compile "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_decl
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2126 It was created by freeradius $as_me $Id$, which was
2127 generated by GNU Autoconf 2.69. Invocation command line was
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2148 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2149 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2152 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2153 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2154 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 $as_echo "PATH: $as_dir"
2179 # Keep a trace of the command line.
2180 # Strip out --no-create and --no-recursion so they do not pile up.
2181 # Strip out --silent because we don't want to record it for future runs.
2182 # Also quote any args containing shell meta-characters.
2183 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_must_keep_next=false
2193 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195 | -silent | --silent | --silen | --sile | --sil)
2198 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2203 as_fn_append ac_configure_args1 " '$ac_arg'"
2204 if test $ac_must_keep_next = true; then
2205 ac_must_keep_next=false # Got value, back to normal.
2208 *=* | --config-cache | -C | -disable-* | --disable-* \
2209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211 | -with-* | --with-* | -without-* | --without-* | --x)
2212 case "$ac_configure_args0 " in
2213 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2216 -* ) ac_must_keep_next=true ;;
2219 as_fn_append ac_configure_args " '$ac_arg'"
2224 { ac_configure_args0=; unset ac_configure_args0;}
2225 { ac_configure_args1=; unset ac_configure_args1;}
2227 # When interrupted or exit'd, cleanup temporary files, and complete
2228 # config.log. We remove comments because anyway the quotes in there
2229 # would cause problems or look ugly.
2230 # WARNING: Use '\'' to represent an apostrophe within the trap.
2231 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2232 trap 'exit_status=$?
2233 # Save into config.log some information that might help in debugging.
2237 $as_echo "## ---------------- ##
2238 ## Cache variables. ##
2239 ## ---------------- ##"
2241 # The following way of writing the cache mishandles newlines in values,
2243 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2244 eval ac_val=\$$ac_var
2248 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2249 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2252 _ | IFS | as_nl) ;; #(
2253 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2254 *) { eval $ac_var=; unset $ac_var;} ;;
2259 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2260 *${as_nl}ac_space=\ *)
2262 "s/'\''/'\''\\\\'\'''\''/g;
2263 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 $as_echo "## ----------------- ##
2274 ## Output variables. ##
2275 ## ----------------- ##"
2277 for ac_var in $ac_subst_vars
2279 eval ac_val=\$$ac_var
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 $as_echo "$ac_var='\''$ac_val'\''"
2287 if test -n "$ac_subst_files"; then
2288 $as_echo "## ------------------- ##
2289 ## File substitutions. ##
2290 ## ------------------- ##"
2292 for ac_var in $ac_subst_files
2294 eval ac_val=\$$ac_var
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298 $as_echo "$ac_var='\''$ac_val'\''"
2303 if test -s confdefs.h; then
2304 $as_echo "## ----------- ##
2311 test "$ac_signal" != 0 &&
2312 $as_echo "$as_me: caught signal $ac_signal"
2313 $as_echo "$as_me: exit $exit_status"
2315 rm -f core *.core core.conftest.* &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2319 for ac_signal in 1 2 13 15; do
2320 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2327 $as_echo "/* confdefs.h */" > confdefs.h
2329 # Predefined preprocessor variables.
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_URL "$PACKAGE_URL"
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2360 if test -n "$CONFIG_SITE"; then
2361 # We do not want a PATH search for config.site.
2362 case $CONFIG_SITE in #((
2363 -*) ac_site_file1=./$CONFIG_SITE;;
2364 */*) ac_site_file1=$CONFIG_SITE;;
2365 *) ac_site_file1=./$CONFIG_SITE;;
2367 elif test "x$prefix" != xNONE; then
2368 ac_site_file1=$prefix/share/config.site
2369 ac_site_file2=$prefix/etc/config.site
2371 ac_site_file1=$ac_default_prefix/share/config.site
2372 ac_site_file2=$ac_default_prefix/etc/config.site
2374 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2376 test "x$ac_site_file" = xNONE && continue
2377 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2379 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2380 sed 's/^/| /' "$ac_site_file" >&5
2382 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2384 as_fn_error $? "failed to load site script $ac_site_file
2385 See \`config.log' for more details" "$LINENO" 5; }
2389 if test -r "$cache_file"; then
2390 # Some versions of bash will fail to source /dev/null (special files
2391 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2392 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2394 $as_echo "$as_me: loading cache $cache_file" >&6;}
2396 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2397 *) . "./$cache_file";;
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2402 $as_echo "$as_me: creating cache $cache_file" >&6;}
2406 # Check that the precious variables saved in the cache have kept the same
2408 ac_cache_corrupted=false
2409 for ac_var in $ac_precious_vars; do
2410 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2411 eval ac_new_set=\$ac_env_${ac_var}_set
2412 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2413 eval ac_new_val=\$ac_env_${ac_var}_value
2414 case $ac_old_set,$ac_new_set in
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2418 ac_cache_corrupted=: ;;
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2421 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2422 ac_cache_corrupted=: ;;
2425 if test "x$ac_old_val" != "x$ac_new_val"; then
2426 # differences in whitespace do not lead to failure.
2427 ac_old_val_w=`echo x $ac_old_val`
2428 ac_new_val_w=`echo x $ac_new_val`
2429 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2431 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2432 ac_cache_corrupted=:
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2435 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2436 eval $ac_var=\$ac_old_val
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2439 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2441 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2444 # Pass precious variables to config.status.
2445 if test "$ac_new_set" = set; then
2447 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2448 *) ac_arg=$ac_var=$ac_new_val ;;
2450 case " $ac_configure_args " in
2451 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2452 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2456 if $ac_cache_corrupted; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2460 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2461 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2463 ## -------------------- ##
2464 ## Main body of script. ##
2465 ## -------------------- ##
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475 ac_config_headers="$ac_config_headers src/include/autoconf.h"
2479 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
2480 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^[^\.]*\.//' | sed 's/\..*$//'`
2481 RADIUSD_INCRM_VERSION=`cat VERSION | sed 's/^.*\..*\.//' | sed 's/[\.-].*$//'`
2483 RADIUSD_VERSION=`echo | awk -v major="$RADIUSD_MAJOR_VERSION" \
2484 -v minor="$RADIUSD_MINOR_VERSION" \
2485 -v incrm="$RADIUSD_INCRM_VERSION" \
2486 '{ printf "%02i%02i%02i", major, minor, incrm }'`
2488 RADIUSD_VERSION_STRING=`cat VERSION`
2492 # Check whether --enable-developer was given.
2493 if test "${enable_developer+set}" = set; then :
2494 enableval=$enable_developer; case "$enableval" in
2505 if test -d $srcdir/.git; then
2506 if test "x$developer" != "xno"; then
2511 if test "x$developer" = "xyes"; then
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_CC+:} false; then :
2527 $as_echo_n "(cached) " >&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 if test -n "$CC"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 $as_echo "$CC" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2560 if test -z "$ac_cv_prog_CC"; then
2562 # Extract the first word of "gcc", so it can be a program name with args.
2563 set dummy gcc; ac_word=$2
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 $as_echo_n "checking for $ac_word... " >&6; }
2566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2567 $as_echo_n "(cached) " >&6
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2579 ac_cv_prog_ac_ct_CC="gcc"
2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2592 $as_echo "$ac_ct_CC" >&6; }
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2598 if test "x$ac_ct_CC" = x; then
2601 case $cross_compiling:$ac_tool_warned in
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2605 ac_tool_warned=yes ;;
2613 if test -z "$CC"; then
2614 if test -n "$ac_tool_prefix"; then
2615 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2616 set dummy ${ac_tool_prefix}cc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 ac_cv_prog_CC="${ac_tool_prefix}cc"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2654 if test -z "$CC"; then
2655 # Extract the first word of "cc", so it can be a program name with args.
2656 set dummy cc; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_CC+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2673 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2674 ac_prog_rejected=yes
2678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test $ac_prog_rejected = yes; then
2686 # We found a bogon in the path, so make sure we never use it.
2687 set dummy $ac_cv_prog_CC
2689 if test $# != 0; then
2690 # We chose a different compiler from the bogus one.
2691 # However, it has the same basename, so the bogon will be chosen
2692 # first if we set CC to just the basename; use the full file name.
2694 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2710 if test -z "$CC"; then
2711 if test -n "$ac_tool_prefix"; then
2712 for ac_prog in cl.exe
2714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test -n "$CC"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2751 test -n "$CC" && break
2754 if test -z "$CC"; then
2756 for ac_prog in cl.exe
2758 # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_ac_ct_CC="$ac_prog"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786 if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788 $as_echo "$ac_ct_CC" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2795 test -n "$ac_ct_CC" && break
2798 if test "x$ac_ct_CC" = x; then
2801 case $cross_compiling:$ac_tool_warned in
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned=yes ;;
2814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 as_fn_error $? "no acceptable C compiler found in \$PATH
2817 See \`config.log' for more details" "$LINENO" 5; }
2819 # Provide some information about the compiler.
2820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2823 for ac_option in --version -v -V -qversion; do
2824 { { ac_try="$ac_compiler $ac_option >&5"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2833 if test -s conftest.err; then
2835 ... rest of stderr output deleted ...
2836 10q' conftest.err >conftest.er1
2837 cat conftest.er1 >&5
2839 rm -f conftest.er1 conftest.err
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2855 ac_clean_files_save=$ac_clean_files
2856 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2857 # Try to create an executable without -o first, disregard a.out.
2858 # It will help us diagnose broken compilers, and finding out an intuition
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2861 $as_echo_n "checking whether the C compiler works... " >&6; }
2862 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2864 # The possible output files:
2865 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2868 for ac_file in $ac_files
2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2872 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2877 if { { ac_try="$ac_link_default"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_link_default") 2>&5
2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; }; then :
2888 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2889 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2890 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2891 # so that the user can short-circuit this test for compilers unknown to
2893 for ac_file in $ac_files ''
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2900 # We found the default executable, but exeext='' is most
2904 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 # We set ac_cv_exeext here because the later test for it is not
2909 # safe: cross compilers may not add the suffix if given an `-o'
2910 # argument, so we may need to know it at that point already.
2911 # Even if this section looks crufty: it has the advantage of
2918 test "$ac_cv_exeext" = no && ac_cv_exeext=
2923 if test -z "$ac_file"; then :
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 $as_echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931 as_fn_error 77 "C compiler cannot create executables
2932 See \`config.log' for more details" "$LINENO" 5; }
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935 $as_echo "yes" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2938 $as_echo_n "checking for C compiler default output file name... " >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 ac_exeext=$ac_cv_exeext
2943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2944 ac_clean_files=$ac_clean_files_save
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2946 $as_echo_n "checking for suffix of executables... " >&6; }
2947 if { { ac_try="$ac_link"
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953 $as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link") 2>&5
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }; then :
2958 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2959 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2960 # work properly (i.e., refer to `conftest.exe'), while it won't with
2962 for ac_file in conftest.exe conftest conftest.*; do
2963 test -f "$ac_file" || continue
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2966 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details" "$LINENO" 5; }
2977 rm -f conftest conftest$ac_cv_exeext
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2979 $as_echo "$ac_cv_exeext" >&6; }
2981 rm -f conftest.$ac_ext
2982 EXEEXT=$ac_cv_exeext
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2990 FILE *f = fopen ("conftest.out", "w");
2991 return ferror (f) || fclose (f) != 0;
2997 ac_clean_files="$ac_clean_files conftest.out"
2998 # Check that the compiler produces executables we can run. If not, either
2999 # the compiler is broken, or we cross compile.
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3001 $as_echo_n "checking whether we are cross compiling... " >&6; }
3002 if test "$cross_compiling" != yes; then
3003 { { ac_try="$ac_link"
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_link") 2>&5
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }
3014 if { ac_try='./conftest$ac_cv_exeext'
3015 { { case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3020 $as_echo "$ac_try_echo"; } >&5
3021 (eval "$ac_try") 2>&5
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; }; then
3027 if test "$cross_compiling" = maybe; then
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "cannot run C compiled programs.
3033 If you meant to cross compile, use \`--host'.
3034 See \`config.log' for more details" "$LINENO" 5; }
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3039 $as_echo "$cross_compiling" >&6; }
3041 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3042 ac_clean_files=$ac_clean_files_save
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3044 $as_echo_n "checking for suffix of object files... " >&6; }
3045 if ${ac_cv_objext+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3059 rm -f conftest.o conftest.obj
3060 if { { ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compile") 2>&5
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; then :
3071 for ac_file in conftest.o conftest.obj conftest.*; do
3072 test -f "$ac_file" || continue;
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3075 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3080 $as_echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "cannot compute suffix of object files: cannot compile
3086 See \`config.log' for more details" "$LINENO" 5; }
3088 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3091 $as_echo "$ac_cv_objext" >&6; }
3092 OBJEXT=$ac_cv_objext
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3095 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3096 if ${ac_cv_c_compiler_gnu+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3113 if ac_fn_c_try_compile "$LINENO"; then :
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3123 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3124 if test $ac_compiler_gnu = yes; then
3129 ac_test_CFLAGS=${CFLAGS+set}
3130 ac_save_CFLAGS=$CFLAGS
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3132 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3133 if ${ac_cv_prog_cc_g+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 ac_save_c_werror_flag=$ac_c_werror_flag
3137 ac_c_werror_flag=yes
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3151 if ac_fn_c_try_compile "$LINENO"; then :
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3166 if ac_fn_c_try_compile "$LINENO"; then :
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3182 if ac_fn_c_try_compile "$LINENO"; then :
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_c_werror_flag=$ac_save_c_werror_flag
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3193 $as_echo "$ac_cv_prog_cc_g" >&6; }
3194 if test "$ac_test_CFLAGS" = set; then
3195 CFLAGS=$ac_save_CFLAGS
3196 elif test $ac_cv_prog_cc_g = yes; then
3197 if test "$GCC" = yes; then
3203 if test "$GCC" = yes; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3211 if ${ac_cv_prog_cc_c89+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 ac_cv_prog_cc_c89=no
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3222 struct buf { int x; };
3223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3224 static char *e (p, i)
3230 static char *f (char * (*g) (char **, int), char **p, ...)
3235 s = g (p, va_arg (v,int));
3240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3241 function prototypes and stuff, but not '\xHH' hex character constants.
3242 These don't provoke an error unfortunately, instead are silently treated
3243 as 'x'. The following induces an error, until -std is added to get
3244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3245 array size at least. It's necessary to write '\x00'==0 to get something
3246 that's true only with -std. */
3247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3250 inside strings and character constants. */
3252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3254 int test (int i, double x);
3255 struct s1 {int (*f) (int a);};
3256 struct s2 {int (*f) (double a);};
3257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3271 CC="$ac_save_CC $ac_arg"
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273 ac_cv_prog_cc_c89=$ac_arg
3275 rm -f core conftest.err conftest.$ac_objext
3276 test "x$ac_cv_prog_cc_c89" != "xno" && break
3278 rm -f conftest.$ac_ext
3283 case "x$ac_cv_prog_cc_c89" in
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3286 $as_echo "none needed" >&6; } ;;
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3289 $as_echo "unsupported" >&6; } ;;
3291 CC="$CC $ac_cv_prog_cc_c89"
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3295 if test "x$ac_cv_prog_cc_c89" != xno; then :
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 ac_cpp='$CXXCPP $CPPFLAGS'
3307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3310 if test -z "$CXX"; then
3311 if test -n "$CCC"; then
3314 if test -n "$ac_tool_prefix"; then
3315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CXX+:} false; then :
3322 $as_echo_n "(cached) " >&6
3324 if test -n "$CXX"; then
3325 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 if test -n "$CXX"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3347 $as_echo "$CXX" >&6; }
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$CXX" && break
3357 if test -z "$CXX"; then
3359 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 if test -n "$ac_ct_CXX"; then
3369 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_CXX="$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3388 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3389 if test -n "$ac_ct_CXX"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3391 $as_echo "$ac_ct_CXX" >&6; }
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3398 test -n "$ac_ct_CXX" && break
3401 if test "x$ac_ct_CXX" = x; then
3404 case $cross_compiling:$ac_tool_warned in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3416 # Provide some information about the compiler.
3417 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3420 for ac_option in --version -v -V -qversion; do
3421 { { ac_try="$ac_compiler $ac_option >&5"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3430 if test -s conftest.err; then
3432 ... rest of stderr output deleted ...
3433 10q' conftest.err >conftest.er1
3434 cat conftest.er1 >&5
3436 rm -f conftest.er1 conftest.err
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3443 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3460 if ac_fn_cxx_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3470 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3476 ac_test_CXXFLAGS=${CXXFLAGS+set}
3477 ac_save_CXXFLAGS=$CXXFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3479 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3480 if ${ac_cv_prog_cxx_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3484 ac_cxx_werror_flag=yes
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 if ac_fn_cxx_try_compile "$LINENO"; then :
3499 ac_cv_prog_cxx_g=yes
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3513 if ac_fn_cxx_try_compile "$LINENO"; then :
3516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_cxx_try_compile "$LINENO"; then :
3530 ac_cv_prog_cxx_g=yes
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3540 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3541 if test "$ac_test_CXXFLAGS" = set; then
3542 CXXFLAGS=$ac_save_CXXFLAGS
3543 elif test $ac_cv_prog_cxx_g = yes; then
3544 if test "$GXX" = yes; then
3550 if test "$GXX" = yes; then
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565 ac_cpp='$CPP $CPPFLAGS'
3566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3570 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3571 # On Suns, sometimes $CPP names a directory.
3572 if test -n "$CPP" && test -d "$CPP"; then
3575 if test -z "$CPP"; then
3576 if ${ac_cv_prog_CPP+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 # Double quotes because CPP needs to be expanded
3580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3583 for ac_c_preproc_warn_flag in '' yes
3585 # Use a header file that comes with gcc, so configuring glibc
3586 # with a fresh cross-compiler works.
3587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3588 # <limits.h> exists even on freestanding compilers.
3589 # On the NeXT, cc -E runs the code through the compiler's parser,
3590 # not just through cpp. "Syntax error" is here to catch this case.
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3594 # include <limits.h>
3596 # include <assert.h>
3600 if ac_fn_c_try_cpp "$LINENO"; then :
3603 # Broken: fails on valid input.
3606 rm -f conftest.err conftest.i conftest.$ac_ext
3608 # OK, works on sane cases. Now check whether nonexistent headers
3609 # can be detected and how.
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 #include <ac_nonexistent.h>
3614 if ac_fn_c_try_cpp "$LINENO"; then :
3615 # Broken: success on invalid input.
3618 # Passes both tests.
3622 rm -f conftest.err conftest.i conftest.$ac_ext
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.i conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then :
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3640 $as_echo "$CPP" >&6; }
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3653 # include <limits.h>
3655 # include <assert.h>
3659 if ac_fn_c_try_cpp "$LINENO"; then :
3662 # Broken: fails on valid input.
3665 rm -f conftest.err conftest.i conftest.$ac_ext
3667 # OK, works on sane cases. Now check whether nonexistent headers
3668 # can be detected and how.
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 #include <ac_nonexistent.h>
3673 if ac_fn_c_try_cpp "$LINENO"; then :
3674 # Broken: success on invalid input.
3677 # Passes both tests.
3681 rm -f conftest.err conftest.i conftest.$ac_ext
3684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685 rm -f conftest.i conftest.err conftest.$ac_ext
3686 if $ac_preproc_ok; then :
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3692 See \`config.log' for more details" "$LINENO" 5; }
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3703 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3704 if ${ac_cv_path_GREP+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -z "$GREP"; then
3708 ac_path_GREP_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in grep ggrep; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718 as_fn_executable_p "$ac_path_GREP" || continue
3719 # Check for GNU ac_path_GREP and select it if it is found.
3720 # Check for GNU $ac_path_GREP
3721 case `"$ac_path_GREP" --version 2>&1` in
3723 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3726 $as_echo_n 0123456789 >"conftest.in"
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 $as_echo 'GREP' >> "conftest.nl"
3733 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 as_fn_arith $ac_count + 1 && ac_count=$as_val
3736 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_GREP="$ac_path_GREP"
3739 ac_path_GREP_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_GREP_found && break 3
3752 if test -z "$ac_cv_path_GREP"; then
3753 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3756 ac_cv_path_GREP=$GREP
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3761 $as_echo "$ac_cv_path_GREP" >&6; }
3762 GREP="$ac_cv_path_GREP"
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3766 $as_echo_n "checking for egrep... " >&6; }
3767 if ${ac_cv_path_EGREP+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3771 then ac_cv_path_EGREP="$GREP -E"
3773 if test -z "$EGREP"; then
3774 ac_path_EGREP_found=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 test -z "$as_dir" && as_dir=.
3781 for ac_prog in egrep; do
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3784 as_fn_executable_p "$ac_path_EGREP" || continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786 # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792 $as_echo_n 0123456789 >"conftest.in"
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 $as_echo 'EGREP' >> "conftest.nl"
3799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3801 as_fn_arith $ac_count + 1 && ac_count=$as_val
3802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_EGREP="$ac_path_EGREP"
3805 ac_path_EGREP_max=$ac_count
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813 $ac_path_EGREP_found && break 3
3818 if test -z "$ac_cv_path_EGREP"; then
3819 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 ac_cv_path_EGREP=$EGREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3828 $as_echo "$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3833 $as_echo_n "checking for ANSI C header files... " >&6; }
3834 if ${ac_cv_header_stdc+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3852 if ac_fn_c_try_compile "$LINENO"; then :
3853 ac_cv_header_stdc=yes
3855 ac_cv_header_stdc=no
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 if test $ac_cv_header_stdc = yes; then
3860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867 $EGREP "memchr" >/dev/null 2>&1; then :
3870 ac_cv_header_stdc=no
3876 if test $ac_cv_header_stdc = yes; then
3877 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev/null 2>&1; then :
3887 ac_cv_header_stdc=no
3893 if test $ac_cv_header_stdc = yes; then
3894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895 if test "$cross_compiling" = yes; then :
3898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3902 #if ((' ' & 0x0FF) == 0x020)
3903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3906 # define ISLOWER(c) \
3907 (('a' <= (c) && (c) <= 'i') \
3908 || ('j' <= (c) && (c) <= 'r') \
3909 || ('s' <= (c) && (c) <= 'z'))
3910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3918 for (i = 0; i < 256; i++)
3919 if (XOR (islower (i), ISLOWER (i))
3920 || toupper (i) != TOUPPER (i))
3925 if ac_fn_c_try_run "$LINENO"; then :
3928 ac_cv_header_stdc=no
3930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3931 conftest.$ac_objext conftest.beam conftest.$ac_ext
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3937 $as_echo "$ac_cv_header_stdc" >&6; }
3938 if test $ac_cv_header_stdc = yes; then
3940 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3944 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946 inttypes.h stdint.h unistd.h
3948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3952 cat >>confdefs.h <<_ACEOF
3953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3962 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3963 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3970 if test "$MINIX" = yes; then
3972 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3975 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3978 $as_echo "#define _MINIX 1" >>confdefs.h
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3984 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3985 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3986 $as_echo_n "(cached) " >&6
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3991 # define __EXTENSIONS__ 1
3992 $ac_includes_default
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_safe_to_define___extensions__=yes
4004 ac_cv_safe_to_define___extensions__=no
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4009 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4010 test $ac_cv_safe_to_define___extensions__ = yes &&
4011 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4013 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4015 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4017 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4019 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4024 if test $ac_cv_c_compiler_gnu = yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4026 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4027 if ${ac_cv_prog_gcc_traditional+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 ac_pattern="Autoconf.*'x'"
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4038 ac_cv_prog_gcc_traditional=yes
4040 ac_cv_prog_gcc_traditional=no
4045 if test $ac_cv_prog_gcc_traditional = no; then
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4053 ac_cv_prog_gcc_traditional=yes
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4060 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4061 if test $ac_cv_prog_gcc_traditional = yes; then
4062 CC="$CC -traditional"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using SUNPro C" >&5
4067 $as_echo_n "checking whether we are using SUNPro C... " >&6; }
4068 if ${ac_cv_prog_suncc+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 cat > conftest.c <<EOF
4076 if { ac_try='${CC-cc} -E conftest.c'
4077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
4082 ac_cv_prog_suncc=yes
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_suncc" >&5
4088 $as_echo "$ac_cv_prog_suncc" >&6; }
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 $as_echo_n "checking for $ac_word... " >&6; }
4094 if ${ac_cv_prog_RANLIB+:} false; then :
4095 $as_echo_n "(cached) " >&6
4097 if test -n "$RANLIB"; then
4098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 RANLIB=$ac_cv_prog_RANLIB
4118 if test -n "$RANLIB"; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4120 $as_echo "$RANLIB" >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4128 if test -z "$ac_cv_prog_RANLIB"; then
4129 ac_ct_RANLIB=$RANLIB
4130 # Extract the first word of "ranlib", so it can be a program name with args.
4131 set dummy ranlib; ac_word=$2
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 if test -n "$ac_ct_RANLIB"; then
4138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_ac_ct_RANLIB="ranlib"
4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4157 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4158 if test -n "$ac_ct_RANLIB"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4160 $as_echo "$ac_ct_RANLIB" >&6; }
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4166 if test "x$ac_ct_RANLIB" = x; then
4169 case $cross_compiling:$ac_tool_warned in
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4173 ac_tool_warned=yes ;;
4175 RANLIB=$ac_ct_RANLIB
4178 RANLIB="$ac_cv_prog_RANLIB"
4182 if test "x$GCC" = "xyes"; then
4183 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
4186 # Check whether --enable-largefile was given.
4187 if test "${enable_largefile+set}" = set; then :
4188 enableval=$enable_largefile;
4191 if test "$enable_largefile" != no; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4194 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4195 if ${ac_cv_sys_largefile_CC+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 ac_cv_sys_largefile_CC=no
4199 if test "$GCC" != yes; then
4202 # IRIX 6.2 and later do not support large files by default,
4203 # so use the C compiler's -n32 option if that helps.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <sys/types.h>
4207 /* Check that off_t can represent 2**63 - 1 correctly.
4208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4209 since some C++ compilers masquerading as C compilers
4210 incorrectly reject 9223372036854775807. */
4211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4213 && LARGE_OFF_T % 2147483647 == 1)
4223 if ac_fn_c_try_compile "$LINENO"; then :
4226 rm -f core conftest.err conftest.$ac_objext
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_cv_sys_largefile_CC=' -n32'; break
4231 rm -f core conftest.err conftest.$ac_objext
4235 rm -f conftest.$ac_ext
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4239 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4240 if test "$ac_cv_sys_largefile_CC" != no; then
4241 CC=$CC$ac_cv_sys_largefile_CC
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4245 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4246 if ${ac_cv_sys_file_offset_bits+:} false; then :
4247 $as_echo_n "(cached) " >&6
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <sys/types.h>
4253 /* Check that off_t can represent 2**63 - 1 correctly.
4254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4255 since some C++ compilers masquerading as C compilers
4256 incorrectly reject 9223372036854775807. */
4257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4259 && LARGE_OFF_T % 2147483647 == 1)
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_sys_file_offset_bits=no; break
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #define _FILE_OFFSET_BITS 64
4276 #include <sys/types.h>
4277 /* Check that off_t can represent 2**63 - 1 correctly.
4278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4279 since some C++ compilers masquerading as C compilers
4280 incorrectly reject 9223372036854775807. */
4281 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4283 && LARGE_OFF_T % 2147483647 == 1)
4293 if ac_fn_c_try_compile "$LINENO"; then :
4294 ac_cv_sys_file_offset_bits=64; break
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 ac_cv_sys_file_offset_bits=unknown
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4302 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4303 case $ac_cv_sys_file_offset_bits in #(
4306 cat >>confdefs.h <<_ACEOF
4307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4312 if test $ac_cv_sys_file_offset_bits = unknown; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4314 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4315 if ${ac_cv_sys_large_files+:} false; then :
4316 $as_echo_n "(cached) " >&6
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <sys/types.h>
4322 /* Check that off_t can represent 2**63 - 1 correctly.
4323 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4324 since some C++ compilers masquerading as C compilers
4325 incorrectly reject 9223372036854775807. */
4326 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4327 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4328 && LARGE_OFF_T % 2147483647 == 1)
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_cv_sys_large_files=no; break
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #define _LARGE_FILES 1
4345 #include <sys/types.h>
4346 /* Check that off_t can represent 2**63 - 1 correctly.
4347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4348 since some C++ compilers masquerading as C compilers
4349 incorrectly reject 9223372036854775807. */
4350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4352 && LARGE_OFF_T % 2147483647 == 1)
4362 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_cv_sys_large_files=1; break
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 ac_cv_sys_large_files=unknown
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4371 $as_echo "$ac_cv_sys_large_files" >&6; }
4372 case $ac_cv_sys_large_files in #(
4375 cat >>confdefs.h <<_ACEOF
4376 #define _LARGE_FILES $ac_cv_sys_large_files
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4388 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4389 if ${ac_cv_c_bigendian+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 ac_cv_c_bigendian=unknown
4393 # See if we're dealing with a universal compiler.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #ifndef __APPLE_CC__
4397 not a universal capable compiler
4402 if ac_fn_c_try_compile "$LINENO"; then :
4404 # Check for potential -arch flags. It is not universal unless
4405 # there are at least two -arch flags with different values.
4408 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4409 if test -n "$ac_prev"; then
4411 i?86 | x86_64 | ppc | ppc64)
4412 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4415 ac_cv_c_bigendian=universal
4421 elif test "x$ac_word" = "x-arch"; then
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 if test $ac_cv_c_bigendian = unknown; then
4428 # See if sys/param.h defines the BYTE_ORDER macro.
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 #include <sys/param.h>
4437 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4438 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4447 if ac_fn_c_try_compile "$LINENO"; then :
4448 # It does; now see whether it defined to BIG_ENDIAN or not.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451 #include <sys/types.h>
4452 #include <sys/param.h>
4457 #if BYTE_ORDER != BIG_ENDIAN
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_c_bigendian=yes
4468 ac_cv_c_bigendian=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_c_bigendian = unknown; then
4475 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4483 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4491 if ac_fn_c_try_compile "$LINENO"; then :
4492 # It does; now see whether it defined to _BIG_ENDIAN or not.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4508 if ac_fn_c_try_compile "$LINENO"; then :
4509 ac_cv_c_bigendian=yes
4511 ac_cv_c_bigendian=no
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4517 if test $ac_cv_c_bigendian = unknown; then
4518 # Compile a test program.
4519 if test "$cross_compiling" = yes; then :
4520 # Try to guess by grepping values from an object file.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 short int ascii_mm[] =
4524 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4525 short int ascii_ii[] =
4526 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 int use_ascii (int i) {
4528 return ascii_mm[i] + ascii_ii[i];
4530 short int ebcdic_ii[] =
4531 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4532 short int ebcdic_mm[] =
4533 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534 int use_ebcdic (int i) {
4535 return ebcdic_mm[i] + ebcdic_ii[i];
4542 return use_ascii (foo) == use_ebcdic (foo);
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4549 ac_cv_c_bigendian=yes
4551 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552 if test "$ac_cv_c_bigendian" = unknown; then
4553 ac_cv_c_bigendian=no
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian=unknown
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 $ac_includes_default
4569 /* Are we little or big endian? From Harbison&Steele. */
4573 char c[sizeof (long int)];
4576 return u.c[sizeof (long int) - 1] == 1;
4582 if ac_fn_c_try_run "$LINENO"; then :
4583 ac_cv_c_bigendian=no
4585 ac_cv_c_bigendian=yes
4587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4588 conftest.$ac_objext conftest.beam conftest.$ac_ext
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4594 $as_echo "$ac_cv_c_bigendian" >&6; }
4595 case $ac_cv_c_bigendian in #(
4597 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4603 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4607 as_fn_error $? "unknown endianness
4608 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4612 # Extract the first word of "gmake", so it can be a program name with args.
4613 set dummy gmake; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if ${ac_cv_prog_GMAKE+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 if test -n "$GMAKE"; then
4620 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_GMAKE="yes"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4640 GMAKE=$ac_cv_prog_GMAKE
4641 if test -n "$GMAKE"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
4643 $as_echo "$GMAKE" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 if test $GMAKE = no; then
4651 # Extract the first word of "make", so it can be a program name with args.
4652 set dummy make; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_path_MAKE+:} false; then :
4656 $as_echo_n "(cached) " >&6
4660 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4682 MAKE=$ac_cv_path_MAKE
4683 if test -n "$MAKE"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4685 $as_echo "$MAKE" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4693 # Extract the first word of "gmake", so it can be a program name with args.
4694 set dummy gmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_path_MAKE+:} false; then :
4698 $as_echo_n "(cached) " >&6
4702 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4724 MAKE=$ac_cv_path_MAKE
4725 if test -n "$MAKE"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4727 $as_echo "$MAKE" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4735 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4736 if test -z "$makever"; then
4737 as_fn_error $? "GNU Make is not installed. Please download and install it
4738 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." "$LINENO" 5
4741 # Extract the first word of "git", so it can be a program name with args.
4742 set dummy git; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_GIT+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 if test -n "$GIT"; then
4749 ac_cv_prog_GIT="$GIT" # Let the user override the test.
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_GIT="yes"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 test -z "$ac_cv_prog_GIT" && ac_cv_prog_GIT="no"
4770 if test -n "$GIT"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
4772 $as_echo "$GIT" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4781 # Check whether --with-system-libltdl was given.
4782 if test "${with_system_libltdl+set}" = set; then :
4783 withval=$with_system_libltdl;
4785 with_system_libltdl=no
4789 if test "x$with_system_libltdl" = "xyes" ; then :
4791 INCLTDL=-DWITH_SYSTEM_LTDL
4795 # Check whether --with-system-libtool was given.
4796 if test "${with_system_libtool+set}" = set; then :
4797 withval=$with_system_libtool;
4799 with_system_libtool=no
4804 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4805 if test -f "$ac_dir/install-sh"; then
4807 ac_install_sh="$ac_aux_dir/install-sh -c"
4809 elif test -f "$ac_dir/install.sh"; then
4811 ac_install_sh="$ac_aux_dir/install.sh -c"
4813 elif test -f "$ac_dir/shtool"; then
4815 ac_install_sh="$ac_aux_dir/shtool install -c"
4819 if test -z "$ac_aux_dir"; then
4820 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4823 # These three variables are undocumented and unsupported,
4824 # and are intended to be withdrawn in a future Autoconf release.
4825 # They can cause serious problems if a builder's source tree is in a directory
4826 # whose full name contains unusual characters.
4827 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4828 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4829 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4835 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4841 macro_revision='1.3293'
4854 # Make sure we can run config.sub.
4855 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4856 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4859 $as_echo_n "checking build system type... " >&6; }
4860 if ${ac_cv_build+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 ac_build_alias=$build_alias
4864 test "x$ac_build_alias" = x &&
4865 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4866 test "x$ac_build_alias" = x &&
4867 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4868 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4873 $as_echo "$ac_cv_build" >&6; }
4874 case $ac_cv_build in
4876 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4879 ac_save_IFS=$IFS; IFS='-'
4885 # Remember, the first character of IFS is used to create $*,
4886 # except with old shells:
4889 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4893 $as_echo_n "checking host system type... " >&6; }
4894 if ${ac_cv_host+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 if test "x$host_alias" = x; then
4898 ac_cv_host=$ac_cv_build
4900 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4901 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4906 $as_echo "$ac_cv_host" >&6; }
4909 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4912 ac_save_IFS=$IFS; IFS='-'
4918 # Remember, the first character of IFS is used to create $*,
4919 # except with old shells:
4922 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4925 # Backslashify metacharacters that are still active within
4926 # double-quoted strings.
4927 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4929 # Same as above, but do not quote variable references.
4930 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4932 # Sed substitution to delay expansion of an escaped shell variable in a
4933 # double_quote_subst'ed string.
4934 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4936 # Sed substitution to delay expansion of an escaped single quote.
4937 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4939 # Sed substitution to avoid accidental globbing in evaled expressions
4940 no_glob_subst='s/\*/\\\*/g'
4942 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4947 $as_echo_n "checking how to print strings... " >&6; }
4948 # Test print first, because it will be a builtin if present.
4949 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4952 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4955 # Use this function as a fallback that always works.
4956 func_fallback_echo ()
4958 eval 'cat <<_LTECHO_EOF
4962 ECHO='func_fallback_echo'
4965 # func_echo_all arg...
4966 # Invoke $ECHO with all args, space-separated.
4973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4974 $as_echo "printf" >&6; } ;;
4975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4976 $as_echo "print -r" >&6; } ;;
4977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4978 $as_echo "cat" >&6; } ;;
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4995 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4996 if ${ac_cv_path_SED+:} false; then :
4997 $as_echo_n "(cached) " >&6
4999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5000 for ac_i in 1 2 3 4 5 6 7; do
5001 ac_script="$ac_script$as_nl$ac_script"
5003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5004 { ac_script=; unset ac_script;}
5005 if test -z "$SED"; then
5006 ac_path_SED_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in sed gsed; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5016 as_fn_executable_p "$ac_path_SED" || continue
5017 # Check for GNU ac_path_SED and select it if it is found.
5018 # Check for GNU $ac_path_SED
5019 case `"$ac_path_SED" --version 2>&1` in
5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5024 $as_echo_n 0123456789 >"conftest.in"
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo '' >> "conftest.nl"
5031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_SED_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_SED="$ac_path_SED"
5037 ac_path_SED_max=$ac_count
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5045 $ac_path_SED_found && break 3
5050 if test -z "$ac_cv_path_SED"; then
5051 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5059 $as_echo "$ac_cv_path_SED" >&6; }
5060 SED="$ac_cv_path_SED"
5063 test -z "$SED" && SED=sed
5064 Xsed="$SED -e 1s/^X//"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5077 $as_echo_n "checking for fgrep... " >&6; }
5078 if ${ac_cv_path_FGREP+:} false; then :
5079 $as_echo_n "(cached) " >&6
5081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5082 then ac_cv_path_FGREP="$GREP -F"
5084 if test -z "$FGREP"; then
5085 ac_path_FGREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in fgrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5095 as_fn_executable_p "$ac_path_FGREP" || continue
5096 # Check for GNU ac_path_FGREP and select it if it is found.
5097 # Check for GNU $ac_path_FGREP
5098 case `"$ac_path_FGREP" --version 2>&1` in
5100 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5103 $as_echo_n 0123456789 >"conftest.in"
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 $as_echo 'FGREP' >> "conftest.nl"
5110 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 as_fn_arith $ac_count + 1 && ac_count=$as_val
5113 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_FGREP="$ac_path_FGREP"
5116 ac_path_FGREP_max=$ac_count
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5124 $ac_path_FGREP_found && break 3
5129 if test -z "$ac_cv_path_FGREP"; then
5130 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5133 ac_cv_path_FGREP=$FGREP
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5139 $as_echo "$ac_cv_path_FGREP" >&6; }
5140 FGREP="$ac_cv_path_FGREP"
5143 test -z "$GREP" && GREP=grep
5163 # Check whether --with-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then :
5165 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5171 if test "$GCC" = yes; then
5172 # Check if gcc -print-prog-name=ld gives a path.
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5174 $as_echo_n "checking for ld used by $CC... " >&6; }
5177 # gcc leaves a trailing carriage return which upsets mingw
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5183 # Accept absolute paths.
5185 re_direlt='/[^/][^/]*/\.\./'
5186 # Canonicalize the pathname of ld
5187 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5188 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5189 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5191 test -z "$LD" && LD="$ac_prog"
5194 # If it fails, then pretend we aren't using GCC.
5198 # If it is relative, then search for the first ld in PATH.
5202 elif test "$with_gnu_ld" = yes; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5204 $as_echo_n "checking for GNU ld... " >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5207 $as_echo_n "checking for non-GNU ld... " >&6; }
5209 if ${lt_cv_path_LD+:} false; then :
5210 $as_echo_n "(cached) " >&6
5212 if test -z "$LD"; then
5213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214 for ac_dir in $PATH; do
5216 test -z "$ac_dir" && ac_dir=.
5217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218 lt_cv_path_LD="$ac_dir/$ac_prog"
5219 # Check to see if the program is GNU ld. I'd rather use --version,
5220 # but apparently some variants of GNU ld only accept -v.
5221 # Break only if it was the GNU/non-GNU ld that we prefer.
5222 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223 *GNU* | *'with BFD'*)
5224 test "$with_gnu_ld" != no && break
5227 test "$with_gnu_ld" != yes && break
5234 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5239 if test -n "$LD"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5241 $as_echo "$LD" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5246 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5249 if ${lt_cv_prog_gnu_ld+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5253 case `$LD -v 2>&1 </dev/null` in
5254 *GNU* | *'with BFD'*)
5255 lt_cv_prog_gnu_ld=yes
5258 lt_cv_prog_gnu_ld=no
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5263 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5264 with_gnu_ld=$lt_cv_prog_gnu_ld
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5275 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5276 if ${lt_cv_path_NM+:} false; then :
5277 $as_echo_n "(cached) " >&6
5279 if test -n "$NM"; then
5280 # Let the user override the test.
5283 lt_nm_to_check="${ac_tool_prefix}nm"
5284 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5285 lt_nm_to_check="$lt_nm_to_check nm"
5287 for lt_tmp_nm in $lt_nm_to_check; do
5288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5289 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5291 test -z "$ac_dir" && ac_dir=.
5292 tmp_nm="$ac_dir/$lt_tmp_nm"
5293 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5294 # Check to see if the nm accepts a BSD-compat flag.
5295 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5296 # nm: unknown option "B" ignored
5297 # Tru64's nm complains that /dev/null is an invalid object file
5298 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5299 */dev/null* | *'Invalid file or object type'*)
5300 lt_cv_path_NM="$tmp_nm -B"
5304 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5306 lt_cv_path_NM="$tmp_nm -p"
5310 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5311 continue # so that we can try to find one that supports BSD flags
5320 : ${lt_cv_path_NM=no}
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5324 $as_echo "$lt_cv_path_NM" >&6; }
5325 if test "$lt_cv_path_NM" != "no"; then
5328 # Didn't find any BSD compatible name lister, look for dumpbin.
5329 if test -n "$DUMPBIN"; then :
5330 # Let the user override the test.
5332 if test -n "$ac_tool_prefix"; then
5333 for ac_prog in dumpbin "link -dump"
5335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_DUMPBIN+:} false; then :
5340 $as_echo_n "(cached) " >&6
5342 if test -n "$DUMPBIN"; then
5343 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 DUMPBIN=$ac_cv_prog_DUMPBIN
5363 if test -n "$DUMPBIN"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5365 $as_echo "$DUMPBIN" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 test -n "$DUMPBIN" && break
5375 if test -z "$DUMPBIN"; then
5376 ac_ct_DUMPBIN=$DUMPBIN
5377 for ac_prog in dumpbin "link -dump"
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$ac_ct_DUMPBIN"; then
5387 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5407 if test -n "$ac_ct_DUMPBIN"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5409 $as_echo "$ac_ct_DUMPBIN" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$ac_ct_DUMPBIN" && break
5419 if test "x$ac_ct_DUMPBIN" = x; then
5422 case $cross_compiling:$ac_tool_warned in
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5428 DUMPBIN=$ac_ct_DUMPBIN
5432 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5434 DUMPBIN="$DUMPBIN -symbols"
5442 if test "$DUMPBIN" != ":"; then
5446 test -z "$NM" && NM=nm
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5454 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5455 if ${lt_cv_nm_interface+:} false; then :
5456 $as_echo_n "(cached) " >&6
5458 lt_cv_nm_interface="BSD nm"
5459 echo "int some_variable = 0;" > conftest.$ac_ext
5460 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5461 (eval "$ac_compile" 2>conftest.err)
5462 cat conftest.err >&5
5463 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5464 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5465 cat conftest.err >&5
5466 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5467 cat conftest.out >&5
5468 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5469 lt_cv_nm_interface="MS dumpbin"
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5474 $as_echo "$lt_cv_nm_interface" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5477 $as_echo_n "checking whether ln -s works... " >&6; }
5479 if test "$LN_S" = "ln -s"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5481 $as_echo "yes" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5484 $as_echo "no, using $LN_S" >&6; }
5487 # find the maximum length of command line arguments
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5489 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5490 if ${lt_cv_sys_max_cmd_len+:} false; then :
5491 $as_echo_n "(cached) " >&6
5498 # On DJGPP, this test can blow up pretty badly due to problems in libc
5499 # (any single argument exceeding 2000 bytes causes a buffer overrun
5500 # during glob expansion). Even if it were fixed, the result of this
5501 # check would be larger than it should be.
5502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5506 # Under GNU Hurd, this test is not required because there is
5507 # no limit to the length of command line arguments.
5508 # Libtool will interpret -1 as no limit whatsoever
5509 lt_cv_sys_max_cmd_len=-1;
5512 cygwin* | mingw* | cegcc*)
5513 # On Win9x/ME, this test blows up -- it succeeds, but takes
5514 # about 5 minutes as the teststring grows exponentially.
5515 # Worse, since 9x/ME are not pre-emptively multitasking,
5516 # you end up with a "frozen" computer, even though with patience
5517 # the test eventually succeeds (with a max line length of 256k).
5518 # Instead, let's just punt: use the minimum linelength reported by
5519 # all of the supported platforms: 8192 (on NT/2K/XP).
5520 lt_cv_sys_max_cmd_len=8192;
5524 # On MiNT this can take a long time and run out of memory.
5525 lt_cv_sys_max_cmd_len=8192;
5529 # On AmigaOS with pdksh, this test takes hours, literally.
5530 # So we just punt and use a minimum line length of 8192.
5531 lt_cv_sys_max_cmd_len=8192;
5534 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5535 # This has been around since 386BSD, at least. Likely further.
5536 if test -x /sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5538 elif test -x /usr/sbin/sysctl; then
5539 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5541 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5543 # And add a safety zone
5544 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5545 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5549 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5550 lt_cv_sys_max_cmd_len=196608
5554 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5555 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5556 # nice to cause kernel panics so lets avoid the loop below.
5557 # First set a reasonable default.
5558 lt_cv_sys_max_cmd_len=16384
5560 if test -x /sbin/sysconfig; then
5561 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5562 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5567 lt_cv_sys_max_cmd_len=102400
5569 sysv5* | sco5v6* | sysv4.2uw2*)
5570 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5571 if test -n "$kargmax"; then
5572 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5574 lt_cv_sys_max_cmd_len=32768
5578 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5579 if test -n "$lt_cv_sys_max_cmd_len"; then
5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5583 # Make teststring a little bigger before we do anything with it.
5584 # a 1K string should be a reasonable start.
5585 for i in 1 2 3 4 5 6 7 8 ; do
5586 teststring=$teststring$teststring
5588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5589 # If test is not a shell built-in, we'll probably end up computing a
5590 # maximum length that is only half of the actual maximum length, but
5592 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5594 test $i != 17 # 1/2 MB should be enough
5597 teststring=$teststring$teststring
5599 # Only check the string length outside the loop.
5600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5602 # Add a significant safety factor because C++ compilers can tack on
5603 # massive amounts of additional arguments before passing them to the
5604 # linker. It appears as though 1/2 is a usable value.
5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5612 if test -n $lt_cv_sys_max_cmd_len ; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5617 $as_echo "none" >&6; }
5619 max_cmd_len=$lt_cv_sys_max_cmd_len
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5631 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5632 # Try some XSI features
5635 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5637 && eval 'test $(( 1 + 1 )) -eq 2 \
5638 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5641 $as_echo "$xsi_shell" >&6; }
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5645 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5647 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5649 && lt_shell_append=yes
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5651 $as_echo "$lt_shell_append" >&6; }
5654 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5664 # test EBCDIC or ASCII
5665 case `echo X|tr X '\101'` in
5666 A) # ASCII based system
5667 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5668 lt_SP2NL='tr \040 \012'
5669 lt_NL2SP='tr \015\012 \040\040'
5671 *) # EBCDIC based system
5672 lt_SP2NL='tr \100 \n'
5673 lt_NL2SP='tr \r\n \100\100'
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5686 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5687 if ${lt_cv_to_host_file_cmd+:} false; then :
5688 $as_echo_n "(cached) " >&6
5693 *-*-mingw* ) # actually msys
5694 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5697 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5699 * ) # otherwise, assume *nix
5700 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5706 *-*-mingw* ) # actually msys
5707 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5710 lt_cv_to_host_file_cmd=func_convert_file_noop
5712 * ) # otherwise, assume *nix
5713 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5717 * ) # unhandled hosts (and "normal" native builds)
5718 lt_cv_to_host_file_cmd=func_convert_file_noop
5724 to_host_file_cmd=$lt_cv_to_host_file_cmd
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5726 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5733 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5734 if ${lt_cv_to_tool_file_cmd+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 #assume ordinary cross tools, or native build.
5738 lt_cv_to_tool_file_cmd=func_convert_file_noop
5742 *-*-mingw* ) # actually msys
5743 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5751 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5753 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5760 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5761 if ${lt_cv_ld_reload_flag+:} false; then :
5762 $as_echo_n "(cached) " >&6
5764 lt_cv_ld_reload_flag='-r'
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5767 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5768 reload_flag=$lt_cv_ld_reload_flag
5769 case $reload_flag in
5771 *) reload_flag=" $reload_flag" ;;
5773 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5775 cygwin* | mingw* | pw32* | cegcc*)
5776 if test "$GCC" != yes; then
5781 if test "$GCC" = yes; then
5782 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_OBJDUMP+:} false; then :
5803 $as_echo_n "(cached) " >&6
5805 if test -n "$OBJDUMP"; then
5806 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 OBJDUMP=$ac_cv_prog_OBJDUMP
5826 if test -n "$OBJDUMP"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5828 $as_echo "$OBJDUMP" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5836 if test -z "$ac_cv_prog_OBJDUMP"; then
5837 ac_ct_OBJDUMP=$OBJDUMP
5838 # Extract the first word of "objdump", so it can be a program name with args.
5839 set dummy objdump; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_OBJDUMP"; then
5846 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5866 if test -n "$ac_ct_OBJDUMP"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5868 $as_echo "$ac_ct_OBJDUMP" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5874 if test "x$ac_ct_OBJDUMP" = x; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5883 OBJDUMP=$ac_ct_OBJDUMP
5886 OBJDUMP="$ac_cv_prog_OBJDUMP"
5889 test -z "$OBJDUMP" && OBJDUMP=objdump
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5900 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5901 if ${lt_cv_deplibs_check_method+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 lt_cv_file_magic_cmd='$MAGIC_CMD'
5905 lt_cv_file_magic_test_file=
5906 lt_cv_deplibs_check_method='unknown'
5907 # Need to set the preceding variable on all platforms that support
5908 # interlibrary dependencies.
5909 # 'none' -- dependencies not supported.
5910 # `unknown' -- same as none, but documents that we really don't know.
5911 # 'pass_all' -- all dependencies passed with no checks.
5912 # 'test_compile' -- check by making test program.
5913 # 'file_magic [[regex]]' -- check by looking for files in library path
5914 # which responds to the $file_magic_cmd with a given extended regex.
5915 # If you have `file' or equivalent on your system and you're not sure
5916 # whether `pass_all' will *always* work, you probably want this one.
5920 lt_cv_deplibs_check_method=pass_all
5924 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5929 lt_cv_file_magic_cmd='/usr/bin/file -L'
5930 lt_cv_file_magic_test_file=/shlib/libc.so
5934 # func_win32_libid is a shell function defined in ltmain.sh
5935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5936 lt_cv_file_magic_cmd='func_win32_libid'
5940 # Base MSYS/MinGW do not provide the 'file' command needed by
5941 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5942 # unless we find 'file', for example because we are cross-compiling.
5943 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5944 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5946 lt_cv_file_magic_cmd='func_win32_libid'
5948 # Keep this pattern in sync with the one in func_win32_libid.
5949 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5950 lt_cv_file_magic_cmd='$OBJDUMP -f'
5955 # use the weaker test based on 'objdump'. See mingw*.
5956 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5957 lt_cv_file_magic_cmd='$OBJDUMP -f'
5960 darwin* | rhapsody*)
5961 lt_cv_deplibs_check_method=pass_all
5964 freebsd* | dragonfly*)
5965 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5968 # Not sure whether the presence of OpenBSD here was a mistake.
5969 # Let's accept both of them until this is cleared up.
5970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5971 lt_cv_file_magic_cmd=/usr/bin/file
5972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5976 lt_cv_deplibs_check_method=pass_all
5981 lt_cv_deplibs_check_method=pass_all
5985 lt_cv_deplibs_check_method=pass_all
5988 hpux10.20* | hpux11*)
5989 lt_cv_file_magic_cmd=/usr/bin/file
5992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5996 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]'
5997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6011 irix5* | irix6* | nonstopux*)
6013 *-32|*"-32 ") libmagic=32-bit;;
6014 *-n32|*"-n32 ") libmagic=N32;;
6015 *-64|*"-64 ") libmagic=64-bit;;
6016 *) libmagic=never-match;;
6018 lt_cv_deplibs_check_method=pass_all
6021 # This must be Linux ELF.
6022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6023 lt_cv_deplibs_check_method=pass_all
6027 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6036 lt_cv_file_magic_cmd=/usr/bin/file
6037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6041 lt_cv_deplibs_check_method=pass_all
6045 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6052 osf3* | osf4* | osf5*)
6053 lt_cv_deplibs_check_method=pass_all
6057 lt_cv_deplibs_check_method=pass_all
6061 lt_cv_deplibs_check_method=pass_all
6064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6065 lt_cv_deplibs_check_method=pass_all
6069 case $host_vendor in
6071 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]'
6072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6075 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_file_magic_cmd='/bin/file'
6079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6082 lt_cv_file_magic_cmd='/bin/file'
6083 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6084 lt_cv_file_magic_test_file=/lib/libc.so
6087 lt_cv_deplibs_check_method=pass_all
6090 lt_cv_deplibs_check_method=pass_all
6096 lt_cv_deplibs_check_method=pass_all
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6102 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6106 if test "$build" = "$host"; then
6109 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6112 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6118 file_magic_cmd=$lt_cv_file_magic_cmd
6119 deplibs_check_method=$lt_cv_deplibs_check_method
6120 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_DLLTOOL+:} false; then :
6149 $as_echo_n "(cached) " >&6
6151 if test -n "$DLLTOOL"; then
6152 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 DLLTOOL=$ac_cv_prog_DLLTOOL
6172 if test -n "$DLLTOOL"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6174 $as_echo "$DLLTOOL" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6182 if test -z "$ac_cv_prog_DLLTOOL"; then
6183 ac_ct_DLLTOOL=$DLLTOOL
6184 # Extract the first word of "dlltool", so it can be a program name with args.
6185 set dummy dlltool; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -n "$ac_ct_DLLTOOL"; then
6192 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 test -z "$as_dir" && as_dir=.
6199 for ac_exec_ext in '' $ac_executable_extensions; do
6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6212 if test -n "$ac_ct_DLLTOOL"; then
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6214 $as_echo "$ac_ct_DLLTOOL" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6220 if test "x$ac_ct_DLLTOOL" = x; then
6223 case $cross_compiling:$ac_tool_warned in
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227 ac_tool_warned=yes ;;
6229 DLLTOOL=$ac_ct_DLLTOOL
6232 DLLTOOL="$ac_cv_prog_DLLTOOL"
6235 test -z "$DLLTOOL" && DLLTOOL=dlltool
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6247 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6248 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 lt_cv_sharedlib_from_linklib_cmd='unknown'
6254 cygwin* | mingw* | pw32* | cegcc*)
6255 # two different shell functions defined in ltmain.sh
6256 # decide which to use based on capabilities of $DLLTOOL
6257 case `$DLLTOOL --help 2>&1` in
6258 *--identify-strict*)
6259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6267 # fallback: assume linklib IS sharedlib
6268 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6274 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6275 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6276 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6284 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_AR+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 if test -n "$AR"; then
6295 ac_cv_prog_AR="$AR" # Let the user override the test.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 if test -n "$AR"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6317 $as_echo "$AR" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6324 test -n "$AR" && break
6327 if test -z "$AR"; then
6331 # Extract the first word of "$ac_prog", so it can be a program name with args.
6332 set dummy $ac_prog; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 if test -n "$ac_ct_AR"; then
6339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348 ac_cv_prog_ac_ct_AR="$ac_prog"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359 if test -n "$ac_ct_AR"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6361 $as_echo "$ac_ct_AR" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6368 test -n "$ac_ct_AR" && break
6371 if test "x$ac_ct_AR" = x; then
6374 case $cross_compiling:$ac_tool_warned in
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6398 $as_echo_n "checking for archiver @FILE support... " >&6; }
6399 if ${lt_cv_ar_at_file+:} false; then :
6400 $as_echo_n "(cached) " >&6
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6414 if ac_fn_c_try_compile "$LINENO"; then :
6415 echo conftest.$ac_objext > conftest.lst
6416 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6418 (eval $lt_ar_try) 2>&5
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }
6422 if test "$ac_status" -eq 0; then
6423 # Ensure the archiver fails upon bogus file names.
6424 rm -f conftest.$ac_objext libconftest.a
6425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6426 (eval $lt_ar_try) 2>&5
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; }
6430 if test "$ac_status" -ne 0; then
6434 rm -f conftest.* libconftest.a
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6441 $as_echo "$lt_cv_ar_at_file" >&6; }
6443 if test "x$lt_cv_ar_at_file" = xno; then
6446 archiver_list_spec=$lt_cv_ar_at_file
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_STRIP+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 if test -n "$STRIP"; then
6464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 STRIP=$ac_cv_prog_STRIP
6484 if test -n "$STRIP"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486 $as_echo "$STRIP" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6494 if test -z "$ac_cv_prog_STRIP"; then
6496 # Extract the first word of "strip", so it can be a program name with args.
6497 set dummy strip; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6501 $as_echo_n "(cached) " >&6
6503 if test -n "$ac_ct_STRIP"; then
6504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_ac_ct_STRIP="strip"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6524 if test -n "$ac_ct_STRIP"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6526 $as_echo "$ac_ct_STRIP" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6532 if test "x$ac_ct_STRIP" = x; then
6535 case $cross_compiling:$ac_tool_warned in
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6544 STRIP="$ac_cv_prog_STRIP"
6547 test -z "$STRIP" && STRIP=:
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_RANLIB+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 RANLIB=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 $as_echo "$RANLIB" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594 ac_ct_RANLIB=$RANLIB
6595 # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6600 $as_echo_n "(cached) " >&6
6602 if test -n "$ac_ct_RANLIB"; then
6603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_ac_ct_RANLIB="ranlib"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623 if test -n "$ac_ct_RANLIB"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625 $as_echo "$ac_ct_RANLIB" >&6; }
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$ac_ct_RANLIB" = x; then
6634 case $cross_compiling:$ac_tool_warned in
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6640 RANLIB=$ac_ct_RANLIB
6643 RANLIB="$ac_cv_prog_RANLIB"
6646 test -z "$RANLIB" && RANLIB=:
6653 # Determine commands to create old-style static archives.
6654 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6655 old_postinstall_cmds='chmod 644 $oldlib'
6656 old_postuninstall_cmds=
6658 if test -n "$RANLIB"; then
6661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6667 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6672 lock_old_archive_extraction=yes ;;
6674 lock_old_archive_extraction=no ;;
6697 for ac_prog in gawk mawk nawk awk
6699 # Extract the first word of "$ac_prog", so it can be a program name with args.
6700 set dummy $ac_prog; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_AWK+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$AWK"; then
6707 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AWK="$ac_prog"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 if test -n "$AWK"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6729 $as_echo "$AWK" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6736 test -n "$AWK" && break
6757 # If no C compiler was specified, use CC.
6760 # If no C compiler flags were specified, use CFLAGS.
6761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6763 # Allow CC to be a program name with arguments.
6767 # Check for command to grab the raw symbol name followed by C symbol from nm.
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6769 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6770 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6771 $as_echo_n "(cached) " >&6
6774 # These are sane defaults that work on at least a few old systems.
6775 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6777 # Character class describing NM global symbol codes.
6778 symcode='[BCDEGRST]'
6780 # Regexp to match symbols that can be accessed directly from C.
6781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6783 # Define system-specific variables.
6788 cygwin* | mingw* | pw32* | cegcc*)
6789 symcode='[ABCDGISTW]'
6792 if test "$host_cpu" = ia64; then
6793 symcode='[ABCDEGRST]'
6797 symcode='[BCDEGRST]'
6800 symcode='[BCDEGQRST]'
6811 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6819 # If we're using GNU nm, then use its standard symbol codes.
6820 case `$NM -V 2>&1` in
6821 *GNU* | *'with BFD'*)
6822 symcode='[ABCDGIRSTW]' ;;
6825 # Transform an extracted symbol line into a proper C declaration.
6826 # Some systems (esp. on ia64) link data and code symbols differently,
6827 # so use this general approach.
6828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6830 # Transform an extracted symbol line into symbol name and symbol address
6831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6832 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'"
6834 # Handle CRLF in mingw tool chain
6838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6842 # Try without a prefix underscore, then with it.
6843 for ac_symprfx in "" "_"; do
6845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6846 symxfrm="\\1 $ac_symprfx\\2 \\2"
6848 # Write the raw and C identifiers.
6849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6850 # Fake it for dumpbin and say T for any non-static function
6851 # and D for any global variable.
6852 # Also find C++ and __fastcall symbols from MSVC++,
6853 # which start with @ or ?.
6854 lt_cv_sys_global_symbol_pipe="$AWK '"\
6855 " {last_section=section; section=\$ 3};"\
6856 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6857 " \$ 0!~/External *\|/{next};"\
6858 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6859 " {if(hide[section]) next};"\
6860 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6861 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6862 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6863 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6864 " ' prfx=^$ac_symprfx"
6866 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6868 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6870 # Check to see that the pipe works correctly.
6874 cat > conftest.$ac_ext <<_LT_EOF
6879 void nm_test_func(void);
6880 void nm_test_func(void){}
6884 int main(){nm_test_var='a';nm_test_func();return(0);}
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 # Now try to grab the symbols.
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6895 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; } && test -s "$nlist"; then
6899 # Try sorting and uniquifying the output.
6900 if sort "$nlist" | uniq > "$nlist"T; then
6901 mv -f "$nlist"T "$nlist"
6906 # Make sure that we snagged all the symbols we need.
6907 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6908 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6909 cat <<_LT_EOF > conftest.$ac_ext
6910 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6911 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6912 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6913 relocations are performed -- see ld's documentation on pseudo-relocs. */
6914 # define LT_DLSYM_CONST
6915 #elif defined(__osf__)
6916 /* This system does not cope well with relocations in const data. */
6917 # define LT_DLSYM_CONST
6919 # define LT_DLSYM_CONST const
6927 # Now generate the symbol file.
6928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6930 cat <<_LT_EOF >> conftest.$ac_ext
6932 /* The mapping between symbol names and symbols. */
6933 LT_DLSYM_CONST struct {
6937 lt__PROGRAM__LTX_preloaded_symbols[] =
6939 { "@PROGRAM@", (void *) 0 },
6941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942 cat <<\_LT_EOF >> conftest.$ac_ext
6946 /* This works around a problem in FreeBSD linker */
6947 #ifdef FREEBSD_WORKAROUND
6948 static const void *lt_preloaded_setup() {
6949 return lt__PROGRAM__LTX_preloaded_symbols;
6957 # Now try linking the two files.
6958 mv conftest.$ac_objext conftstm.$ac_objext
6959 lt_globsym_save_LIBS=$LIBS
6960 lt_globsym_save_CFLAGS=$CFLAGS
6961 LIBS="conftstm.$ac_objext"
6962 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6964 (eval $ac_link) 2>&5
6966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6970 LIBS=$lt_globsym_save_LIBS
6971 CFLAGS=$lt_globsym_save_CFLAGS
6973 echo "cannot find nm_test_func in $nlist" >&5
6976 echo "cannot find nm_test_var in $nlist" >&5
6979 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982 echo "$progname: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 rm -rf conftest* conftst*
6987 # Do not use the global_symbol_pipe unless it works.
6988 if test "$pipe_works" = yes; then
6991 lt_cv_sys_global_symbol_pipe=
6997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998 lt_cv_sys_global_symbol_to_cdecl=
7000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7002 $as_echo "failed" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7005 $as_echo "ok" >&6; }
7008 # Response file support.
7009 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7010 nm_file_list_spec='@'
7011 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7012 nm_file_list_spec='@'
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7042 $as_echo_n "checking for sysroot... " >&6; }
7044 # Check whether --with-sysroot was given.
7045 if test "${with_sysroot+set}" = set; then :
7046 withval=$with_sysroot;
7053 case ${with_sysroot} in #(
7055 if test "$GCC" = yes; then
7056 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7060 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7066 $as_echo "${with_sysroot}" >&6; }
7067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7072 $as_echo "${lt_sysroot:-no}" >&6; }
7078 # Check whether --enable-libtool-lock was given.
7079 if test "${enable_libtool_lock+set}" = set; then :
7080 enableval=$enable_libtool_lock;
7083 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7085 # Some flags need to be propagated to the compiler or linker for good
7089 # Find out which ABI we are using.
7090 echo 'int i;' > conftest.$ac_ext
7091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7092 (eval $ac_compile) 2>&5
7094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7095 test $ac_status = 0; }; then
7096 case `/usr/bin/file conftest.$ac_objext` in
7108 # Find out which ABI we are using.
7109 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7111 (eval $ac_compile) 2>&5
7113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114 test $ac_status = 0; }; then
7115 if test "$lt_cv_prog_gnu_ld" = yes; then
7116 case `/usr/bin/file conftest.$ac_objext` in
7118 LD="${LD-ld} -melf32bsmip"
7121 LD="${LD-ld} -melf32bmipn32"
7124 LD="${LD-ld} -melf64bmip"
7128 case `/usr/bin/file conftest.$ac_objext` in
7144 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7145 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7146 # Find out which ABI we are using.
7147 echo 'int i;' > conftest.$ac_ext
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7149 (eval $ac_compile) 2>&5
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; }; then
7153 case `/usr/bin/file conftest.o` in
7156 x86_64-*kfreebsd*-gnu)
7157 LD="${LD-ld} -m elf_i386_fbsd"
7160 LD="${LD-ld} -m elf_i386"
7162 ppc64-*linux*|powerpc64-*linux*)
7163 LD="${LD-ld} -m elf32ppclinux"
7166 LD="${LD-ld} -m elf_s390"
7169 LD="${LD-ld} -m elf32_sparc"
7175 x86_64-*kfreebsd*-gnu)
7176 LD="${LD-ld} -m elf_x86_64_fbsd"
7179 LD="${LD-ld} -m elf_x86_64"
7181 ppc*-*linux*|powerpc*-*linux*)
7182 LD="${LD-ld} -m elf64ppc"
7184 s390*-*linux*|s390*-*tpf*)
7185 LD="${LD-ld} -m elf64_s390"
7188 LD="${LD-ld} -m elf64_sparc"
7198 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7199 SAVE_CFLAGS="$CFLAGS"
7200 CFLAGS="$CFLAGS -belf"
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7202 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7203 if ${lt_cv_cc_needs_belf+:} false; then :
7204 $as_echo_n "(cached) " >&6
7207 ac_cpp='$CPP $CPPFLAGS'
7208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7223 if ac_fn_c_try_link "$LINENO"; then :
7224 lt_cv_cc_needs_belf=yes
7226 lt_cv_cc_needs_belf=no
7228 rm -f core conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext conftest.$ac_ext
7231 ac_cpp='$CPP $CPPFLAGS'
7232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7238 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7241 CFLAGS="$SAVE_CFLAGS"
7245 # Find out which ABI we are using.
7246 echo 'int i;' > conftest.$ac_ext
7247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7248 (eval $ac_compile) 2>&5
7250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; }; then
7252 case `/usr/bin/file conftest.o` in
7254 case $lt_cv_prog_gnu_ld in
7255 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7257 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7269 need_locks="$enable_libtool_lock"
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}mt; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 if test -n "$MANIFEST_TOOL"; then
7280 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7300 if test -n "$MANIFEST_TOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7302 $as_echo "$MANIFEST_TOOL" >&6; }
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7310 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7311 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7312 # Extract the first word of "mt", so it can be a program name with args.
7313 set dummy mt; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 if test -n "$ac_ct_MANIFEST_TOOL"; then
7320 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7340 if test -n "$ac_ct_MANIFEST_TOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7342 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7351 case $cross_compiling:$ac_tool_warned in
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7357 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7360 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7363 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7365 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7366 if ${lt_cv_path_mainfest_tool+:} false; then :
7367 $as_echo_n "(cached) " >&6
7369 lt_cv_path_mainfest_tool=no
7370 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7371 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7372 cat conftest.err >&5
7373 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7374 lt_cv_path_mainfest_tool=yes
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7379 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7380 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7390 rhapsody* | darwin*)
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 if test -n "$DSYMUTIL"; then
7400 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7420 if test -n "$DSYMUTIL"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7422 $as_echo "$DSYMUTIL" >&6; }
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_DSYMUTIL"; then
7431 ac_ct_DSYMUTIL=$DSYMUTIL
7432 # Extract the first word of "dsymutil", so it can be a program name with args.
7433 set dummy dsymutil; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$ac_ct_DSYMUTIL"; then
7440 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7460 if test -n "$ac_ct_DSYMUTIL"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7462 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468 if test "x$ac_ct_DSYMUTIL" = x; then
7471 case $cross_compiling:$ac_tool_warned in
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7477 DSYMUTIL=$ac_ct_DSYMUTIL
7480 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_NMEDIT+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -n "$NMEDIT"; then
7492 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 NMEDIT=$ac_cv_prog_NMEDIT
7512 if test -n "$NMEDIT"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7514 $as_echo "$NMEDIT" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7522 if test -z "$ac_cv_prog_NMEDIT"; then
7523 ac_ct_NMEDIT=$NMEDIT
7524 # Extract the first word of "nmedit", so it can be a program name with args.
7525 set dummy nmedit; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$ac_ct_NMEDIT"; then
7532 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7552 if test -n "$ac_ct_NMEDIT"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7554 $as_echo "$ac_ct_NMEDIT" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7560 if test "x$ac_ct_NMEDIT" = x; then
7563 case $cross_compiling:$ac_tool_warned in
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7569 NMEDIT=$ac_ct_NMEDIT
7572 NMEDIT="$ac_cv_prog_NMEDIT"
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_LIPO+:} false; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$LIPO"; then
7584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 LIPO=$ac_cv_prog_LIPO
7604 if test -n "$LIPO"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7606 $as_echo "$LIPO" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_LIPO"; then
7616 # Extract the first word of "lipo", so it can be a program name with args.
7617 set dummy lipo; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$ac_ct_LIPO"; then
7624 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_LIPO="lipo"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7644 if test -n "$ac_ct_LIPO"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7646 $as_echo "$ac_ct_LIPO" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_LIPO" = x; then
7655 case $cross_compiling:$ac_tool_warned in
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7664 LIPO="$ac_cv_prog_LIPO"
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$OTOOL"; then
7676 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 OTOOL=$ac_cv_prog_OTOOL
7696 if test -n "$OTOOL"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7698 $as_echo "$OTOOL" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_OTOOL"; then
7708 # Extract the first word of "otool", so it can be a program name with args.
7709 set dummy otool; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$ac_ct_OTOOL"; then
7716 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_OTOOL="otool"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7736 if test -n "$ac_ct_OTOOL"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7738 $as_echo "$ac_ct_OTOOL" >&6; }
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_ct_OTOOL" = x; then
7747 case $cross_compiling:$ac_tool_warned in
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7756 OTOOL="$ac_cv_prog_OTOOL"
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_OTOOL64+:} false; then :
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$OTOOL64"; then
7768 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 OTOOL64=$ac_cv_prog_OTOOL64
7788 if test -n "$OTOOL64"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7790 $as_echo "$OTOOL64" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7798 if test -z "$ac_cv_prog_OTOOL64"; then
7799 ac_ct_OTOOL64=$OTOOL64
7800 # Extract the first word of "otool64", so it can be a program name with args.
7801 set dummy otool64; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$ac_ct_OTOOL64"; then
7808 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817 ac_cv_prog_ac_ct_OTOOL64="otool64"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7828 if test -n "$ac_ct_OTOOL64"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7830 $as_echo "$ac_ct_OTOOL64" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7836 if test "x$ac_ct_OTOOL64" = x; then
7839 case $cross_compiling:$ac_tool_warned in
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7845 OTOOL64=$ac_ct_OTOOL64
7848 OTOOL64="$ac_cv_prog_OTOOL64"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7878 $as_echo_n "checking for -single_module linker flag... " >&6; }
7879 if ${lt_cv_apple_cc_single_mod+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 lt_cv_apple_cc_single_mod=no
7883 if test -z "${LT_MULTI_MODULE}"; then
7884 # By default we will add the -single_module flag. You can override
7885 # by either setting the environment variable LT_MULTI_MODULE
7886 # non-empty at configure time, or by adding -multi_module to the
7888 rm -rf libconftest.dylib*
7889 echo "int foo(void){return 1;}" > conftest.c
7890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7891 -dynamiclib -Wl,-single_module conftest.c" >&5
7892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7895 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7896 lt_cv_apple_cc_single_mod=yes
7898 cat conftest.err >&5
7900 rm -rf libconftest.dylib*
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7905 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7907 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7908 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7909 $as_echo_n "(cached) " >&6
7911 lt_cv_ld_exported_symbols_list=no
7912 save_LDFLAGS=$LDFLAGS
7913 echo "_main" > conftest.sym
7914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 lt_cv_ld_exported_symbols_list=yes
7929 lt_cv_ld_exported_symbols_list=no
7931 rm -f core conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LDFLAGS="$save_LDFLAGS"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7939 $as_echo_n "checking for -force_load linker flag... " >&6; }
7940 if ${lt_cv_ld_force_load+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 lt_cv_ld_force_load=no
7944 cat > conftest.c << _LT_EOF
7945 int forced_loaded() { return 2;}
7947 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7948 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7949 echo "$AR cru libconftest.a conftest.o" >&5
7950 $AR cru libconftest.a conftest.o 2>&5
7951 echo "$RANLIB libconftest.a" >&5
7952 $RANLIB libconftest.a 2>&5
7953 cat > conftest.c << _LT_EOF
7954 int main() { return 0;}
7956 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7957 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7959 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7960 lt_cv_ld_force_load=yes
7962 cat conftest.err >&5
7964 rm -f conftest.err libconftest.a conftest conftest.c
7965 rm -rf conftest.dSYM
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7969 $as_echo "$lt_cv_ld_force_load" >&6; }
7971 rhapsody* | darwin1.[012])
7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975 darwin*) # darwin 5.x on
7976 # if running on 10.5 or later, the deployment target defaults
7977 # to the OS version, if on x86, and 10.4, the deployment
7978 # target defaults to 10.4. Don't you love it?
7979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7980 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7985 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7990 _lt_dar_single_mod='$single_module'
7992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7997 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7998 _lt_dsymutil='~$DSYMUTIL $lib || :'
8005 for ac_header in dlfcn.h
8007 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8009 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8010 cat >>confdefs.h <<_ACEOF
8011 #define HAVE_DLFCN_H 1
8021 func_stripname_cnf ()
8024 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8025 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8027 } # func_stripname_cnf
8029 if test "x$with_system_libtool" = "xyes" ; then :
8030 # Extract the first word of "libtool", so it can be a program name with args.
8031 set dummy libtool; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if ${ac_cv_path_LIBTOOL+:} false; then :
8035 $as_echo_n "(cached) " >&6
8039 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 as_dummy="$PATH:/usr/local/bin"
8044 for as_dir in $as_dummy
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 LIBTOOL=$ac_cv_path_LIBTOOL
8062 if test -n "$LIBTOOL"; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOL" >&5
8064 $as_echo "$LIBTOOL" >&6; }
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8086 # Check whether --enable-shared was given.
8087 if test "${enable_shared+set}" = set; then :
8088 enableval=$enable_shared; p=${PACKAGE-default}
8090 yes) enable_shared=yes ;;
8091 no) enable_shared=no ;;
8094 # Look at the argument we got. We use all the common list separators.
8095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8096 for pkg in $enableval; do
8098 if test "X$pkg" = "X$p"; then
8117 # Check whether --enable-static was given.
8118 if test "${enable_static+set}" = set; then :
8119 enableval=$enable_static; p=${PACKAGE-default}
8121 yes) enable_static=yes ;;
8122 no) enable_static=no ;;
8125 # Look at the argument we got. We use all the common list separators.
8126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8127 for pkg in $enableval; do
8129 if test "X$pkg" = "X$p"; then
8149 # Check whether --with-pic was given.
8150 if test "${with_pic+set}" = set; then :
8151 withval=$with_pic; pic_mode="$withval"
8157 test -z "$pic_mode" && pic_mode=default
8165 # Check whether --enable-fast-install was given.
8166 if test "${enable_fast_install+set}" = set; then :
8167 enableval=$enable_fast_install; p=${PACKAGE-default}
8169 yes) enable_fast_install=yes ;;
8170 no) enable_fast_install=no ;;
8172 enable_fast_install=no
8173 # Look at the argument we got. We use all the common list separators.
8174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8175 for pkg in $enableval; do
8177 if test "X$pkg" = "X$p"; then
8178 enable_fast_install=yes
8185 enable_fast_install=yes
8223 test -z "$LN_S" && LN_S="ln -s"
8238 if test -n "${ZSH_VERSION+set}" ; then
8239 setopt NO_GLOB_SUBST
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8243 $as_echo_n "checking for objdir... " >&6; }
8244 if ${lt_cv_objdir+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 rm -f .libs 2>/dev/null
8248 mkdir .libs 2>/dev/null
8249 if test -d .libs; then
8252 # MS-DOS does not allow filenames that begin with a dot.
8255 rmdir .libs 2>/dev/null
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8258 $as_echo "$lt_cv_objdir" >&6; }
8259 objdir=$lt_cv_objdir
8265 cat >>confdefs.h <<_ACEOF
8266 #define LT_OBJDIR "$lt_cv_objdir/"
8274 # AIX sometimes has problems with the GCC collect2 program. For some
8275 # reason, if we set the COLLECT_NAMES environment variable, the problems
8276 # vanish in a puff of smoke.
8277 if test "X${COLLECT_NAMES+set}" != Xset; then
8279 export COLLECT_NAMES
8286 can_build_shared=yes
8288 # All known linkers require a `.a' archive for static linking (except MSVC,
8289 # which needs '.lib').
8292 with_gnu_ld="$lt_cv_prog_gnu_ld"
8295 old_CFLAGS="$CFLAGS"
8297 # Set sane defaults for various variables
8298 test -z "$CC" && CC=cc
8299 test -z "$LTCC" && LTCC=$CC
8300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8301 test -z "$LD" && LD=ld
8302 test -z "$ac_objext" && ac_objext=o
8304 for cc_temp in $compiler""; do
8306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8312 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8315 # Only perform the check for file, if the check method requires it
8316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8317 case $deplibs_check_method in
8319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323 $as_echo_n "(cached) " >&6
8327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8330 lt_save_MAGIC_CMD="$MAGIC_CMD"
8331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333 for ac_dir in $ac_dummy; do
8335 test -z "$ac_dir" && ac_dir=.
8336 if test -f $ac_dir/${ac_tool_prefix}file; then
8337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338 if test -n "$file_magic_test_file"; then
8339 case $deplibs_check_method in
8341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344 $EGREP "$file_magic_regex" > /dev/null; then
8349 *** Warning: the command libtool uses to detect shared libraries,
8350 *** $file_magic_cmd, produces output that libtool cannot recognize.
8351 *** The result is that libtool may fail to recognize shared libraries
8352 *** as such. This will affect the creation of libtool libraries that
8353 *** depend on shared libraries, but programs linked with such libtool
8354 *** libraries will work regardless of this problem. Nevertheless, you
8355 *** may want to report the problem to your system manager and/or to
8356 *** bug-libtool@gnu.org
8366 MAGIC_CMD="$lt_save_MAGIC_CMD"
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if test -n "$MAGIC_CMD"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374 $as_echo "$MAGIC_CMD" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8384 if test -z "$lt_cv_path_MAGIC_CMD"; then
8385 if test -n "$ac_tool_prefix"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8387 $as_echo_n "checking for file... " >&6; }
8388 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8389 $as_echo_n "(cached) " >&6
8393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8396 lt_save_MAGIC_CMD="$MAGIC_CMD"
8397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8399 for ac_dir in $ac_dummy; do
8401 test -z "$ac_dir" && ac_dir=.
8402 if test -f $ac_dir/file; then
8403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8404 if test -n "$file_magic_test_file"; then
8405 case $deplibs_check_method in
8407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8410 $EGREP "$file_magic_regex" > /dev/null; then
8415 *** Warning: the command libtool uses to detect shared libraries,
8416 *** $file_magic_cmd, produces output that libtool cannot recognize.
8417 *** The result is that libtool may fail to recognize shared libraries
8418 *** as such. This will affect the creation of libtool libraries that
8419 *** depend on shared libraries, but programs linked with such libtool
8420 *** libraries will work regardless of this problem. Nevertheless, you
8421 *** may want to report the problem to your system manager and/or to
8422 *** bug-libtool@gnu.org
8432 MAGIC_CMD="$lt_save_MAGIC_CMD"
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if test -n "$MAGIC_CMD"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8440 $as_echo "$MAGIC_CMD" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8456 # Use C for the default configuration in the libtool script
8460 ac_cpp='$CPP $CPPFLAGS'
8461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466 # Source file extension for C test sources.
8469 # Object file extension for compiled C test sources.
8473 # Code to be used in simple compile tests
8474 lt_simple_compile_test_code="int some_variable = 0;"
8476 # Code to be used in simple link tests
8477 lt_simple_link_test_code='int main(){return(0);}'
8485 # If no C compiler was specified, use CC.
8488 # If no C compiler flags were specified, use CFLAGS.
8489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8491 # Allow CC to be a program name with arguments.
8494 # Save the default compiler, since it gets overwritten when the other
8495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8496 compiler_DEFAULT=$CC
8498 # save warnings/boilerplate of simple test code
8499 ac_outfile=conftest.$ac_objext
8500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_compiler_boilerplate=`cat conftest.err`
8505 ac_outfile=conftest.$ac_objext
8506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8508 _lt_linker_boilerplate=`cat conftest.err`
8512 if test -n "$compiler"; then
8514 lt_prog_compiler_no_builtin_flag=
8516 if test "$GCC" = yes; then
8517 case $cc_basename in
8519 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8521 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8525 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8526 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8527 $as_echo_n "(cached) " >&6
8529 lt_cv_prog_compiler_rtti_exceptions=no
8530 ac_outfile=conftest.$ac_objext
8531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8532 lt_compiler_flag="-fno-rtti -fno-exceptions"
8533 # Insert the option either (1) after the last *FLAGS variable, or
8534 # (2) before a word containing "conftest.", or (3) at the end.
8535 # Note that $ac_compile itself does not contain backslashes and begins
8536 # with a dollar sign (not a hyphen), so the echo should work correctly.
8537 # The option is referenced via a variable to avoid confusing sed.
8538 lt_compile=`echo "$ac_compile" | $SED \
8539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8541 -e 's:$: $lt_compiler_flag:'`
8542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8543 (eval "$lt_compile" 2>conftest.err)
8545 cat conftest.err >&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 if (exit $ac_status) && test -s "$ac_outfile"; then
8548 # The compiler can only warn and ignore the option if not recognized
8549 # So say no if there are warnings other than the usual output.
8550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_rtti_exceptions=yes
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8560 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8575 lt_prog_compiler_wl=
8576 lt_prog_compiler_pic=
8577 lt_prog_compiler_static=
8580 if test "$GCC" = yes; then
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_static='-static'
8586 # All AIX code is PIC.
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 now supports IA64 processor
8589 lt_prog_compiler_static='-Bstatic'
8596 # see comment about AmigaOS4 .so support
8597 lt_prog_compiler_pic='-fPIC'
8600 # FIXME: we need at least 68020 code to build shared libraries, but
8601 # adding the `-m68020' flag to GCC prevents building anything better,
8603 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609 # PIC is the default for these OSes.
8612 mingw* | cygwin* | pw32* | os2* | cegcc*)
8613 # This hack is so that the source file can tell whether it is being
8614 # built for inclusion in a dll (and should export symbols for example).
8615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8616 # (--disable-auto-import) libraries
8617 lt_prog_compiler_pic='-DDLL_EXPORT'
8620 darwin* | rhapsody*)
8621 # PIC is the default on this platform
8622 # Common symbols not allowed in MH_DYLIB files
8623 lt_prog_compiler_pic='-fno-common'
8627 # PIC is the default for Haiku.
8628 # The "-static" flag exists, but is broken.
8629 lt_prog_compiler_static=
8633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8635 # sets the default TLS model and affects inlining.
8641 lt_prog_compiler_pic='-fPIC'
8647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8648 # Instead, we relocate shared libraries at runtime.
8652 # Just because we use GCC doesn't mean we suddenly get shared libraries
8653 # on systems that don't support them.
8654 lt_prog_compiler_can_build_shared=no
8659 # QNX uses GNU C++, but need to define -shared option too, otherwise
8661 lt_prog_compiler_pic='-fPIC -shared'
8665 if test -d /usr/nec; then
8666 lt_prog_compiler_pic=-Kconform_pic
8671 lt_prog_compiler_pic='-fPIC'
8675 case $cc_basename in
8676 nvcc*) # Cuda Compiler Driver 2.2
8677 lt_prog_compiler_wl='-Xlinker '
8678 lt_prog_compiler_pic='-Xcompiler -fPIC'
8682 # PORTME Check for flag to pass linker flags through the system compiler.
8685 lt_prog_compiler_wl='-Wl,'
8686 if test "$host_cpu" = ia64; then
8687 # AIX 5 now supports IA64 processor
8688 lt_prog_compiler_static='-Bstatic'
8690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8694 mingw* | cygwin* | pw32* | os2* | cegcc*)
8695 # This hack is so that the source file can tell whether it is being
8696 # built for inclusion in a dll (and should export symbols for example).
8697 lt_prog_compiler_pic='-DDLL_EXPORT'
8700 hpux9* | hpux10* | hpux11*)
8701 lt_prog_compiler_wl='-Wl,'
8702 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8709 lt_prog_compiler_pic='+Z'
8712 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8713 lt_prog_compiler_static='${wl}-a ${wl}archive'
8716 irix5* | irix6* | nonstopux*)
8717 lt_prog_compiler_wl='-Wl,'
8718 # PIC (with -KPIC) is the default.
8719 lt_prog_compiler_static='-non_shared'
8722 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8723 case $cc_basename in
8724 # old Intel for x86_64 which still supported -KPIC.
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-static'
8730 # icc used to be incompatible with GCC.
8731 # ICC 10 doesn't accept -KPIC any more.
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_pic='-fPIC'
8735 lt_prog_compiler_static='-static'
8737 # Lahey Fortran 8.1.
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='--shared'
8741 lt_prog_compiler_static='--static'
8744 # NAG Fortran compiler
8745 lt_prog_compiler_wl='-Wl,-Wl,,'
8746 lt_prog_compiler_pic='-PIC'
8747 lt_prog_compiler_static='-Bstatic'
8749 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8750 # Portland Group compilers (*not* the Pentium gcc compiler,
8751 # which looks to be a dead project)
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-fpic'
8754 lt_prog_compiler_static='-Bstatic'
8757 lt_prog_compiler_wl='-Wl,'
8758 # All Alpha code is PIC.
8759 lt_prog_compiler_static='-non_shared'
8761 xl* | bgxl* | bgf* | mpixl*)
8762 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='-qpic'
8765 lt_prog_compiler_static='-qstaticlink'
8768 case `$CC -V 2>&1 | sed 5q` in
8769 *Sun\ F* | *Sun*Fortran*)
8770 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-Bstatic'
8773 lt_prog_compiler_wl=''
8777 lt_prog_compiler_pic='-KPIC'
8778 lt_prog_compiler_static='-Bstatic'
8779 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8792 # QNX uses GNU C++, but need to define -shared option too, otherwise
8794 lt_prog_compiler_pic='-fPIC -shared'
8797 osf3* | osf4* | osf5*)
8798 lt_prog_compiler_wl='-Wl,'
8799 # All OSF/1 code is PIC.
8800 lt_prog_compiler_static='-non_shared'
8804 lt_prog_compiler_static='-non_shared'
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8810 case $cc_basename in
8811 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8812 lt_prog_compiler_wl='-Qoption ld ';;
8814 lt_prog_compiler_wl='-Wl,';;
8819 lt_prog_compiler_wl='-Qoption ld '
8820 lt_prog_compiler_pic='-PIC'
8821 lt_prog_compiler_static='-Bstatic'
8824 sysv4 | sysv4.2uw2* | sysv4.3*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8831 if test -d /usr/nec ;then
8832 lt_prog_compiler_pic='-Kconform_pic'
8833 lt_prog_compiler_static='-Bstatic'
8837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_can_build_shared=no
8849 lt_prog_compiler_pic='-pic'
8850 lt_prog_compiler_static='-Bstatic'
8854 lt_prog_compiler_can_build_shared=no
8860 # For platforms which do not support PIC, -DPIC is meaningless:
8862 lt_prog_compiler_pic=
8865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8870 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8871 if ${lt_cv_prog_compiler_pic+:} false; then :
8872 $as_echo_n "(cached) " >&6
8874 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8877 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8878 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8881 # Check to make sure the PIC flag actually works.
8883 if test -n "$lt_prog_compiler_pic"; then
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8885 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8886 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8887 $as_echo_n "(cached) " >&6
8889 lt_cv_prog_compiler_pic_works=no
8890 ac_outfile=conftest.$ac_objext
8891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8892 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8893 # Insert the option either (1) after the last *FLAGS variable, or
8894 # (2) before a word containing "conftest.", or (3) at the end.
8895 # Note that $ac_compile itself does not contain backslashes and begins
8896 # with a dollar sign (not a hyphen), so the echo should work correctly.
8897 # The option is referenced via a variable to avoid confusing sed.
8898 lt_compile=`echo "$ac_compile" | $SED \
8899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901 -e 's:$: $lt_compiler_flag:'`
8902 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8903 (eval "$lt_compile" 2>conftest.err)
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 if (exit $ac_status) && test -s "$ac_outfile"; then
8908 # The compiler can only warn and ignore the option if not recognized
8909 # So say no if there are warnings other than the usual output.
8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_pic_works=yes
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8920 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8922 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8923 case $lt_prog_compiler_pic in
8925 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8928 lt_prog_compiler_pic=
8929 lt_prog_compiler_can_build_shared=no
8945 # Check to make sure the static flag actually works.
8947 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8949 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8950 if ${lt_cv_prog_compiler_static_works+:} false; then :
8951 $as_echo_n "(cached) " >&6
8953 lt_cv_prog_compiler_static_works=no
8954 save_LDFLAGS="$LDFLAGS"
8955 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8958 # The linker can only warn and ignore the option if not recognized
8959 # So say no if there are warnings
8960 if test -s conftest.err; then
8961 # Append any errors to the config.log.
8962 cat conftest.err 1>&5
8963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965 if diff conftest.exp conftest.er2 >/dev/null; then
8966 lt_cv_prog_compiler_static_works=yes
8969 lt_cv_prog_compiler_static_works=yes
8973 LDFLAGS="$save_LDFLAGS"
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8977 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8979 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8982 lt_prog_compiler_static=
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8992 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8993 if ${lt_cv_prog_compiler_c_o+:} false; then :
8994 $as_echo_n "(cached) " >&6
8996 lt_cv_prog_compiler_c_o=no
8997 $RM -r conftest 2>/dev/null
9001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9003 lt_compiler_flag="-o out/conftest2.$ac_objext"
9004 # Insert the option either (1) after the last *FLAGS variable, or
9005 # (2) before a word containing "conftest.", or (3) at the end.
9006 # Note that $ac_compile itself does not contain backslashes and begins
9007 # with a dollar sign (not a hyphen), so the echo should work correctly.
9008 lt_compile=`echo "$ac_compile" | $SED \
9009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011 -e 's:$: $lt_compiler_flag:'`
9012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013 (eval "$lt_compile" 2>out/conftest.err)
9015 cat out/conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9019 # The compiler can only warn and ignore the option if not recognized
9020 # So say no if there are warnings
9021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9024 lt_cv_prog_compiler_c_o=yes
9029 # SGI C++ compiler will create directory out/ii_files/ for
9030 # template instantiation
9031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9032 $RM out/* && rmdir out
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9039 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9047 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9048 if ${lt_cv_prog_compiler_c_o+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 lt_cv_prog_compiler_c_o=no
9052 $RM -r conftest 2>/dev/null
9056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058 lt_compiler_flag="-o out/conftest2.$ac_objext"
9059 # Insert the option either (1) after the last *FLAGS variable, or
9060 # (2) before a word containing "conftest.", or (3) at the end.
9061 # Note that $ac_compile itself does not contain backslashes and begins
9062 # with a dollar sign (not a hyphen), so the echo should work correctly.
9063 lt_compile=`echo "$ac_compile" | $SED \
9064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9066 -e 's:$: $lt_compiler_flag:'`
9067 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9068 (eval "$lt_compile" 2>out/conftest.err)
9070 cat out/conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9074 # The compiler can only warn and ignore the option if not recognized
9075 # So say no if there are warnings
9076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_c_o=yes
9084 # SGI C++ compiler will create directory out/ii_files/ for
9085 # template instantiation
9086 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9087 $RM out/* && rmdir out
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9094 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9099 hard_links="nottested"
9100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9101 # do not overwrite the value of need_locks provided by the user
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9103 $as_echo_n "checking if we can lock with hard links... " >&6; }
9106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9108 ln conftest.a conftest.b 2>&5 || hard_links=no
9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9111 $as_echo "$hard_links" >&6; }
9112 if test "$hard_links" = no; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9114 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9130 allow_undefined_flag=
9131 always_export_symbols=no
9133 archive_expsym_cmds=
9134 compiler_needs_object=no
9135 enable_shared_with_static_runtimes=no
9136 export_dynamic_flag_spec=
9137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9138 hardcode_automatic=no
9140 hardcode_direct_absolute=no
9141 hardcode_libdir_flag_spec=
9142 hardcode_libdir_flag_spec_ld=
9143 hardcode_libdir_separator=
9145 hardcode_shlibpath_var=unsupported
9147 link_all_deplibs=unknown
9150 old_archive_from_new_cmds=
9151 old_archive_from_expsyms_cmds=
9152 thread_safe_flag_spec=
9153 whole_archive_flag_spec=
9154 # include_expsyms should be a list of space-separated symbols to be *always*
9155 # included in the symbol list
9157 # exclude_expsyms can be an extended regexp of symbols to exclude
9158 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9159 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9160 # as well as any symbol that contains `d'.
9161 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9162 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9163 # platforms (ab)use it in PIC code, but their linkers get confused if
9164 # the symbol is explicitly referenced. Since portable code cannot
9165 # rely on this symbol name, it's probably fine to never include it in
9166 # preloaded symbol tables.
9167 # Exclude shared library initialization/finalization symbols.
9168 extract_expsyms_cmds=
9171 cygwin* | mingw* | pw32* | cegcc*)
9172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9173 # When not using gcc, we currently assume that we are using
9174 # Microsoft Visual C++.
9175 if test "$GCC" != yes; then
9180 # we just hope/assume this is gcc and not c89 (= MSVC++)
9190 # On some targets, GNU ld is compatible enough with the native linker
9191 # that we're better off using the native interface for both.
9192 lt_use_gnu_ld_interface=no
9193 if test "$with_gnu_ld" = yes; then
9196 # The AIX port of GNU ld has always aspired to compatibility
9197 # with the native linker. However, as the warning in the GNU ld
9198 # block says, versions before 2.19.5* couldn't really create working
9199 # shared libraries, regardless of the interface used.
9200 case `$LD -v 2>&1` in
9201 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9202 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9203 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9205 lt_use_gnu_ld_interface=yes
9210 lt_use_gnu_ld_interface=yes
9215 if test "$lt_use_gnu_ld_interface" = yes; then
9216 # If archive_cmds runs LD, not CC, wlarc should be empty
9219 # Set some defaults for GNU ld with shared library support. These
9220 # are reset later if shared libraries are not supported. Putting them
9221 # here allows them to be overridden if necessary.
9222 runpath_var=LD_RUN_PATH
9223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224 export_dynamic_flag_spec='${wl}--export-dynamic'
9225 # ancient GNU ld didn't support --whole-archive et. al.
9226 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9227 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9229 whole_archive_flag_spec=
9231 supports_anon_versioning=no
9232 case `$LD -v 2>&1` in
9233 *GNU\ gold*) supports_anon_versioning=yes ;;
9234 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9237 *\ 2.11.*) ;; # other 2.11 versions
9238 *) supports_anon_versioning=yes ;;
9241 # See if GNU ld supports shared libraries.
9244 # On AIX/PPC, the GNU linker is very broken
9245 if test "$host_cpu" != ia64; then
9249 *** Warning: the GNU linker, at least up to release 2.19, is reported
9250 *** to be unable to reliably create shared libraries on AIX.
9251 *** Therefore, libtool is disabling shared libraries support. If you
9252 *** really care for shared libraries, you may want to install binutils
9253 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9254 *** You will then need to restart the configuration process.
9263 # see comment about AmigaOS4 .so support
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 archive_expsym_cmds=''
9268 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)'
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_minus_L=yes
9276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9277 allow_undefined_flag=unsupported
9278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9279 # support --undefined. This deserves some investigation. FIXME
9280 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9288 # as there is no search path for DLLs.
9289 hardcode_libdir_flag_spec='-L$libdir'
9290 export_dynamic_flag_spec='${wl}--export-all-symbols'
9291 allow_undefined_flag=unsupported
9292 always_export_symbols=no
9293 enable_shared_with_static_runtimes=yes
9294 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'
9295 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9297 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9299 # If the export-symbols file already is a .def file (1st line
9300 # is EXPORTS), use it as is; otherwise, prepend...
9301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9302 cp $export_symbols $output_objdir/$soname.def;
9304 echo EXPORTS > $output_objdir/$soname.def;
9305 cat $export_symbols >> $output_objdir/$soname.def;
9307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315 link_all_deplibs=yes
9320 hardcode_shlibpath_var=no
9321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322 export_dynamic_flag_spec='${wl}-E'
9323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9324 # Instead, shared libraries are loaded at an image base (0x10000000 by
9325 # default) and relocated if they conflict, which is a slow very memory
9326 # consuming and fragmenting process. To avoid this, we pick a random,
9327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9330 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'
9333 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9335 if test "$host_os" = linux-dietlibc; then
9336 case $cc_basename in
9337 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9340 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9341 && test "$tmp_diet" = no
9343 tmp_addflag=' $pic_flag'
9344 tmp_sharedflag='-shared'
9345 case $cc_basename,$host_cpu in
9346 pgcc*) # Portland Group C compiler
9347 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'
9348 tmp_addflag=' $pic_flag'
9350 pgf77* | pgf90* | pgf95* | pgfortran*)
9351 # Portland Group f77 and f90 compilers
9352 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'
9353 tmp_addflag=' $pic_flag -Mnomain' ;;
9354 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9355 tmp_addflag=' -i_dynamic' ;;
9356 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9357 tmp_addflag=' -i_dynamic -nofor_main' ;;
9358 ifc* | ifort*) # Intel Fortran compiler
9359 tmp_addflag=' -nofor_main' ;;
9360 lf95*) # Lahey Fortran 8.1
9361 whole_archive_flag_spec=
9362 tmp_sharedflag='--shared' ;;
9363 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9364 tmp_sharedflag='-qmkshrobj'
9366 nvcc*) # Cuda Compiler Driver 2.2
9367 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'
9368 compiler_needs_object=yes
9371 case `$CC -V 2>&1 | sed 5q` in
9372 *Sun\ C*) # Sun C 5.9
9373 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'
9374 compiler_needs_object=yes
9375 tmp_sharedflag='-G' ;;
9376 *Sun\ F*) # Sun Fortran 8.3
9377 tmp_sharedflag='-G' ;;
9379 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 if test "x$supports_anon_versioning" = xyes; then
9382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9384 echo "local: *; };" >> $output_objdir/$libname.ver~
9385 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9388 case $cc_basename in
9389 xlf* | bgf* | bgxlf* | mpixlf*)
9390 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9391 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9392 hardcode_libdir_flag_spec=
9393 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9394 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9395 if test "x$supports_anon_versioning" = xyes; then
9396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9398 echo "local: *; };" >> $output_objdir/$libname.ver~
9399 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9410 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9424 *** create shared libraries on Solaris systems. Therefore, libtool
9425 *** is disabling shared libraries support. We urge you to upgrade GNU
9426 *** binutils to release 2.9.1 or newer. Another option is to modify
9427 *** your PATH or compiler configuration so that the native linker is
9428 *** used, and then restart.
9431 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9440 case `$LD -v 2>&1` in
9441 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9445 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9446 *** reliably create shared libraries on SCO systems. Therefore, libtool
9447 *** is disabling shared libraries support. We urge you to upgrade GNU
9448 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9449 *** your PATH or compiler configuration so that the native linker is
9450 *** used, and then restart.
9455 # For security reasons, it is highly recommended that you always
9456 # use absolute paths for naming shared libraries, and exclude the
9457 # DT_RUNPATH tag from executables and libraries. But doing so
9458 # requires that you compile everything twice, which is a pain.
9459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_shlibpath_var=no
9478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487 if test "$ld_shlibs" = no; then
9489 hardcode_libdir_flag_spec=
9490 export_dynamic_flag_spec=
9491 whole_archive_flag_spec=
9494 # PORTME fill in a description of your system's linker (not GNU ld)
9497 allow_undefined_flag=unsupported
9498 always_export_symbols=yes
9499 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'
9500 # Note: this linker hardcodes the directories in LIBPATH if there
9501 # are no directories specified by -L.
9502 hardcode_minus_L=yes
9503 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9504 # Neither direct hardcoding nor static linking is supported with a
9506 hardcode_direct=unsupported
9511 if test "$host_cpu" = ia64; then
9512 # On IA64, the linker does run time linking by default, so we don't
9513 # have to do anything special.
9514 aix_use_runtimelinking=no
9515 exp_sym_flag='-Bexport'
9518 # If we're using GNU nm, then we don't want the "-C" option.
9519 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9520 # Also, AIX nm treats weak defined symbols like other global
9521 # defined symbols, whereas GNU nm marks them as "W".
9522 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9523 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'
9525 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'
9527 aix_use_runtimelinking=no
9529 # Test if we are trying to use run time linking or normal
9530 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9531 # need to do runtime linking.
9532 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533 for ld_flag in $LDFLAGS; do
9534 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9535 aix_use_runtimelinking=yes
9542 exp_sym_flag='-bexport'
9543 no_entry_flag='-bnoentry'
9546 # When large executables or shared objects are built, AIX ld can
9547 # have problems creating the table of contents. If linking a library
9548 # or program results in "error TOC overflow" add -mminimal-toc to
9549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9554 hardcode_direct_absolute=yes
9555 hardcode_libdir_separator=':'
9556 link_all_deplibs=yes
9557 file_list_spec='${wl}-f,'
9559 if test "$GCC" = yes; then
9560 case $host_os in aix4.[012]|aix4.[012].*)
9561 # We only want to do this on AIX 4.2 and lower, the check
9562 # below for broken collect2 doesn't work under 4.3+
9563 collect2name=`${CC} -print-prog-name=collect2`
9564 if test -f "$collect2name" &&
9565 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9567 # We have reworked collect2
9570 # We have old collect2
9571 hardcode_direct=unsupported
9572 # It fails to find uninstalled libraries when the uninstalled
9573 # path is not listed in the libpath. Setting hardcode_minus_L
9574 # to unsupported forces relinking
9575 hardcode_minus_L=yes
9576 hardcode_libdir_flag_spec='-L$libdir'
9577 hardcode_libdir_separator=
9581 shared_flag='-shared'
9582 if test "$aix_use_runtimelinking" = yes; then
9583 shared_flag="$shared_flag "'${wl}-G'
9587 if test "$host_cpu" = ia64; then
9588 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9589 # chokes on -Wl,-G. The following line is correct:
9592 if test "$aix_use_runtimelinking" = yes; then
9593 shared_flag='${wl}-G'
9595 shared_flag='${wl}-bM:SRE'
9600 export_dynamic_flag_spec='${wl}-bexpall'
9601 # It seems that -bexpall does not export symbols beginning with
9602 # underscore (_), so it is better to generate a list of symbols to export.
9603 always_export_symbols=yes
9604 if test "$aix_use_runtimelinking" = yes; then
9605 # Warning - without using the other runtime loading flags (-brtl),
9606 # -berok will link without error, but may produce a broken library.
9607 allow_undefined_flag='-berok'
9608 # Determine the default libpath from the value encoded in an
9610 if test "${lt_cv_aix_libpath+set}" = set; then
9611 aix_libpath=$lt_cv_aix_libpath
9613 if ${lt_cv_aix_libpath_+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9627 if ac_fn_c_try_link "$LINENO"; then :
9629 lt_aix_libpath_sed='
9630 /Import File Strings/,/^$/ {
9632 s/^0 *\([^ ]*\) *$/\1/
9636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 # Check for a 64-bit object if we didn't find anything.
9638 if test -z "$lt_cv_aix_libpath_"; then
9639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$lt_cv_aix_libpath_"; then
9645 lt_cv_aix_libpath_="/usr/lib:/lib"
9650 aix_libpath=$lt_cv_aix_libpath_
9653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9654 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"
9656 if test "$host_cpu" = ia64; then
9657 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9658 allow_undefined_flag="-z nodefs"
9659 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"
9661 # Determine the default libpath from the value encoded in an
9663 if test "${lt_cv_aix_libpath+set}" = set; then
9664 aix_libpath=$lt_cv_aix_libpath
9666 if ${lt_cv_aix_libpath_+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9680 if ac_fn_c_try_link "$LINENO"; then :
9682 lt_aix_libpath_sed='
9683 /Import File Strings/,/^$/ {
9685 s/^0 *\([^ ]*\) *$/\1/
9689 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9690 # Check for a 64-bit object if we didn't find anything.
9691 if test -z "$lt_cv_aix_libpath_"; then
9692 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 if test -z "$lt_cv_aix_libpath_"; then
9698 lt_cv_aix_libpath_="/usr/lib:/lib"
9703 aix_libpath=$lt_cv_aix_libpath_
9706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9707 # Warning - without using the other run time loading flags,
9708 # -berok will link without error, but may produce a broken library.
9709 no_undefined_flag=' ${wl}-bernotok'
9710 allow_undefined_flag=' ${wl}-berok'
9711 if test "$with_gnu_ld" = yes; then
9712 # We only use this code for GNU lds that support --whole-archive.
9713 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9715 # Exported symbols can be pulled into shared objects from archives
9716 whole_archive_flag_spec='$convenience'
9718 archive_cmds_need_lc=yes
9719 # This is similar to how AIX traditionally builds its shared libraries.
9720 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'
9728 # see comment about AmigaOS4 .so support
9729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730 archive_expsym_cmds=''
9733 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)'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_minus_L=yes
9741 export_dynamic_flag_spec=-rdynamic
9744 cygwin* | mingw* | pw32* | cegcc*)
9745 # When not using gcc, we currently assume that we are using
9746 # Microsoft Visual C++.
9747 # hardcode_libdir_flag_spec is actually meaningless, as there is
9748 # no search path for DLLs.
9749 case $cc_basename in
9752 hardcode_libdir_flag_spec=' '
9753 allow_undefined_flag=unsupported
9754 always_export_symbols=yes
9756 # Tell ltmain to make .lib files, not .a files.
9758 # Tell ltmain to make .dll files, not .so files.
9760 # FIXME: Setting linknames here is a bad hack.
9761 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9762 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9763 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9765 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9767 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9769 # The linker will not automatically build a static lib if we build a DLL.
9770 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9771 enable_shared_with_static_runtimes=yes
9772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9774 old_postinstall_cmds='chmod 644 $oldlib'
9775 postlink_cmds='lt_outputfile="@OUTPUT@"~
9776 lt_tool_outputfile="@TOOL_OUTPUT@"~
9777 case $lt_outputfile in
9780 lt_outputfile="$lt_outputfile.exe"
9781 lt_tool_outputfile="$lt_tool_outputfile.exe"
9784 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9785 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9786 $RM "$lt_outputfile.manifest";
9790 # Assume MSVC wrapper
9791 hardcode_libdir_flag_spec=' '
9792 allow_undefined_flag=unsupported
9793 # Tell ltmain to make .lib files, not .a files.
9795 # Tell ltmain to make .dll files, not .so files.
9797 # FIXME: Setting linknames here is a bad hack.
9798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9799 # The linker will automatically build a .lib file if we build a DLL.
9800 old_archive_from_new_cmds='true'
9801 # FIXME: Should let the user specify the lib program.
9802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9803 enable_shared_with_static_runtimes=yes
9808 darwin* | rhapsody*)
9811 archive_cmds_need_lc=no
9813 hardcode_automatic=yes
9814 hardcode_shlibpath_var=unsupported
9815 if test "$lt_cv_ld_force_load" = "yes"; then
9816 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\"`'
9818 whole_archive_flag_spec=''
9820 link_all_deplibs=yes
9821 allow_undefined_flag="$_lt_dar_allow_undefined"
9822 case $cc_basename in
9823 ifort*) _lt_dar_can_shared=yes ;;
9824 *) _lt_dar_can_shared=$GCC ;;
9826 if test "$_lt_dar_can_shared" = "yes"; then
9827 output_verbose_link_cmd=func_echo_all
9828 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9829 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9830 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}"
9831 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}"
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_shlibpath_var=no
9849 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9850 # support. Future versions do this automatically, but an explicit c++rt0.o
9851 # does not break anything, and helps significantly (at the cost of a little
9854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9855 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_shlibpath_var=no
9860 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_minus_L=yes
9865 hardcode_shlibpath_var=no
9868 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9869 freebsd* | dragonfly*)
9870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9871 hardcode_libdir_flag_spec='-R$libdir'
9873 hardcode_shlibpath_var=no
9877 if test "$GCC" = yes; then
9878 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'
9880 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'
9882 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883 hardcode_libdir_separator=:
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 export_dynamic_flag_spec='${wl}-E'
9893 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898 if test "$with_gnu_ld" = no; then
9899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900 hardcode_libdir_flag_spec_ld='+b $libdir'
9901 hardcode_libdir_separator=:
9903 hardcode_direct_absolute=yes
9904 export_dynamic_flag_spec='${wl}-E'
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9915 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9934 # Older versions of the 11.00 compiler do not understand -b yet
9935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937 $as_echo_n "checking if $CC understands -b... " >&6; }
9938 if ${lt_cv_prog_compiler__b+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 lt_cv_prog_compiler__b=no
9942 save_LDFLAGS="$LDFLAGS"
9943 LDFLAGS="$LDFLAGS -b"
9944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946 # The linker can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 if test -s conftest.err; then
9949 # Append any errors to the config.log.
9950 cat conftest.err 1>&5
9951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler__b=yes
9957 lt_cv_prog_compiler__b=yes
9961 LDFLAGS="$save_LDFLAGS"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9967 if test x"$lt_cv_prog_compiler__b" = xyes; then
9968 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9976 if test "$with_gnu_ld" = no; then
9977 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978 hardcode_libdir_separator=:
9983 hardcode_shlibpath_var=no
9987 hardcode_direct_absolute=yes
9988 export_dynamic_flag_spec='${wl}-E'
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9998 irix5* | irix6* | nonstopux*)
9999 if test "$GCC" = yes; then
10000 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'
10001 # Try to use the -exported_symbol ld option, if it does not
10002 # work, assume that -exports_file does not work either and
10003 # implicitly export all symbols.
10004 # This should be the same for all languages, so no per-tag cache variable.
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10006 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10007 if ${lt_cv_irix_exported_symbol+:} false; then :
10008 $as_echo_n "(cached) " >&6
10010 save_LDFLAGS="$LDFLAGS"
10011 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 int foo (void) { return 0; }
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 lt_cv_irix_exported_symbol=yes
10019 lt_cv_irix_exported_symbol=no
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LDFLAGS="$save_LDFLAGS"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10026 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10027 if test "$lt_cv_irix_exported_symbol" = yes; then
10028 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'
10031 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'
10032 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'
10034 archive_cmds_need_lc='no'
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator=:
10038 link_all_deplibs=yes
10042 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10043 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10045 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes
10055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_shlibpath_var=no
10064 if test -f /usr/libexec/ld.so; then
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10067 hardcode_direct_absolute=yes
10068 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10069 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10072 export_dynamic_flag_spec='${wl}-E'
10075 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_libdir_flag_spec='-R$libdir'
10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10091 hardcode_libdir_flag_spec='-L$libdir'
10092 hardcode_minus_L=yes
10093 allow_undefined_flag=unsupported
10094 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'
10095 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10099 if test "$GCC" = yes; then
10100 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101 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'
10103 allow_undefined_flag=' -expect_unresolved \*'
10104 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'
10106 archive_cmds_need_lc='no'
10107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10108 hardcode_libdir_separator=:
10111 osf4* | osf5*) # as osf3* with the addition of -msym flag
10112 if test "$GCC" = yes; then
10113 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10114 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'
10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 allow_undefined_flag=' -expect_unresolved \*'
10118 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'
10119 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~
10120 $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'
10122 # Both c and cxx compiler support -rpath directly
10123 hardcode_libdir_flag_spec='-rpath $libdir'
10125 archive_cmds_need_lc='no'
10126 hardcode_libdir_separator=:
10130 no_undefined_flag=' -z defs'
10131 if test "$GCC" = yes; then
10133 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135 $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'
10137 case `$CC -V 2>&1` in
10140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10146 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10152 hardcode_libdir_flag_spec='-R$libdir'
10153 hardcode_shlibpath_var=no
10155 solaris2.[0-5] | solaris2.[0-5].*) ;;
10157 # The compiler driver will combine and reorder linker options,
10158 # but understands `-z linker_flag'. GCC discards it without `$wl',
10159 # but is careful enough not to reorder.
10160 # Supported since Solaris 2.6 (maybe 2.5.1?)
10161 if test "$GCC" = yes; then
10162 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10164 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10168 link_all_deplibs=yes
10172 if test "x$host_vendor" = xsequent; then
10173 # Use $CC to link under sequent, because it throws in some extra .o
10174 # files that make .init and .fini sections work.
10175 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_direct=yes
10181 hardcode_minus_L=yes
10182 hardcode_shlibpath_var=no
10186 case $host_vendor in
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_direct=yes # is this really true???
10192 ## LD is ld it makes a PLAMLIB
10193 ## CC just makes a GrossModule.
10194 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10195 reload_cmds='$CC -r -o $output$reload_objs'
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10203 runpath_var='LD_RUN_PATH'
10204 hardcode_shlibpath_var=no
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_shlibpath_var=no
10210 export_dynamic_flag_spec='-Bexport'
10214 if test -d /usr/nec; then
10215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216 hardcode_shlibpath_var=no
10217 runpath_var=LD_RUN_PATH
10218 hardcode_runpath_var=yes
10223 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10224 no_undefined_flag='${wl}-z,text'
10225 archive_cmds_need_lc=no
10226 hardcode_shlibpath_var=no
10227 runpath_var='LD_RUN_PATH'
10229 if test "$GCC" = yes; then
10230 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 sysv5* | sco3.2v5* | sco5v6*)
10239 # Note: We can NOT use -z defs as we might desire, because we do not
10240 # link with -lc, and that would cause any symbols used from libc to
10241 # always be unresolved, which means just about no library would
10242 # ever link correctly. If we're not using GNU ld we use -z text
10243 # though, which does catch some bad symbols but isn't as heavy-handed
10245 no_undefined_flag='${wl}-z,text'
10246 allow_undefined_flag='${wl}-z,nodefs'
10247 archive_cmds_need_lc=no
10248 hardcode_shlibpath_var=no
10249 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10250 hardcode_libdir_separator=':'
10251 link_all_deplibs=yes
10252 export_dynamic_flag_spec='${wl}-Bexport'
10253 runpath_var='LD_RUN_PATH'
10255 if test "$GCC" = yes; then
10256 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_shlibpath_var=no
10275 if test x$host_vendor = xsni; then
10277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10278 export_dynamic_flag_spec='${wl}-Blargedynsym'
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10285 $as_echo "$ld_shlibs" >&6; }
10286 test "$ld_shlibs" = no && can_build_shared=no
10288 with_gnu_ld=$with_gnu_ld
10305 # Do we need to explicitly link libc?
10307 case "x$archive_cmds_need_lc" in
10309 # Assume -lc should be added
10310 archive_cmds_need_lc=yes
10312 if test "$enable_shared" = yes && test "$GCC" = yes; then
10313 case $archive_cmds in
10315 # FIXME: we may have to deal with multi-command sequences.
10318 # Test whether the compiler implicitly links with -lc since on some
10319 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10320 # to ld, don't add -lc before -lgcc.
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10322 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10323 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10324 $as_echo_n "(cached) " >&6
10327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10330 (eval $ac_compile) 2>&5
10332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10333 test $ac_status = 0; } 2>conftest.err; then
10336 libobjs=conftest.$ac_objext
10338 wl=$lt_prog_compiler_wl
10339 pic_flag=$lt_prog_compiler_pic
10345 lt_save_allow_undefined_flag=$allow_undefined_flag
10346 allow_undefined_flag=
10347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10348 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10351 test $ac_status = 0; }
10353 lt_cv_archive_cmds_need_lc=no
10355 lt_cv_archive_cmds_need_lc=yes
10357 allow_undefined_flag=$lt_save_allow_undefined_flag
10359 cat conftest.err 1>&5
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10365 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10366 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10530 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10532 if test "$GCC" = yes; then
10534 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10535 *) lt_awk_arg="/^libraries:/" ;;
10538 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10539 *) lt_sed_strip_eq="s,=/,/,g" ;;
10541 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10542 case $lt_search_path_spec in
10544 # if the path contains ";" then we assume it to be the separator
10545 # otherwise default to the standard path separator (i.e. ":") - it is
10546 # assumed that no part of a normal pathname contains ";" but that should
10547 # okay in the real world where ";" in dirpaths is itself problematic.
10548 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10554 # Ok, now we have the path, separated by spaces, we can step through it
10555 # and add multilib dir if necessary.
10556 lt_tmp_lt_search_path_spec=
10557 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10558 for lt_sys_path in $lt_search_path_spec; do
10559 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10560 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10562 test -d "$lt_sys_path" && \
10563 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10566 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10567 BEGIN {RS=" "; FS="/|\n";} {
10570 for (lt_i = NF; lt_i > 0; lt_i--) {
10571 if ($lt_i != "" && $lt_i != ".") {
10572 if ($lt_i == "..") {
10575 if (lt_count == 0) {
10576 lt_foo="/" $lt_i lt_foo;
10583 if (lt_foo != "") { lt_freq[lt_foo]++; }
10584 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10586 # AWK program above erroneously prepends '/' to C:/dos/paths
10589 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10590 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10592 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10596 library_names_spec=
10597 libname_spec='lib$name'
10601 postuninstall_cmds=
10605 shlibpath_overrides_runpath=unknown
10607 dynamic_linker="$host_os ld.so"
10608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10609 need_lib_prefix=unknown
10610 hardcode_into_libs=no
10612 # when you set need_version to no, make sure it does not cause -set_version
10613 # flags to be left without arguments
10614 need_version=unknown
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10620 shlibpath_var=LIBPATH
10622 # AIX 3 has no versioning support, so we append a major version to the name.
10623 soname_spec='${libname}${release}${shared_ext}$major'
10630 hardcode_into_libs=yes
10631 if test "$host_cpu" = ia64; then
10632 # AIX 5 supports IA64
10633 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10634 shlibpath_var=LD_LIBRARY_PATH
10636 # With GCC up to 2.95.x, collect2 would create an import file
10637 # for dependence libraries. The import file would start with
10638 # the line `#! .'. This would cause the generated library to
10639 # depend on `.', always an invalid library. This was fixed in
10640 # development snapshots of GCC prior to 3.0.
10642 aix4 | aix4.[01] | aix4.[01].*)
10643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10645 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10648 can_build_shared=no
10652 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10653 # soname into executable. Probably we can add versioning support to
10654 # collect2, so additional links can be useful in future.
10655 if test "$aix_use_runtimelinking" = yes; then
10656 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10657 # instead of lib<name>.a to let people know that these are not
10658 # typical AIX shared libraries.
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 # We preserve .a as extension for shared libraries through AIX4.2
10662 # and later when we are not doing run time linking.
10663 library_names_spec='${libname}${release}.a $libname.a'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10666 shlibpath_var=LIBPATH
10673 # Since July 2007 AmigaOS4 officially supports .so libraries.
10674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 library_names_spec='$libname.ixlibrary $libname.a'
10679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10680 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'
10686 library_names_spec='${libname}${shared_ext}'
10687 dynamic_linker="$host_os ld.so"
10688 shlibpath_var=LIBRARY_PATH
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10700 # the default ld.so.conf also contains /usr/contrib/lib and
10701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10702 # libtool to hard-code these into programs
10705 cygwin* | mingw* | pw32* | cegcc*)
10706 version_type=windows
10711 case $GCC,$cc_basename in
10714 library_names_spec='$libname.dll.a'
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds='base_file=`basename \${file}`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname~
10721 chmod a+x \$dldir/$dlname~
10722 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10723 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10725 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10726 dlpath=$dir/\$dldll~
10728 shlibpath_overrides_runpath=yes
10732 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10733 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10735 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10738 # MinGW DLLs use traditional 'lib' prefix
10739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10742 # pw32 DLLs use 'pw' prefix rather than 'lib'
10743 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10746 dynamic_linker='Win32 ld.exe'
10751 libname_spec='$name'
10752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10753 library_names_spec='${libname}.dll.lib'
10757 sys_lib_search_path_spec=
10760 for lt_path in $LIB
10763 # Let DOS variable expansion print the short 8.3 style file name.
10764 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10768 # Convert to MSYS style.
10769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10772 # Convert to unix form, then to dos form, then back to unix form
10773 # but this time dos style (no spaces!) so that the unix form looks
10774 # like /cygdrive/c/PROGRA~1:/cygdr...
10775 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10776 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10777 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10780 sys_lib_search_path_spec="$LIB"
10781 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10782 # It is most probably a Windows format PATH.
10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10787 # FIXME: find the short name or the path components, as spaces are
10788 # common. (e.g. "Program Files" -> "PROGRA~1")
10792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793 postinstall_cmds='base_file=`basename \${file}`~
10794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10795 dldir=$destdir/`dirname \$dlpath`~
10796 test -d \$dldir || mkdir -p \$dldir~
10797 $install_prog $dir/$dlname \$dldir/$dlname'
10798 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10799 dlpath=$dir/\$dldll~
10801 shlibpath_overrides_runpath=yes
10802 dynamic_linker='Win32 link.exe'
10806 # Assume MSVC wrapper
10807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10808 dynamic_linker='Win32 ld.exe'
10811 # FIXME: first we should search . and the directory the executable is in
10815 darwin* | rhapsody*)
10816 dynamic_linker="$host_os dyld"
10817 version_type=darwin
10820 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10821 soname_spec='${libname}${release}${major}$shared_ext'
10822 shlibpath_overrides_runpath=yes
10823 shlibpath_var=DYLD_LIBRARY_PATH
10824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10826 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 shlibpath_var=LD_LIBRARY_PATH
10843 freebsd* | dragonfly*)
10844 # DragonFly does not have aout. When/if they implement a new
10845 # versioning mechanism, adjust this.
10846 if test -x /usr/bin/objformat; then
10847 objformat=`/usr/bin/objformat`
10850 freebsd[123]*) objformat=aout ;;
10851 *) objformat=elf ;;
10854 version_type=freebsd-$objformat
10855 case $version_type in
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10866 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10871 freebsd3.[01]* | freebsdelf3.[01]*)
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10875 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10876 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10877 shlibpath_overrides_runpath=no
10878 hardcode_into_libs=yes
10880 *) # from 4.6 on, and DragonFly
10881 shlibpath_overrides_runpath=yes
10882 hardcode_into_libs=yes
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 hardcode_into_libs=yes
10901 dynamic_linker="$host_os runtime_loader"
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10907 hardcode_into_libs=yes
10910 hpux9* | hpux10* | hpux11*)
10911 # Give a soname corresponding to the major version so that dld.sl refuses to
10912 # link against other versions.
10919 hardcode_into_libs=yes
10920 dynamic_linker="$host_os dld.so"
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 if test "X$HPUX_IA64_MODE" = X32; then
10926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10934 hardcode_into_libs=yes
10935 dynamic_linker="$host_os dld.sl"
10936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10945 dynamic_linker="$host_os dld.sl"
10946 shlibpath_var=SHLIB_PATH
10947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10953 postinstall_cmds='chmod 555 $lib'
10954 # or fails outright, so override atomically:
10955 install_override_mode=555
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=no
10967 hardcode_into_libs=yes
10970 irix5* | irix6* | nonstopux*)
10972 nonstopux*) version_type=nonstopux ;;
10974 if test "$lt_cv_prog_gnu_ld" = yes; then
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10985 irix5* | nonstopux*)
10986 libsuff= shlibsuff=
10989 case $LD in # libtool.m4 will add one of these switches to LD
10990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10991 libsuff= shlibsuff= libmagic=32-bit;;
10992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10993 libsuff=32 shlibsuff=N32 libmagic=N32;;
10994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10996 *) libsuff= shlibsuff= libmagic=never-match;;
11000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11001 shlibpath_overrides_runpath=no
11002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11004 hardcode_into_libs=yes
11007 # No shared lib support for Linux oldld, aout, or coff.
11008 linux*oldld* | linux*aout* | linux*coff*)
11012 # This must be Linux ELF.
11013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=no
11023 # Some binutils ld are patched to set DT_RUNPATH
11024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11025 $as_echo_n "(cached) " >&6
11027 lt_cv_shlibpath_overrides_runpath=no
11028 save_LDFLAGS=$LDFLAGS
11029 save_libdir=$libdir
11030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11045 lt_cv_shlibpath_overrides_runpath=yes
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LDFLAGS=$save_LDFLAGS
11051 libdir=$save_libdir
11055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
11064 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' ' '`
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 dynamic_linker='ldqnx.so'
11116 sys_lib_dlsearch_path_spec="/usr/lib"
11118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11121 *) need_version=no ;;
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11128 openbsd2.[89] | openbsd2.[89].*)
11129 shlibpath_overrides_runpath=no
11132 shlibpath_overrides_runpath=yes
11136 shlibpath_overrides_runpath=yes
11141 libname_spec='$name'
11144 library_names_spec='$libname${shared_ext} $libname.a'
11145 dynamic_linker='OS/2 ld.exe'
11146 shlibpath_var=LIBPATH
11149 osf3* | osf4* | osf5*)
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11196 shlibpath_overrides_runpath=no
11198 runpath_var=LD_RUN_PATH
11206 shlibpath_overrides_runpath=no
11207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11213 if test -d /usr/nec ;then
11215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11216 soname_spec='$libname${shared_ext}.$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222 version_type=freebsd-elf
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 if test "$with_gnu_ld" = yes; then
11231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11240 sys_lib_dlsearch_path_spec='/usr/lib'
11244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=no
11251 hardcode_into_libs=yes
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266 $as_echo "$dynamic_linker" >&6; }
11267 test "$dynamic_linker" = no && can_build_shared=no
11269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270 if test "$GCC" = yes; then
11271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11373 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11375 if test -n "$hardcode_libdir_flag_spec" ||
11376 test -n "$runpath_var" ||
11377 test "X$hardcode_automatic" = "Xyes" ; then
11379 # We can hardcode non-existent directories.
11380 if test "$hardcode_direct" != no &&
11381 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11382 # have to relink, otherwise we might link with an installed library
11383 # when we should be linking with a yet-to-be-installed one
11384 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11385 test "$hardcode_minus_L" != no; then
11386 # Linking always hardcodes the temporary library directory.
11387 hardcode_action=relink
11389 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11390 hardcode_action=immediate
11393 # We cannot hardcode anything, or else we can only hardcode existing
11395 hardcode_action=unsupported
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11398 $as_echo "$hardcode_action" >&6; }
11400 if test "$hardcode_action" = relink ||
11401 test "$inherit_rpath" = yes; then
11402 # Fast installation is not supported
11403 enable_fast_install=no
11404 elif test "$shlibpath_overrides_runpath" = yes ||
11405 test "$enable_shared" = no; then
11406 # Fast installation is not necessary
11407 enable_fast_install=needless
11415 if test "x$enable_dlopen" != xyes; then
11416 enable_dlopen=unknown
11417 enable_dlopen_self=unknown
11418 enable_dlopen_self_static=unknown
11425 lt_cv_dlopen="load_add_on"
11427 lt_cv_dlopen_self=yes
11430 mingw* | pw32* | cegcc*)
11431 lt_cv_dlopen="LoadLibrary"
11436 lt_cv_dlopen="dlopen"
11441 # if libdl is installed we need to link against it
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11443 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11444 if ${ac_cv_lib_dl_dlopen+:} false; then :
11445 $as_echo_n "(cached) " >&6
11447 ac_check_lib_save_LIBS=$LIBS
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11452 /* Override any GCC internal prototype to avoid an error.
11453 Use char because int might match the return type of a GCC
11454 builtin and then its argument prototype would still apply. */
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 ac_cv_lib_dl_dlopen=yes
11470 ac_cv_lib_dl_dlopen=no
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_lib_save_LIBS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11478 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11482 lt_cv_dlopen="dyld"
11484 lt_cv_dlopen_self=yes
11491 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11492 if test "x$ac_cv_func_shl_load" = xyes; then :
11493 lt_cv_dlopen="shl_load"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11496 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11497 if ${ac_cv_lib_dld_shl_load+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 ac_check_lib_save_LIBS=$LIBS
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11515 return shl_load ();
11520 if ac_fn_c_try_link "$LINENO"; then :
11521 ac_cv_lib_dld_shl_load=yes
11523 ac_cv_lib_dld_shl_load=no
11525 rm -f core conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11530 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11531 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11532 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11534 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11535 if test "x$ac_cv_func_dlopen" = xyes; then :
11536 lt_cv_dlopen="dlopen"
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11540 if ${ac_cv_lib_dl_dlopen+:} false; then :
11541 $as_echo_n "(cached) " >&6
11543 ac_check_lib_save_LIBS=$LIBS
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 ac_cv_lib_dl_dlopen=yes
11566 ac_cv_lib_dl_dlopen=no
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570 LIBS=$ac_check_lib_save_LIBS
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11573 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11574 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11575 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11578 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11579 if ${ac_cv_lib_svld_dlopen+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-lsvld $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_svld_dlopen=yes
11605 ac_cv_lib_svld_dlopen=no
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11612 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11613 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11617 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11618 if ${ac_cv_lib_dld_dld_link+:} false; then :
11619 $as_echo_n "(cached) " >&6
11621 ac_check_lib_save_LIBS=$LIBS
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11636 return dld_link ();
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_dld_dld_link=yes
11644 ac_cv_lib_dld_dld_link=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11651 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11652 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11653 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11674 if test "x$lt_cv_dlopen" != xno; then
11680 case $lt_cv_dlopen in
11682 save_CPPFLAGS="$CPPFLAGS"
11683 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11685 save_LDFLAGS="$LDFLAGS"
11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11689 LIBS="$lt_cv_dlopen_libs $LIBS"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11692 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11693 if ${lt_cv_dlopen_self+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 if test "$cross_compiling" = yes; then :
11697 lt_cv_dlopen_self=cross
11699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11700 lt_status=$lt_dlunknown
11701 cat > conftest.$ac_ext <<_LT_EOF
11702 #line $LINENO "configure"
11703 #include "confdefs.h"
11712 # define LT_DLGLOBAL RTLD_GLOBAL
11715 # define LT_DLGLOBAL DL_GLOBAL
11717 # define LT_DLGLOBAL 0
11721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11722 find out it does not work in some platform. */
11723 #ifndef LT_DLLAZY_OR_NOW
11725 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11728 # define LT_DLLAZY_OR_NOW DL_LAZY
11731 # define LT_DLLAZY_OR_NOW RTLD_NOW
11734 # define LT_DLLAZY_OR_NOW DL_NOW
11736 # define LT_DLLAZY_OR_NOW 0
11743 /* When -fvisbility=hidden is used, assume the code has been annotated
11744 correspondingly for the symbols needed. */
11745 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11746 int fnord () __attribute__((visibility("default")));
11749 int fnord () { return 42; }
11752 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11753 int status = $lt_dlunknown;
11757 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11760 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11761 else puts (dlerror ());
11763 /* dlclose (self); */
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11784 # compilation failed
11785 lt_cv_dlopen_self=no
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11793 $as_echo "$lt_cv_dlopen_self" >&6; }
11795 if test "x$lt_cv_dlopen_self" = xyes; then
11796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11798 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11799 if ${lt_cv_dlopen_self_static+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 if test "$cross_compiling" = yes; then :
11803 lt_cv_dlopen_self_static=cross
11805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806 lt_status=$lt_dlunknown
11807 cat > conftest.$ac_ext <<_LT_EOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11818 # define LT_DLGLOBAL RTLD_GLOBAL
11821 # define LT_DLGLOBAL DL_GLOBAL
11823 # define LT_DLGLOBAL 0
11827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828 find out it does not work in some platform. */
11829 #ifndef LT_DLLAZY_OR_NOW
11831 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11834 # define LT_DLLAZY_OR_NOW DL_LAZY
11837 # define LT_DLLAZY_OR_NOW RTLD_NOW
11840 # define LT_DLLAZY_OR_NOW DL_NOW
11842 # define LT_DLLAZY_OR_NOW 0
11849 /* When -fvisbility=hidden is used, assume the code has been annotated
11850 correspondingly for the symbols needed. */
11851 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11852 int fnord () __attribute__((visibility("default")));
11855 int fnord () { return 42; }
11858 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11859 int status = $lt_dlunknown;
11863 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11866 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11867 else puts (dlerror ());
11869 /* dlclose (self); */
11877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11878 (eval $ac_link) 2>&5
11880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11881 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11882 (./conftest; exit; ) >&5 2>/dev/null
11884 case x$lt_status in
11885 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11886 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11887 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11890 # compilation failed
11891 lt_cv_dlopen_self_static=no
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11899 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11902 CPPFLAGS="$save_CPPFLAGS"
11903 LDFLAGS="$save_LDFLAGS"
11908 case $lt_cv_dlopen_self in
11909 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11910 *) enable_dlopen_self=unknown ;;
11913 case $lt_cv_dlopen_self_static in
11914 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11915 *) enable_dlopen_self_static=unknown ;;
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11938 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11939 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11940 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11941 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11945 # FIXME - insert some real tests, host_os isn't really good enough
11948 if test -n "$STRIP" ; then
11949 striplib="$STRIP -x"
11950 old_striplib="$STRIP -S"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11952 $as_echo "yes" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960 $as_echo "no" >&6; }
11976 # Report which library types will actually be built
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11978 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11980 $as_echo "$can_build_shared" >&6; }
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11983 $as_echo_n "checking whether to build shared libraries... " >&6; }
11984 test "$can_build_shared" = "no" && enable_shared=no
11986 # On AIX, shared libraries and static libraries use the same namespace, and
11987 # are all built from PIC.
11990 test "$enable_shared" = yes && enable_static=no
11991 if test -n "$RANLIB"; then
11992 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11993 postinstall_cmds='$RANLIB $lib'
11998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11999 test "$enable_shared" = yes && enable_static=no
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12004 $as_echo "$enable_shared" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12007 $as_echo_n "checking whether to build static libraries... " >&6; }
12008 # Make sure either enable_shared or enable_static is yes.
12009 test "$enable_shared" = yes || enable_static=yes
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12011 $as_echo "$enable_static" >&6; }
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12025 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12026 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12027 (test "X$CXX" != "Xg++"))) ; then
12029 ac_cpp='$CXXCPP $CPPFLAGS'
12030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12034 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12035 if test -z "$CXXCPP"; then
12036 if ${ac_cv_prog_CXXCPP+:} false; then :
12037 $as_echo_n "(cached) " >&6
12039 # Double quotes because CXXCPP needs to be expanded
12040 for CXXCPP in "$CXX -E" "/lib/cpp"
12042 ac_preproc_ok=false
12043 for ac_cxx_preproc_warn_flag in '' yes
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 # include <limits.h>
12056 # include <assert.h>
12060 if ac_fn_cxx_try_cpp "$LINENO"; then :
12063 # Broken: fails on valid input.
12066 rm -f conftest.err conftest.i conftest.$ac_ext
12068 # OK, works on sane cases. Now check whether nonexistent headers
12069 # can be detected and how.
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <ac_nonexistent.h>
12074 if ac_fn_cxx_try_cpp "$LINENO"; then :
12075 # Broken: success on invalid input.
12078 # Passes both tests.
12082 rm -f conftest.err conftest.i conftest.$ac_ext
12085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12086 rm -f conftest.i conftest.err conftest.$ac_ext
12087 if $ac_preproc_ok; then :
12092 ac_cv_prog_CXXCPP=$CXXCPP
12095 CXXCPP=$ac_cv_prog_CXXCPP
12097 ac_cv_prog_CXXCPP=$CXXCPP
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12100 $as_echo "$CXXCPP" >&6; }
12101 ac_preproc_ok=false
12102 for ac_cxx_preproc_warn_flag in '' yes
12104 # Use a header file that comes with gcc, so configuring glibc
12105 # with a fresh cross-compiler works.
12106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12107 # <limits.h> exists even on freestanding compilers.
12108 # On the NeXT, cc -E runs the code through the compiler's parser,
12109 # not just through cpp. "Syntax error" is here to catch this case.
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12113 # include <limits.h>
12115 # include <assert.h>
12119 if ac_fn_cxx_try_cpp "$LINENO"; then :
12122 # Broken: fails on valid input.
12125 rm -f conftest.err conftest.i conftest.$ac_ext
12127 # OK, works on sane cases. Now check whether nonexistent headers
12128 # can be detected and how.
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 #include <ac_nonexistent.h>
12133 if ac_fn_cxx_try_cpp "$LINENO"; then :
12134 # Broken: success on invalid input.
12137 # Passes both tests.
12141 rm -f conftest.err conftest.i conftest.$ac_ext
12144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12145 rm -f conftest.i conftest.err conftest.$ac_ext
12146 if $ac_preproc_ok; then :
12149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12151 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12152 See \`config.log' for more details" "$LINENO" 5; }
12156 ac_cpp='$CPP $CPPFLAGS'
12157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12162 _lt_caught_CXX_error=yes
12166 ac_cpp='$CXXCPP $CPPFLAGS'
12167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12171 archive_cmds_need_lc_CXX=no
12172 allow_undefined_flag_CXX=
12173 always_export_symbols_CXX=no
12174 archive_expsym_cmds_CXX=
12175 compiler_needs_object_CXX=no
12176 export_dynamic_flag_spec_CXX=
12177 hardcode_direct_CXX=no
12178 hardcode_direct_absolute_CXX=no
12179 hardcode_libdir_flag_spec_CXX=
12180 hardcode_libdir_flag_spec_ld_CXX=
12181 hardcode_libdir_separator_CXX=
12182 hardcode_minus_L_CXX=no
12183 hardcode_shlibpath_var_CXX=unsupported
12184 hardcode_automatic_CXX=no
12185 inherit_rpath_CXX=no
12187 module_expsym_cmds_CXX=
12188 link_all_deplibs_CXX=unknown
12189 old_archive_cmds_CXX=$old_archive_cmds
12190 reload_flag_CXX=$reload_flag
12191 reload_cmds_CXX=$reload_cmds
12192 no_undefined_flag_CXX=
12193 whole_archive_flag_spec_CXX=
12194 enable_shared_with_static_runtimes_CXX=no
12196 # Source file extension for C++ test sources.
12199 # Object file extension for compiled C++ test sources.
12203 # No sense in running all these tests if we already determined that
12204 # the CXX compiler isn't working. Some variables (like enable_shared)
12205 # are currently assumed to apply to all compilers on this platform,
12206 # and will be corrupted by setting them based on a non-working compiler.
12207 if test "$_lt_caught_CXX_error" != yes; then
12208 # Code to be used in simple compile tests
12209 lt_simple_compile_test_code="int some_variable = 0;"
12211 # Code to be used in simple link tests
12212 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12214 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12221 # If no C compiler was specified, use CC.
12224 # If no C compiler flags were specified, use CFLAGS.
12225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12227 # Allow CC to be a program name with arguments.
12231 # save warnings/boilerplate of simple test code
12232 ac_outfile=conftest.$ac_objext
12233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12235 _lt_compiler_boilerplate=`cat conftest.err`
12238 ac_outfile=conftest.$ac_objext
12239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12241 _lt_linker_boilerplate=`cat conftest.err`
12245 # Allow CC to be a program name with arguments.
12247 lt_save_CFLAGS=$CFLAGS
12251 lt_save_with_gnu_ld=$with_gnu_ld
12252 lt_save_path_LD=$lt_cv_path_LD
12253 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12254 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12256 $as_unset lt_cv_prog_gnu_ld
12258 if test -n "${lt_cv_path_LDCXX+set}"; then
12259 lt_cv_path_LD=$lt_cv_path_LDCXX
12261 $as_unset lt_cv_path_LD
12263 test -z "${LDCXX+set}" || LD=$LDCXX
12268 for cc_temp in $compiler""; do
12270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12279 if test -n "$compiler"; then
12280 # We don't want -fno-exception when compiling C++ code, so set the
12281 # no_builtin_flag separately
12282 if test "$GXX" = yes; then
12283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12285 lt_prog_compiler_no_builtin_flag_CXX=
12288 if test "$GXX" = yes; then
12289 # Set up default GNU C++ configuration
12293 # Check whether --with-gnu-ld was given.
12294 if test "${with_gnu_ld+set}" = set; then :
12295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12301 if test "$GCC" = yes; then
12302 # Check if gcc -print-prog-name=ld gives a path.
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12304 $as_echo_n "checking for ld used by $CC... " >&6; }
12307 # gcc leaves a trailing carriage return which upsets mingw
12308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12313 # Accept absolute paths.
12315 re_direlt='/[^/][^/]*/\.\./'
12316 # Canonicalize the pathname of ld
12317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12321 test -z "$LD" && LD="$ac_prog"
12324 # If it fails, then pretend we aren't using GCC.
12328 # If it is relative, then search for the first ld in PATH.
12329 with_gnu_ld=unknown
12332 elif test "$with_gnu_ld" = yes; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12334 $as_echo_n "checking for GNU ld... " >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12337 $as_echo_n "checking for non-GNU ld... " >&6; }
12339 if ${lt_cv_path_LD+:} false; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -z "$LD"; then
12343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344 for ac_dir in $PATH; do
12346 test -z "$ac_dir" && ac_dir=.
12347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12348 lt_cv_path_LD="$ac_dir/$ac_prog"
12349 # Check to see if the program is GNU ld. I'd rather use --version,
12350 # but apparently some variants of GNU ld only accept -v.
12351 # Break only if it was the GNU/non-GNU ld that we prefer.
12352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12353 *GNU* | *'with BFD'*)
12354 test "$with_gnu_ld" != no && break
12357 test "$with_gnu_ld" != yes && break
12364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12368 LD="$lt_cv_path_LD"
12369 if test -n "$LD"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12371 $as_echo "$LD" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12379 if ${lt_cv_prog_gnu_ld+:} false; then :
12380 $as_echo_n "(cached) " >&6
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385 lt_cv_prog_gnu_ld=yes
12388 lt_cv_prog_gnu_ld=no
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12402 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12403 # archiving commands below assume that GNU ld is being used.
12404 if test "$with_gnu_ld" = yes; then
12405 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 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'
12408 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12411 # If archive_cmds runs LD, not CC, wlarc should be empty
12412 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12413 # investigate it a little bit more. (MM)
12416 # ancient GNU ld didn't support --whole-archive et. al.
12417 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12418 $GREP 'no-whole-archive' > /dev/null; then
12419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12421 whole_archive_flag_spec_CXX=
12427 # A generic and very simple default shared library creation
12428 # command for GNU C++ for the case where it uses the native
12429 # linker, instead of GNU ld. If possible, this setting should
12430 # overridden to take advantage of the native linker features on
12431 # the platform it is being used on.
12432 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12446 # PORTME: fill in a description of your system's C++ link characteristics
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12452 # FIXME: insert proper C++ library support
12456 if test "$host_cpu" = ia64; then
12457 # On IA64, the linker does run time linking by default, so we don't
12458 # have to do anything special.
12459 aix_use_runtimelinking=no
12460 exp_sym_flag='-Bexport'
12463 aix_use_runtimelinking=no
12465 # Test if we are trying to use run time linking or normal
12466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12467 # need to do runtime linking.
12468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12469 for ld_flag in $LDFLAGS; do
12472 aix_use_runtimelinking=yes
12480 exp_sym_flag='-bexport'
12481 no_entry_flag='-bnoentry'
12484 # When large executables or shared objects are built, AIX ld can
12485 # have problems creating the table of contents. If linking a library
12486 # or program results in "error TOC overflow" add -mminimal-toc to
12487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12490 archive_cmds_CXX=''
12491 hardcode_direct_CXX=yes
12492 hardcode_direct_absolute_CXX=yes
12493 hardcode_libdir_separator_CXX=':'
12494 link_all_deplibs_CXX=yes
12495 file_list_spec_CXX='${wl}-f,'
12497 if test "$GXX" = yes; then
12498 case $host_os in aix4.[012]|aix4.[012].*)
12499 # We only want to do this on AIX 4.2 and lower, the check
12500 # below for broken collect2 doesn't work under 4.3+
12501 collect2name=`${CC} -print-prog-name=collect2`
12502 if test -f "$collect2name" &&
12503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12505 # We have reworked collect2
12508 # We have old collect2
12509 hardcode_direct_CXX=unsupported
12510 # It fails to find uninstalled libraries when the uninstalled
12511 # path is not listed in the libpath. Setting hardcode_minus_L
12512 # to unsupported forces relinking
12513 hardcode_minus_L_CXX=yes
12514 hardcode_libdir_flag_spec_CXX='-L$libdir'
12515 hardcode_libdir_separator_CXX=
12518 shared_flag='-shared'
12519 if test "$aix_use_runtimelinking" = yes; then
12520 shared_flag="$shared_flag "'${wl}-G'
12524 if test "$host_cpu" = ia64; then
12525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12526 # chokes on -Wl,-G. The following line is correct:
12529 if test "$aix_use_runtimelinking" = yes; then
12530 shared_flag='${wl}-G'
12532 shared_flag='${wl}-bM:SRE'
12537 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12538 # It seems that -bexpall does not export symbols beginning with
12539 # underscore (_), so it is better to generate a list of symbols to
12541 always_export_symbols_CXX=yes
12542 if test "$aix_use_runtimelinking" = yes; then
12543 # Warning - without using the other runtime loading flags (-brtl),
12544 # -berok will link without error, but may produce a broken library.
12545 allow_undefined_flag_CXX='-berok'
12546 # Determine the default libpath from the value encoded in an empty
12548 if test "${lt_cv_aix_libpath+set}" = set; then
12549 aix_libpath=$lt_cv_aix_libpath
12551 if ${lt_cv_aix_libpath__CXX+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12565 if ac_fn_cxx_try_link "$LINENO"; then :
12567 lt_aix_libpath_sed='
12568 /Import File Strings/,/^$/ {
12570 s/^0 *\([^ ]*\) *$/\1/
12574 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12575 # Check for a 64-bit object if we didn't find anything.
12576 if test -z "$lt_cv_aix_libpath__CXX"; then
12577 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 if test -z "$lt_cv_aix_libpath__CXX"; then
12583 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12588 aix_libpath=$lt_cv_aix_libpath__CXX
12591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12593 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"
12595 if test "$host_cpu" = ia64; then
12596 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12597 allow_undefined_flag_CXX="-z nodefs"
12598 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"
12600 # Determine the default libpath from the value encoded in an
12601 # empty executable.
12602 if test "${lt_cv_aix_libpath+set}" = set; then
12603 aix_libpath=$lt_cv_aix_libpath
12605 if ${lt_cv_aix_libpath__CXX+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12619 if ac_fn_cxx_try_link "$LINENO"; then :
12621 lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12624 s/^0 *\([^ ]*\) *$/\1/
12628 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$lt_cv_aix_libpath__CXX"; then
12631 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$lt_cv_aix_libpath__CXX"; then
12637 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12642 aix_libpath=$lt_cv_aix_libpath__CXX
12645 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12646 # Warning - without using the other run time loading flags,
12647 # -berok will link without error, but may produce a broken library.
12648 no_undefined_flag_CXX=' ${wl}-bernotok'
12649 allow_undefined_flag_CXX=' ${wl}-berok'
12650 if test "$with_gnu_ld" = yes; then
12651 # We only use this code for GNU lds that support --whole-archive.
12652 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12654 # Exported symbols can be pulled into shared objects from archives
12655 whole_archive_flag_spec_CXX='$convenience'
12657 archive_cmds_need_lc_CXX=yes
12658 # This is similar to how AIX traditionally builds its shared
12660 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'
12666 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667 allow_undefined_flag_CXX=unsupported
12668 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12669 # support --undefined. This deserves some investigation. FIXME
12670 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 case $cc_basename in
12679 # FIXME: insert proper C++ library support
12685 cygwin* | mingw* | pw32* | cegcc*)
12686 case $GXX,$cc_basename in
12689 # hardcode_libdir_flag_spec is actually meaningless, as there is
12690 # no search path for DLLs.
12691 hardcode_libdir_flag_spec_CXX=' '
12692 allow_undefined_flag_CXX=unsupported
12693 always_export_symbols_CXX=yes
12694 file_list_spec_CXX='@'
12695 # Tell ltmain to make .lib files, not .a files.
12697 # Tell ltmain to make .dll files, not .so files.
12699 # FIXME: Setting linknames here is a bad hack.
12700 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12701 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12702 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12704 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12706 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12708 # The linker will not automatically build a static lib if we build a DLL.
12709 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12710 enable_shared_with_static_runtimes_CXX=yes
12712 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12713 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12714 lt_tool_outputfile="@TOOL_OUTPUT@"~
12715 case $lt_outputfile in
12718 lt_outputfile="$lt_outputfile.exe"
12719 lt_tool_outputfile="$lt_tool_outputfile.exe"
12722 func_to_tool_file "$lt_outputfile"~
12723 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12724 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12725 $RM "$lt_outputfile.manifest";
12730 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12731 # as there is no search path for DLLs.
12732 hardcode_libdir_flag_spec_CXX='-L$libdir'
12733 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12734 allow_undefined_flag_CXX=unsupported
12735 always_export_symbols_CXX=no
12736 enable_shared_with_static_runtimes_CXX=yes
12738 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12739 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'
12740 # If the export-symbols file already is a .def file (1st line
12741 # is EXPORTS), use it as is; otherwise, prepend...
12742 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12743 cp $export_symbols $output_objdir/$soname.def;
12745 echo EXPORTS > $output_objdir/$soname.def;
12746 cat $export_symbols >> $output_objdir/$soname.def;
12748 $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'
12755 darwin* | rhapsody*)
12758 archive_cmds_need_lc_CXX=no
12759 hardcode_direct_CXX=no
12760 hardcode_automatic_CXX=yes
12761 hardcode_shlibpath_var_CXX=unsupported
12762 if test "$lt_cv_ld_force_load" = "yes"; then
12763 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\"`'
12765 whole_archive_flag_spec_CXX=''
12767 link_all_deplibs_CXX=yes
12768 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12769 case $cc_basename in
12770 ifort*) _lt_dar_can_shared=yes ;;
12771 *) _lt_dar_can_shared=$GCC ;;
12773 if test "$_lt_dar_can_shared" = "yes"; then
12774 output_verbose_link_cmd=func_echo_all
12775 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}"
12776 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12777 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}"
12778 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}"
12779 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12780 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}"
12781 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}"
12791 case $cc_basename in
12793 # FIXME: insert proper C++ library support
12797 # Green Hills C++ Compiler
12798 # FIXME: insert proper C++ library support
12802 # FIXME: insert proper C++ library support
12809 # C++ shared libraries reported to be fairly broken before
12815 archive_cmds_need_lc_CXX=no
12818 freebsd* | dragonfly*)
12819 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12828 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12829 link_all_deplibs_CXX=yes
12833 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12834 hardcode_libdir_separator_CXX=:
12835 export_dynamic_flag_spec_CXX='${wl}-E'
12836 hardcode_direct_CXX=yes
12837 hardcode_minus_L_CXX=yes # Not in the search PATH,
12838 # but as the default
12839 # location of the library.
12841 case $cc_basename in
12843 # FIXME: insert proper C++ library support
12847 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'
12848 # Commands to make compiler produce verbose output that lists
12849 # what "hidden" libraries, object files and flags are used when
12850 # linking a shared library.
12852 # There doesn't appear to be a way to prevent this compiler from
12853 # explicitly linking system object files so we need to strip them
12854 # from the output so that they don't get included in the library
12856 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"'
12859 if test "$GXX" = yes; then
12860 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'
12862 # FIXME: insert proper C++ library support
12870 if test $with_gnu_ld = no; then
12871 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12872 hardcode_libdir_separator_CXX=:
12878 export_dynamic_flag_spec_CXX='${wl}-E'
12884 hardcode_direct_CXX=no
12885 hardcode_shlibpath_var_CXX=no
12888 hardcode_direct_CXX=yes
12889 hardcode_direct_absolute_CXX=yes
12890 hardcode_minus_L_CXX=yes # Not in the search PATH,
12891 # but as the default
12892 # location of the library.
12896 case $cc_basename in
12898 # FIXME: insert proper C++ library support
12904 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12907 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12910 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12913 # Commands to make compiler produce verbose output that lists
12914 # what "hidden" libraries, object files and flags are used when
12915 # linking a shared library.
12917 # There doesn't appear to be a way to prevent this compiler from
12918 # explicitly linking system object files so we need to strip them
12919 # from the output so that they don't get included in the library
12921 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"'
12924 if test "$GXX" = yes; then
12925 if test $with_gnu_ld = no; then
12928 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934 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'
12939 # FIXME: insert proper C++ library support
12947 hardcode_direct_CXX=no
12948 hardcode_shlibpath_var_CXX=no
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950 export_dynamic_flag_spec_CXX='${wl}-E'
12951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12952 # Instead, shared libraries are loaded at an image base (0x10000000 by
12953 # default) and relocated if they conflict, which is a slow very memory
12954 # consuming and fragmenting process. To avoid this, we pick a random,
12955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12956 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12957 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'
12958 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'
12961 case $cc_basename in
12964 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'
12966 # Archives containing C++ object files must be created using
12967 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12968 # necessary to make sure instantiated templates are included
12970 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12973 if test "$GXX" = yes; then
12974 if test "$with_gnu_ld" = no; then
12975 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'
12977 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'
12980 link_all_deplibs_CXX=yes
12983 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12984 hardcode_libdir_separator_CXX=:
12985 inherit_rpath_CXX=yes
12988 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12989 case $cc_basename in
12991 # Kuck and Associates, Inc. (KAI) C++ Compiler
12993 # KCC will only create a shared library if the output file
12994 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12995 # to its proper name (with version) after linking.
12996 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'
12997 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'
12998 # Commands to make compiler produce verbose output that lists
12999 # what "hidden" libraries, object files and flags are used when
13000 # linking a shared library.
13002 # There doesn't appear to be a way to prevent this compiler from
13003 # explicitly linking system object files so we need to strip them
13004 # from the output so that they don't get included in the library
13006 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"'
13008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13011 # Archives containing C++ object files must be created using
13012 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13013 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13018 # version 8.0 and above of icpc choke on multiply defined symbols
13019 # if we add $predep_objects and $postdep_objects, however 7.1 and
13020 # earlier do not add the objects themselves.
13021 case `$CC -V 2>&1` in
13023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13024 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'
13026 *) # Version 8.0 or newer
13029 ia64*) tmp_idyn=' -i_dynamic';;
13031 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13032 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'
13035 archive_cmds_need_lc_CXX=no
13036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13037 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13038 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13041 # Portland Group C++ compiler
13043 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13044 prelink_cmds_CXX='tpldir=Template.dir~
13046 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13047 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13048 old_archive_cmds_CXX='tpldir=Template.dir~
13050 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13051 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13053 archive_cmds_CXX='tpldir=Template.dir~
13055 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13056 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13057 archive_expsym_cmds_CXX='tpldir=Template.dir~
13059 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13060 $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'
13062 *) # Version 6 and above use weak symbols
13063 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13064 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'
13068 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13070 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'
13074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13075 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'
13077 runpath_var=LD_RUN_PATH
13078 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13079 hardcode_libdir_separator_CXX=:
13081 # Commands to make compiler produce verbose output that lists
13082 # what "hidden" libraries, object files and flags are used when
13083 # linking a shared library.
13085 # There doesn't appear to be a way to prevent this compiler from
13086 # explicitly linking system object files so we need to strip them
13087 # from the output so that they don't get included in the library
13089 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'
13091 xl* | mpixl* | bgxl*)
13092 # IBM XL 8.0 on PPC, with GNU ld
13093 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13095 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096 if test "x$supports_anon_versioning" = xyes; then
13097 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13099 echo "local: *; };" >> $output_objdir/$libname.ver~
13100 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13104 case `$CC -V 2>&1 | sed 5q` in
13107 no_undefined_flag_CXX=' -zdefs'
13108 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13109 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'
13110 hardcode_libdir_flag_spec_CXX='-R$libdir'
13111 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'
13112 compiler_needs_object_CXX=yes
13114 # Not sure whether something based on
13115 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13117 output_verbose_link_cmd='func_echo_all'
13119 # Archives containing C++ object files must be created using
13120 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13121 # necessary to make sure instantiated templates are included
13123 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13131 # FIXME: insert proper C++ library support
13136 # FIXME: insert proper C++ library support
13141 case $cc_basename in
13143 # FIXME: insert proper C++ library support
13147 # FIXME: insert proper C++ library support
13154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13155 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13157 hardcode_libdir_flag_spec_CXX='-R$libdir'
13158 hardcode_direct_CXX=yes
13159 hardcode_shlibpath_var_CXX=no
13161 # Workaround some broken pre-1.5 toolchains
13162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13170 # C++ shared libraries are fairly broken
13175 if test -f /usr/libexec/ld.so; then
13176 hardcode_direct_CXX=yes
13177 hardcode_shlibpath_var_CXX=no
13178 hardcode_direct_absolute_CXX=yes
13179 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13181 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13182 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13183 export_dynamic_flag_spec_CXX='${wl}-E'
13184 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13186 output_verbose_link_cmd=func_echo_all
13192 osf3* | osf4* | osf5*)
13193 case $cc_basename in
13195 # Kuck and Associates, Inc. (KAI) C++ Compiler
13197 # KCC will only create a shared library if the output file
13198 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13199 # to its proper name (with version) after linking.
13200 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'
13202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203 hardcode_libdir_separator_CXX=:
13205 # Archives containing C++ object files must be created using
13206 # the KAI C++ compiler.
13208 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13209 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13213 # Rational C++ 2.4.1
13214 # FIXME: insert proper C++ library support
13220 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13221 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'
13222 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13225 allow_undefined_flag_CXX=' -expect_unresolved \*'
13226 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'
13227 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13228 echo "-hidden">> $lib.exp~
13229 $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~
13231 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13235 hardcode_libdir_separator_CXX=:
13237 # Commands to make compiler produce verbose output that lists
13238 # what "hidden" libraries, object files and flags are used when
13239 # linking a shared library.
13241 # There doesn't appear to be a way to prevent this compiler from
13242 # explicitly linking system object files so we need to strip them
13243 # from the output so that they don't get included in the library
13245 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"'
13248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13249 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13252 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'
13255 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'
13259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260 hardcode_libdir_separator_CXX=:
13262 # Commands to make compiler produce verbose output that lists
13263 # what "hidden" libraries, object files and flags are used when
13264 # linking a shared library.
13265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13268 # FIXME: insert proper C++ library support
13276 # FIXME: insert proper C++ library support
13281 case $cc_basename in
13284 # FIXME: insert proper C++ library support
13289 # FIXME: insert proper C++ library support
13293 # FIXME: insert proper C++ library support
13300 case $cc_basename in
13302 # Sun C++ 4.2, 5.x and Centerline C++
13303 archive_cmds_need_lc_CXX=yes
13304 no_undefined_flag_CXX=' -zdefs'
13305 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13306 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13307 $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'
13309 hardcode_libdir_flag_spec_CXX='-R$libdir'
13310 hardcode_shlibpath_var_CXX=no
13312 solaris2.[0-5] | solaris2.[0-5].*) ;;
13314 # The compiler driver will combine and reorder linker options,
13315 # but understands `-z linker_flag'.
13316 # Supported since Solaris 2.6 (maybe 2.5.1?)
13317 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13320 link_all_deplibs_CXX=yes
13322 output_verbose_link_cmd='func_echo_all'
13324 # Archives containing C++ object files must be created using
13325 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13326 # necessary to make sure instantiated templates are included
13328 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13331 # Green Hills C++ Compiler
13332 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13334 # The C++ compiler must be used to create the archive.
13335 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13338 # GNU C++ compiler with Solaris linker
13339 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13340 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13341 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13342 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13343 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13344 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13346 # Commands to make compiler produce verbose output that lists
13347 # what "hidden" libraries, object files and flags are used when
13348 # linking a shared library.
13349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13351 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13353 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13354 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13355 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13357 # Commands to make compiler produce verbose output that lists
13358 # what "hidden" libraries, object files and flags are used when
13359 # linking a shared library.
13360 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13363 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13365 solaris2.[0-5] | solaris2.[0-5].*) ;;
13367 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13375 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13376 no_undefined_flag_CXX='${wl}-z,text'
13377 archive_cmds_need_lc_CXX=no
13378 hardcode_shlibpath_var_CXX=no
13379 runpath_var='LD_RUN_PATH'
13381 case $cc_basename in
13383 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13393 sysv5* | sco3.2v5* | sco5v6*)
13394 # Note: We can NOT use -z defs as we might desire, because we do not
13395 # link with -lc, and that would cause any symbols used from libc to
13396 # always be unresolved, which means just about no library would
13397 # ever link correctly. If we're not using GNU ld we use -z text
13398 # though, which does catch some bad symbols but isn't as heavy-handed
13400 no_undefined_flag_CXX='${wl}-z,text'
13401 allow_undefined_flag_CXX='${wl}-z,nodefs'
13402 archive_cmds_need_lc_CXX=no
13403 hardcode_shlibpath_var_CXX=no
13404 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13405 hardcode_libdir_separator_CXX=':'
13406 link_all_deplibs_CXX=yes
13407 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13408 runpath_var='LD_RUN_PATH'
13410 case $cc_basename in
13412 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13413 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13414 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13415 '"$old_archive_cmds_CXX"
13416 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13417 '"$reload_cmds_CXX"
13420 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13421 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13427 case $cc_basename in
13429 # NonStop-UX NCC 3.20
13430 # FIXME: insert proper C++ library support
13434 # FIXME: insert proper C++ library support
13441 # FIXME: insert proper C++ library support
13446 # FIXME: insert proper C++ library support
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13452 $as_echo "$ld_shlibs_CXX" >&6; }
13453 test "$ld_shlibs_CXX" = no && can_build_shared=no
13459 ## There is no encapsulation within the following macros, do not change
13460 ## the running order or otherwise move them around unless you know exactly
13461 ## what you are doing...
13462 # Dependencies to place before and after the object being linked:
13463 predep_objects_CXX=
13464 postdep_objects_CXX=
13467 compiler_lib_search_path_CXX=
13469 cat > conftest.$ac_ext <<_LT_EOF
13473 Foo (void) { a = 0; }
13480 _lt_libdeps_save_CFLAGS=$CFLAGS
13481 case "$CC $CFLAGS " in #(
13482 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13483 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13487 (eval $ac_compile) 2>&5
13489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13490 test $ac_status = 0; }; then
13491 # Parse the compiler output and extract the necessary
13492 # objects, libraries and library flags.
13494 # Sentinel used to keep track of whether or not we are before
13495 # the conftest object file.
13496 pre_test_object_deps_done=no
13498 for p in `eval "$output_verbose_link_cmd"`; do
13499 case ${prev}${p} in
13502 # Some compilers place space between "-{L,R}" and the path.
13503 # Remove the space.
13504 if test $p = "-L" ||
13505 test $p = "-R"; then
13510 # Expand the sysroot to ease extracting the directories later.
13511 if test -z "$prev"; then
13513 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13514 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13515 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13519 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13521 if test "$pre_test_object_deps_done" = no; then
13524 # Internal compiler library paths should come after those
13525 # provided the user. The postdeps already come after the
13526 # user supplied libs so there is no need to process them.
13527 if test -z "$compiler_lib_search_path_CXX"; then
13528 compiler_lib_search_path_CXX="${prev}${p}"
13530 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13533 # The "-l" case would never come before the object being
13534 # linked, so don't bother handling this case.
13537 if test -z "$postdeps_CXX"; then
13538 postdeps_CXX="${prev}${p}"
13540 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13546 *.lto.$objext) ;; # Ignore GCC LTO objects
13548 # This assumes that the test object file only shows up
13549 # once in the compiler output.
13550 if test "$p" = "conftest.$objext"; then
13551 pre_test_object_deps_done=yes
13555 if test "$pre_test_object_deps_done" = no; then
13556 if test -z "$predep_objects_CXX"; then
13557 predep_objects_CXX="$p"
13559 predep_objects_CXX="$predep_objects_CXX $p"
13562 if test -z "$postdep_objects_CXX"; then
13563 postdep_objects_CXX="$p"
13565 postdep_objects_CXX="$postdep_objects_CXX $p"
13570 *) ;; # Ignore the rest.
13578 echo "libtool.m4: error: problem compiling CXX test program"
13581 $RM -f confest.$objext
13582 CFLAGS=$_lt_libdeps_save_CFLAGS
13584 # PORTME: override above test on systems where it is broken
13587 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13588 # hack all around it, let's just trust "g++" to DTRT.
13589 predep_objects_CXX=
13590 postdep_objects_CXX=
13595 case `$CC -V 2>&1 | sed 5q` in
13599 # The more standards-conforming stlport4 library is
13600 # incompatible with the Cstd library. Avoid specifying
13601 # it if it's in CXXFLAGS. Ignore libCrun as
13602 # -library=stlport4 depends on it.
13603 case " $CXX $CXXFLAGS " in
13604 *" -library=stlport4 "*)
13605 solaris_use_stlport4=yes
13609 if test "$solaris_use_stlport4" != yes; then
13610 postdeps_CXX='-library=Cstd -library=Crun'
13617 case $cc_basename in
13619 # The more standards-conforming stlport4 library is
13620 # incompatible with the Cstd library. Avoid specifying
13621 # it if it's in CXXFLAGS. Ignore libCrun as
13622 # -library=stlport4 depends on it.
13623 case " $CXX $CXXFLAGS " in
13624 *" -library=stlport4 "*)
13625 solaris_use_stlport4=yes
13629 # Adding this requires a known-good setup of shared libraries for
13630 # Sun compiler versions before 5.6, else PIC objects from an old
13631 # archive will be linked into the output, leading to subtle bugs.
13632 if test "$solaris_use_stlport4" != yes; then
13633 postdeps_CXX='-library=Cstd -library=Crun'
13641 case " $postdeps_CXX " in
13642 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13644 compiler_lib_search_dirs_CXX=
13645 if test -n "${compiler_lib_search_path_CXX}"; then
13646 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13679 lt_prog_compiler_wl_CXX=
13680 lt_prog_compiler_pic_CXX=
13681 lt_prog_compiler_static_CXX=
13684 # C++ specific cases for pic, static, wl, etc.
13685 if test "$GXX" = yes; then
13686 lt_prog_compiler_wl_CXX='-Wl,'
13687 lt_prog_compiler_static_CXX='-static'
13691 # All AIX code is PIC.
13692 if test "$host_cpu" = ia64; then
13693 # AIX 5 now supports IA64 processor
13694 lt_prog_compiler_static_CXX='-Bstatic'
13701 # see comment about AmigaOS4 .so support
13702 lt_prog_compiler_pic_CXX='-fPIC'
13705 # FIXME: we need at least 68020 code to build shared libraries, but
13706 # adding the `-m68020' flag to GCC prevents building anything better,
13708 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13713 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13714 # PIC is the default for these OSes.
13716 mingw* | cygwin* | os2* | pw32* | cegcc*)
13717 # This hack is so that the source file can tell whether it is being
13718 # built for inclusion in a dll (and should export symbols for example).
13719 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13720 # (--disable-auto-import) libraries
13721 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13723 darwin* | rhapsody*)
13724 # PIC is the default on this platform
13725 # Common symbols not allowed in MH_DYLIB files
13726 lt_prog_compiler_pic_CXX='-fno-common'
13729 # DJGPP does not support shared libraries at all
13730 lt_prog_compiler_pic_CXX=
13733 # PIC is the default for Haiku.
13734 # The "-static" flag exists, but is broken.
13735 lt_prog_compiler_static_CXX=
13738 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13739 # Instead, we relocate shared libraries at runtime.
13742 if test -d /usr/nec; then
13743 lt_prog_compiler_pic_CXX=-Kconform_pic
13747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13749 # sets the default TLS model and affects inlining.
13754 lt_prog_compiler_pic_CXX='-fPIC'
13759 # QNX uses GNU C++, but need to define -shared option too, otherwise
13760 # it will coredump.
13761 lt_prog_compiler_pic_CXX='-fPIC -shared'
13764 lt_prog_compiler_pic_CXX='-fPIC'
13770 # All AIX code is PIC.
13771 if test "$host_cpu" = ia64; then
13772 # AIX 5 now supports IA64 processor
13773 lt_prog_compiler_static_CXX='-Bstatic'
13775 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13779 case $cc_basename in
13781 # Green Hills C++ Compiler
13782 # _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"
13786 mingw* | cygwin* | os2* | pw32* | cegcc*)
13787 # This hack is so that the source file can tell whether it is being
13788 # built for inclusion in a dll (and should export symbols for example).
13789 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13792 case $cc_basename in
13794 lt_prog_compiler_pic_CXX='-KPIC'
13797 # Green Hills C++ Compiler
13798 lt_prog_compiler_pic_CXX='-pic'
13804 freebsd* | dragonfly*)
13805 # FreeBSD uses GNU C++
13807 hpux9* | hpux10* | hpux11*)
13808 case $cc_basename in
13810 lt_prog_compiler_wl_CXX='-Wl,'
13811 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13812 if test "$host_cpu" != ia64; then
13813 lt_prog_compiler_pic_CXX='+Z'
13817 lt_prog_compiler_wl_CXX='-Wl,'
13818 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13824 lt_prog_compiler_pic_CXX='+Z'
13833 # This is c89, which is MS Visual C++ (no shared libs)
13834 # Anyone wants to do a port?
13836 irix5* | irix6* | nonstopux*)
13837 case $cc_basename in
13839 lt_prog_compiler_wl_CXX='-Wl,'
13840 lt_prog_compiler_static_CXX='-non_shared'
13841 # CC pic flag -KPIC is the default.
13847 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13848 case $cc_basename in
13851 lt_prog_compiler_wl_CXX='--backend -Wl,'
13852 lt_prog_compiler_pic_CXX='-fPIC'
13855 # old Intel C++ for x86_64 which still supported -KPIC.
13856 lt_prog_compiler_wl_CXX='-Wl,'
13857 lt_prog_compiler_pic_CXX='-KPIC'
13858 lt_prog_compiler_static_CXX='-static'
13861 # Intel C++, used to be incompatible with GCC.
13862 # ICC 10 doesn't accept -KPIC any more.
13863 lt_prog_compiler_wl_CXX='-Wl,'
13864 lt_prog_compiler_pic_CXX='-fPIC'
13865 lt_prog_compiler_static_CXX='-static'
13868 # Portland Group C++ compiler
13869 lt_prog_compiler_wl_CXX='-Wl,'
13870 lt_prog_compiler_pic_CXX='-fpic'
13871 lt_prog_compiler_static_CXX='-Bstatic'
13875 # Make sure the PIC flag is empty. It appears that all Alpha
13876 # Linux and Compaq Tru64 Unix objects are PIC.
13877 lt_prog_compiler_pic_CXX=
13878 lt_prog_compiler_static_CXX='-non_shared'
13880 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13881 # IBM XL 8.0, 9.0 on PPC and BlueGene
13882 lt_prog_compiler_wl_CXX='-Wl,'
13883 lt_prog_compiler_pic_CXX='-qpic'
13884 lt_prog_compiler_static_CXX='-qstaticlink'
13887 case `$CC -V 2>&1 | sed 5q` in
13890 lt_prog_compiler_pic_CXX='-KPIC'
13891 lt_prog_compiler_static_CXX='-Bstatic'
13892 lt_prog_compiler_wl_CXX='-Qoption ld '
13903 case $cc_basename in
13905 lt_prog_compiler_pic_CXX='-W c,exportall'
13914 # QNX uses GNU C++, but need to define -shared option too, otherwise
13915 # it will coredump.
13916 lt_prog_compiler_pic_CXX='-fPIC -shared'
13918 osf3* | osf4* | osf5*)
13919 case $cc_basename in
13921 lt_prog_compiler_wl_CXX='--backend -Wl,'
13924 # Rational C++ 2.4.1
13925 lt_prog_compiler_pic_CXX='-pic'
13928 # Digital/Compaq C++
13929 lt_prog_compiler_wl_CXX='-Wl,'
13930 # Make sure the PIC flag is empty. It appears that all Alpha
13931 # Linux and Compaq Tru64 Unix objects are PIC.
13932 lt_prog_compiler_pic_CXX=
13933 lt_prog_compiler_static_CXX='-non_shared'
13942 case $cc_basename in
13944 # Sun C++ 4.2, 5.x and Centerline C++
13945 lt_prog_compiler_pic_CXX='-KPIC'
13946 lt_prog_compiler_static_CXX='-Bstatic'
13947 lt_prog_compiler_wl_CXX='-Qoption ld '
13950 # Green Hills C++ Compiler
13951 lt_prog_compiler_pic_CXX='-PIC'
13958 case $cc_basename in
13961 lt_prog_compiler_pic_CXX='-pic'
13962 lt_prog_compiler_static_CXX='-Bstatic'
13966 lt_prog_compiler_pic_CXX='-pic'
13972 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13973 case $cc_basename in
13975 lt_prog_compiler_wl_CXX='-Wl,'
13976 lt_prog_compiler_pic_CXX='-KPIC'
13977 lt_prog_compiler_static_CXX='-Bstatic'
13982 case $cc_basename in
13984 # NonStop-UX NCC 3.20
13985 lt_prog_compiler_pic_CXX='-KPIC'
13994 lt_prog_compiler_can_build_shared_CXX=no
14000 # For platforms which do not support PIC, -DPIC is meaningless:
14002 lt_prog_compiler_pic_CXX=
14005 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14010 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14011 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14012 $as_echo_n "(cached) " >&6
14014 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14017 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14018 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14021 # Check to make sure the PIC flag actually works.
14023 if test -n "$lt_prog_compiler_pic_CXX"; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14025 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14026 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14027 $as_echo_n "(cached) " >&6
14029 lt_cv_prog_compiler_pic_works_CXX=no
14030 ac_outfile=conftest.$ac_objext
14031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14032 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14033 # Insert the option either (1) after the last *FLAGS variable, or
14034 # (2) before a word containing "conftest.", or (3) at the end.
14035 # Note that $ac_compile itself does not contain backslashes and begins
14036 # with a dollar sign (not a hyphen), so the echo should work correctly.
14037 # The option is referenced via a variable to avoid confusing sed.
14038 lt_compile=`echo "$ac_compile" | $SED \
14039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14041 -e 's:$: $lt_compiler_flag:'`
14042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14043 (eval "$lt_compile" 2>conftest.err)
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 if (exit $ac_status) && test -s "$ac_outfile"; then
14048 # The compiler can only warn and ignore the option if not recognized
14049 # So say no if there are warnings other than the usual output.
14050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14053 lt_cv_prog_compiler_pic_works_CXX=yes
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14060 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14062 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14063 case $lt_prog_compiler_pic_CXX in
14065 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14068 lt_prog_compiler_pic_CXX=
14069 lt_prog_compiler_can_build_shared_CXX=no
14079 # Check to make sure the static flag actually works.
14081 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14083 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14084 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14085 $as_echo_n "(cached) " >&6
14087 lt_cv_prog_compiler_static_works_CXX=no
14088 save_LDFLAGS="$LDFLAGS"
14089 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14092 # The linker can only warn and ignore the option if not recognized
14093 # So say no if there are warnings
14094 if test -s conftest.err; then
14095 # Append any errors to the config.log.
14096 cat conftest.err 1>&5
14097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14099 if diff conftest.exp conftest.er2 >/dev/null; then
14100 lt_cv_prog_compiler_static_works_CXX=yes
14103 lt_cv_prog_compiler_static_works_CXX=yes
14107 LDFLAGS="$save_LDFLAGS"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14111 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14113 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14116 lt_prog_compiler_static_CXX=
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14123 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14124 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14125 $as_echo_n "(cached) " >&6
14127 lt_cv_prog_compiler_c_o_CXX=no
14128 $RM -r conftest 2>/dev/null
14132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14134 lt_compiler_flag="-o out/conftest2.$ac_objext"
14135 # Insert the option either (1) after the last *FLAGS variable, or
14136 # (2) before a word containing "conftest.", or (3) at the end.
14137 # Note that $ac_compile itself does not contain backslashes and begins
14138 # with a dollar sign (not a hyphen), so the echo should work correctly.
14139 lt_compile=`echo "$ac_compile" | $SED \
14140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14142 -e 's:$: $lt_compiler_flag:'`
14143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14144 (eval "$lt_compile" 2>out/conftest.err)
14146 cat out/conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14150 # The compiler can only warn and ignore the option if not recognized
14151 # So say no if there are warnings
14152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14155 lt_cv_prog_compiler_c_o_CXX=yes
14160 # SGI C++ compiler will create directory out/ii_files/ for
14161 # template instantiation
14162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14163 $RM out/* && rmdir out
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14170 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14176 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 lt_cv_prog_compiler_c_o_CXX=no
14180 $RM -r conftest 2>/dev/null
14184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14186 lt_compiler_flag="-o out/conftest2.$ac_objext"
14187 # Insert the option either (1) after the last *FLAGS variable, or
14188 # (2) before a word containing "conftest.", or (3) at the end.
14189 # Note that $ac_compile itself does not contain backslashes and begins
14190 # with a dollar sign (not a hyphen), so the echo should work correctly.
14191 lt_compile=`echo "$ac_compile" | $SED \
14192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14194 -e 's:$: $lt_compiler_flag:'`
14195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14196 (eval "$lt_compile" 2>out/conftest.err)
14198 cat out/conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14202 # The compiler can only warn and ignore the option if not recognized
14203 # So say no if there are warnings
14204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14207 lt_cv_prog_compiler_c_o_CXX=yes
14212 # SGI C++ compiler will create directory out/ii_files/ for
14213 # template instantiation
14214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14215 $RM out/* && rmdir out
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14222 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14227 hard_links="nottested"
14228 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14229 # do not overwrite the value of need_locks provided by the user
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14231 $as_echo_n "checking if we can lock with hard links... " >&6; }
14234 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14236 ln conftest.a conftest.b 2>&5 || hard_links=no
14237 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14239 $as_echo "$hard_links" >&6; }
14240 if test "$hard_links" = no; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14242 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14252 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14255 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14258 # If we're using GNU nm, then we don't want the "-C" option.
14259 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14260 # Also, AIX nm treats weak defined symbols like other global defined
14261 # symbols, whereas GNU nm marks them as "W".
14262 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14263 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'
14265 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'
14269 export_symbols_cmds_CXX="$ltdll_cmds"
14271 cygwin* | mingw* | cegcc*)
14272 case $cc_basename in
14275 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'
14276 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14286 $as_echo "$ld_shlibs_CXX" >&6; }
14287 test "$ld_shlibs_CXX" = no && can_build_shared=no
14289 with_gnu_ld_CXX=$with_gnu_ld
14297 # Do we need to explicitly link libc?
14299 case "x$archive_cmds_need_lc_CXX" in
14301 # Assume -lc should be added
14302 archive_cmds_need_lc_CXX=yes
14304 if test "$enable_shared" = yes && test "$GCC" = yes; then
14305 case $archive_cmds_CXX in
14307 # FIXME: we may have to deal with multi-command sequences.
14310 # Test whether the compiler implicitly links with -lc since on some
14311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14312 # to ld, don't add -lc before -lgcc.
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14315 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14316 $as_echo_n "(cached) " >&6
14319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14322 (eval $ac_compile) 2>&5
14324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14325 test $ac_status = 0; } 2>conftest.err; then
14328 libobjs=conftest.$ac_objext
14330 wl=$lt_prog_compiler_wl_CXX
14331 pic_flag=$lt_prog_compiler_pic_CXX
14337 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14338 allow_undefined_flag_CXX=
14339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14340 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }
14345 lt_cv_archive_cmds_need_lc_CXX=no
14347 lt_cv_archive_cmds_need_lc_CXX=yes
14349 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14351 cat conftest.err 1>&5
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14357 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14358 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14431 library_names_spec=
14432 libname_spec='lib$name'
14436 postuninstall_cmds=
14440 shlibpath_overrides_runpath=unknown
14442 dynamic_linker="$host_os ld.so"
14443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14444 need_lib_prefix=unknown
14445 hardcode_into_libs=no
14447 # when you set need_version to no, make sure it does not cause -set_version
14448 # flags to be left without arguments
14449 need_version=unknown
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14455 shlibpath_var=LIBPATH
14457 # AIX 3 has no versioning support, so we append a major version to the name.
14458 soname_spec='${libname}${release}${shared_ext}$major'
14465 hardcode_into_libs=yes
14466 if test "$host_cpu" = ia64; then
14467 # AIX 5 supports IA64
14468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14469 shlibpath_var=LD_LIBRARY_PATH
14471 # With GCC up to 2.95.x, collect2 would create an import file
14472 # for dependence libraries. The import file would start with
14473 # the line `#! .'. This would cause the generated library to
14474 # depend on `.', always an invalid library. This was fixed in
14475 # development snapshots of GCC prior to 3.0.
14477 aix4 | aix4.[01] | aix4.[01].*)
14478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14480 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14483 can_build_shared=no
14487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14488 # soname into executable. Probably we can add versioning support to
14489 # collect2, so additional links can be useful in future.
14490 if test "$aix_use_runtimelinking" = yes; then
14491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14492 # instead of lib<name>.a to let people know that these are not
14493 # typical AIX shared libraries.
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14496 # We preserve .a as extension for shared libraries through AIX4.2
14497 # and later when we are not doing run time linking.
14498 library_names_spec='${libname}${release}.a $libname.a'
14499 soname_spec='${libname}${release}${shared_ext}$major'
14501 shlibpath_var=LIBPATH
14508 # Since July 2007 AmigaOS4 officially supports .so libraries.
14509 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14513 library_names_spec='$libname.ixlibrary $libname.a'
14514 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14515 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'
14521 library_names_spec='${libname}${shared_ext}'
14522 dynamic_linker="$host_os ld.so"
14523 shlibpath_var=LIBRARY_PATH
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14535 # the default ld.so.conf also contains /usr/contrib/lib and
14536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14537 # libtool to hard-code these into programs
14540 cygwin* | mingw* | pw32* | cegcc*)
14541 version_type=windows
14546 case $GCC,$cc_basename in
14549 library_names_spec='$libname.dll.a'
14550 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14551 postinstall_cmds='base_file=`basename \${file}`~
14552 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14553 dldir=$destdir/`dirname \$dlpath`~
14554 test -d \$dldir || mkdir -p \$dldir~
14555 $install_prog $dir/$dlname \$dldir/$dlname~
14556 chmod a+x \$dldir/$dlname~
14557 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14558 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14560 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14561 dlpath=$dir/\$dldll~
14563 shlibpath_overrides_runpath=yes
14567 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14568 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572 # MinGW DLLs use traditional 'lib' prefix
14573 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14576 # pw32 DLLs use 'pw' prefix rather than 'lib'
14577 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14580 dynamic_linker='Win32 ld.exe'
14585 libname_spec='$name'
14586 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14587 library_names_spec='${libname}.dll.lib'
14591 sys_lib_search_path_spec=
14594 for lt_path in $LIB
14597 # Let DOS variable expansion print the short 8.3 style file name.
14598 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14599 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14602 # Convert to MSYS style.
14603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14606 # Convert to unix form, then to dos form, then back to unix form
14607 # but this time dos style (no spaces!) so that the unix form looks
14608 # like /cygdrive/c/PROGRA~1:/cygdr...
14609 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14610 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14611 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14614 sys_lib_search_path_spec="$LIB"
14615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14616 # It is most probably a Windows format PATH.
14617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14619 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14621 # FIXME: find the short name or the path components, as spaces are
14622 # common. (e.g. "Program Files" -> "PROGRA~1")
14626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14627 postinstall_cmds='base_file=`basename \${file}`~
14628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14629 dldir=$destdir/`dirname \$dlpath`~
14630 test -d \$dldir || mkdir -p \$dldir~
14631 $install_prog $dir/$dlname \$dldir/$dlname'
14632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14633 dlpath=$dir/\$dldll~
14635 shlibpath_overrides_runpath=yes
14636 dynamic_linker='Win32 link.exe'
14640 # Assume MSVC wrapper
14641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14642 dynamic_linker='Win32 ld.exe'
14645 # FIXME: first we should search . and the directory the executable is in
14649 darwin* | rhapsody*)
14650 dynamic_linker="$host_os dyld"
14651 version_type=darwin
14654 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14655 soname_spec='${libname}${release}${major}$shared_ext'
14656 shlibpath_overrides_runpath=yes
14657 shlibpath_var=DYLD_LIBRARY_PATH
14658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14676 freebsd* | dragonfly*)
14677 # DragonFly does not have aout. When/if they implement a new
14678 # versioning mechanism, adjust this.
14679 if test -x /usr/bin/objformat; then
14680 objformat=`/usr/bin/objformat`
14683 freebsd[123]*) objformat=aout ;;
14684 *) objformat=elf ;;
14687 version_type=freebsd-$objformat
14688 case $version_type in
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14699 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=yes
14704 freebsd3.[01]* | freebsdelf3.[01]*)
14705 shlibpath_overrides_runpath=yes
14706 hardcode_into_libs=yes
14708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14710 shlibpath_overrides_runpath=no
14711 hardcode_into_libs=yes
14713 *) # from 4.6 on, and DragonFly
14714 shlibpath_overrides_runpath=yes
14715 hardcode_into_libs=yes
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 hardcode_into_libs=yes
14734 dynamic_linker="$host_os runtime_loader"
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14740 hardcode_into_libs=yes
14743 hpux9* | hpux10* | hpux11*)
14744 # Give a soname corresponding to the major version so that dld.sl refuses to
14745 # link against other versions.
14752 hardcode_into_libs=yes
14753 dynamic_linker="$host_os dld.so"
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 soname_spec='${libname}${release}${shared_ext}$major'
14758 if test "X$HPUX_IA64_MODE" = X32; then
14759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14767 hardcode_into_libs=yes
14768 dynamic_linker="$host_os dld.sl"
14769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 soname_spec='${libname}${release}${shared_ext}$major'
14773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14778 dynamic_linker="$host_os dld.sl"
14779 shlibpath_var=SHLIB_PATH
14780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14785 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14786 postinstall_cmds='chmod 555 $lib'
14787 # or fails outright, so override atomically:
14788 install_override_mode=555
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=no
14800 hardcode_into_libs=yes
14803 irix5* | irix6* | nonstopux*)
14805 nonstopux*) version_type=nonstopux ;;
14807 if test "$lt_cv_prog_gnu_ld" = yes; then
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14818 irix5* | nonstopux*)
14819 libsuff= shlibsuff=
14822 case $LD in # libtool.m4 will add one of these switches to LD
14823 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14824 libsuff= shlibsuff= libmagic=32-bit;;
14825 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14826 libsuff=32 shlibsuff=N32 libmagic=N32;;
14827 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14828 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14829 *) libsuff= shlibsuff= libmagic=never-match;;
14833 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14834 shlibpath_overrides_runpath=no
14835 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14836 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14837 hardcode_into_libs=yes
14840 # No shared lib support for Linux oldld, aout, or coff.
14841 linux*oldld* | linux*aout* | linux*coff*)
14845 # This must be Linux ELF.
14846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14853 shlibpath_var=LD_LIBRARY_PATH
14854 shlibpath_overrides_runpath=no
14856 # Some binutils ld are patched to set DT_RUNPATH
14857 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14858 $as_echo_n "(cached) " >&6
14860 lt_cv_shlibpath_overrides_runpath=no
14861 save_LDFLAGS=$LDFLAGS
14862 save_libdir=$libdir
14863 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14864 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14876 if ac_fn_cxx_try_link "$LINENO"; then :
14877 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14878 lt_cv_shlibpath_overrides_runpath=yes
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LDFLAGS=$save_LDFLAGS
14884 libdir=$save_libdir
14888 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14890 # This implies no fast_install, which is unacceptable.
14891 # Some rework will be needed to allow for fast_install
14892 # before this can be enabled.
14893 hardcode_into_libs=yes
14895 # Append ld.so.conf contents to the search path
14896 if test -f /etc/ld.so.conf; then
14897 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' ' '`
14898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14901 # We used to test for /lib/ld.so.1 and disable shared libraries on
14902 # powerpc, because MkLinux only supported shared libraries with the
14903 # GNU dynamic linker. Since this was broken with cross compilers,
14904 # most powerpc-linux boxes support dynamic linking these days and
14905 # people can always --disable-shared, the test was removed, and we
14906 # assume the GNU/Linux dynamic linker is in use.
14907 dynamic_linker='GNU/Linux ld.so'
14914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14917 dynamic_linker='NetBSD (a.out) ld.so'
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 dynamic_linker='NetBSD ld.elf_so'
14923 shlibpath_var=LD_LIBRARY_PATH
14924 shlibpath_overrides_runpath=yes
14925 hardcode_into_libs=yes
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=yes
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14944 dynamic_linker='ldqnx.so'
14949 sys_lib_dlsearch_path_spec="/usr/lib"
14951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14954 *) need_version=no ;;
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14961 openbsd2.[89] | openbsd2.[89].*)
14962 shlibpath_overrides_runpath=no
14965 shlibpath_overrides_runpath=yes
14969 shlibpath_overrides_runpath=yes
14974 libname_spec='$name'
14977 library_names_spec='$libname${shared_ext} $libname.a'
14978 dynamic_linker='OS/2 ld.exe'
14979 shlibpath_var=LIBPATH
14982 osf3* | osf4* | osf5*)
14986 soname_spec='${libname}${release}${shared_ext}$major'
14987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=yes
15005 hardcode_into_libs=yes
15006 # ldd complains unless libraries are executable
15007 postinstall_cmds='chmod +x $lib'
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes
15016 if test "$with_gnu_ld" = yes; then
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 case $host_vendor in
15029 shlibpath_overrides_runpath=no
15031 runpath_var=LD_RUN_PATH
15039 shlibpath_overrides_runpath=no
15040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15046 if test -d /usr/nec ;then
15048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15049 soname_spec='$libname${shared_ext}.$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15055 version_type=freebsd-elf
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=yes
15062 hardcode_into_libs=yes
15063 if test "$with_gnu_ld" = yes; then
15064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15073 sys_lib_dlsearch_path_spec='/usr/lib'
15077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 shlibpath_overrides_runpath=no
15084 hardcode_into_libs=yes
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15099 $as_echo "$dynamic_linker" >&6; }
15100 test "$dynamic_linker" = no && can_build_shared=no
15102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15103 if test "$GCC" = yes; then
15104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15107 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15108 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15110 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15111 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15152 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15153 hardcode_action_CXX=
15154 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15155 test -n "$runpath_var_CXX" ||
15156 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15158 # We can hardcode non-existent directories.
15159 if test "$hardcode_direct_CXX" != no &&
15160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15161 # have to relink, otherwise we might link with an installed library
15162 # when we should be linking with a yet-to-be-installed one
15163 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15164 test "$hardcode_minus_L_CXX" != no; then
15165 # Linking always hardcodes the temporary library directory.
15166 hardcode_action_CXX=relink
15168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15169 hardcode_action_CXX=immediate
15172 # We cannot hardcode anything, or else we can only hardcode existing
15174 hardcode_action_CXX=unsupported
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15177 $as_echo "$hardcode_action_CXX" >&6; }
15179 if test "$hardcode_action_CXX" = relink ||
15180 test "$inherit_rpath_CXX" = yes; then
15181 # Fast installation is not supported
15182 enable_fast_install=no
15183 elif test "$shlibpath_overrides_runpath" = yes ||
15184 test "$enable_shared" = no; then
15185 # Fast installation is not necessary
15186 enable_fast_install=needless
15195 fi # test -n "$compiler"
15198 CFLAGS=$lt_save_CFLAGS
15202 with_gnu_ld=$lt_save_with_gnu_ld
15203 lt_cv_path_LDCXX=$lt_cv_path_LD
15204 lt_cv_path_LD=$lt_save_path_LD
15205 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15206 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15207 fi # test "$_lt_caught_CXX_error" != yes
15210 ac_cpp='$CPP $CPPFLAGS'
15211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227 ac_config_commands="$ac_config_commands libtool"
15232 # Only expand once:
15237 LIBTOOL='${top_srcdir}/scripts/jlibtool'
15248 # Check whether --enable-strict-dependencies was given.
15249 if test "${enable_strict_dependencies+set}" = set; then :
15250 enableval=$enable_strict_dependencies;
15254 docdir='${datadir}/doc/freeradius'
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking docdir" >&5
15256 $as_echo_n "checking docdir... " >&6; }
15258 # Check whether --with-docdir was given.
15259 if test "${with_docdir+set}" = set; then :
15260 withval=$with_docdir; case "$withval" in
15266 [\\/$]* | ?:[\\/]* )
15270 as_fn_error $? "expected an absolute directory name for --with-docdir: $withval" "$LINENO" 5
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15278 $as_echo "$docdir" >&6; }
15279 if test "x$docdir" = xno; then
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation files will NOT be installed." >&5
15281 $as_echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
15284 logdir='${localstatedir}/log/radius'
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking logdir" >&5
15286 $as_echo_n "checking logdir... " >&6; }
15288 # Check whether --with-logdir was given.
15289 if test "${with_logdir+set}" = set; then :
15290 withval=$with_logdir; case "$withval" in
15292 as_fn_error $? "Need logdir" "$LINENO" 5
15296 [\\/$]* | ?:[\\/]* )
15300 as_fn_error $? "expected an absolute directory name for --with-logdir: $withval" "$LINENO" 5
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5
15308 $as_echo "$logdir" >&6; }
15310 radacctdir='${logdir}/radacct'
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking radacctdir" >&5
15312 $as_echo_n "checking radacctdir... " >&6; }
15314 # Check whether --with-radacctdir was given.
15315 if test "${with_radacctdir+set}" = set; then :
15316 withval=$with_radacctdir; case "$withval" in
15318 as_fn_error $? "Need radacctdir" "$LINENO" 5
15322 [\\/$]* | ?:[\\/]* )
15323 radacctdir="$withval"
15326 as_fn_error $? "expected an absolute directory name for --with-radacctdir: $withval" "$LINENO" 5
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $radacctdir" >&5
15334 $as_echo "$radacctdir" >&6; }
15336 raddbdir='${sysconfdir}/raddb'
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking raddbdir" >&5
15338 $as_echo_n "checking raddbdir... " >&6; }
15340 # Check whether --with-raddbdir was given.
15341 if test "${with_raddbdir+set}" = set; then :
15342 withval=$with_raddbdir; case "$withval" in
15344 as_fn_error $? "Need raddbdir" "$LINENO" 5
15348 [\\/$]* | ?:[\\/]* )
15349 raddbdir="$withval"
15352 as_fn_error $? "expected an absolute directory name for --with-raddbdir: $withval" "$LINENO" 5
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $raddbdir" >&5
15360 $as_echo "$raddbdir" >&6; }
15362 WITH_ASCEND_BINARY=yes
15364 # Check whether --with-ascend-binary was given.
15365 if test "${with_ascend_binary+set}" = set; then :
15366 withval=$with_ascend_binary; case "$withval" in
15370 WITH_ASCEND_BINARY=no
15375 if test "x$WITH_ASCEND_BINARY" = "xyes"; then
15377 $as_echo "#define WITH_ASCEND_BINARY 1" >>confdefs.h
15383 # Check whether --with-threads was given.
15384 if test "${with_threads+set}" = set; then :
15385 withval=$with_threads; case "$withval" in
15397 # Check whether --with-tcp was given.
15398 if test "${with_tcp+set}" = set; then :
15399 withval=$with_tcp; case "$withval" in
15408 if test "x$WITH_TCP" = "xyes"; then
15410 $as_echo "#define WITH_TCP 1" >>confdefs.h
15416 # Check whether --with-vmps was given.
15417 if test "${with_vmps+set}" = set; then :
15418 withval=$with_vmps; case "$withval" in
15427 if test "x$WITH_VMPS" = "xyes"; then
15429 $as_echo "#define WITH_VMPS 1" >>confdefs.h
15435 # Check whether --with-dhcp was given.
15436 if test "${with_dhcp+set}" = set; then :
15437 withval=$with_dhcp; case "$withval" in
15446 if test "x$WITH_DHCP" = "xyes"; then
15448 $as_echo "#define WITH_DHCP 1" >>confdefs.h
15454 # Check whether --with-static_modules was given.
15455 if test "${with_static_modules+set}" = set; then :
15456 withval=$with_static_modules;
15457 for i in $withval; do
15458 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
15466 # Check whether --with-modules was given.
15467 if test "${with_modules+set}" = set; then :
15468 withval=$with_modules;
15469 for i in $withval; do
15470 MODULES="$MODULES $i"
15478 # Check whether --with-experimental-modules was given.
15479 if test "${with_experimental_modules+set}" = set; then :
15480 withval=$with_experimental_modules; case "$withval" in
15495 # Check whether --with-openssl was given.
15496 if test "${with_openssl+set}" = set; then :
15497 withval=$with_openssl; case "$withval" in
15509 OPENSSL_INCLUDE_DIR=
15511 # Check whether --with-openssl-includes was given.
15512 if test "${with_openssl_includes+set}" = set; then :
15513 withval=$with_openssl_includes; case "$withval" in
15514 *) OPENSSL_INCLUDE_DIR="$withval"
15523 # Check whether --with-openssl-libraries was given.
15524 if test "${with_openssl_libraries+set}" = set; then :
15525 withval=$with_openssl_libraries; case "$withval" in
15526 *) OPENSSL_LIB_DIR="$withval"
15535 # Check whether --with-rlm-FOO-lib-dir was given.
15536 if test "${with_rlm_FOO_lib_dir+set}" = set; then :
15537 withval=$with_rlm_FOO_lib_dir; case "$withval" in
15546 # Check whether --with-rlm-FOO-include-dir was given.
15547 if test "${with_rlm_FOO_include_dir+set}" = set; then :
15548 withval=$with_rlm_FOO_include_dir; case "$withval" in
15559 # Check whether --with-udpfromto was given.
15560 if test "${with_udpfromto+set}" = set; then :
15561 withval=$with_udpfromto; case "$withval" in
15572 if test "x$WITH_UDPFROMTO" = "xyes"; then
15574 $as_echo "#define WITH_UDPFROMTO /**/" >>confdefs.h
15579 CHECKRAD=checkrad.pl
15580 # Extract the first word of "perl", so it can be a program name with args.
15581 set dummy perl; ac_word=$2
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15583 $as_echo_n "checking for $ac_word... " >&6; }
15584 if ${ac_cv_path_PERL+:} false; then :
15585 $as_echo_n "(cached) " >&6
15589 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
15592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15596 test -z "$as_dir" && as_dir=.
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
15600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
15611 PERL=$ac_cv_path_PERL
15612 if test -n "$PERL"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
15614 $as_echo "$PERL" >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15617 $as_echo "no" >&6; }
15621 if test "x$ac_cv_path_PERL" = "x"; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
15623 $as_echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15625 # Extract the first word of "snmpget", so it can be a program name with args.
15626 set dummy snmpget; ac_word=$2
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15628 $as_echo_n "checking for $ac_word... " >&6; }
15629 if ${ac_cv_path_SNMPGET+:} false; then :
15630 $as_echo_n "(cached) " >&6
15634 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
15637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15644 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
15645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15655 SNMPGET=$ac_cv_path_SNMPGET
15656 if test -n "$SNMPGET"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPGET" >&5
15658 $as_echo "$SNMPGET" >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15661 $as_echo "no" >&6; }
15665 if test "x$ac_cv_path_SNMPGET" = "x"; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
15667 $as_echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15670 # Extract the first word of "snmpwalk", so it can be a program name with args.
15671 set dummy snmpwalk; ac_word=$2
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15673 $as_echo_n "checking for $ac_word... " >&6; }
15674 if ${ac_cv_path_SNMPWALK+:} false; then :
15675 $as_echo_n "(cached) " >&6
15679 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15683 for as_dir in $PATH
15686 test -z "$as_dir" && as_dir=.
15687 for ac_exec_ext in '' $ac_executable_extensions; do
15688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15689 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15700 SNMPWALK=$ac_cv_path_SNMPWALK
15701 if test -n "$SNMPWALK"; then
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMPWALK" >&5
15703 $as_echo "$SNMPWALK" >&6; }
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15706 $as_echo "no" >&6; }
15710 if test "x$ac_cv_path_SNMPWALK" = "x"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
15712 $as_echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
15715 # Extract the first word of "rusers", so it can be a program name with args.
15716 set dummy rusers; ac_word=$2
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15718 $as_echo_n "checking for $ac_word... " >&6; }
15719 if ${ac_cv_path_RUSERS+:} false; then :
15720 $as_echo_n "(cached) " >&6
15724 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
15727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15728 for as_dir in $PATH
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15734 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
15735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15742 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
15746 RUSERS=$ac_cv_path_RUSERS
15747 if test -n "$RUSERS"; then
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSERS" >&5
15749 $as_echo "$RUSERS" >&6; }
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15752 $as_echo "no" >&6; }
15757 missing_dir=`cd $ac_aux_dir && pwd`
15758 # expand $ac_aux_dir to an absolute path
15759 am_aux_dir=`cd $ac_aux_dir && pwd`
15761 if test x"${MISSING+set}" != xset; then
15762 case $am_aux_dir in
15764 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15766 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15769 # Use eval to expand $SHELL
15770 if eval "$MISSING --run true"; then
15771 am_missing_run="$MISSING --run "
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15775 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
15782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15788 # Extract the first word of "locate", so it can be a program name with args.
15789 set dummy locate; ac_word=$2
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15791 $as_echo_n "checking for $ac_word... " >&6; }
15792 if ${ac_cv_path_LOCATE+:} false; then :
15793 $as_echo_n "(cached) " >&6
15797 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15818 LOCATE=$ac_cv_path_LOCATE
15819 if test -n "$LOCATE"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCATE" >&5
15821 $as_echo "$LOCATE" >&6; }
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15828 # Extract the first word of "dirname", so it can be a program name with args.
15829 set dummy dirname; ac_word=$2
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15831 $as_echo_n "checking for $ac_word... " >&6; }
15832 if ${ac_cv_path_DIRNAME+:} false; then :
15833 $as_echo_n "(cached) " >&6
15837 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
15840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15844 test -z "$as_dir" && as_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15858 DIRNAME=$ac_cv_path_DIRNAME
15859 if test -n "$DIRNAME"; then
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
15861 $as_echo "$DIRNAME" >&6; }
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15868 # Extract the first word of "grep", so it can be a program name with args.
15869 set dummy grep; ac_word=$2
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871 $as_echo_n "checking for $ac_word... " >&6; }
15872 if ${ac_cv_path_GREP+:} false; then :
15873 $as_echo_n "(cached) " >&6
15877 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
15880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15884 test -z "$as_dir" && as_dir=.
15885 for ac_exec_ext in '' $ac_executable_extensions; do
15886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15887 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
15888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15898 GREP=$ac_cv_path_GREP
15899 if test -n "$GREP"; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
15901 $as_echo "$GREP" >&6; }
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15904 $as_echo "no" >&6; }
15911 if test "x$WITH_THREADS" = "xyes"; then
15912 if test $ac_cv_prog_suncc = "yes"; then
15913 CFLAGS="$CFLAGS -mt"
15916 for ac_header in pthread.h
15918 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_pthread_h" = xyes; then :
15920 cat >>confdefs.h <<_ACEOF
15921 #define HAVE_PTHREAD_H 1
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15932 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15933 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15934 $as_echo_n "(cached) " >&6
15936 ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lpthread $LIBS"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15941 /* Override any GCC internal prototype to avoid an error.
15942 Use char because int might match the return type of a GCC
15943 builtin and then its argument prototype would still apply. */
15947 char pthread_create ();
15951 return pthread_create ();
15956 if ac_fn_c_try_link "$LINENO"; then :
15957 ac_cv_lib_pthread_pthread_create=yes
15959 ac_cv_lib_pthread_pthread_create=no
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15966 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15967 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15968 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
15969 LIBS="-lpthread $LIBS"
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
15972 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
15973 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
15974 $as_echo_n "(cached) " >&6
15976 ac_check_lib_save_LIBS=$LIBS
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15987 char pthread_create ();
15991 return pthread_create ();
15996 if ac_fn_c_try_link "$LINENO"; then :
15997 ac_cv_lib_c_r_pthread_create=yes
15999 ac_cv_lib_c_r_pthread_create=no
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_lib_save_LIBS
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16006 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
16007 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
16008 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
16019 if test "x$WITH_THREADS" != "xyes"; then
16021 ac_cv_header_pthread_h="no"
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
16026 $as_echo_n "checking for library containing sem_init... " >&6; }
16027 if ${ac_cv_search_sem_init+:} false; then :
16028 $as_echo_n "(cached) " >&6
16030 ac_func_search_save_LIBS=$LIBS
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16034 /* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16044 return sem_init ();
16049 for ac_lib in '' pthread sem posix4 rt semaphore; do
16050 if test -z "$ac_lib"; then
16051 ac_res="none required"
16054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16056 if ac_fn_c_try_link "$LINENO"; then :
16057 ac_cv_search_sem_init=$ac_res
16059 rm -f core conftest.err conftest.$ac_objext \
16061 if ${ac_cv_search_sem_init+:} false; then :
16065 if ${ac_cv_search_sem_init+:} false; then :
16068 ac_cv_search_sem_init=no
16070 rm conftest.$ac_ext
16071 LIBS=$ac_func_search_save_LIBS
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
16074 $as_echo "$ac_cv_search_sem_init" >&6; }
16075 ac_res=$ac_cv_search_sem_init
16076 if test "$ac_res" != no; then :
16077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16080 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
16086 if test "x$WITH_THREADS" = "xyes"; then
16088 $as_echo "#define WITH_THREADS 1" >>confdefs.h
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16093 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16094 if ${ac_cv_lib_dl_dlopen+:} false; then :
16095 $as_echo_n "(cached) " >&6
16097 ac_check_lib_save_LIBS=$LIBS
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16102 /* Override any GCC internal prototype to avoid an error.
16103 Use char because int might match the return type of a GCC
16104 builtin and then its argument prototype would still apply. */
16117 if ac_fn_c_try_link "$LINENO"; then :
16118 ac_cv_lib_dl_dlopen=yes
16120 ac_cv_lib_dl_dlopen=no
16122 rm -f core conftest.err conftest.$ac_objext \
16123 conftest$ac_exeext conftest.$ac_ext
16124 LIBS=$ac_check_lib_save_LIBS
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16127 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16128 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_LIBDL 1
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname in -lsocket" >&5
16139 $as_echo_n "checking for getsockname in -lsocket... " >&6; }
16140 if ${ac_cv_lib_socket_getsockname+:} false; then :
16141 $as_echo_n "(cached) " >&6
16143 ac_check_lib_save_LIBS=$LIBS
16144 LIBS="-lsocket $LIBS"
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16148 /* Override any GCC internal prototype to avoid an error.
16149 Use char because int might match the return type of a GCC
16150 builtin and then its argument prototype would still apply. */
16154 char getsockname ();
16158 return getsockname ();
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 ac_cv_lib_socket_getsockname=yes
16166 ac_cv_lib_socket_getsockname=no
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16170 LIBS=$ac_check_lib_save_LIBS
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getsockname" >&5
16173 $as_echo "$ac_cv_lib_socket_getsockname" >&6; }
16174 if test "x$ac_cv_lib_socket_getsockname" = xyes; then :
16175 cat >>confdefs.h <<_ACEOF
16176 #define HAVE_LIBSOCKET 1
16179 LIBS="-lsocket $LIBS"
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
16185 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
16186 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
16187 $as_echo_n "(cached) " >&6
16189 ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-lresolv $LIBS"
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16194 /* Override any GCC internal prototype to avoid an error.
16195 Use char because int might match the return type of a GCC
16196 builtin and then its argument prototype would still apply. */
16204 return inet_aton ();
16209 if ac_fn_c_try_link "$LINENO"; then :
16210 ac_cv_lib_resolv_inet_aton=yes
16212 ac_cv_lib_resolv_inet_aton=no
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 LIBS=$ac_check_lib_save_LIBS
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
16219 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
16220 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
16221 cat >>confdefs.h <<_ACEOF
16222 #define HAVE_LIBRESOLV 1
16225 LIBS="-lresolv $LIBS"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
16231 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
16232 if ${ac_cv_lib_nsl_inet_ntoa+:} false; then :
16233 $as_echo_n "(cached) " >&6
16235 ac_check_lib_save_LIBS=$LIBS
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16240 /* Override any GCC internal prototype to avoid an error.
16241 Use char because int might match the return type of a GCC
16242 builtin and then its argument prototype would still apply. */
16250 return inet_ntoa ();
16255 if ac_fn_c_try_link "$LINENO"; then :
16256 ac_cv_lib_nsl_inet_ntoa=yes
16258 ac_cv_lib_nsl_inet_ntoa=no
16260 rm -f core conftest.err conftest.$ac_objext \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
16265 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
16266 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes; then :
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_LIBNSL 1
16277 if test "x$WITH_OPENSSL" = xyes; then
16279 old_LDFLAGS="$LDFLAGS"
16280 if test "x$OPENSSL_LIB_DIR" != "x"; then
16281 LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
16284 $as_echo_n "checking for DH_new in -lcrypto... " >&6; }
16285 if ${ac_cv_lib_crypto_DH_new+:} false; then :
16286 $as_echo_n "(cached) " >&6
16288 ac_check_lib_save_LIBS=$LIBS
16289 LIBS="-lcrypto $LIBS"
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16293 /* Override any GCC internal prototype to avoid an error.
16294 Use char because int might match the return type of a GCC
16295 builtin and then its argument prototype would still apply. */
16308 if ac_fn_c_try_link "$LINENO"; then :
16309 ac_cv_lib_crypto_DH_new=yes
16311 ac_cv_lib_crypto_DH_new=no
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 LIBS=$ac_check_lib_save_LIBS
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_DH_new" >&5
16318 $as_echo "$ac_cv_lib_crypto_DH_new" >&6; }
16319 if test "x$ac_cv_lib_crypto_DH_new" = xyes; then :
16321 LIBS="-lcrypto $LIBS"
16323 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
16326 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
16327 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
16328 $as_echo_n "(cached) " >&6
16330 ac_check_lib_save_LIBS=$LIBS
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16335 /* Override any GCC internal prototype to avoid an error.
16336 Use char because int might match the return type of a GCC
16337 builtin and then its argument prototype would still apply. */
16350 if ac_fn_c_try_link "$LINENO"; then :
16351 ac_cv_lib_ssl_SSL_new=yes
16353 ac_cv_lib_ssl_SSL_new=no
16355 rm -f core conftest.err conftest.$ac_objext \
16356 conftest$ac_exeext conftest.$ac_ext
16357 LIBS=$ac_check_lib_save_LIBS
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
16360 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
16361 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
16364 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
16366 if test "x$OPENSSL_LIB_DIR" != "x"; then
16367 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
16369 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
16377 LDFLAGS="$old_LDFLAGS"
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lws2_32" >&5
16381 $as_echo_n "checking for htonl in -lws2_32... " >&6; }
16382 if ${ac_cv_lib_ws2_32_htonl+:} false; then :
16383 $as_echo_n "(cached) " >&6
16385 ac_check_lib_save_LIBS=$LIBS
16386 LIBS="-lws2_32 $LIBS"
16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16388 /* end confdefs.h. */
16390 /* Override any GCC internal prototype to avoid an error.
16391 Use char because int might match the return type of a GCC
16392 builtin and then its argument prototype would still apply. */
16405 if ac_fn_c_try_link "$LINENO"; then :
16406 ac_cv_lib_ws2_32_htonl=yes
16408 ac_cv_lib_ws2_32_htonl=no
16410 rm -f core conftest.err conftest.$ac_objext \
16411 conftest$ac_exeext conftest.$ac_ext
16412 LIBS=$ac_check_lib_save_LIBS
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_htonl" >&5
16415 $as_echo "$ac_cv_lib_ws2_32_htonl" >&6; }
16416 if test "x$ac_cv_lib_ws2_32_htonl" = xyes; then :
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_LIBWS2_32 1
16421 LIBS="-lws2_32 $LIBS"
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
16428 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
16429 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 ac_check_lib_save_LIBS=$LIBS
16433 LIBS="-lpcap $LIBS"
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16437 /* Override any GCC internal prototype to avoid an error.
16438 Use char because int might match the return type of a GCC
16439 builtin and then its argument prototype would still apply. */
16443 char pcap_open_live ();
16447 return pcap_open_live ();
16452 if ac_fn_c_try_link "$LINENO"; then :
16453 ac_cv_lib_pcap_pcap_open_live=yes
16455 ac_cv_lib_pcap_pcap_open_live=no
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16459 LIBS=$ac_check_lib_save_LIBS
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
16462 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
16463 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
16466 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
16471 $as_echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
16477 $as_echo_n "checking for a readline compatible library... " >&6; }
16478 if ${vl_cv_lib_readline+:} false; then :
16479 $as_echo_n "(cached) " >&6
16483 for readline_lib in readline edit editline; do
16484 for termcap_lib in "" termcap curses ncurses; do
16485 if test -z "$termcap_lib"; then
16486 TRY_LIB="-l$readline_lib"
16488 TRY_LIB="-l$readline_lib -l$termcap_lib"
16490 LIBS="$ORIG_LIBS $TRY_LIB"
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16504 return readline ();
16509 if ac_fn_c_try_link "$LINENO"; then :
16510 vl_cv_lib_readline="$TRY_LIB"
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514 if test -n "$vl_cv_lib_readline"; then
16515 LIBREADLINE="$TRY_LIB"
16519 if test -n "$vl_cv_lib_readline"; then
16523 if test -z "$vl_cv_lib_readline"; then
16524 vl_cv_lib_readline="no"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
16530 $as_echo "$vl_cv_lib_readline" >&6; }
16532 if test "$vl_cv_lib_readline" != "no"; then
16534 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16536 for ac_header in readline.h readline/readline.h
16538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16540 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16541 cat >>confdefs.h <<_ACEOF
16542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16550 $as_echo_n "checking whether readline supports history... " >&6; }
16551 if ${vl_cv_lib_readline_history+:} false; then :
16552 $as_echo_n "(cached) " >&6
16555 vl_cv_lib_readline_history="no"
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16559 /* Override any GCC internal prototype to avoid an error.
16560 Use char because int might match the return type of a GCC
16561 builtin and then its argument prototype would still apply. */
16565 char add_history ();
16569 return add_history ();
16574 if ac_fn_c_try_link "$LINENO"; then :
16575 vl_cv_lib_readline_history="yes"
16577 rm -f core conftest.err conftest.$ac_objext \
16578 conftest$ac_exeext conftest.$ac_ext
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16582 $as_echo "$vl_cv_lib_readline_history" >&6; }
16583 if test "$vl_cv_lib_readline_history" = "yes"; then
16585 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16587 for ac_header in history.h readline/history.h
16589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16590 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16592 cat >>confdefs.h <<_ACEOF
16593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16608 CFLAGS="$CFLAGS -D_ALL_SOURCE"
16611 CFLAGS="$CFLAGS -DDARWIN"
16612 LIBS="-framework DirectoryService $LIBS"
16616 ac_header_dirent=no
16617 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16618 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16620 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16621 if eval \${$as_ac_Header+:} false; then :
16622 $as_echo_n "(cached) " >&6
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 #include <sys/types.h>
16638 if ac_fn_c_try_compile "$LINENO"; then :
16639 eval "$as_ac_Header=yes"
16641 eval "$as_ac_Header=no"
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16645 eval ac_res=\$$as_ac_Header
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16647 $as_echo "$ac_res" >&6; }
16648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16649 cat >>confdefs.h <<_ACEOF
16650 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16653 ac_header_dirent=$ac_hdr; break
16657 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16658 if test $ac_header_dirent = dirent.h; then
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16660 $as_echo_n "checking for library containing opendir... " >&6; }
16661 if ${ac_cv_search_opendir+:} false; then :
16662 $as_echo_n "(cached) " >&6
16664 ac_func_search_save_LIBS=$LIBS
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16668 /* Override any GCC internal prototype to avoid an error.
16669 Use char because int might match the return type of a GCC
16670 builtin and then its argument prototype would still apply. */
16683 for ac_lib in '' dir; do
16684 if test -z "$ac_lib"; then
16685 ac_res="none required"
16688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16690 if ac_fn_c_try_link "$LINENO"; then :
16691 ac_cv_search_opendir=$ac_res
16693 rm -f core conftest.err conftest.$ac_objext \
16695 if ${ac_cv_search_opendir+:} false; then :
16699 if ${ac_cv_search_opendir+:} false; then :
16702 ac_cv_search_opendir=no
16704 rm conftest.$ac_ext
16705 LIBS=$ac_func_search_save_LIBS
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16708 $as_echo "$ac_cv_search_opendir" >&6; }
16709 ac_res=$ac_cv_search_opendir
16710 if test "$ac_res" != no; then :
16711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16717 $as_echo_n "checking for library containing opendir... " >&6; }
16718 if ${ac_cv_search_opendir+:} false; then :
16719 $as_echo_n "(cached) " >&6
16721 ac_func_search_save_LIBS=$LIBS
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16725 /* Override any GCC internal prototype to avoid an error.
16726 Use char because int might match the return type of a GCC
16727 builtin and then its argument prototype would still apply. */
16740 for ac_lib in '' x; do
16741 if test -z "$ac_lib"; then
16742 ac_res="none required"
16745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16747 if ac_fn_c_try_link "$LINENO"; then :
16748 ac_cv_search_opendir=$ac_res
16750 rm -f core conftest.err conftest.$ac_objext \
16752 if ${ac_cv_search_opendir+:} false; then :
16756 if ${ac_cv_search_opendir+:} false; then :
16759 ac_cv_search_opendir=no
16761 rm conftest.$ac_ext
16762 LIBS=$ac_func_search_save_LIBS
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16765 $as_echo "$ac_cv_search_opendir" >&6; }
16766 ac_res=$ac_cv_search_opendir
16767 if test "$ac_res" != no; then :
16768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16775 $as_echo_n "checking for ANSI C header files... " >&6; }
16776 if ${ac_cv_header_stdc+:} false; then :
16777 $as_echo_n "(cached) " >&6
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #include <stdlib.h>
16782 #include <stdarg.h>
16783 #include <string.h>
16794 if ac_fn_c_try_compile "$LINENO"; then :
16795 ac_cv_header_stdc=yes
16797 ac_cv_header_stdc=no
16799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 if test $ac_cv_header_stdc = yes; then
16802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* end confdefs.h. */
16805 #include <string.h>
16808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16809 $EGREP "memchr" >/dev/null 2>&1; then :
16812 ac_cv_header_stdc=no
16818 if test $ac_cv_header_stdc = yes; then
16819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16822 #include <stdlib.h>
16825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16826 $EGREP "free" >/dev/null 2>&1; then :
16829 ac_cv_header_stdc=no
16835 if test $ac_cv_header_stdc = yes; then
16836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16837 if test "$cross_compiling" = yes; then :
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16843 #include <stdlib.h>
16844 #if ((' ' & 0x0FF) == 0x020)
16845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16848 # define ISLOWER(c) \
16849 (('a' <= (c) && (c) <= 'i') \
16850 || ('j' <= (c) && (c) <= 'r') \
16851 || ('s' <= (c) && (c) <= 'z'))
16852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16860 for (i = 0; i < 256; i++)
16861 if (XOR (islower (i), ISLOWER (i))
16862 || toupper (i) != TOUPPER (i))
16867 if ac_fn_c_try_run "$LINENO"; then :
16870 ac_cv_header_stdc=no
16872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16873 conftest.$ac_objext conftest.beam conftest.$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16879 $as_echo "$ac_cv_header_stdc" >&6; }
16880 if test $ac_cv_header_stdc = yes; then
16882 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16888 if ${ac_cv_header_time+:} false; then :
16889 $as_echo_n "(cached) " >&6
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 #include <sys/types.h>
16894 #include <sys/time.h>
16900 if ((struct tm *) 0)
16906 if ac_fn_c_try_compile "$LINENO"; then :
16907 ac_cv_header_time=yes
16909 ac_cv_header_time=no
16911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16914 $as_echo "$ac_cv_header_time" >&6; }
16915 if test $ac_cv_header_time = yes; then
16917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16922 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16923 if ${ac_cv_header_sys_wait_h+:} false; then :
16924 $as_echo_n "(cached) " >&6
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16928 #include <sys/types.h>
16929 #include <sys/wait.h>
16930 #ifndef WEXITSTATUS
16931 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16934 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16942 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16947 if ac_fn_c_try_compile "$LINENO"; then :
16948 ac_cv_header_sys_wait_h=yes
16950 ac_cv_header_sys_wait_h=no
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16955 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16956 if test $ac_cv_header_sys_wait_h = yes; then
16958 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
17004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17005 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17007 cat >>confdefs.h <<_ACEOF
17008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016 for ac_header in net/if.h
17018 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_SOCKET_H
17019 # include <sys/socket.h>
17023 if test "x$ac_cv_header_net_if_h" = xyes; then :
17024 cat >>confdefs.h <<_ACEOF
17025 #define HAVE_NET_IF_H 1
17034 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17035 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
17037 $as_echo "#define HAVE_PCREPOSIX_H /**/" >>confdefs.h
17042 if test "x$ac_cv_header_pcreposix_h" = "xyes"; then
17044 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17049 LIBS="$LIBS -lpcreposix"
17052 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17053 if test "x$ac_cv_header_regex_h" = xyes; then :
17055 $as_echo "#define HAVE_REGEX_H /**/" >>confdefs.h
17060 if test "x$ac_cv_header_regex_h" = "xyes"; then
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17067 #ifdef REG_EXTENDED
17072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17073 $EGREP "yes" >/dev/null 2>&1; then :
17075 $as_echo "#define HAVE_REG_EXTENDED /**/" >>confdefs.h
17087 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
17090 $as_echo "#define OSFC2 /**/" >>confdefs.h
17094 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
17097 $as_echo "#define OSFSIA /**/" >>confdefs.h
17101 OPENSSL_INCLUDE="-DNO_OPENSSL"
17102 if test "x$WITH_OPENSSL" = xyes; then
17103 if test "x$OPENSSL_LIBS" = "x"; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for openssl/ssl.h" >&5
17105 $as_echo "$as_me: skipping test for openssl/ssl.h" >&6;}
17107 old_CPPFLAGS=$CPPFLAGS
17108 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17109 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
17111 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
17123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17126 cat >>confdefs.h <<_ACEOF
17127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17137 if test "x$OPENSSL_LIBS" != "x"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version >= 0.9.7" >&5
17139 $as_echo_n "checking for OpenSSL version >= 0.9.7... " >&6; }
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17142 #include <openssl/crypto.h>
17143 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
17148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17149 $EGREP "yes" >/dev/null 2>&1; then :
17154 if test "x$goodssl" != "xyes"; then
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17156 $as_echo "no" >&6; }
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17160 $as_echo "yes" >&6; }
17161 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
17162 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
17164 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
17168 CPPFLAGS=$old_CPPFLAGS
17173 export OPENSSL_LIBS
17175 if test "x$PCAP_LIBS" = x; then
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping test for pcap.h." >&5
17177 $as_echo "$as_me: skipping test for pcap.h." >&6;}
17179 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
17180 if test "x$ac_cv_header_pcap_h" = xyes; then :
17182 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
17187 $as_echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_fopen_offline in -lpcap" >&5
17194 $as_echo_n "checking for pcap_fopen_offline in -lpcap... " >&6; }
17195 if ${ac_cv_lib_pcap_pcap_fopen_offline+:} false; then :
17196 $as_echo_n "(cached) " >&6
17198 ac_check_lib_save_LIBS=$LIBS
17199 LIBS="-lpcap $LIBS"
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17203 /* Override any GCC internal prototype to avoid an error.
17204 Use char because int might match the return type of a GCC
17205 builtin and then its argument prototype would still apply. */
17209 char pcap_fopen_offline ();
17213 return pcap_fopen_offline ();
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 ac_cv_lib_pcap_pcap_fopen_offline=yes
17221 ac_cv_lib_pcap_pcap_fopen_offline=no
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5
17228 $as_echo "$ac_cv_lib_pcap_pcap_fopen_offline" >&6; }
17229 if test "x$ac_cv_lib_pcap_pcap_fopen_offline" = xyes; then :
17231 $as_echo "#define HAVE_PCAP_FOPEN_OFFLINE 1" >>confdefs.h
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dump_fopen in -lpcap" >&5
17237 $as_echo_n "checking for pcap_dump_fopen in -lpcap... " >&6; }
17238 if ${ac_cv_lib_pcap_pcap_dump_fopen+:} false; then :
17239 $as_echo_n "(cached) " >&6
17241 ac_check_lib_save_LIBS=$LIBS
17242 LIBS="-lpcap $LIBS"
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17252 char pcap_dump_fopen ();
17256 return pcap_dump_fopen ();
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 ac_cv_lib_pcap_pcap_dump_fopen=yes
17264 ac_cv_lib_pcap_pcap_dump_fopen=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5
17271 $as_echo "$ac_cv_lib_pcap_pcap_dump_fopen" >&6; }
17272 if test "x$ac_cv_lib_pcap_pcap_dump_fopen" = xyes; then :
17274 $as_echo "#define HAVE_PCAP_DUMP_FOPEN 1" >>confdefs.h
17283 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17284 if test "x$ac_cv_type_off_t" = xyes; then :
17288 cat >>confdefs.h <<_ACEOF
17289 #define off_t long int
17294 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17295 if test "x$ac_cv_type_pid_t" = xyes; then :
17299 cat >>confdefs.h <<_ACEOF
17305 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17306 if test "x$ac_cv_type_size_t" = xyes; then :
17310 cat >>confdefs.h <<_ACEOF
17311 #define size_t unsigned int
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17317 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17318 if ${ac_cv_type_uid_t+:} false; then :
17319 $as_echo_n "(cached) " >&6
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17323 #include <sys/types.h>
17326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17327 $EGREP "uid_t" >/dev/null 2>&1; then :
17328 ac_cv_type_uid_t=yes
17330 ac_cv_type_uid_t=no
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17336 $as_echo "$ac_cv_type_uid_t" >&6; }
17337 if test $ac_cv_type_uid_t = no; then
17339 $as_echo "#define uid_t int" >>confdefs.h
17342 $as_echo "#define gid_t int" >>confdefs.h
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
17349 $as_echo_n "checking for socklen_t... " >&6; }
17350 if ${ac_cv_type_socklen_t+:} false; then :
17351 $as_echo_n "(cached) " >&6
17353 ac_cv_type_socklen_t=no
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 #ifdef HAVE_SYS_TYPES_H
17357 #include <sys/types.h>
17359 #ifdef HAVE_SYS_SOCKET_H
17360 #include <sys/socket.h>
17371 if ac_fn_c_try_compile "$LINENO"; then :
17372 ac_cv_type_socklen_t=yes
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
17379 $as_echo "$ac_cv_type_socklen_t" >&6; }
17381 if test "$ac_cv_type_socklen_t" != "yes"; then
17383 $as_echo "#define socklen_t int" >>confdefs.h
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5
17390 $as_echo_n "checking for uint8_t... " >&6; }
17391 if ${ac_cv_type_uint8_t+:} false; then :
17392 $as_echo_n "(cached) " >&6
17394 ac_cv_type_uint8_t=no
17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17396 /* end confdefs.h. */
17397 #ifdef HAVE_INTTYPES_H
17398 #include <inttypes.h>
17400 #ifdef HAVE_STDINT_H
17401 #include <stdint.h>
17412 if ac_fn_c_try_compile "$LINENO"; then :
17413 ac_cv_type_uint8_t=yes
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint8_t" >&5
17420 $as_echo "$ac_cv_type_uint8_t" >&6; }
17422 if test "$ac_cv_type_uint8_t" != "yes"; then
17424 $as_echo "#define uint8_t unsigned char" >>confdefs.h
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
17431 $as_echo_n "checking for uint16_t... " >&6; }
17432 if ${ac_cv_type_uint16_t+:} false; then :
17433 $as_echo_n "(cached) " >&6
17435 ac_cv_type_uint16_t=no
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 #ifdef HAVE_INTTYPES_H
17439 #include <inttypes.h>
17441 #ifdef HAVE_STDINT_H
17442 #include <stdint.h>
17453 if ac_fn_c_try_compile "$LINENO"; then :
17454 ac_cv_type_uint16_t=yes
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint16_t" >&5
17461 $as_echo "$ac_cv_type_uint16_t" >&6; }
17463 if test "$ac_cv_type_uint16_t" != "yes"; then
17465 $as_echo "#define uint16_t unsigned short" >>confdefs.h
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
17472 $as_echo_n "checking for uint32_t... " >&6; }
17473 if ${ac_cv_type_uint32_t+:} false; then :
17474 $as_echo_n "(cached) " >&6
17476 ac_cv_type_uint32_t=no
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479 #ifdef HAVE_INTTYPES_H
17480 #include <inttypes.h>
17482 #ifdef HAVE_STDINT_H
17483 #include <stdint.h>
17494 if ac_fn_c_try_compile "$LINENO"; then :
17495 ac_cv_type_uint32_t=yes
17497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uint32_t" >&5
17502 $as_echo "$ac_cv_type_uint32_t" >&6; }
17504 if test "$ac_cv_type_uint32_t" != "yes"; then
17506 $as_echo "#define uint32_t unsigned int" >>confdefs.h
17511 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "
17512 #ifdef HAVE_NETINET_IN_H
17513 #include <netinet/in.h>
17517 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
17519 $as_echo "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
17524 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
17525 #ifdef HAVE_NETINET_IN_H
17526 #include <netinet/in.h>
17528 #ifdef HAVE_SYS_SOCKET_H
17529 #include <sys/socket.h>
17533 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
17535 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
17540 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
17541 #ifdef HAVE_NETINET_IN_H
17542 #include <netinet/in.h>
17546 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
17548 $as_echo "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
17553 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
17554 #ifdef HAVE_SYS_TYPES_H
17555 #include <sys/types.h>
17557 #ifdef HAVE_SYS_SOCKET_H
17558 #include <sys/socket.h>
17560 #ifdef HAVE_NETDB_H
17565 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
17567 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
17607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17610 cat >>confdefs.h <<_ACEOF
17611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func must be declared" >&5
17628 $as_echo_n "checking whether $ac_func must be declared... " >&6; }
17629 if eval \${radius_cv_decl_needed_$ac_func+:} false; then :
17630 $as_echo_n "(cached) " >&6
17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17636 #include <string.h>
17637 #ifdef HAVE_UNISTD_H
17638 #include <unistd.h>
17640 #ifdef HAVE_CRYPT_H
17643 #ifdef HAVE_ERRNO_H
17646 #ifdef HAVE_RESOURCE_H
17647 #include <resource.h>
17649 #ifdef HAVE_GETOPT_H
17650 #include <getopt.h>
17652 #ifdef HAVE_MALLOC_H
17653 #include <malloc.h>
17658 #ifdef HAVE_UTMPX_H
17661 #ifdef HAVE_SYS_SELECT_H
17662 #include <sys/select.h>
17664 #ifdef HAVE_DLFCN_H
17667 #ifdef HAVE_REGEX_H
17670 #ifdef HAVE_SYSLOG_H
17671 #include <syslog.h>
17673 #ifdef HAVE_INTTYPES_H
17674 #include <inttypes.h>
17676 #ifdef HAVE_STDINT_H
17677 #include <stdint.h>
17679 #ifdef HAVE_ARPA_INET_H
17680 #include <arpa/inet.h>
17686 char *(*pfn) = (char *(*)) $ac_func
17691 if ac_fn_c_try_compile "$LINENO"; then :
17692 eval "radius_cv_decl_needed_$ac_func=no"
17694 eval "radius_cv_decl_needed_$ac_func=yes"
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17701 $as_echo "yes" >&6; }
17702 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17703 cat >>confdefs.h <<_ACEOF
17704 #define $radius_tr_decl 1
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17716 $as_echo_n "checking return type of signal handlers... " >&6; }
17717 if ${ac_cv_type_signal+:} false; then :
17718 $as_echo_n "(cached) " >&6
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 #include <sys/types.h>
17723 #include <signal.h>
17728 return *(signal (0, 0)) (0) == 1;
17733 if ac_fn_c_try_compile "$LINENO"; then :
17734 ac_cv_type_signal=int
17736 ac_cv_type_signal=void
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17741 $as_echo "$ac_cv_type_signal" >&6; }
17743 cat >>confdefs.h <<_ACEOF
17744 #define RETSIGTYPE $ac_cv_type_signal
17749 if test "x$ac_cv_header_utmpx_h" = "xyes"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ut_xtime in struct utmpx" >&5
17753 $as_echo_n "checking for ut_xtime in struct utmpx... " >&6; }
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17760 #ifdef HAVE_STDDEF_H
17761 #include <stddef.h>
17764 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17770 int foo = offsetof(struct utmpx, ut_xtime)
17775 if ac_fn_c_try_compile "$LINENO"; then :
17780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17782 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
17783 if test "x$has_element" != "x"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17785 $as_echo "yes" >&6; }
17786 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
17793 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
17796 $as_echo "#define ut_xtime ut_tv.tv_sec" >>confdefs.h
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi_addr in struct in_pktinfo" >&5
17803 $as_echo_n "checking for ipi_addr in struct in_pktinfo... " >&6; }
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17809 #include <netinet/in.h>
17810 #ifdef HAVE_STDDEF_H
17811 #include <stddef.h>
17814 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17820 int foo = offsetof(struct in_pktinfo, ipi_addr)
17825 if ac_fn_c_try_compile "$LINENO"; then :
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
17833 if test "x$has_element" != "x"; then
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17835 $as_echo "yes" >&6; }
17836 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17840 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
17843 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
17846 $as_echo "#define HAVE_IP_PKTINFO /**/" >>confdefs.h
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ipi6_addr in struct in6_pktinfo" >&5
17852 $as_echo_n "checking for ipi6_addr in struct in6_pktinfo... " >&6; }
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17858 #include <netinet/in.h>
17859 #ifdef HAVE_STDDEF_H
17860 #include <stddef.h>
17863 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
17869 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
17874 if ac_fn_c_try_compile "$LINENO"; then :
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
17882 if test "x$has_element" != "x"; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17884 $as_echo "yes" >&6; }
17885 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17888 $as_echo "no" >&6; }
17889 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
17892 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
17895 $as_echo "#define HAVE_IN6_PKTINFO /**/" >>confdefs.h
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17901 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17902 if ${ac_cv_c_const+:} false; then :
17903 $as_echo_n "(cached) " >&6
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17912 #ifndef __cplusplus
17913 /* Ultrix mips cc rejects this sort of thing. */
17914 typedef int charset[2];
17915 const charset cs = { 0, 0 };
17916 /* SunOS 4.1.1 cc rejects this. */
17917 char const *const *pcpcc;
17919 /* NEC SVR4.0.2 mips cc rejects this. */
17920 struct point {int x, y;};
17921 static struct point const zero = {0,0};
17922 /* AIX XL C 1.02.0.0 rejects this.
17923 It does not let you subtract one const X* pointer from another in
17924 an arm of an if-expression whose if-part is not a constant
17926 const char *g = "string";
17927 pcpcc = &g + (g ? g-g : 0);
17928 /* HPUX 7.0 cc rejects these. */
17930 ppc = (char**) pcpcc;
17931 pcpcc = (char const *const *) ppc;
17932 { /* SCO 3.2v4 cc rejects this sort of thing. */
17935 char const *s = 0 ? (char *) 0 : (char const *) 0;
17940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17941 int x[] = {25, 17};
17942 const int *foo = &x[0];
17945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17946 typedef const int *iptr;
17950 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17952 struct s { int j; const int *ap[3]; } bx;
17953 struct s *b = &bx; b->j = 5;
17955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17956 const int foo = 10;
17957 if (!foo) return 0;
17959 return !cs[0] && !zero.x;
17966 if ac_fn_c_try_compile "$LINENO"; then :
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17974 $as_echo "$ac_cv_c_const" >&6; }
17975 if test $ac_cv_c_const = no; then
17977 $as_echo "#define const /**/" >>confdefs.h
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of OS" >&5
17983 $as_echo_n "checking type of OS... " >&6; }
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OS" >&5
17986 $as_echo "$OS" >&6; }
17987 if test "$OS" = "OS/2"; then
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer gcc flags" >&5
17995 $as_echo_n "checking for developer gcc flags... " >&6; }
17998 if test "x$developer" = "xyes"; then
17999 if test "x$GCC" = "xyes"; then
18000 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"
18001 CFLAGS="$CFLAGS $devflags"
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes. Using $devflags" >&5
18004 $as_echo "yes. Using $devflags" >&6; }
18007 if test "x$EXPERIMENTAL" != "xno"; then
18011 if test "x$GIT" = "xyes"; then
18012 RADIUSD_VERSION_COMMIT=`git log --pretty=format:'%h' -n 1`
18016 CFLAGS="$CFLAGS -DNDEBUG"
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no." >&5
18019 $as_echo "no." >&6; }
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
18024 $as_echo_n "checking for TLS... " >&6; }
18025 if test "$cross_compiling" = yes; then :
18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18029 /* end confdefs.h. */
18030 static __thread int val; int main(int argc, char *argv[]) { return val = argc; }
18032 if ac_fn_c_try_run "$LINENO"; then :
18037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18038 conftest.$ac_objext conftest.beam conftest.$ac_ext
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tls" >&5
18042 $as_echo "$have_tls" >&6; }
18043 if test "$have_tls" = "yes"; then
18045 $as_echo "#define HAVE_THREAD_TLS 1" >>confdefs.h
18052 LIBS="$LIBS $LIBLTDL"
18053 ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
18054 if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
18056 $as_echo "#define HAVE_LT_DLADVISE_INIT /**/" >>confdefs.h
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18063 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18064 if ${ac_cv_lib_crypt_crypt+:} false; then :
18065 $as_echo_n "(cached) " >&6
18067 ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lcrypt $LIBS"
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h. */
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18087 if ac_fn_c_try_link "$LINENO"; then :
18088 ac_cv_lib_crypt_crypt=yes
18090 ac_cv_lib_crypt_crypt=no
18092 rm -f core conftest.err conftest.$ac_objext \
18093 conftest$ac_exeext conftest.$ac_ext
18094 LIBS=$ac_check_lib_save_LIBS
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18097 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18098 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18103 if test "$CRYPTLIB" != ""; then
18105 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18108 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
18109 if test "x$ac_cv_func_crypt" = xyes; then :
18111 $as_echo "#define HAVE_CRYPT /**/" >>confdefs.h
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkey in -lcipher" >&5
18118 $as_echo_n "checking for setkey in -lcipher... " >&6; }
18119 if ${ac_cv_lib_cipher_setkey+:} false; then :
18120 $as_echo_n "(cached) " >&6
18122 ac_check_lib_save_LIBS=$LIBS
18123 LIBS="-lcipher $LIBS"
18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18125 /* end confdefs.h. */
18127 /* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18142 if ac_fn_c_try_link "$LINENO"; then :
18143 ac_cv_lib_cipher_setkey=yes
18145 ac_cv_lib_cipher_setkey=no
18147 rm -f core conftest.err conftest.$ac_objext \
18148 conftest$ac_exeext conftest.$ac_ext
18149 LIBS=$ac_check_lib_save_LIBS
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cipher_setkey" >&5
18152 $as_echo "$ac_cv_lib_cipher_setkey" >&6; }
18153 if test "x$ac_cv_lib_cipher_setkey" = xyes; then :
18154 CRYPTLIB="${CRYPTLIB} -lcipher"
18161 $as_echo "#define GNUSTYLE 1" >>confdefs.h
18164 $as_echo "#define SYSVSTYLE 2" >>confdefs.h
18167 $as_echo "#define BSDSTYLE 3" >>confdefs.h
18169 gethostbyaddrrstyle=""
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyaddr_r() syntax" >&5
18171 $as_echo_n "checking gethostbyaddr_r() syntax... " >&6; }
18174 ac_fn_c_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "
18175 #ifdef HAVE_NETDB_H
18180 if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes; then :
18186 cat >>confdefs.h <<_ACEOF
18187 #define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl
18189 if test $ac_have_decl = 1; then :
18194 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18196 gethostbyaddrrstyle=BSD
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FreeBSD overridden to BSD-style" >&5
18198 $as_echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
18204 if test "x$gethostbyaddrrstyle" = "x"; then
18205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18206 /* end confdefs.h. */
18214 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
18219 if ac_fn_c_try_link "$LINENO"; then :
18222 $as_echo "#define GETHOSTBYADDRRSTYLE GNUSTYLE" >>confdefs.h
18224 gethostbyaddrrstyle=GNU
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 if test "x$gethostbyaddrrstyle" = "x"; then
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18240 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
18245 if ac_fn_c_try_link "$LINENO"; then :
18248 $as_echo "#define GETHOSTBYADDRRSTYLE SYSVSTYLE" >>confdefs.h
18250 gethostbyaddrrstyle=SYSV
18253 rm -f core conftest.err conftest.$ac_objext \
18254 conftest$ac_exeext conftest.$ac_ext
18256 if test "x$gethostbyaddrrstyle" = "x"; then
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18266 gethostbyaddr(NULL, 0, 0)
18271 if ac_fn_c_try_link "$LINENO"; then :
18274 $as_echo "#define GETHOSTBYADDRRSTYLE BSDSTYLE" >>confdefs.h
18276 gethostbyaddrrstyle=BSD
18279 rm -f core conftest.err conftest.$ac_objext \
18280 conftest$ac_exeext conftest.$ac_ext
18283 if test "x$gethostbyaddrrstyle" = "x"; then
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18285 $as_echo "none! It must not exist, here." >&6; }
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbyaddrrstyle}-style" >&5
18288 $as_echo "${gethostbyaddrrstyle}-style" >&6; }
18291 if test "x$gethostbyaddrrstyle" = "xBSD"; then
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
18293 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
18296 gethostbynamerstyle=""
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r() syntax" >&5
18298 $as_echo_n "checking gethostbyname_r() syntax... " >&6; }
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18308 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
18313 if ac_fn_c_try_link "$LINENO"; then :
18316 $as_echo "#define GETHOSTBYNAMERSTYLE GNUSTYLE" >>confdefs.h
18318 gethostbynamerstyle=GNU
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 if test "x$gethostbynamerstyle" = "x"; then
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18333 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
18338 if ac_fn_c_try_link "$LINENO"; then :
18341 $as_echo "#define GETHOSTBYNAMERSTYLE SYSVSTYLE" >>confdefs.h
18343 gethostbynamerstyle=SYSV
18346 rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18349 if test "x$gethostbynamerstyle" = "x"; then
18350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h. */
18359 gethostbyname(NULL)
18364 if ac_fn_c_try_link "$LINENO"; then :
18367 $as_echo "#define GETHOSTBYNAMERSTYLE BSDSTYLE" >>confdefs.h
18369 gethostbynamerstyle=BSD
18372 rm -f core conftest.err conftest.$ac_objext \
18373 conftest$ac_exeext conftest.$ac_ext
18376 if test "x$gethostbynamerstyle" = "x"; then
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18378 $as_echo "none! It must not exist, here." >&6; }
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gethostbynamerstyle}-style" >&5
18381 $as_echo "${gethostbynamerstyle}-style" >&6; }
18384 if test "x$gethostbynamerstyle" = "xBSD"; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
18386 $as_echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
18390 $as_echo "#define POSIXSTYLE 1" >>confdefs.h
18393 $as_echo "#define SOLARISSTYLE 2" >>confdefs.h
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ctime_r() syntax" >&5
18397 $as_echo_n "checking ctime_r() syntax... " >&6; }
18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h. */
18406 ctime_r(NULL, NULL, 0)
18411 if ac_fn_c_try_link "$LINENO"; then :
18414 $as_echo "#define CTIMERSTYLE SOLARISSTYLE" >>confdefs.h
18416 ctimerstyle="SOLARIS"
18419 rm -f core conftest.err conftest.$ac_objext \
18420 conftest$ac_exeext conftest.$ac_ext
18421 if test "x$ctimerstyle" = "x"; then
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18430 ctime_r(NULL, NULL)
18435 if ac_fn_c_try_link "$LINENO"; then :
18438 $as_echo "#define CTIMERSTYLE POSIXSTYLE" >>confdefs.h
18440 ctimerstyle="POSIX"
18443 rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18447 if test "x$ctimerstyle" = "x"; then
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none! It must not exist, here." >&5
18449 $as_echo "none! It must not exist, here." >&6; }
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ctimerstyle}-style" >&5
18452 $as_echo "${ctimerstyle}-style" >&6; }
18460 export top_builddir
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: top_builddir=$top_builddir" >&5
18462 $as_echo "top_builddir=$top_builddir" >&6; }
18471 if test "x$EXPERIMENTAL" = "xyes"; then
18472 bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
18473 mysubdirs=`echo $mysubdirs $bar`
18475 for bar in `cat "${srcdir}"/src/modules/stable`; do
18476 if test -f "${srcdir}"/src/modules/$bar/configure; then
18477 mysubdirs="$mysubdirs src/modules/$bar"
18482 if test "x$EXPERIMENTAL" = "xyes"; then
18483 for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
18484 MODULES="$MODULES $foo"
18487 for foo in `cat "${srcdir}"/src/modules/stable`; do
18488 MODULES="$MODULES $foo"
18494 subdirs="$subdirs $mysubdirs"
18499 ac_config_commands="$ac_config_commands stamp-h"
18501 ac_config_commands="$ac_config_commands build-radpaths-h"
18503 ac_config_commands="$ac_config_commands main-chmod"
18505 ac_config_commands="$ac_config_commands scripts-chmod"
18511 USE_SHARED_LIBS=$enable_shared
18513 USE_STATIC_LIBS=$enable_static
18524 unset ac_cv_env_LIBS_set
18525 unset ac_cv_env_LIBS_value
18527 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/radsniff.mk ./src/main/checkrad.pl ./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"
18529 cat >confcache <<\_ACEOF
18530 # This file is a shell script that caches the results of configure
18531 # tests run on this system so they can be shared between configure
18532 # scripts and configure runs, see configure's option --config-cache.
18533 # It is not useful on other systems. If it contains results you don't
18534 # want to keep, you may remove or edit it.
18536 # config.status only pays attention to the cache file if you give it
18537 # the --recheck option to rerun configure.
18539 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18540 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18541 # following values.
18545 # The following way of writing the cache mishandles newlines in values,
18546 # but we know of no workaround that is simple, portable, and efficient.
18547 # So, we kill variables containing newlines.
18548 # Ultrix sh set writes to stderr and can't be redirected directly,
18549 # and sets the high bit in the cache file unless we assign to the vars.
18551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18552 eval ac_val=\$$ac_var
18556 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18557 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18560 _ | IFS | as_nl) ;; #(
18561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18562 *) { eval $ac_var=; unset $ac_var;} ;;
18568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18569 *${as_nl}ac_space=\ *)
18570 # `set' does not quote correctly, so add quotes: double-quote
18571 # substitution turns \\\\ into \\, and sed turns \\ into \.
18574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18577 # `set' quotes correctly as required by POSIX, so do not add quotes.
18578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18591 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18592 if test -w "$cache_file"; then
18593 if test "x$cache_file" != "x/dev/null"; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18595 $as_echo "$as_me: updating cache $cache_file" >&6;}
18596 if test ! -f "$cache_file" || test -h "$cache_file"; then
18597 cat confcache >"$cache_file"
18599 case $cache_file in #(
18601 mv -f confcache "$cache_file"$$ &&
18602 mv -f "$cache_file"$$ "$cache_file" ;; #(
18604 mv -f confcache "$cache_file" ;;
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18610 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18615 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18616 # Let make expand exec_prefix.
18617 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18619 DEFS=-DHAVE_CONFIG_H
18624 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18625 # 1. Remove the extension, and $U if already installed.
18626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18629 # will be set to the directory where LIBOBJS objects are built.
18630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18633 LIBOBJS=$ac_libobjs
18635 LTLIBOBJS=$ac_ltlibobjs
18640 : "${CONFIG_STATUS=./config.status}"
18642 ac_clean_files_save=$ac_clean_files
18643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18649 # Generated by $as_me.
18650 # Run this file to recreate the current configuration.
18651 # Compiler output produced by configure, useful for debugging
18652 # configure, is in config.log if it exists.
18655 ac_cs_recheck=false
18658 SHELL=\${CONFIG_SHELL-$SHELL}
18661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18662 ## -------------------- ##
18663 ## M4sh Initialization. ##
18664 ## -------------------- ##
18666 # Be more Bourne compatible
18667 DUALCASE=1; export DUALCASE # for MKS sh
18668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18672 # is contrary to our usage. Disable this feature.
18673 alias -g '${1+"$@"}'='"$@"'
18674 setopt NO_GLOB_SUBST
18676 case `(set -o) 2>/dev/null` in #(
18688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18692 # Prefer a ksh shell builtin over an external printf program on Solaris,
18693 # but without wasting forks for bash or zsh.
18694 if test -z "$BASH_VERSION$ZSH_VERSION" \
18695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18696 as_echo='print -r --'
18697 as_echo_n='print -rn --'
18698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18699 as_echo='printf %s\n'
18700 as_echo_n='printf %s'
18702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18704 as_echo_n='/usr/ucb/echo -n'
18706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18707 as_echo_n_body='eval
18711 expr "X$arg" : "X\\(.*\\)$as_nl";
18712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18716 export as_echo_n_body
18717 as_echo_n='sh -c $as_echo_n_body as_echo'
18719 export as_echo_body
18720 as_echo='sh -c $as_echo_body as_echo'
18723 # The user is always right.
18724 if test "${PATH_SEPARATOR+set}" != set; then
18726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18734 # We need space, tab and new line, in precisely that order. Quoting is
18735 # there to prevent editors from complaining about space-tab.
18736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18737 # splitting by setting IFS to empty value.)
18740 # Find who we are. Look in the path if we contain no directory separator.
18743 *[\\/]* ) as_myself=$0 ;;
18744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18748 test -z "$as_dir" && as_dir=.
18749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18755 # We did not find ourselves, most probably we were run as `sh COMMAND'
18756 # in which case we are not to be found in the path.
18757 if test "x$as_myself" = x; then
18760 if test ! -f "$as_myself"; then
18761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18765 # Unset variables that we do not need and which cause bugs (e.g. in
18766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18767 # suppresses any "Segmentation fault" message there. '((' could
18768 # trigger a bug in pdksh 5.2.14.
18769 for as_var in BASH_ENV ENV MAIL MAILPATH
18770 do eval test x\${$as_var+set} = xset \
18771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18788 # ----------------------------------------
18789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18791 # script with STATUS, using 1 if that was 0.
18794 as_status=$1; test $as_status -eq 0 && as_status=1
18796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18799 $as_echo "$as_me: error: $2" >&2
18800 as_fn_exit $as_status
18804 # as_fn_set_status STATUS
18805 # -----------------------
18806 # Set $? to STATUS, without forking.
18807 as_fn_set_status ()
18810 } # as_fn_set_status
18812 # as_fn_exit STATUS
18813 # -----------------
18814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18818 as_fn_set_status $1
18824 # Portably unset VAR.
18827 { eval $1=; unset $1;}
18829 as_unset=as_fn_unset
18830 # as_fn_append VAR VALUE
18831 # ----------------------
18832 # Append the text in VALUE to the end of the definition contained in VAR. Take
18833 # advantage of any shell optimizations that allow amortized linear growth over
18834 # repeated appends, instead of the typical quadratic growth present in naive
18836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18837 eval 'as_fn_append ()
18848 # as_fn_arith ARG...
18849 # ------------------
18850 # Perform arithmetic evaluation on the ARGs, and store the result in the
18851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18852 # must be portable across $(()) and expr.
18853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18854 eval 'as_fn_arith ()
18861 as_val=`expr "$@" || test $? -eq 1`
18866 if expr a : '\(a\)' >/dev/null 2>&1 &&
18867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18874 as_basename=basename
18879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18885 as_me=`$as_basename -- "$0" ||
18886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18887 X"$0" : 'X\(//\)$' \| \
18888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18890 sed '/^.*\/\([^/][^/]*\)\/*$/{
18904 # Avoid depending upon Character Ranges.
18905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18908 as_cr_digits='0123456789'
18909 as_cr_alnum=$as_cr_Letters$as_cr_digits
18911 ECHO_C= ECHO_N= ECHO_T=
18912 case `echo -n x` in #(((((
18914 case `echo 'xy\c'` in
18915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18924 rm -f conf$$ conf$$.exe conf$$.file
18925 if test -d conf$$.dir; then
18926 rm -f conf$$.dir/conf$$.file
18929 mkdir conf$$.dir 2>/dev/null
18931 if (echo >conf$$.file) 2>/dev/null; then
18932 if ln -s conf$$.file conf$$ 2>/dev/null; then
18934 # ... but there are two gotchas:
18935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18937 # In both cases, we have to default to `cp -pR'.
18938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18940 elif ln conf$$.file conf$$ 2>/dev/null; then
18948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18949 rmdir conf$$.dir 2>/dev/null
18954 # Create "$as_dir" as a directory, including parents if necessary.
18959 -*) as_dir=./$as_dir;;
18961 test -d "$as_dir" || eval $as_mkdir_p || {
18965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18966 *) as_qdir=$as_dir;;
18968 as_dirs="'$as_qdir' $as_dirs"
18969 as_dir=`$as_dirname -- "$as_dir" ||
18970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971 X"$as_dir" : 'X\(//\)[^/]' \| \
18972 X"$as_dir" : 'X\(//\)$' \| \
18973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18974 $as_echo X"$as_dir" |
18975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18979 /^X\(\/\/\)[^/].*/{
18992 test -d "$as_dir" && break
18994 test -z "$as_dirs" || eval "mkdir $as_dirs"
18995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18999 if mkdir -p . 2>/dev/null; then
19000 as_mkdir_p='mkdir -p "$as_dir"'
19002 test -d ./-p && rmdir ./-p
19007 # as_fn_executable_p FILE
19008 # -----------------------
19009 # Test if FILE is an executable regular file.
19010 as_fn_executable_p ()
19012 test -f "$1" && test -x "$1"
19013 } # as_fn_executable_p
19014 as_test_x='test -x'
19015 as_executable_p=as_fn_executable_p
19017 # Sed expression to map a string onto a valid CPP name.
19018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19020 # Sed expression to map a string onto a valid variable name.
19021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19025 ## ----------------------------------- ##
19026 ## Main body of $CONFIG_STATUS script. ##
19027 ## ----------------------------------- ##
19029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19032 # Save the log message, to keep $0 and so on meaningful, and to
19033 # report actual input values of CONFIG_FILES etc. instead of their
19034 # values after options handling.
19036 This file was extended by freeradius $as_me $Id$, which was
19037 generated by GNU Autoconf 2.69. Invocation command line was
19039 CONFIG_FILES = $CONFIG_FILES
19040 CONFIG_HEADERS = $CONFIG_HEADERS
19041 CONFIG_LINKS = $CONFIG_LINKS
19042 CONFIG_COMMANDS = $CONFIG_COMMANDS
19045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19050 case $ac_config_files in *"
19051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19054 case $ac_config_headers in *"
19055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19060 # Files that config.status was made for.
19061 config_files="$ac_config_files"
19062 config_headers="$ac_config_headers"
19063 config_commands="$ac_config_commands"
19067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19069 \`$as_me' instantiates files and other configuration actions
19070 from templates according to the current configuration. Unless the files
19071 and actions are specified as TAGs, all are instantiated by default.
19073 Usage: $0 [OPTION]... [TAG]...
19075 -h, --help print this help, then exit
19076 -V, --version print version number and configuration settings, then exit
19077 --config print configuration, then exit
19078 -q, --quiet, --silent
19079 do not print progress messages
19080 -d, --debug don't remove temporary files
19081 --recheck update $as_me by reconfiguring in the same conditions
19082 --file=FILE[:TEMPLATE]
19083 instantiate the configuration file FILE
19084 --header=FILE[:TEMPLATE]
19085 instantiate the configuration header FILE
19087 Configuration files:
19090 Configuration headers:
19093 Configuration commands:
19096 Report bugs to <http://bugs.freeradius.org>.
19097 freeradius home page: <http://www.freeradius.org>."
19100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19103 freeradius config.status $Id$
19104 configured by $0, generated by GNU Autoconf 2.69,
19105 with options \\"\$ac_cs_config\\"
19107 Copyright (C) 2012 Free Software Foundation, Inc.
19108 This config.status script is free software; the Free Software Foundation
19109 gives unlimited permission to copy, distribute and modify it."
19114 test -n "\$AWK" || AWK=awk
19117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19118 # The default lists apply if the user does not specify any file.
19124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19141 # Handling of the options.
19142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19144 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19145 $as_echo "$ac_cs_version"; exit ;;
19146 --config | --confi | --conf | --con | --co | --c )
19147 $as_echo "$ac_cs_config"; exit ;;
19148 --debug | --debu | --deb | --de | --d | -d )
19150 --file | --fil | --fi | --f )
19153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19154 '') as_fn_error $? "missing file argument" ;;
19156 as_fn_append CONFIG_FILES " '$ac_optarg'"
19157 ac_need_defaults=false;;
19158 --header | --heade | --head | --hea )
19161 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19163 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19164 ac_need_defaults=false;;
19166 # Conflict between --help and --header
19167 as_fn_error $? "ambiguous option: \`$1'
19168 Try \`$0 --help' for more information.";;
19169 --help | --hel | -h )
19170 $as_echo "$ac_cs_usage"; exit ;;
19171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19175 # This is an error.
19176 -*) as_fn_error $? "unrecognized option: \`$1'
19177 Try \`$0 --help' for more information." ;;
19179 *) as_fn_append ac_config_targets " $1"
19180 ac_need_defaults=false ;;
19186 ac_configure_extra_args=
19188 if $ac_cs_silent; then
19190 ac_configure_extra_args="$ac_configure_extra_args --silent"
19194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19195 if \$ac_cs_recheck; then
19196 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19198 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19199 CONFIG_SHELL='$SHELL'
19200 export CONFIG_SHELL
19205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19209 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19210 ## Running $as_me. ##
19216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19222 # The HP-UX ksh and POSIX shell print the target directory to stdout
19223 # if CDPATH is set.
19224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19226 sed_quote_subst='$sed_quote_subst'
19227 double_quote_subst='$double_quote_subst'
19228 delay_variable_subst='$delay_variable_subst'
19229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19237 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19238 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19239 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19240 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19241 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19242 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19243 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19244 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19245 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19246 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19247 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19248 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19249 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19250 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19251 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19252 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19253 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19254 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19255 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19256 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19257 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19258 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19259 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19260 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19261 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19262 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19263 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19264 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19265 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19266 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19267 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19268 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19269 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19270 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19271 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19272 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19273 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19274 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19275 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19276 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19277 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19278 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19279 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19280 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19281 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19282 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19283 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19284 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"`'
19285 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19286 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19287 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19288 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19289 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19290 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19291 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19292 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19293 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19294 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19295 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19296 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19297 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19298 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19299 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19300 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19301 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19302 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19303 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19304 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19305 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19306 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19307 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19308 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19309 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19310 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19311 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19312 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19313 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19314 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19315 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19316 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19317 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19318 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19319 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19320 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19321 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19322 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19323 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19324 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19325 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19326 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19327 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19333 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19334 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19335 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19336 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19337 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19338 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19339 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19340 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19341 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19342 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19343 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19344 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19345 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19346 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19347 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19348 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19349 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19350 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19351 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19352 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19353 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19354 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19355 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19356 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19357 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19358 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19359 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19360 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19361 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19362 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19363 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19364 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19365 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19366 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19367 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19368 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19369 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19370 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19371 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19372 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19373 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19374 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19375 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19376 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19377 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19378 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19379 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19380 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19381 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19382 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19383 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19384 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19385 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19386 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19387 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19388 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19389 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19390 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19391 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
19392 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19393 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19394 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19395 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19396 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19397 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19398 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19399 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19400 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19401 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19402 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19403 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19404 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19405 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19406 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19407 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19408 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19409 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19410 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19411 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19412 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19413 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19416 LTCFLAGS='$LTCFLAGS'
19417 compiler='$compiler_DEFAULT'
19419 # A function that is used when there is no print builtin or printf.
19420 func_fallback_echo ()
19422 eval 'cat <<_LTECHO_EOF
19427 # Quote evaled strings.
19441 deplibs_check_method \
19446 sharedlib_from_linklib_cmd \
19449 archiver_list_spec \
19455 lt_cv_sys_global_symbol_pipe \
19456 lt_cv_sys_global_symbol_to_cdecl \
19457 lt_cv_sys_global_symbol_to_c_name_address \
19458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19459 nm_file_list_spec \
19460 lt_prog_compiler_no_builtin_flag \
19461 lt_prog_compiler_pic \
19462 lt_prog_compiler_wl \
19463 lt_prog_compiler_static \
19464 lt_cv_prog_compiler_c_o \
19473 export_dynamic_flag_spec \
19474 whole_archive_flag_spec \
19475 compiler_needs_object \
19477 allow_undefined_flag \
19478 no_undefined_flag \
19479 hardcode_libdir_flag_spec \
19480 hardcode_libdir_flag_spec_ld \
19481 hardcode_libdir_separator \
19485 variables_saved_for_relink \
19487 library_names_spec \
19489 install_override_mode \
19493 compiler_lib_search_dirs \
19498 compiler_lib_search_path \
19502 lt_prog_compiler_no_builtin_flag_CXX \
19503 lt_prog_compiler_pic_CXX \
19504 lt_prog_compiler_wl_CXX \
19505 lt_prog_compiler_static_CXX \
19506 lt_cv_prog_compiler_c_o_CXX \
19507 export_dynamic_flag_spec_CXX \
19508 whole_archive_flag_spec_CXX \
19509 compiler_needs_object_CXX \
19511 allow_undefined_flag_CXX \
19512 no_undefined_flag_CXX \
19513 hardcode_libdir_flag_spec_CXX \
19514 hardcode_libdir_flag_spec_ld_CXX \
19515 hardcode_libdir_separator_CXX \
19516 exclude_expsyms_CXX \
19517 include_expsyms_CXX \
19518 file_list_spec_CXX \
19519 compiler_lib_search_dirs_CXX \
19520 predep_objects_CXX \
19521 postdep_objects_CXX \
19524 compiler_lib_search_path_CXX; do
19525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19526 *[\\\\\\\`\\"\\\$]*)
19527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19535 # Double-quote double-evaled strings.
19536 for var in reload_cmds \
19537 old_postinstall_cmds \
19538 old_postuninstall_cmds \
19540 extract_expsyms_cmds \
19541 old_archive_from_new_cmds \
19542 old_archive_from_expsyms_cmds \
19544 archive_expsym_cmds \
19546 module_expsym_cmds \
19547 export_symbols_cmds \
19551 postuninstall_cmds \
19553 sys_lib_search_path_spec \
19554 sys_lib_dlsearch_path_spec \
19556 old_archive_cmds_CXX \
19557 old_archive_from_new_cmds_CXX \
19558 old_archive_from_expsyms_cmds_CXX \
19560 archive_expsym_cmds_CXX \
19562 module_expsym_cmds_CXX \
19563 export_symbols_cmds_CXX \
19565 postlink_cmds_CXX; do
19566 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19567 *[\\\\\\\`\\"\\\$]*)
19568 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19571 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19576 xsi_shell='$xsi_shell'
19577 lt_shell_append='$lt_shell_append'
19579 # See if we are running on zsh, and set the options which allow our
19580 # commands through without removal of \ escapes INIT.
19581 if test -n "\${ZSH_VERSION+set}" ; then
19582 setopt NO_GLOB_SUBST
19588 TIMESTAMP='$TIMESTAMP'
19599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19601 # Handling of arguments.
19602 for ac_config_target in $ac_config_targets
19604 case $ac_config_target in
19605 "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
19606 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19607 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
19608 "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
19609 "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
19610 "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
19611 "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
19612 "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
19613 "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
19614 "./src/main/radsniff.mk") CONFIG_FILES="$CONFIG_FILES ./src/main/radsniff.mk" ;;
19615 "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
19616 "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
19617 "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
19618 "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
19619 "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
19620 "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
19621 "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
19622 "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
19623 "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
19624 "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
19626 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19631 # If the user did not use the arguments to specify the items to instantiate,
19632 # then the envvar interface is used. Set only those that are not.
19633 # We use the long form for the default assignment because of an extremely
19634 # bizarre bug on SunOS 4.1.3.
19635 if $ac_need_defaults; then
19636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19641 # Have a temporary directory for convenience. Make it in the build tree
19642 # simply because there is no reason against having it here, and in addition,
19643 # creating and moving files from /tmp can sometimes cause problems.
19644 # Hook for its removal unless debugging.
19645 # Note that there is a small window in which the directory will not be cleaned:
19646 # after its creation but before its name has been assigned to `$tmp'.
19650 trap 'exit_status=$?
19651 : "${ac_tmp:=$tmp}"
19652 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19654 trap 'as_fn_exit 1' 1 2 13 15
19656 # Create a (secure) tmp directory for tmp files.
19659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19663 tmp=./conf$$-$RANDOM
19664 (umask 077 && mkdir "$tmp")
19665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19668 # Set up the scripts for CONFIG_FILES section.
19669 # No need to generate them if there are no CONFIG_FILES.
19670 # This happens for instance with `./config.status config.h'.
19671 if test -n "$CONFIG_FILES"; then
19674 ac_cr=`echo X | tr X '\015'`
19675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19676 # But we know of no other shell where ac_cr would be empty at this
19677 # point, so we can use a bashism as a fallback.
19678 if test "x$ac_cr" = x; then
19679 eval ac_cr=\$\'\\r\'
19681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19685 ac_cs_awk_cr=$ac_cr
19688 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19693 echo "cat >conf$$subs.awk <<_ACEOF" &&
19694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19696 } >conf$$subs.sh ||
19697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19700 for ac_last_try in false false false false false :; do
19701 . ./conf$$subs.sh ||
19702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19705 if test $ac_delim_n = $ac_delim_num; then
19707 elif $ac_last_try; then
19708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19713 rm -f conf$$subs.sh
19715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19720 s/^/S["/; s/!.*/"]=/
19730 s/\(.\{148\}\)..*/\1/
19732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19744 s/\(.\{148\}\)..*/\1/
19746 s/["\\]/\\&/g; s/^/"/; s/$/"/
19750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19755 ' <conf$$subs.awk | sed '
19760 ' >>$CONFIG_STATUS || ac_write_fail=1
19761 rm -f conf$$subs.awk
19762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19765 for (key in S) S_is_set[key] = 1
19771 nfields = split(line, field, "@")
19773 len = length(field[1])
19774 for (i = 2; i < nfields; i++) {
19776 keylen = length(key)
19777 if (S_is_set[key]) {
19779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19780 len += length(value) + length(field[++i])
19791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19796 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19797 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19800 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19801 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19802 # trailing colons and then remove the whole line if VPATH becomes empty
19803 # (actually we leave an empty line to preserve line numbers).
19804 if test "x$srcdir" = x.; then
19805 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19824 fi # test -n "$CONFIG_FILES"
19826 # Set up the scripts for CONFIG_HEADERS section.
19827 # No need to generate them if there are no CONFIG_HEADERS.
19828 # This happens for instance with `./config.status Makefile'.
19829 if test -n "$CONFIG_HEADERS"; then
19830 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19834 # Transform confdefs.h into an awk script `defines.awk', embedded as
19835 # here-document in config.status, that substitutes the proper values into
19836 # config.h.in to produce config.h.
19838 # Create a delimiter string that does not exist in confdefs.h, to ease
19839 # handling of long lines.
19841 for ac_last_try in false false :; do
19842 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19843 if test -z "$ac_tt"; then
19845 elif $ac_last_try; then
19846 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19852 # For the awk script, D is an array of macro values keyed by name,
19853 # likewise P contains macro parameters if any. Preserve backslash
19854 # newline sequences.
19856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19858 s/.\{148\}/&'"$ac_delim"'/g
19861 s/^[ ]*#[ ]*define[ ][ ]*/ /
19868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19875 D["\1"]=" \3\\\\\\n"\\/p
19877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19882 s/.\{148\}/&'"$ac_delim"'/g
19887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19892 ' <confdefs.h | sed '
19893 s/'"$ac_delim"'/"\\\
19894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19897 for (key in D) D_is_set[key] = 1
19900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19902 split(line, arg, " ")
19903 if (arg[1] == "#") {
19907 defundef = substr(arg[1], 2)
19910 split(mac1, mac2, "(") #)
19912 prefix = substr(line, 1, index(line, defundef) - 1)
19913 if (D_is_set[macro]) {
19914 # Preserve the white space surrounding the "#".
19915 print prefix "define", macro P[macro] D[macro]
19918 # Replace #undef with comments. This is necessary, for example,
19919 # in the case of _POSIX_SOURCE, which is predefined and required
19920 # on some systems where configure will not decide to define it.
19921 if (defundef == "undef") {
19922 print "/*", prefix defundef, macro, "*/"
19930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19931 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19932 fi # test -n "$CONFIG_HEADERS"
19935 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19940 :[FHLC]) ac_mode=$ac_tag; continue;;
19942 case $ac_mode$ac_tag in
19944 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19945 :[FH]-) ac_tag=-:-;;
19946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19963 -) ac_f="$ac_tmp/stdin";;
19964 *) # Look for the file first in the build tree, then in the source tree
19965 # (if the path is not absolute). The absolute path cannot be DOS-style,
19966 # because $ac_f cannot contain `:'.
19970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19972 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19974 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19975 as_fn_append ac_file_inputs " '$ac_f'"
19978 # Let's still pretend it is `configure' which instantiates (i.e., don't
19979 # use $as_me), people would be surprised to read:
19980 # /* config.h. Generated by config.status. */
19981 configure_input='Generated from '`
19982 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19984 if test x"$ac_file" != x-; then
19985 configure_input="$ac_file. $configure_input"
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19987 $as_echo "$as_me: creating $ac_file" >&6;}
19989 # Neutralize special characters interpreted by sed in replacement strings.
19990 case $configure_input in #(
19991 *\&* | *\|* | *\\* )
19992 ac_sed_conf_input=`$as_echo "$configure_input" |
19993 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19994 *) ac_sed_conf_input=$configure_input;;
19998 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20004 ac_dir=`$as_dirname -- "$ac_file" ||
20005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20006 X"$ac_file" : 'X\(//\)[^/]' \| \
20007 X"$ac_file" : 'X\(//\)$' \| \
20008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20009 $as_echo X"$ac_file" |
20010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20014 /^X\(\/\/\)[^/].*/{
20027 as_dir="$ac_dir"; as_fn_mkdir_p
20031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20033 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20034 # A ".." for each directory in $ac_dir_suffix.
20035 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20036 case $ac_top_builddir_sub in
20037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20041 ac_abs_top_builddir=$ac_pwd
20042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20043 # for backward compatibility:
20044 ac_top_builddir=$ac_top_build_prefix
20047 .) # We are building in place.
20049 ac_top_srcdir=$ac_top_builddir_sub
20050 ac_abs_top_srcdir=$ac_pwd ;;
20051 [\\/]* | ?:[\\/]* ) # Absolute name.
20052 ac_srcdir=$srcdir$ac_dir_suffix;
20053 ac_top_srcdir=$srcdir
20054 ac_abs_top_srcdir=$srcdir ;;
20055 *) # Relative name.
20056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20057 ac_top_srcdir=$ac_top_build_prefix$srcdir
20058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20072 # If the template does not know about datarootdir, expand it.
20073 # FIXME: This hack should be removed a few years after 2.60.
20074 ac_datarootdir_hack=; ac_datarootdir_seen=
20085 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20086 *datarootdir*) ac_datarootdir_seen=yes;;
20087 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20089 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092 ac_datarootdir_hack='
20093 s&@datadir@&$datadir&g
20094 s&@docdir@&$docdir&g
20095 s&@infodir@&$infodir&g
20096 s&@localedir@&$localedir&g
20097 s&@mandir@&$mandir&g
20098 s&\\\${datarootdir}&$datarootdir&g' ;;
20102 # Neutralize VPATH when `$srcdir' = `.'.
20103 # Shell code in configure.ac might set extrasub.
20104 # FIXME: do we really want to maintain this feature?
20105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20106 ac_sed_extra="$ac_vpsub
20109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20112 s|@configure_input@|$ac_sed_conf_input|;t t
20113 s&@top_builddir@&$ac_top_builddir_sub&;t t
20114 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20115 s&@srcdir@&$ac_srcdir&;t t
20116 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20117 s&@top_srcdir@&$ac_top_srcdir&;t t
20118 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20119 s&@builddir@&$ac_builddir&;t t
20120 s&@abs_builddir@&$ac_abs_builddir&;t t
20121 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20122 $ac_datarootdir_hack
20124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20125 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20127 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20128 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20129 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20130 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20132 which seems to be undefined. Please make sure it is defined" >&5
20133 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20134 which seems to be undefined. Please make sure it is defined" >&2;}
20136 rm -f "$ac_tmp/stdin"
20138 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20139 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20141 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20147 if test x"$ac_file" != x-; then
20149 $as_echo "/* $configure_input */" \
20150 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20151 } >"$ac_tmp/config.h" \
20152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20153 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20155 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20158 mv "$ac_tmp/config.h" "$ac_file" \
20159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20162 $as_echo "/* $configure_input */" \
20163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20164 || as_fn_error $? "could not create -" "$LINENO" 5
20168 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20169 $as_echo "$as_me: executing $ac_file commands" >&6;}
20174 case $ac_file$ac_mode in
20177 # See if we are running on zsh, and set the options which allow our
20178 # commands through without removal of \ escapes.
20179 if test -n "${ZSH_VERSION+set}" ; then
20180 setopt NO_GLOB_SUBST
20183 cfgfile="${ofile}T"
20184 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20187 cat <<_LT_EOF >> "$cfgfile"
20190 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20191 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20192 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20195 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20196 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20198 # Written by Gordon Matzigkeit, 1996
20200 # This file is part of GNU Libtool.
20202 # GNU Libtool is free software; you can redistribute it and/or
20203 # modify it under the terms of the GNU General Public License as
20204 # published by the Free Software Foundation; either version 2 of
20205 # the License, or (at your option) any later version.
20207 # As a special exception to the GNU General Public License,
20208 # if you distribute this file as part of a program or library that
20209 # is built using GNU Libtool, you may include this file under the
20210 # same distribution terms that you use for the rest of that program.
20212 # GNU Libtool is distributed in the hope that it will be useful,
20213 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20214 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20215 # GNU General Public License for more details.
20217 # You should have received a copy of the GNU General Public License
20218 # along with GNU Libtool; see the file COPYING. If not, a copy
20219 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20220 # obtained by writing to the Free Software Foundation, Inc.,
20221 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20224 # The names of the tagged configurations supported by this script.
20225 available_tags="CXX "
20227 # ### BEGIN LIBTOOL CONFIG
20229 # Which release of libtool.m4 was used?
20230 macro_version=$macro_version
20231 macro_revision=$macro_revision
20233 # Whether or not to build shared libraries.
20234 build_libtool_libs=$enable_shared
20236 # Whether or not to build static libraries.
20237 build_old_libs=$enable_static
20239 # What type of objects to build.
20242 # Whether or not to optimize for fast installation.
20243 fast_install=$enable_fast_install
20245 # Shell to use when invoking shell scripts.
20248 # An echo program that protects backslashes.
20252 host_alias=$host_alias
20256 # The build system.
20257 build_alias=$build_alias
20261 # A sed program that does not truncate output.
20264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20265 Xsed="\$SED -e 1s/^X//"
20267 # A grep program that handles long lines.
20273 # A literal string matcher.
20276 # A BSD- or MS-compatible name lister.
20279 # Whether we need soft or hard links.
20282 # What is the maximum length of a command?
20283 max_cmd_len=$max_cmd_len
20285 # Object file suffix (normally "o").
20288 # Executable file suffix (normally "").
20291 # whether the shell understands "unset".
20294 # turn spaces into newlines.
20297 # turn newlines into spaces.
20300 # convert \$build file names to \$host format.
20301 to_host_file_cmd=$lt_cv_to_host_file_cmd
20303 # convert \$build files to toolchain format.
20304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20306 # An object symbol dumper.
20307 OBJDUMP=$lt_OBJDUMP
20309 # Method to check whether dependent libraries are shared objects.
20310 deplibs_check_method=$lt_deplibs_check_method
20312 # Command to use when deplibs_check_method = "file_magic".
20313 file_magic_cmd=$lt_file_magic_cmd
20315 # How to find potential files when deplibs_check_method = "file_magic".
20316 file_magic_glob=$lt_file_magic_glob
20318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20319 want_nocaseglob=$lt_want_nocaseglob
20321 # DLL creation program.
20322 DLLTOOL=$lt_DLLTOOL
20324 # Command to associate shared and link libraries.
20325 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20330 # Flags to create an archive.
20331 AR_FLAGS=$lt_AR_FLAGS
20333 # How to feed a file listing to the archiver.
20334 archiver_list_spec=$lt_archiver_list_spec
20336 # A symbol stripping program.
20339 # Commands used to install an old-style archive.
20341 old_postinstall_cmds=$lt_old_postinstall_cmds
20342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20344 # Whether to use a lock for old archive extraction.
20345 lock_old_archive_extraction=$lock_old_archive_extraction
20350 # LTCC compiler flags.
20351 LTCFLAGS=$lt_CFLAGS
20353 # Take the output of nm and produce a listing of raw symbols and C names.
20354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20356 # Transform the output of nm in a proper C declaration.
20357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20359 # Transform the output of nm in a C name address pair.
20360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20362 # Transform the output of nm in a C name address pair when lib prefix is needed.
20363 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20365 # Specify filename containing input files for \$NM.
20366 nm_file_list_spec=$lt_nm_file_list_spec
20368 # The root where to search for dependent libraries,and in which our libraries should be installed.
20369 lt_sysroot=$lt_sysroot
20371 # The name of the directory that contains temporary libtool files.
20374 # Used to examine libraries when file_magic_cmd begins with "file".
20375 MAGIC_CMD=$MAGIC_CMD
20377 # Must we lock files when doing compilation?
20378 need_locks=$lt_need_locks
20381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20384 DSYMUTIL=$lt_DSYMUTIL
20386 # Tool to change global to local symbols on Mac OS X.
20389 # Tool to manipulate fat objects and archives on Mac OS X.
20392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20396 OTOOL64=$lt_OTOOL64
20398 # Old archive suffix (normally "a").
20401 # Shared library suffix (normally ".so").
20402 shrext_cmds=$lt_shrext_cmds
20404 # The commands to extract the exported symbol list from a shared archive.
20405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20407 # Variables whose values should be saved in libtool wrapper scripts and
20408 # restored at link time.
20409 variables_saved_for_relink=$lt_variables_saved_for_relink
20411 # Do we need the "lib" prefix for modules?
20412 need_lib_prefix=$need_lib_prefix
20414 # Do we need a version for libraries?
20415 need_version=$need_version
20417 # Library versioning type.
20418 version_type=$version_type
20420 # Shared library runtime path variable.
20421 runpath_var=$runpath_var
20423 # Shared library path variable.
20424 shlibpath_var=$shlibpath_var
20426 # Is shlibpath searched before the hard-coded library search path?
20427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20429 # Format of library name prefix.
20430 libname_spec=$lt_libname_spec
20432 # List of archive names. First name is the real one, the rest are links.
20433 # The last name is the one that the linker finds with -lNAME
20434 library_names_spec=$lt_library_names_spec
20436 # The coded name of the library, if different from the real name.
20437 soname_spec=$lt_soname_spec
20439 # Permission mode override for installation of shared libraries.
20440 install_override_mode=$lt_install_override_mode
20442 # Command to use after installation of a shared archive.
20443 postinstall_cmds=$lt_postinstall_cmds
20445 # Command to use after uninstallation of a shared archive.
20446 postuninstall_cmds=$lt_postuninstall_cmds
20448 # Commands used to finish a libtool library installation in a directory.
20449 finish_cmds=$lt_finish_cmds
20451 # As "finish_cmds", except a single script fragment to be evaled but
20453 finish_eval=$lt_finish_eval
20455 # Whether we should hardcode library paths into libraries.
20456 hardcode_into_libs=$hardcode_into_libs
20458 # Compile-time system search path for libraries.
20459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20461 # Run-time system search path for libraries.
20462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20464 # Whether dlopen is supported.
20465 dlopen_support=$enable_dlopen
20467 # Whether dlopen of programs is supported.
20468 dlopen_self=$enable_dlopen_self
20470 # Whether dlopen of statically linked programs is supported.
20471 dlopen_self_static=$enable_dlopen_self_static
20473 # Commands to strip libraries.
20474 old_striplib=$lt_old_striplib
20475 striplib=$lt_striplib
20478 # The linker used to build libraries.
20481 # How to create reloadable object files.
20482 reload_flag=$lt_reload_flag
20483 reload_cmds=$lt_reload_cmds
20485 # Commands used to build an old-style archive.
20486 old_archive_cmds=$lt_old_archive_cmds
20488 # A language specific compiler.
20491 # Is the compiler the GNU compiler?
20494 # Compiler flag to turn off builtin functions.
20495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20497 # Additional compiler flags for building library objects.
20498 pic_flag=$lt_lt_prog_compiler_pic
20500 # How to pass a linker flag through the compiler.
20501 wl=$lt_lt_prog_compiler_wl
20503 # Compiler flag to prevent dynamic linking.
20504 link_static_flag=$lt_lt_prog_compiler_static
20506 # Does compiler simultaneously support -c and -o options?
20507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20509 # Whether or not to add -lc for building shared libraries.
20510 build_libtool_need_lc=$archive_cmds_need_lc
20512 # Whether or not to disallow shared libs when runtime libs are static.
20513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20515 # Compiler flag to allow reflexive dlopens.
20516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20518 # Compiler flag to generate shared objects directly from archives.
20519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20521 # Whether the compiler copes with passing no objects directly.
20522 compiler_needs_object=$lt_compiler_needs_object
20524 # Create an old-style archive from a shared archive.
20525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20527 # Create a temporary old-style archive to link instead of a shared archive.
20528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20530 # Commands used to build a shared archive.
20531 archive_cmds=$lt_archive_cmds
20532 archive_expsym_cmds=$lt_archive_expsym_cmds
20534 # Commands used to build a loadable module if different from building
20535 # a shared archive.
20536 module_cmds=$lt_module_cmds
20537 module_expsym_cmds=$lt_module_expsym_cmds
20539 # Whether we are building with GNU ld or not.
20540 with_gnu_ld=$lt_with_gnu_ld
20542 # Flag that allows shared libraries with undefined symbols to be built.
20543 allow_undefined_flag=$lt_allow_undefined_flag
20545 # Flag that enforces no undefined symbols.
20546 no_undefined_flag=$lt_no_undefined_flag
20548 # Flag to hardcode \$libdir into a binary during linking.
20549 # This must work even if \$libdir does not exist
20550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20552 # If ld is used when linking, flag to hardcode \$libdir into a binary
20553 # during linking. This must work even if \$libdir does not exist.
20554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20556 # Whether we need a single "-rpath" flag with a separated argument.
20557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20560 # DIR into the resulting binary.
20561 hardcode_direct=$hardcode_direct
20563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20564 # DIR into the resulting binary and the resulting library dependency is
20565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20566 # library is relocated.
20567 hardcode_direct_absolute=$hardcode_direct_absolute
20569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20570 # into the resulting binary.
20571 hardcode_minus_L=$hardcode_minus_L
20573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20574 # into the resulting binary.
20575 hardcode_shlibpath_var=$hardcode_shlibpath_var
20577 # Set to "yes" if building a shared library automatically hardcodes DIR
20578 # into the library and all subsequent libraries and executables linked
20580 hardcode_automatic=$hardcode_automatic
20582 # Set to yes if linker adds runtime paths of dependent libraries
20583 # to runtime path list.
20584 inherit_rpath=$inherit_rpath
20586 # Whether libtool must link a program against all its dependency libraries.
20587 link_all_deplibs=$link_all_deplibs
20589 # Set to "yes" if exported symbols are required.
20590 always_export_symbols=$always_export_symbols
20592 # The commands to list exported symbols.
20593 export_symbols_cmds=$lt_export_symbols_cmds
20595 # Symbols that should not be listed in the preloaded symbols.
20596 exclude_expsyms=$lt_exclude_expsyms
20598 # Symbols that must always be exported.
20599 include_expsyms=$lt_include_expsyms
20601 # Commands necessary for linking programs (against libraries) with templates.
20602 prelink_cmds=$lt_prelink_cmds
20604 # Commands necessary for finishing linking programs.
20605 postlink_cmds=$lt_postlink_cmds
20607 # Specify filename containing input files.
20608 file_list_spec=$lt_file_list_spec
20610 # How to hardcode a shared library path into an executable.
20611 hardcode_action=$hardcode_action
20613 # The directories searched by this compiler when creating a shared library.
20614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20616 # Dependencies to place before and after the objects being linked to
20617 # create a shared library.
20618 predep_objects=$lt_predep_objects
20619 postdep_objects=$lt_postdep_objects
20620 predeps=$lt_predeps
20621 postdeps=$lt_postdeps
20623 # The library search path used internally by the compiler when linking
20624 # a shared library.
20625 compiler_lib_search_path=$lt_compiler_lib_search_path
20627 # ### END LIBTOOL CONFIG
20633 cat <<\_LT_EOF >> "$cfgfile"
20634 # AIX sometimes has problems with the GCC collect2 program. For some
20635 # reason, if we set the COLLECT_NAMES environment variable, the problems
20636 # vanish in a puff of smoke.
20637 if test "X${COLLECT_NAMES+set}" != Xset; then
20639 export COLLECT_NAMES
20647 # We use sed instead of cat because bash on DJGPP gets confused if
20648 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20649 # text mode, it properly converts lines to CR/LF. This bash problem
20650 # is reportedly fixed, but why not run on old versions too?
20651 sed '$q' "$ltmain" >> "$cfgfile" \
20652 || (rm -f "$cfgfile"; exit 1)
20654 if test x"$xsi_shell" = xyes; then
20655 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20659 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20660 \ * ) func_dirname_result="${3}" ;;\
20662 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20663 && mv -f "$cfgfile.tmp" "$cfgfile" \
20664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20665 test 0 -eq $? || _lt_function_replace_fail=:
20668 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20671 \ func_basename_result="${1##*/}"\
20672 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20673 && mv -f "$cfgfile.tmp" "$cfgfile" \
20674 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20675 test 0 -eq $? || _lt_function_replace_fail=:
20678 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20679 func_dirname_and_basename ()\
20682 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20683 \ * ) func_dirname_result="${3}" ;;\
20685 \ func_basename_result="${1##*/}"\
20686 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20687 && mv -f "$cfgfile.tmp" "$cfgfile" \
20688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20689 test 0 -eq $? || _lt_function_replace_fail=:
20692 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20695 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20696 \ # positional parameters, so assign one to ordinary parameter first.\
20697 \ func_stripname_result=${3}\
20698 \ func_stripname_result=${func_stripname_result#"${1}"}\
20699 \ func_stripname_result=${func_stripname_result%"${2}"}\
20700 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20701 && mv -f "$cfgfile.tmp" "$cfgfile" \
20702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20703 test 0 -eq $? || _lt_function_replace_fail=:
20706 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20707 func_split_long_opt ()\
20709 \ func_split_long_opt_name=${1%%=*}\
20710 \ func_split_long_opt_arg=${1#*=}\
20711 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20712 && mv -f "$cfgfile.tmp" "$cfgfile" \
20713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20714 test 0 -eq $? || _lt_function_replace_fail=:
20717 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20718 func_split_short_opt ()\
20720 \ func_split_short_opt_arg=${1#??}\
20721 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20722 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20723 && mv -f "$cfgfile.tmp" "$cfgfile" \
20724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20725 test 0 -eq $? || _lt_function_replace_fail=:
20728 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20732 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20733 \ *) func_lo2o_result=${1} ;;\
20735 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20736 && mv -f "$cfgfile.tmp" "$cfgfile" \
20737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20738 test 0 -eq $? || _lt_function_replace_fail=:
20741 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20744 func_xform_result=${1%.*}.lo\
20745 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20746 && mv -f "$cfgfile.tmp" "$cfgfile" \
20747 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20748 test 0 -eq $? || _lt_function_replace_fail=:
20751 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20754 func_arith_result=$(( $* ))\
20755 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20756 && mv -f "$cfgfile.tmp" "$cfgfile" \
20757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20758 test 0 -eq $? || _lt_function_replace_fail=:
20761 sed -e '/^func_len ()$/,/^} # func_len /c\
20764 func_len_result=${#1}\
20765 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20766 && mv -f "$cfgfile.tmp" "$cfgfile" \
20767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768 test 0 -eq $? || _lt_function_replace_fail=:
20772 if test x"$lt_shell_append" = xyes; then
20773 sed -e '/^func_append ()$/,/^} # func_append /c\
20776 eval "${1}+=\\${2}"\
20777 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20778 && mv -f "$cfgfile.tmp" "$cfgfile" \
20779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20780 test 0 -eq $? || _lt_function_replace_fail=:
20783 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20784 func_append_quoted ()\
20786 \ func_quote_for_eval "${2}"\
20787 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20788 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20789 && mv -f "$cfgfile.tmp" "$cfgfile" \
20790 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20791 test 0 -eq $? || _lt_function_replace_fail=:
20794 # Save a `func_append' function call where possible by direct use of '+='
20795 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20796 && mv -f "$cfgfile.tmp" "$cfgfile" \
20797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20798 test 0 -eq $? || _lt_function_replace_fail=:
20800 # Save a `func_append' function call even when '+=' is not available
20801 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20802 && mv -f "$cfgfile.tmp" "$cfgfile" \
20803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20804 test 0 -eq $? || _lt_function_replace_fail=:
20807 if test x"$_lt_function_replace_fail" = x":"; then
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20809 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20813 mv -f "$cfgfile" "$ofile" ||
20814 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20818 cat <<_LT_EOF >> "$ofile"
20820 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20822 # The linker used to build libraries.
20825 # How to create reloadable object files.
20826 reload_flag=$lt_reload_flag_CXX
20827 reload_cmds=$lt_reload_cmds_CXX
20829 # Commands used to build an old-style archive.
20830 old_archive_cmds=$lt_old_archive_cmds_CXX
20832 # A language specific compiler.
20833 CC=$lt_compiler_CXX
20835 # Is the compiler the GNU compiler?
20838 # Compiler flag to turn off builtin functions.
20839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20841 # Additional compiler flags for building library objects.
20842 pic_flag=$lt_lt_prog_compiler_pic_CXX
20844 # How to pass a linker flag through the compiler.
20845 wl=$lt_lt_prog_compiler_wl_CXX
20847 # Compiler flag to prevent dynamic linking.
20848 link_static_flag=$lt_lt_prog_compiler_static_CXX
20850 # Does compiler simultaneously support -c and -o options?
20851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20853 # Whether or not to add -lc for building shared libraries.
20854 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20856 # Whether or not to disallow shared libs when runtime libs are static.
20857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20859 # Compiler flag to allow reflexive dlopens.
20860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20862 # Compiler flag to generate shared objects directly from archives.
20863 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20865 # Whether the compiler copes with passing no objects directly.
20866 compiler_needs_object=$lt_compiler_needs_object_CXX
20868 # Create an old-style archive from a shared archive.
20869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20871 # Create a temporary old-style archive to link instead of a shared archive.
20872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20874 # Commands used to build a shared archive.
20875 archive_cmds=$lt_archive_cmds_CXX
20876 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20878 # Commands used to build a loadable module if different from building
20879 # a shared archive.
20880 module_cmds=$lt_module_cmds_CXX
20881 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20883 # Whether we are building with GNU ld or not.
20884 with_gnu_ld=$lt_with_gnu_ld_CXX
20886 # Flag that allows shared libraries with undefined symbols to be built.
20887 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20889 # Flag that enforces no undefined symbols.
20890 no_undefined_flag=$lt_no_undefined_flag_CXX
20892 # Flag to hardcode \$libdir into a binary during linking.
20893 # This must work even if \$libdir does not exist
20894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20896 # If ld is used when linking, flag to hardcode \$libdir into a binary
20897 # during linking. This must work even if \$libdir does not exist.
20898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20900 # Whether we need a single "-rpath" flag with a separated argument.
20901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20904 # DIR into the resulting binary.
20905 hardcode_direct=$hardcode_direct_CXX
20907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20908 # DIR into the resulting binary and the resulting library dependency is
20909 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20910 # library is relocated.
20911 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20913 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20914 # into the resulting binary.
20915 hardcode_minus_L=$hardcode_minus_L_CXX
20917 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20918 # into the resulting binary.
20919 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20921 # Set to "yes" if building a shared library automatically hardcodes DIR
20922 # into the library and all subsequent libraries and executables linked
20924 hardcode_automatic=$hardcode_automatic_CXX
20926 # Set to yes if linker adds runtime paths of dependent libraries
20927 # to runtime path list.
20928 inherit_rpath=$inherit_rpath_CXX
20930 # Whether libtool must link a program against all its dependency libraries.
20931 link_all_deplibs=$link_all_deplibs_CXX
20933 # Set to "yes" if exported symbols are required.
20934 always_export_symbols=$always_export_symbols_CXX
20936 # The commands to list exported symbols.
20937 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20939 # Symbols that should not be listed in the preloaded symbols.
20940 exclude_expsyms=$lt_exclude_expsyms_CXX
20942 # Symbols that must always be exported.
20943 include_expsyms=$lt_include_expsyms_CXX
20945 # Commands necessary for linking programs (against libraries) with templates.
20946 prelink_cmds=$lt_prelink_cmds_CXX
20948 # Commands necessary for finishing linking programs.
20949 postlink_cmds=$lt_postlink_cmds_CXX
20951 # Specify filename containing input files.
20952 file_list_spec=$lt_file_list_spec_CXX
20954 # How to hardcode a shared library path into an executable.
20955 hardcode_action=$hardcode_action_CXX
20957 # The directories searched by this compiler when creating a shared library.
20958 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20960 # Dependencies to place before and after the objects being linked to
20961 # create a shared library.
20962 predep_objects=$lt_predep_objects_CXX
20963 postdep_objects=$lt_postdep_objects_CXX
20964 predeps=$lt_predeps_CXX
20965 postdeps=$lt_postdeps_CXX
20967 # The library search path used internally by the compiler when linking
20968 # a shared library.
20969 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20971 # ### END LIBTOOL TAG CONFIG: CXX
20975 "stamp-h":C) echo timestamp > src/include/stamp-h ;;
20976 "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
20977 "main-chmod":C) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
20978 "scripts-chmod":C) (cd ./scripts && chmod +x rc.radiusd radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
20986 ac_clean_files=$ac_clean_files_save
20988 test $ac_write_fail = 0 ||
20989 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20992 # configure is writing to config.log, and then calls config.status.
20993 # config.status does its own redirection, appending to config.log.
20994 # Unfortunately, on DOS this fails, as config.log is still kept open
20995 # by configure, so config.status won't be able to write to it; its
20996 # output is simply discarded. So we exec the FD to /dev/null,
20997 # effectively closing config.log, so it can be properly (re)opened and
20998 # appended to by config.status. When coming back to configure, we
20999 # need to make the FD available again.
21000 if test "$no_create" != yes; then
21002 ac_config_status_args=
21003 test "$silent" = yes &&
21004 ac_config_status_args="$ac_config_status_args --quiet"
21006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21009 # would make configure fail if this is the last instruction.
21010 $ac_cs_success || as_fn_exit 1
21014 # CONFIG_SUBDIRS section.
21016 if test "$no_recursion" != yes; then
21018 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21019 # so they do not pile up.
21020 ac_sub_configure_args=
21022 eval "set x $ac_configure_args"
21026 if test -n "$ac_prev"; then
21031 -cache-file | --cache-file | --cache-fil | --cache-fi \
21032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21033 ac_prev=cache_file ;;
21034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21038 --config-cache | -C)
21040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21048 --disable-option-checking)
21052 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21054 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
21058 # Always prepend --prefix to ensure using the same prefix
21059 # in subdir configurations.
21060 ac_arg="--prefix=$prefix"
21062 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21064 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
21067 if test "$silent" = yes; then
21068 ac_sub_configure_args="--silent $ac_sub_configure_args"
21071 # Always prepend --disable-option-checking to silence warnings, since
21072 # different subdirs can have different --enable and --with options.
21073 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
21076 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21078 # Do not complain, so a configure script can configure whichever
21079 # parts of a large source tree are present.
21080 test -d "$srcdir/$ac_dir" || continue
21082 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21083 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21084 $as_echo "$ac_msg" >&6
21085 as_dir="$ac_dir"; as_fn_mkdir_p
21089 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21092 # A ".." for each directory in $ac_dir_suffix.
21093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21094 case $ac_top_builddir_sub in
21095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21099 ac_abs_top_builddir=$ac_pwd
21100 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21101 # for backward compatibility:
21102 ac_top_builddir=$ac_top_build_prefix
21105 .) # We are building in place.
21107 ac_top_srcdir=$ac_top_builddir_sub
21108 ac_abs_top_srcdir=$ac_pwd ;;
21109 [\\/]* | ?:[\\/]* ) # Absolute name.
21110 ac_srcdir=$srcdir$ac_dir_suffix;
21111 ac_top_srcdir=$srcdir
21112 ac_abs_top_srcdir=$srcdir ;;
21113 *) # Relative name.
21114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21115 ac_top_srcdir=$ac_top_build_prefix$srcdir
21116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21118 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21123 # Check for guested configure; otherwise get Cygnus style configure.
21124 if test -f "$ac_srcdir/configure.gnu"; then
21125 ac_sub_configure=$ac_srcdir/configure.gnu
21126 elif test -f "$ac_srcdir/configure"; then
21127 ac_sub_configure=$ac_srcdir/configure
21128 elif test -f "$ac_srcdir/configure.in"; then
21129 # This should be Cygnus configure.
21130 ac_sub_configure=$ac_aux_dir/configure
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21133 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21137 # The recursion is here.
21138 if test -n "$ac_sub_configure"; then
21139 # Make the cache file name correct relative to the subdirectory.
21140 case $cache_file in
21141 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21142 *) # Relative name.
21143 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21146 { $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
21147 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21148 # The eval makes quoting arguments work.
21149 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21150 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21151 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}