2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mech_eap 0.9.1.
5 # Report bugs to <bugs@project-moonshot.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: bugs@project-moonshot.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='mech_eap'
592 PACKAGE_TARNAME='mech_eap'
593 PACKAGE_VERSION='0.9.1'
594 PACKAGE_STRING='mech_eap 0.9.1'
595 PACKAGE_BUGREPORT='bugs@project-moonshot.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
658 SHIBRESOLVER_CXXFLAGS
674 GSSEAP_ENABLE_ACCEPTOR_FALSE
675 GSSEAP_ENABLE_ACCEPTOR_TRUE
676 GSSEAP_ENABLE_REAUTH_FALSE
677 GSSEAP_ENABLE_REAUTH_TRUE
715 MAINTAINER_MODE_FALSE
739 INSTALL_STRIP_PROGRAM
791 program_transform_name
804 enable_option_checking
805 enable_dependency_tracking
807 enable_maintainer_mode
826 ac_precious_vars='build_alias
841 # Initialize some variables set by options.
843 ac_init_version=false
844 ac_unrecognized_opts=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name=s,x,x,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error $? "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error $? "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures mech_eap 0.9.1 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 [$ac_default_prefix]
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/mech_eap]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive ) echo "Configuration of mech_eap 0.9.1:";;
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-static[=PKGS] build static libraries [default=no]
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
1470 --disable-libtool-lock avoid locking (might break parallel builds)
1471 --enable-reauth whether to enable fast reauthentication protocol: yes/no; default no
1472 --enable-acceptor whether to enable acceptor codepaths: yes/no; default yes
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-sysroot=DIR Search for dependent libraries within DIR
1481 (or the compiler's sysroot if not specified).
1482 --with-krb5 Use krb5 (in specified installation directory)
1483 --with-opensaml Use OpenSAML (in specified installation directory)
1484 --with-shibresolver Use Shibboleth resolver (in specified installation
1486 --with-shibsp Use shibspboleth (in specified installation
1488 --with-openssl Use OpenSSL (in specified installation directory)
1489 --with-radsec Use radsec (in specified installation directory)
1490 --with-jansson Use jansson (in specified installation directory)
1491 --with-libmoonshot Use libmoonshot (in specified installation
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 LIBS libraries to pass to the linker, e.g. -l<library>
1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1503 CXX C++ compiler command
1504 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <bugs@project-moonshot.org>.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1540 .) # We are building in place.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1573 mech_eap configure 0.9.1
1574 generated by GNU Autoconf 2.69
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_compile
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1662 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1665 # the include files in INCLUDES and setting the cache variable VAR
1667 ac_fn_c_check_header_mongrel ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if eval \${$3+:} false; then :
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672 $as_echo_n "checking for $2... " >&6; }
1673 if eval \${$3+:} false; then :
1674 $as_echo_n "(cached) " >&6
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1680 # Is the header compilable?
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1682 $as_echo_n "checking $2 usability... " >&6; }
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 ac_header_compiler=yes
1691 ac_header_compiler=no
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1695 $as_echo "$ac_header_compiler" >&6; }
1697 # Is the header present?
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1699 $as_echo_n "checking $2 presence... " >&6; }
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1704 if ac_fn_c_try_cpp "$LINENO"; then :
1705 ac_header_preproc=yes
1707 ac_header_preproc=no
1709 rm -f conftest.err conftest.i conftest.$ac_ext
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1711 $as_echo "$ac_header_preproc" >&6; }
1713 # So? What about this header?
1714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1717 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1719 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1723 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1725 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1727 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1729 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1731 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1732 ( $as_echo "## ---------------------------------------- ##
1733 ## Report this to bugs@project-moonshot.org ##
1734 ## ---------------------------------------- ##"
1735 ) | sed "s/^/$as_me: WARNING: /" >&2
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 eval "$3=\$ac_header_compiler"
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 } # ac_fn_c_check_header_mongrel
1753 # ac_fn_c_try_run LINENO
1754 # ----------------------
1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1756 # that executables *can* be run.
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_link"
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>&5
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1771 { { case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_try") 2>&5
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; }; }; then :
1783 $as_echo "$as_me: program exited with status $ac_status" >&5
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=$ac_status
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"; then :
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 } # ac_fn_c_check_header_compile
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 rm -f conftest.$ac_objext conftest$ac_exeext
1833 if { { ac_try="$ac_link"
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 test -x conftest$ac_exeext
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_link
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1895 # include <limits.h>
1897 # include <assert.h>
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1924 if ac_fn_c_try_link "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 } # ac_fn_c_check_func
1939 # ac_fn_cxx_try_compile LINENO
1940 # ----------------------------
1941 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_cxx_try_compile ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext
1946 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1962 test -z "$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest.$ac_objext; then :
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_compile
1977 # ac_fn_cxx_try_cpp LINENO
1978 # ------------------------
1979 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1980 ac_fn_cxx_try_cpp ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_cpp conftest.$ac_ext"
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } > conftest.i && {
1999 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2000 test ! -s conftest.err
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_cxx_try_cpp
2014 # ac_fn_cxx_try_link LINENO
2015 # -------------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_cxx_try_link ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 rm -f conftest.$ac_objext conftest$ac_exeext
2021 if { { ac_try="$ac_link"
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_link") 2>conftest.err
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; } && {
2037 test -z "$ac_cxx_werror_flag" ||
2038 test ! -s conftest.err
2039 } && test -s conftest$ac_exeext && {
2040 test "$cross_compiling" = yes ||
2041 test -x conftest$ac_exeext
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2050 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2051 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2052 # interfere with the next link command; also delete a directory that is
2053 # left behind by Apple's compiler. We do this before executing the actions.
2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 as_fn_set_status $ac_retval
2058 } # ac_fn_cxx_try_link
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by mech_eap $as_me 0.9.1, which was
2064 generated by GNU Autoconf 2.69. Invocation command line was
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_must_keep_next=false
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 -* ) ac_must_keep_next=true ;;
2156 as_fn_append ac_configure_args " '$ac_arg'"
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 # Check that the precious variables saved in the cache have kept the same
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 for ac_dir in build-aux "$srcdir"/build-aux; do
2414 if test -f "$ac_dir/install-sh"; then
2416 ac_install_sh="$ac_aux_dir/install-sh -c"
2418 elif test -f "$ac_dir/install.sh"; then
2420 ac_install_sh="$ac_aux_dir/install.sh -c"
2422 elif test -f "$ac_dir/shtool"; then
2424 ac_install_sh="$ac_aux_dir/shtool install -c"
2428 if test -z "$ac_aux_dir"; then
2429 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2432 # These three variables are undocumented and unsupported,
2433 # and are intended to be withdrawn in a future Autoconf release.
2434 # They can cause serious problems if a builder's source tree is in a directory
2435 # whose full name contains unusual characters.
2436 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2437 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2438 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2442 # expand $ac_aux_dir to an absolute path
2443 am_aux_dir=`cd $ac_aux_dir && pwd`
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_CC+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 if test -n "$CC"; then
2459 ac_cv_prog_CC="$CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 if test -n "$CC"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2481 $as_echo "$CC" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2489 if test -z "$ac_cv_prog_CC"; then
2491 # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2494 $as_echo_n "checking for $ac_word... " >&6; }
2495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 if test -n "$ac_ct_CC"; then
2499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_ac_ct_CC="gcc"
2509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2519 if test -n "$ac_ct_CC"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2521 $as_echo "$ac_ct_CC" >&6; }
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2524 $as_echo "no" >&6; }
2527 if test "x$ac_ct_CC" = x; then
2530 case $cross_compiling:$ac_tool_warned in
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2542 if test -z "$CC"; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}cc; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_CC+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_CC="${ac_tool_prefix}cc"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 if test -n "$CC"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2574 $as_echo "$CC" >&6; }
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2583 if test -z "$CC"; then
2584 # Extract the first word of "cc", so it can be a program name with args.
2585 set dummy cc; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_CC+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2603 ac_prog_rejected=yes
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 if test $ac_prog_rejected = yes; then
2615 # We found a bogon in the path, so make sure we never use it.
2616 set dummy $ac_cv_prog_CC
2618 if test $# != 0; then
2619 # We chose a different compiler from the bogus one.
2620 # However, it has the same basename, so the bogon will be chosen
2621 # first if we set CC to just the basename; use the full file name.
2623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2629 if test -n "$CC"; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2631 $as_echo "$CC" >&6; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2634 $as_echo "no" >&6; }
2639 if test -z "$CC"; then
2640 if test -n "$ac_tool_prefix"; then
2641 for ac_prog in cl.exe
2643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2673 $as_echo "$CC" >&6; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2680 test -n "$CC" && break
2683 if test -z "$CC"; then
2685 for ac_prog in cl.exe
2687 # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$ac_ct_CC"; then
2695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2704 ac_cv_prog_ac_ct_CC="$ac_prog"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2715 if test -n "$ac_ct_CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2717 $as_echo "$ac_ct_CC" >&6; }
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2724 test -n "$ac_ct_CC" && break
2727 if test "x$ac_ct_CC" = x; then
2730 case $cross_compiling:$ac_tool_warned in
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 as_fn_error $? "no acceptable C compiler found in \$PATH
2746 See \`config.log' for more details" "$LINENO" 5; }
2748 # Provide some information about the compiler.
2749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2752 for ac_option in --version -v -V -qversion; do
2753 { { ac_try="$ac_compiler $ac_option >&5"
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2762 if test -s conftest.err; then
2764 ... rest of stderr output deleted ...
2765 10q' conftest.err >conftest.er1
2766 cat conftest.er1 >&5
2768 rm -f conftest.er1 conftest.err
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2790 $as_echo_n "checking whether the C compiler works... " >&6; }
2791 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2793 # The possible output files:
2794 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2797 for ac_file in $ac_files
2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2801 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2806 if { { ac_try="$ac_link_default"
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812 $as_echo "$ac_try_echo"; } >&5
2813 (eval "$ac_link_default") 2>&5
2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; }; then :
2817 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2818 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2819 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2820 # so that the user can short-circuit this test for compilers unknown to
2822 for ac_file in $ac_files ''
2824 test -f "$ac_file" || continue
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2829 # We found the default executable, but exeext='' is most
2833 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2835 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 # We set ac_cv_exeext here because the later test for it is not
2838 # safe: cross compilers may not add the suffix if given an `-o'
2839 # argument, so we may need to know it at that point already.
2840 # Even if this section looks crufty: it has the advantage of
2847 test "$ac_cv_exeext" = no && ac_cv_exeext=
2852 if test -z "$ac_file"; then :
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855 $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2860 as_fn_error 77 "C compiler cannot create executables
2861 See \`config.log' for more details" "$LINENO" 5; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2867 $as_echo_n "checking for C compiler default output file name... " >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2869 $as_echo "$ac_file" >&6; }
2870 ac_exeext=$ac_cv_exeext
2872 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2873 ac_clean_files=$ac_clean_files_save
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2875 $as_echo_n "checking for suffix of executables... " >&6; }
2876 if { { ac_try="$ac_link"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2882 $as_echo "$ac_try_echo"; } >&5
2883 (eval "$ac_link") 2>&5
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }; then :
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details" "$LINENO" 5; }
2906 rm -f conftest conftest$ac_cv_exeext
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2908 $as_echo "$ac_cv_exeext" >&6; }
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2919 FILE *f = fopen ("conftest.out", "w");
2920 return ferror (f) || fclose (f) != 0;
2926 ac_clean_files="$ac_clean_files conftest.out"
2927 # Check that the compiler produces executables we can run. If not, either
2928 # the compiler is broken, or we cross compile.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2930 $as_echo_n "checking whether we are cross compiling... " >&6; }
2931 if test "$cross_compiling" != yes; then
2932 { { ac_try="$ac_link"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_link") 2>&5
2941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942 test $ac_status = 0; }
2943 if { ac_try='./conftest$ac_cv_exeext'
2944 { { case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_try") 2>&5
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }; }; then
2956 if test "$cross_compiling" = maybe; then
2959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error $? "cannot run C compiled programs.
2962 If you meant to cross compile, use \`--host'.
2963 See \`config.log' for more details" "$LINENO" 5; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2968 $as_echo "$cross_compiling" >&6; }
2970 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2971 ac_clean_files=$ac_clean_files_save
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2973 $as_echo_n "checking for suffix of object files... " >&6; }
2974 if ${ac_cv_objext+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2988 rm -f conftest.o conftest.obj
2989 if { { ac_try="$ac_compile"
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compile") 2>&5
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }; then :
3000 for ac_file in conftest.o conftest.obj conftest.*; do
3001 test -f "$ac_file" || continue;
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3009 $as_echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3014 as_fn_error $? "cannot compute suffix of object files: cannot compile
3015 See \`config.log' for more details" "$LINENO" 5; }
3017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3020 $as_echo "$ac_cv_objext" >&6; }
3021 OBJEXT=$ac_cv_objext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3025 if ${ac_cv_c_compiler_gnu+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3042 if ac_fn_c_try_compile "$LINENO"; then :
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3053 if test $ac_compiler_gnu = yes; then
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3062 if ${ac_cv_prog_cc_g+:} false; then :
3063 $as_echo_n "(cached) " >&6
3065 ac_save_c_werror_flag=$ac_c_werror_flag
3066 ac_c_werror_flag=yes
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3080 if ac_fn_c_try_compile "$LINENO"; then :
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3095 if ac_fn_c_try_compile "$LINENO"; then :
3098 ac_c_werror_flag=$ac_save_c_werror_flag
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3111 if ac_fn_c_try_compile "$LINENO"; then :
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3122 $as_echo "$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124 CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126 if test "$GCC" = yes; then
3132 if test "$GCC" = yes; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3140 if ${ac_cv_prog_cc_c89+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 ac_cv_prog_cc_c89=no
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3164 s = g (p, va_arg (v,int));
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3170 function prototypes and stuff, but not '\xHH' hex character constants.
3171 These don't provoke an error unfortunately, instead are silently treated
3172 as 'x'. The following induces an error, until -std is added to get
3173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3174 array size at least. It's necessary to write '\x00'==0 to get something
3175 that's true only with -std. */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179 inside strings and character constants. */
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 CC="$ac_save_CC $ac_arg"
3201 if ac_fn_c_try_compile "$LINENO"; then :
3202 ac_cv_prog_cc_c89=$ac_arg
3204 rm -f core conftest.err conftest.$ac_objext
3205 test "x$ac_cv_prog_cc_c89" != "xno" && break
3207 rm -f conftest.$ac_ext
3212 case "x$ac_cv_prog_cc_c89" in
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3215 $as_echo "none needed" >&6; } ;;
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3218 $as_echo "unsupported" >&6; } ;;
3220 CC="$CC $ac_cv_prog_cc_c89"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3224 if test "x$ac_cv_prog_cc_c89" != xno; then :
3229 ac_cpp='$CPP $CPPFLAGS'
3230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3241 if ${am_cv_prog_cc_c_o+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3255 # Make sure it works both with $CC and with simple cc.
3256 # Following AC_PROG_CC_C_O, we do the test twice because some
3257 # compilers refuse to overwrite an existing .o file with -o,
3258 # though they will create one.
3259 am_cv_prog_cc_c_o=yes
3261 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3262 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } \
3266 && test -f conftest2.$ac_objext; then
3269 am_cv_prog_cc_c_o=no
3273 rm -f core conftest*
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3278 if test "$am_cv_prog_cc_c_o" != yes; then
3279 # Losing compiler, so override with the script.
3280 # FIXME: It is wrong to rewrite CC.
3281 # But if we don't then we get into trouble of one sort or another.
3282 # A longer-term fix would be to have automake use am__CC in this case,
3283 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3284 CC="$am_aux_dir/compile $CC"
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3300 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3301 # On Suns, sometimes $CPP names a directory.
3302 if test -n "$CPP" && test -d "$CPP"; then
3305 if test -z "$CPP"; then
3306 if ${ac_cv_prog_CPP+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 # Double quotes because CPP needs to be expanded
3310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3313 for ac_c_preproc_warn_flag in '' yes
3315 # Use a header file that comes with gcc, so configuring glibc
3316 # with a fresh cross-compiler works.
3317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318 # <limits.h> exists even on freestanding compilers.
3319 # On the NeXT, cc -E runs the code through the compiler's parser,
3320 # not just through cpp. "Syntax error" is here to catch this case.
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3324 # include <limits.h>
3326 # include <assert.h>
3330 if ac_fn_c_try_cpp "$LINENO"; then :
3333 # Broken: fails on valid input.
3336 rm -f conftest.err conftest.i conftest.$ac_ext
3338 # OK, works on sane cases. Now check whether nonexistent headers
3339 # can be detected and how.
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3342 #include <ac_nonexistent.h>
3344 if ac_fn_c_try_cpp "$LINENO"; then :
3345 # Broken: success on invalid input.
3348 # Passes both tests.
3352 rm -f conftest.err conftest.i conftest.$ac_ext
3355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3356 rm -f conftest.i conftest.err conftest.$ac_ext
3357 if $ac_preproc_ok; then :
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3370 $as_echo "$CPP" >&6; }
3372 for ac_c_preproc_warn_flag in '' yes
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3383 # include <limits.h>
3385 # include <assert.h>
3389 if ac_fn_c_try_cpp "$LINENO"; then :
3392 # Broken: fails on valid input.
3395 rm -f conftest.err conftest.i conftest.$ac_ext
3397 # OK, works on sane cases. Now check whether nonexistent headers
3398 # can be detected and how.
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3401 #include <ac_nonexistent.h>
3403 if ac_fn_c_try_cpp "$LINENO"; then :
3404 # Broken: success on invalid input.
3407 # Passes both tests.
3411 rm -f conftest.err conftest.i conftest.$ac_ext
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.i conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then :
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3422 See \`config.log' for more details" "$LINENO" 5; }
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3433 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3434 if ${ac_cv_path_GREP+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -z "$GREP"; then
3438 ac_path_GREP_found=false
3439 # Loop through the user's path and test for each of PROGNAME-LIST
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3444 test -z "$as_dir" && as_dir=.
3445 for ac_prog in grep ggrep; do
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3448 as_fn_executable_p "$ac_path_GREP" || continue
3449 # Check for GNU ac_path_GREP and select it if it is found.
3450 # Check for GNU $ac_path_GREP
3451 case `"$ac_path_GREP" --version 2>&1` in
3453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3456 $as_echo_n 0123456789 >"conftest.in"
3459 cat "conftest.in" "conftest.in" >"conftest.tmp"
3460 mv "conftest.tmp" "conftest.in"
3461 cp "conftest.in" "conftest.nl"
3462 $as_echo 'GREP' >> "conftest.nl"
3463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3465 as_fn_arith $ac_count + 1 && ac_count=$as_val
3466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3467 # Best one so far, save it but keep looking for a better one
3468 ac_cv_path_GREP="$ac_path_GREP"
3469 ac_path_GREP_max=$ac_count
3471 # 10*(2^10) chars as input seems more than enough
3472 test $ac_count -gt 10 && break
3474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3477 $ac_path_GREP_found && break 3
3482 if test -z "$ac_cv_path_GREP"; then
3483 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3486 ac_cv_path_GREP=$GREP
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3491 $as_echo "$ac_cv_path_GREP" >&6; }
3492 GREP="$ac_cv_path_GREP"
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3496 $as_echo_n "checking for egrep... " >&6; }
3497 if ${ac_cv_path_EGREP+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3501 then ac_cv_path_EGREP="$GREP -E"
3503 if test -z "$EGREP"; then
3504 ac_path_EGREP_found=false
3505 # Loop through the user's path and test for each of PROGNAME-LIST
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3510 test -z "$as_dir" && as_dir=.
3511 for ac_prog in egrep; do
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3514 as_fn_executable_p "$ac_path_EGREP" || continue
3515 # Check for GNU ac_path_EGREP and select it if it is found.
3516 # Check for GNU $ac_path_EGREP
3517 case `"$ac_path_EGREP" --version 2>&1` in
3519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3522 $as_echo_n 0123456789 >"conftest.in"
3525 cat "conftest.in" "conftest.in" >"conftest.tmp"
3526 mv "conftest.tmp" "conftest.in"
3527 cp "conftest.in" "conftest.nl"
3528 $as_echo 'EGREP' >> "conftest.nl"
3529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3531 as_fn_arith $ac_count + 1 && ac_count=$as_val
3532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3533 # Best one so far, save it but keep looking for a better one
3534 ac_cv_path_EGREP="$ac_path_EGREP"
3535 ac_path_EGREP_max=$ac_count
3537 # 10*(2^10) chars as input seems more than enough
3538 test $ac_count -gt 10 && break
3540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3543 $ac_path_EGREP_found && break 3
3548 if test -z "$ac_cv_path_EGREP"; then
3549 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3552 ac_cv_path_EGREP=$EGREP
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3558 $as_echo "$ac_cv_path_EGREP" >&6; }
3559 EGREP="$ac_cv_path_EGREP"
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3563 $as_echo_n "checking for ANSI C header files... " >&6; }
3564 if ${ac_cv_header_stdc+:} false; then :
3565 $as_echo_n "(cached) " >&6
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_header_stdc=yes
3585 ac_cv_header_stdc=no
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 if test $ac_cv_header_stdc = yes; then
3590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3597 $EGREP "memchr" >/dev/null 2>&1; then :
3600 ac_cv_header_stdc=no
3606 if test $ac_cv_header_stdc = yes; then
3607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3614 $EGREP "free" >/dev/null 2>&1; then :
3617 ac_cv_header_stdc=no
3623 if test $ac_cv_header_stdc = yes; then
3624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3625 if test "$cross_compiling" = yes; then :
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 #if ((' ' & 0x0FF) == 0x020)
3633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3636 # define ISLOWER(c) \
3637 (('a' <= (c) && (c) <= 'i') \
3638 || ('j' <= (c) && (c) <= 'r') \
3639 || ('s' <= (c) && (c) <= 'z'))
3640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3648 for (i = 0; i < 256; i++)
3649 if (XOR (islower (i), ISLOWER (i))
3650 || toupper (i) != TOUPPER (i))
3655 if ac_fn_c_try_run "$LINENO"; then :
3658 ac_cv_header_stdc=no
3660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3661 conftest.$ac_objext conftest.beam conftest.$ac_ext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3667 $as_echo "$ac_cv_header_stdc" >&6; }
3668 if test $ac_cv_header_stdc = yes; then
3670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3674 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3675 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3676 inttypes.h stdint.h unistd.h
3678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3682 cat >>confdefs.h <<_ACEOF
3683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3693 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3700 if test "$MINIX" = yes; then
3702 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3705 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3708 $as_echo "#define _MINIX 1" >>confdefs.h
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3714 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3715 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3721 # define __EXTENSIONS__ 1
3722 $ac_includes_default
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_safe_to_define___extensions__=yes
3734 ac_cv_safe_to_define___extensions__=no
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3739 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3740 test $ac_cv_safe_to_define___extensions__ = yes &&
3741 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3743 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3745 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3747 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3749 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3752 am__api_version='1.14'
3754 # Find a good install program. We prefer a C program (faster),
3755 # so one script is as good as another. But avoid the broken or
3756 # incompatible versions:
3757 # SysV /etc/install, /usr/sbin/install
3758 # SunOS /usr/etc/install
3759 # IRIX /sbin/install
3761 # AmigaOS /C/install, which installs bootblocks on floppy discs
3762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3765 # OS/2's system install, which has a completely different semantic
3766 # ./install, which can be erroneously created by make from ./install.sh.
3767 # Reject install programs that cannot install multiple files.
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3769 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3770 if test -z "$INSTALL"; then
3771 if ${ac_cv_path_install+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir=.
3779 # Account for people who put trailing slashes in PATH elements.
3780 case $as_dir/ in #((
3781 ./ | .// | /[cC]/* | \
3782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3783 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3786 # OSF1 and SCO ODT 3.0 have their own names for install.
3787 # Don't use installbsd from OSF since it installs stuff as root
3789 for ac_prog in ginstall scoinst install; do
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3792 if test $ac_prog = install &&
3793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3794 # AIX install. It has an incompatible calling convention.
3796 elif test $ac_prog = install &&
3797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3798 # program-specific install script used by HP pwplus--don't use.
3801 rm -rf conftest.one conftest.two conftest.dir
3802 echo one > conftest.one
3803 echo two > conftest.two
3805 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3806 test -s conftest.one && test -s conftest.two &&
3807 test -s conftest.dir/conftest.one &&
3808 test -s conftest.dir/conftest.two
3810 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3823 rm -rf conftest.one conftest.two conftest.dir
3826 if test "${ac_cv_path_install+set}" = set; then
3827 INSTALL=$ac_cv_path_install
3829 # As a last resort, use the slow shell script. Don't cache a
3830 # value for INSTALL within a source directory, because that will
3831 # break other packages using the cache if that directory is
3832 # removed, or if the value is a relative name.
3833 INSTALL=$ac_install_sh
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3837 $as_echo "$INSTALL" >&6; }
3839 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3840 # It thinks the first close brace ends the variable substitution.
3841 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3843 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3845 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3848 $as_echo_n "checking whether build environment is sane... " >&6; }
3849 # Reject unsafe characters in $srcdir or the absolute working directory
3850 # name. Accept space and tab only in the latter.
3854 *[\\\"\#\$\&\'\`$am_lf]*)
3855 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3858 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3859 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3862 # Do 'set' in a subshell so we don't clobber the current shell's
3863 # arguments. Must try -L first in case configure is actually a
3864 # symlink; some systems play weird games with the mod time of symlinks
3865 # (eg FreeBSD returns the mod time of the symlink's containing
3869 for am_try in 1 2; do
3870 echo "timestamp, slept: $am_has_slept" > conftest.file
3871 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3872 if test "$*" = "X"; then
3874 set X `ls -t "$srcdir/configure" conftest.file`
3876 if test "$*" != "X $srcdir/configure conftest.file" \
3877 && test "$*" != "X conftest.file $srcdir/configure"; then
3879 # If neither matched, then we have a broken ls. This can happen
3880 # if, for instance, CONFIG_SHELL is bash and it inherits a
3881 # broken ls alias from the environment. This has actually
3882 # happened. Such a system could not be considered "sane".
3883 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3884 alias in your environment" "$LINENO" 5
3886 if test "$2" = conftest.file || test $am_try -eq 2; then
3893 test "$2" = conftest.file
3899 as_fn_error $? "newly created file is older than distributed files!
3900 Check your system clock" "$LINENO" 5
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3903 $as_echo "yes" >&6; }
3904 # If we didn't sleep, we still need to ensure time stamps of config.status and
3905 # generated files are strictly newer.
3907 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3914 test "$program_prefix" != NONE &&
3915 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3916 # Use a double $ so make ignores it.
3917 test "$program_suffix" != NONE &&
3918 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3919 # Double any \ or $.
3920 # By default was `s,x,x', remove it if useless.
3921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3924 if test x"${MISSING+set}" != xset; then
3927 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3929 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3932 # Use eval to expand $SHELL
3933 if eval "$MISSING --is-lightweight"; then
3934 am_missing_run="$MISSING "
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3938 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3941 if test x"${install_sh}" != xset; then
3944 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3946 install_sh="\${SHELL} $am_aux_dir/install-sh"
3950 # Installed binaries are usually stripped using 'strip' when the user
3951 # run "make install-strip". However 'strip' might not be the right
3952 # tool to use in cross-compilation environments, therefore Automake
3953 # will honor the 'STRIP' environment variable to overrule this program.
3954 if test "$cross_compiling" != no; then
3955 if test -n "$ac_tool_prefix"; then
3956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}strip; ac_word=$2
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959 $as_echo_n "checking for $ac_word... " >&6; }
3960 if ${ac_cv_prog_STRIP+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 if test -n "$STRIP"; then
3964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 STRIP=$ac_cv_prog_STRIP
3984 if test -n "$STRIP"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3986 $as_echo "$STRIP" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3994 if test -z "$ac_cv_prog_STRIP"; then
3996 # Extract the first word of "strip", so it can be a program name with args.
3997 set dummy strip; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$ac_ct_STRIP"; then
4004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_STRIP="strip"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4024 if test -n "$ac_ct_STRIP"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4026 $as_echo "$ac_ct_STRIP" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4032 if test "x$ac_ct_STRIP" = x; then
4035 case $cross_compiling:$ac_tool_warned in
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039 ac_tool_warned=yes ;;
4044 STRIP="$ac_cv_prog_STRIP"
4048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4052 if test -z "$MKDIR_P"; then
4053 if ${ac_cv_path_mkdir+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4060 test -z "$as_dir" && as_dir=.
4061 for ac_prog in mkdir gmkdir; do
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4065 'mkdir (GNU coreutils) '* | \
4066 'mkdir (coreutils) '* | \
4067 'mkdir (fileutils) '4.1*)
4068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4078 test -d ./--version && rmdir ./--version
4079 if test "${ac_cv_path_mkdir+set}" = set; then
4080 MKDIR_P="$ac_cv_path_mkdir -p"
4082 # As a last resort, use the slow shell script. Don't cache a
4083 # value for MKDIR_P within a source directory, because that will
4084 # break other packages using the cache if that directory is
4085 # removed, or if the value is a relative name.
4086 MKDIR_P="$ac_install_sh -d"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4090 $as_echo "$MKDIR_P" >&6; }
4092 for ac_prog in gawk mawk nawk awk
4094 # Extract the first word of "$ac_prog", so it can be a program name with args.
4095 set dummy $ac_prog; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_AWK+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$AWK"; then
4102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_AWK="$ac_prog"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$AWK"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4124 $as_echo "$AWK" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4131 test -n "$AWK" && break
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4138 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 cat >conftest.make <<\_ACEOF
4144 @echo '@@@%%%=$(MAKE)=@@@%%%'
4146 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4149 eval ac_cv_prog_make_${ac_make}_set=yes;;
4151 eval ac_cv_prog_make_${ac_make}_set=no;;
4155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 SET_MAKE="MAKE=${MAKE-make}"
4165 rm -rf .tst 2>/dev/null
4166 mkdir .tst 2>/dev/null
4167 if test -d .tst; then
4172 rmdir .tst 2>/dev/null
4174 DEPDIR="${am__leading_dot}deps"
4176 ac_config_commands="$ac_config_commands depfiles"
4179 am_make=${MAKE-make}
4180 cat > confinc << 'END'
4182 @echo this is the am__doit target
4185 # If we don't find an include directive, just comment out the code.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4187 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4191 # First try GNU make style include.
4192 echo "include confinc" > confmf
4193 # Ignore all kinds of additional output from 'make'.
4194 case `$am_make -s -f confmf 2> /dev/null` in #(
4195 *the\ am__doit\ target*)
4201 # Now try BSD make style include.
4202 if test "$am__include" = "#"; then
4203 echo '.include "confinc"' > confmf
4204 case `$am_make -s -f confmf 2> /dev/null` in #(
4205 *the\ am__doit\ target*)
4206 am__include=.include
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4215 $as_echo "$_am_result" >&6; }
4216 rm -f confinc confmf
4218 # Check whether --enable-dependency-tracking was given.
4219 if test "${enable_dependency_tracking+set}" = set; then :
4220 enableval=$enable_dependency_tracking;
4223 if test "x$enable_dependency_tracking" != xno; then
4224 am_depcomp="$ac_aux_dir/depcomp"
4228 if test "x$enable_dependency_tracking" != xno; then
4237 # Check whether --enable-silent-rules was given.
4238 if test "${enable_silent_rules+set}" = set; then :
4239 enableval=$enable_silent_rules;
4242 case $enable_silent_rules in # (((
4243 yes) AM_DEFAULT_VERBOSITY=0;;
4244 no) AM_DEFAULT_VERBOSITY=1;;
4245 *) AM_DEFAULT_VERBOSITY=1;;
4247 am_make=${MAKE-make}
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4249 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4250 if ${am_cv_make_support_nested_variables+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 if $as_echo 'TRUE=$(BAR$(V))
4259 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4260 am_cv_make_support_nested_variables=yes
4262 am_cv_make_support_nested_variables=no
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4266 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4267 if test $am_cv_make_support_nested_variables = yes; then
4269 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4271 AM_V=$AM_DEFAULT_VERBOSITY
4272 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4276 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4277 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4278 # is not polluted with repeated "-I."
4279 am__isrc=' -I$(srcdir)'
4280 # test to see if srcdir already configured
4281 if test -f $srcdir/config.status; then
4282 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4286 # test whether we have cygpath
4287 if test -z "$CYGPATH_W"; then
4288 if (cygpath --version) >/dev/null 2>/dev/null; then
4289 CYGPATH_W='cygpath -w'
4296 # Define the identity of the package.
4301 cat >>confdefs.h <<_ACEOF
4302 #define PACKAGE "$PACKAGE"
4306 cat >>confdefs.h <<_ACEOF
4307 #define VERSION "$VERSION"
4310 # Some tools Automake needs.
4312 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4315 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4318 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4321 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4324 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4326 # For better backward compatibility. To be removed once Automake 1.9.x
4327 # dies out for good. For more background, see:
4328 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4329 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4330 mkdir_p='$(MKDIR_P)'
4332 # We need awk for the "check" target. The system "awk" is bad on
4334 # Always define AMTAR for backward compatibility. Yes, it's still used
4335 # in the wild :-( We should find a proper way to deprecate it ...
4339 # We'll loop over all known methods to create a tar archive until one works.
4340 _am_tools='gnutar pax cpio none'
4342 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4348 depcc="$CC" am_compiler_list=
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4351 $as_echo_n "checking dependency style of $depcc... " >&6; }
4352 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4356 # We make a subdir and do the tests there. Otherwise we can end up
4357 # making bogus files that we don't know about and never remove. For
4358 # instance it was reported that on HP-UX the gcc test will end up
4359 # making a dummy file named 'D' -- because '-MD' means "put the output
4363 # Copy depcomp to subdir because otherwise we won't find it if we're
4364 # using a relative directory.
4365 cp "$am_depcomp" conftest.dir
4367 # We will build objects and dependencies in a subdirectory because
4368 # it helps to detect inapplicable dependency modes. For instance
4369 # both Tru64's cc and ICC support -MD to output dependencies as a
4370 # side effect of compilation, but ICC will put the dependencies in
4371 # the current directory while Tru64 will put them in the object
4375 am_cv_CC_dependencies_compiler_type=none
4376 if test "$am_compiler_list" = ""; then
4377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380 case " $depcc " in #(
4381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4384 for depmode in $am_compiler_list; do
4385 # Setup a source with many dependencies, because some compilers
4386 # like to wrap large dependency lists on column 80 (with \), and
4387 # we should not choose a depcomp mode which is confused by this.
4389 # We need to recreate these files for each test, as the compiler may
4390 # overwrite some of them when testing with obscure command lines.
4391 # This happens at least with the AIX C compiler.
4393 for i in 1 2 3 4 5 6; do
4394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4395 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4396 # Solaris 10 /bin/sh.
4397 echo '/* dummy */' > sub/conftst$i.h
4399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4401 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4402 # mode. It turns out that the SunPro C++ compiler does not properly
4403 # handle '-M -o', and we need to detect this. Also, some Intel
4404 # versions had trouble with output in subdirs.
4405 am__obj=sub/conftest.${OBJEXT-o}
4406 am__minus_obj="-o $am__obj"
4409 # This depmode causes a compiler race in universal mode.
4410 test "$am__universal" = false || continue
4413 # After this tag, mechanisms are not by side-effect, so they'll
4414 # only be used when explicitly requested.
4415 if test "x$enable_dependency_tracking" = xyes; then
4421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4422 # This compiler won't grok '-c -o', but also, the minuso test has
4423 # not run yet. These depmodes are late enough in the game, and
4424 # so weak that their functioning should not be impacted.
4425 am__obj=conftest.${OBJEXT-o}
4430 if depmode=$depmode \
4431 source=sub/conftest.c object=$am__obj \
4432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4434 >/dev/null 2>conftest.err &&
4435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4439 # icc doesn't choke on unknown options, it will just issue warnings
4440 # or remarks (even with -Werror). So we grep stderr for any message
4441 # that says an option was ignored or not supported.
4442 # When given -MP, icc 7.0 and 7.1 complain thusly:
4443 # icc: Command line warning: ignoring option '-M'; no argument required
4444 # The diagnosis changed in icc 8.0:
4445 # icc: Command line remark: option '-MP' not supported
4446 if (grep 'ignoring option' conftest.err ||
4447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4448 am_cv_CC_dependencies_compiler_type=$depmode
4457 am_cv_CC_dependencies_compiler_type=none
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4462 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4463 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466 test "x$enable_dependency_tracking" != xno \
4467 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4469 am__fastdepCC_FALSE='#'
4471 am__fastdepCC_TRUE='#'
4472 am__fastdepCC_FALSE=
4477 # POSIX will say in a future version that running "rm -f" with no argument
4478 # is OK; and we want to be able to make that assumption in our Makefile
4479 # recipes. So use an aggressive probe to check that the usage we want is
4480 # actually supported "in the wild" to an acceptable degree.
4481 # See automake bug#10828.
4482 # To make any issue more visible, cause the running configure to be aborted
4483 # by default if the 'rm' program in use doesn't match our expectations; the
4484 # user can still override this though.
4485 if rm -f && rm -fr && rm -rf; then : OK; else
4489 Your 'rm' program seems unable to run without file operands specified
4490 on the command line, even when the '-f' option is present. This is contrary
4491 to the behaviour of most rm programs out there, and not conforming with
4492 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4494 Please tell bug-automake@gnu.org about your system, including the value
4495 of your $PATH and any error possibly output before this message. This
4496 can help us improve future automake versions.
4499 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4500 echo 'Configuration will proceed anyway, since you have set the' >&2
4501 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4505 Aborting the configuration process, to ensure you take notice of the issue.
4507 You can download and install GNU coreutils to get an 'rm' implementation
4508 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4510 If you want to complete the configuration process using your problematic
4511 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4512 to "yes", and re-run configure.
4515 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4519 if test "x$CC" != xcc; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4521 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4524 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4526 set dummy $CC; ac_cc=`$as_echo "$2" |
4527 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4528 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4542 # Make sure it works both with $CC and with simple cc.
4543 # We do the test twice because some compilers refuse to overwrite an
4544 # existing .o file with -o, though they will create one.
4545 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4547 if { { case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4552 $as_echo "$ac_try_echo"; } >&5
4553 (eval "$ac_try") 2>&5
4555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; } &&
4557 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_try") 2>&5
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; };
4568 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4569 if test "x$CC" != xcc; then
4570 # Test first that cc exists at all.
4571 if { ac_try='cc -c conftest.$ac_ext >&5'
4572 { { case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577 $as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_try") 2>&5
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }; }; then
4582 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4584 if { { case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590 (eval "$ac_try") 2>&5
4592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; } &&
4594 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4599 $as_echo "$ac_try_echo"; } >&5
4600 (eval "$ac_try") 2>&5
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; };
4608 # cc exists but doesn't like -o.
4609 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4614 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4616 rm -f core conftest*
4619 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 $as_echo "yes" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4626 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4630 # FIXME: we rely on the cache variable name because
4631 # there is no other way.
4633 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4634 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4635 if test "$am_t" != yes; then
4636 # Losing compiler, so override with the script.
4637 # FIXME: It is wrong to rewrite CC.
4638 # But if we don't then we get into trouble of one sort or another.
4639 # A longer-term fix would be to have automake use am__CC in this case,
4640 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641 CC="$am_aux_dir/compile $CC"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4647 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4648 # Check whether --enable-maintainer-mode was given.
4649 if test "${enable_maintainer_mode+set}" = set; then :
4650 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4652 USE_MAINTAINER_MODE=no
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4656 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4657 if test $USE_MAINTAINER_MODE = yes; then
4658 MAINTAINER_MODE_TRUE=
4659 MAINTAINER_MODE_FALSE='#'
4661 MAINTAINER_MODE_TRUE='#'
4662 MAINTAINER_MODE_FALSE=
4665 MAINT=$MAINTAINER_MODE_TRUE
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4677 macro_version='2.4.2'
4678 macro_revision='1.3337'
4692 ltmain="$ac_aux_dir/ltmain.sh"
4694 # Make sure we can run config.sub.
4695 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4696 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4699 $as_echo_n "checking build system type... " >&6; }
4700 if ${ac_cv_build+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 ac_build_alias=$build_alias
4704 test "x$ac_build_alias" = x &&
4705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4706 test "x$ac_build_alias" = x &&
4707 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4708 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4713 $as_echo "$ac_cv_build" >&6; }
4714 case $ac_cv_build in
4716 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4719 ac_save_IFS=$IFS; IFS='-'
4725 # Remember, the first character of IFS is used to create $*,
4726 # except with old shells:
4729 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4733 $as_echo_n "checking host system type... " >&6; }
4734 if ${ac_cv_host+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 if test "x$host_alias" = x; then
4738 ac_cv_host=$ac_cv_build
4740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4746 $as_echo "$ac_cv_host" >&6; }
4749 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4752 ac_save_IFS=$IFS; IFS='-'
4758 # Remember, the first character of IFS is used to create $*,
4759 # except with old shells:
4762 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765 # Backslashify metacharacters that are still active within
4766 # double-quoted strings.
4767 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4769 # Same as above, but do not quote variable references.
4770 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4772 # Sed substitution to delay expansion of an escaped shell variable in a
4773 # double_quote_subst'ed string.
4774 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4776 # Sed substitution to delay expansion of an escaped single quote.
4777 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4779 # Sed substitution to avoid accidental globbing in evaled expressions
4780 no_glob_subst='s/\*/\\\*/g'
4782 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4783 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4784 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4787 $as_echo_n "checking how to print strings... " >&6; }
4788 # Test print first, because it will be a builtin if present.
4789 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4790 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4792 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4795 # Use this function as a fallback that always works.
4796 func_fallback_echo ()
4798 eval 'cat <<_LTECHO_EOF
4802 ECHO='func_fallback_echo'
4805 # func_echo_all arg...
4806 # Invoke $ECHO with all args, space-separated.
4813 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4814 $as_echo "printf" >&6; } ;;
4815 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4816 $as_echo "print -r" >&6; } ;;
4817 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4818 $as_echo "cat" >&6; } ;;
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4835 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4836 if ${ac_cv_path_SED+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4840 for ac_i in 1 2 3 4 5 6 7; do
4841 ac_script="$ac_script$as_nl$ac_script"
4843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4844 { ac_script=; unset ac_script;}
4845 if test -z "$SED"; then
4846 ac_path_SED_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in sed gsed; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4856 as_fn_executable_p "$ac_path_SED" || continue
4857 # Check for GNU ac_path_SED and select it if it is found.
4858 # Check for GNU $ac_path_SED
4859 case `"$ac_path_SED" --version 2>&1` in
4861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4864 $as_echo_n 0123456789 >"conftest.in"
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo '' >> "conftest.nl"
4871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 as_fn_arith $ac_count + 1 && ac_count=$as_val
4874 if test $ac_count -gt ${ac_path_SED_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_SED="$ac_path_SED"
4877 ac_path_SED_max=$ac_count
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4885 $ac_path_SED_found && break 3
4890 if test -z "$ac_cv_path_SED"; then
4891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4899 $as_echo "$ac_cv_path_SED" >&6; }
4900 SED="$ac_cv_path_SED"
4903 test -z "$SED" && SED=sed
4904 Xsed="$SED -e 1s/^X//"
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4917 $as_echo_n "checking for fgrep... " >&6; }
4918 if ${ac_cv_path_FGREP+:} false; then :
4919 $as_echo_n "(cached) " >&6
4921 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4922 then ac_cv_path_FGREP="$GREP -F"
4924 if test -z "$FGREP"; then
4925 ac_path_FGREP_found=false
4926 # Loop through the user's path and test for each of PROGNAME-LIST
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4931 test -z "$as_dir" && as_dir=.
4932 for ac_prog in fgrep; do
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4935 as_fn_executable_p "$ac_path_FGREP" || continue
4936 # Check for GNU ac_path_FGREP and select it if it is found.
4937 # Check for GNU $ac_path_FGREP
4938 case `"$ac_path_FGREP" --version 2>&1` in
4940 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4943 $as_echo_n 0123456789 >"conftest.in"
4946 cat "conftest.in" "conftest.in" >"conftest.tmp"
4947 mv "conftest.tmp" "conftest.in"
4948 cp "conftest.in" "conftest.nl"
4949 $as_echo 'FGREP' >> "conftest.nl"
4950 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4952 as_fn_arith $ac_count + 1 && ac_count=$as_val
4953 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4954 # Best one so far, save it but keep looking for a better one
4955 ac_cv_path_FGREP="$ac_path_FGREP"
4956 ac_path_FGREP_max=$ac_count
4958 # 10*(2^10) chars as input seems more than enough
4959 test $ac_count -gt 10 && break
4961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 $ac_path_FGREP_found && break 3
4969 if test -z "$ac_cv_path_FGREP"; then
4970 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4973 ac_cv_path_FGREP=$FGREP
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4979 $as_echo "$ac_cv_path_FGREP" >&6; }
4980 FGREP="$ac_cv_path_FGREP"
4983 test -z "$GREP" && GREP=grep
5003 # Check whether --with-gnu-ld was given.
5004 if test "${with_gnu_ld+set}" = set; then :
5005 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5011 if test "$GCC" = yes; then
5012 # Check if gcc -print-prog-name=ld gives a path.
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5014 $as_echo_n "checking for ld used by $CC... " >&6; }
5017 # gcc leaves a trailing carriage return which upsets mingw
5018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5023 # Accept absolute paths.
5025 re_direlt='/[^/][^/]*/\.\./'
5026 # Canonicalize the pathname of ld
5027 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5028 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5029 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5031 test -z "$LD" && LD="$ac_prog"
5034 # If it fails, then pretend we aren't using GCC.
5038 # If it is relative, then search for the first ld in PATH.
5042 elif test "$with_gnu_ld" = yes; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5044 $as_echo_n "checking for GNU ld... " >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5047 $as_echo_n "checking for non-GNU ld... " >&6; }
5049 if ${lt_cv_path_LD+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 if test -z "$LD"; then
5053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5054 for ac_dir in $PATH; do
5056 test -z "$ac_dir" && ac_dir=.
5057 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5058 lt_cv_path_LD="$ac_dir/$ac_prog"
5059 # Check to see if the program is GNU ld. I'd rather use --version,
5060 # but apparently some variants of GNU ld only accept -v.
5061 # Break only if it was the GNU/non-GNU ld that we prefer.
5062 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5063 *GNU* | *'with BFD'*)
5064 test "$with_gnu_ld" != no && break
5067 test "$with_gnu_ld" != yes && break
5074 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5079 if test -n "$LD"; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5081 $as_echo "$LD" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5086 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5088 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5089 if ${lt_cv_prog_gnu_ld+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5093 case `$LD -v 2>&1 </dev/null` in
5094 *GNU* | *'with BFD'*)
5095 lt_cv_prog_gnu_ld=yes
5098 lt_cv_prog_gnu_ld=no
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5103 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5104 with_gnu_ld=$lt_cv_prog_gnu_ld
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5115 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5116 if ${lt_cv_path_NM+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$NM"; then
5120 # Let the user override the test.
5123 lt_nm_to_check="${ac_tool_prefix}nm"
5124 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5125 lt_nm_to_check="$lt_nm_to_check nm"
5127 for lt_tmp_nm in $lt_nm_to_check; do
5128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5129 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5131 test -z "$ac_dir" && ac_dir=.
5132 tmp_nm="$ac_dir/$lt_tmp_nm"
5133 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5134 # Check to see if the nm accepts a BSD-compat flag.
5135 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5136 # nm: unknown option "B" ignored
5137 # Tru64's nm complains that /dev/null is an invalid object file
5138 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5139 */dev/null* | *'Invalid file or object type'*)
5140 lt_cv_path_NM="$tmp_nm -B"
5144 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5146 lt_cv_path_NM="$tmp_nm -p"
5150 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5151 continue # so that we can try to find one that supports BSD flags
5160 : ${lt_cv_path_NM=no}
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5164 $as_echo "$lt_cv_path_NM" >&6; }
5165 if test "$lt_cv_path_NM" != "no"; then
5168 # Didn't find any BSD compatible name lister, look for dumpbin.
5169 if test -n "$DUMPBIN"; then :
5170 # Let the user override the test.
5172 if test -n "$ac_tool_prefix"; then
5173 for ac_prog in dumpbin "link -dump"
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_DUMPBIN+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 if test -n "$DUMPBIN"; then
5183 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 DUMPBIN=$ac_cv_prog_DUMPBIN
5203 if test -n "$DUMPBIN"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5205 $as_echo "$DUMPBIN" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 test -n "$DUMPBIN" && break
5215 if test -z "$DUMPBIN"; then
5216 ac_ct_DUMPBIN=$DUMPBIN
5217 for ac_prog in dumpbin "link -dump"
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220 set dummy $ac_prog; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 if test -n "$ac_ct_DUMPBIN"; then
5227 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5236 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5247 if test -n "$ac_ct_DUMPBIN"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5249 $as_echo "$ac_ct_DUMPBIN" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5256 test -n "$ac_ct_DUMPBIN" && break
5259 if test "x$ac_ct_DUMPBIN" = x; then
5262 case $cross_compiling:$ac_tool_warned in
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5266 ac_tool_warned=yes ;;
5268 DUMPBIN=$ac_ct_DUMPBIN
5272 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5274 DUMPBIN="$DUMPBIN -symbols"
5282 if test "$DUMPBIN" != ":"; then
5286 test -z "$NM" && NM=nm
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5294 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5295 if ${lt_cv_nm_interface+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 lt_cv_nm_interface="BSD nm"
5299 echo "int some_variable = 0;" > conftest.$ac_ext
5300 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5301 (eval "$ac_compile" 2>conftest.err)
5302 cat conftest.err >&5
5303 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5304 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5305 cat conftest.err >&5
5306 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5307 cat conftest.out >&5
5308 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5309 lt_cv_nm_interface="MS dumpbin"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5314 $as_echo "$lt_cv_nm_interface" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5317 $as_echo_n "checking whether ln -s works... " >&6; }
5319 if test "$LN_S" = "ln -s"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5324 $as_echo "no, using $LN_S" >&6; }
5327 # find the maximum length of command line arguments
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5329 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5330 if ${lt_cv_sys_max_cmd_len+:} false; then :
5331 $as_echo_n "(cached) " >&6
5338 # On DJGPP, this test can blow up pretty badly due to problems in libc
5339 # (any single argument exceeding 2000 bytes causes a buffer overrun
5340 # during glob expansion). Even if it were fixed, the result of this
5341 # check would be larger than it should be.
5342 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5346 # Under GNU Hurd, this test is not required because there is
5347 # no limit to the length of command line arguments.
5348 # Libtool will interpret -1 as no limit whatsoever
5349 lt_cv_sys_max_cmd_len=-1;
5352 cygwin* | mingw* | cegcc*)
5353 # On Win9x/ME, this test blows up -- it succeeds, but takes
5354 # about 5 minutes as the teststring grows exponentially.
5355 # Worse, since 9x/ME are not pre-emptively multitasking,
5356 # you end up with a "frozen" computer, even though with patience
5357 # the test eventually succeeds (with a max line length of 256k).
5358 # Instead, let's just punt: use the minimum linelength reported by
5359 # all of the supported platforms: 8192 (on NT/2K/XP).
5360 lt_cv_sys_max_cmd_len=8192;
5364 # On MiNT this can take a long time and run out of memory.
5365 lt_cv_sys_max_cmd_len=8192;
5369 # On AmigaOS with pdksh, this test takes hours, literally.
5370 # So we just punt and use a minimum line length of 8192.
5371 lt_cv_sys_max_cmd_len=8192;
5374 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5375 # This has been around since 386BSD, at least. Likely further.
5376 if test -x /sbin/sysctl; then
5377 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5378 elif test -x /usr/sbin/sysctl; then
5379 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5381 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5383 # And add a safety zone
5384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5389 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5390 lt_cv_sys_max_cmd_len=196608
5394 # The test takes a long time on OS/2.
5395 lt_cv_sys_max_cmd_len=8192
5399 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5400 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5401 # nice to cause kernel panics so lets avoid the loop below.
5402 # First set a reasonable default.
5403 lt_cv_sys_max_cmd_len=16384
5405 if test -x /sbin/sysconfig; then
5406 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5407 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5412 lt_cv_sys_max_cmd_len=102400
5414 sysv5* | sco5v6* | sysv4.2uw2*)
5415 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5416 if test -n "$kargmax"; then
5417 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5419 lt_cv_sys_max_cmd_len=32768
5423 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5424 if test -n "$lt_cv_sys_max_cmd_len"; then
5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5428 # Make teststring a little bigger before we do anything with it.
5429 # a 1K string should be a reasonable start.
5430 for i in 1 2 3 4 5 6 7 8 ; do
5431 teststring=$teststring$teststring
5433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434 # If test is not a shell built-in, we'll probably end up computing a
5435 # maximum length that is only half of the actual maximum length, but
5437 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5438 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5439 test $i != 17 # 1/2 MB should be enough
5442 teststring=$teststring$teststring
5444 # Only check the string length outside the loop.
5445 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5447 # Add a significant safety factor because C++ compilers can tack on
5448 # massive amounts of additional arguments before passing them to the
5449 # linker. It appears as though 1/2 is a usable value.
5450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5459 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5462 $as_echo "none" >&6; }
5464 max_cmd_len=$lt_cv_sys_max_cmd_len
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5476 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5477 # Try some XSI features
5480 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5482 && eval 'test $(( 1 + 1 )) -eq 2 \
5483 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5486 $as_echo "$xsi_shell" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5490 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5492 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5494 && lt_shell_append=yes
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5496 $as_echo "$lt_shell_append" >&6; }
5499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5509 # test EBCDIC or ASCII
5510 case `echo X|tr X '\101'` in
5511 A) # ASCII based system
5512 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5513 lt_SP2NL='tr \040 \012'
5514 lt_NL2SP='tr \015\012 \040\040'
5516 *) # EBCDIC based system
5517 lt_SP2NL='tr \100 \n'
5518 lt_NL2SP='tr \r\n \100\100'
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5531 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5532 if ${lt_cv_to_host_file_cmd+:} false; then :
5533 $as_echo_n "(cached) " >&6
5538 *-*-mingw* ) # actually msys
5539 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5542 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5544 * ) # otherwise, assume *nix
5545 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5551 *-*-mingw* ) # actually msys
5552 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5555 lt_cv_to_host_file_cmd=func_convert_file_noop
5557 * ) # otherwise, assume *nix
5558 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5562 * ) # unhandled hosts (and "normal" native builds)
5563 lt_cv_to_host_file_cmd=func_convert_file_noop
5569 to_host_file_cmd=$lt_cv_to_host_file_cmd
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5571 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5578 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5579 if ${lt_cv_to_tool_file_cmd+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 #assume ordinary cross tools, or native build.
5583 lt_cv_to_tool_file_cmd=func_convert_file_noop
5587 *-*-mingw* ) # actually msys
5588 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5596 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5598 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5605 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5606 if ${lt_cv_ld_reload_flag+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 lt_cv_ld_reload_flag='-r'
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5612 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5613 reload_flag=$lt_cv_ld_reload_flag
5614 case $reload_flag in
5616 *) reload_flag=" $reload_flag" ;;
5618 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5620 cygwin* | mingw* | pw32* | cegcc*)
5621 if test "$GCC" != yes; then
5626 if test "$GCC" = yes; then
5627 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5642 if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5644 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_prog_OBJDUMP+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 if test -n "$OBJDUMP"; then
5651 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 OBJDUMP=$ac_cv_prog_OBJDUMP
5671 if test -n "$OBJDUMP"; then
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5673 $as_echo "$OBJDUMP" >&6; }
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676 $as_echo "no" >&6; }
5681 if test -z "$ac_cv_prog_OBJDUMP"; then
5682 ac_ct_OBJDUMP=$OBJDUMP
5683 # Extract the first word of "objdump", so it can be a program name with args.
5684 set dummy objdump; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 if test -n "$ac_ct_OBJDUMP"; then
5691 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5711 if test -n "$ac_ct_OBJDUMP"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5713 $as_echo "$ac_ct_OBJDUMP" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5719 if test "x$ac_ct_OBJDUMP" = x; then
5722 case $cross_compiling:$ac_tool_warned in
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726 ac_tool_warned=yes ;;
5728 OBJDUMP=$ac_ct_OBJDUMP
5731 OBJDUMP="$ac_cv_prog_OBJDUMP"
5734 test -z "$OBJDUMP" && OBJDUMP=objdump
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5742 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5743 if ${lt_cv_deplibs_check_method+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 lt_cv_file_magic_cmd='$MAGIC_CMD'
5747 lt_cv_file_magic_test_file=
5748 lt_cv_deplibs_check_method='unknown'
5749 # Need to set the preceding variable on all platforms that support
5750 # interlibrary dependencies.
5751 # 'none' -- dependencies not supported.
5752 # `unknown' -- same as none, but documents that we really don't know.
5753 # 'pass_all' -- all dependencies passed with no checks.
5754 # 'test_compile' -- check by making test program.
5755 # 'file_magic [[regex]]' -- check by looking for files in library path
5756 # which responds to the $file_magic_cmd with a given extended regex.
5757 # If you have `file' or equivalent on your system and you're not sure
5758 # whether `pass_all' will *always* work, you probably want this one.
5762 lt_cv_deplibs_check_method=pass_all
5766 lt_cv_deplibs_check_method=pass_all
5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5771 lt_cv_file_magic_cmd='/usr/bin/file -L'
5772 lt_cv_file_magic_test_file=/shlib/libc.so
5776 # func_win32_libid is a shell function defined in ltmain.sh
5777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5778 lt_cv_file_magic_cmd='func_win32_libid'
5782 # Base MSYS/MinGW do not provide the 'file' command needed by
5783 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5784 # unless we find 'file', for example because we are cross-compiling.
5785 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5786 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5788 lt_cv_file_magic_cmd='func_win32_libid'
5790 # Keep this pattern in sync with the one in func_win32_libid.
5791 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5792 lt_cv_file_magic_cmd='$OBJDUMP -f'
5797 # use the weaker test based on 'objdump'. See mingw*.
5798 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5799 lt_cv_file_magic_cmd='$OBJDUMP -f'
5802 darwin* | rhapsody*)
5803 lt_cv_deplibs_check_method=pass_all
5806 freebsd* | dragonfly*)
5807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5810 # Not sure whether the presence of OpenBSD here was a mistake.
5811 # Let's accept both of them until this is cleared up.
5812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5813 lt_cv_file_magic_cmd=/usr/bin/file
5814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5818 lt_cv_deplibs_check_method=pass_all
5823 lt_cv_deplibs_check_method=pass_all
5826 hpux10.20* | hpux11*)
5827 lt_cv_file_magic_cmd=/usr/bin/file
5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5834 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]'
5835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5849 irix5* | irix6* | nonstopux*)
5851 *-32|*"-32 ") libmagic=32-bit;;
5852 *-n32|*"-n32 ") libmagic=N32;;
5853 *-64|*"-64 ") libmagic=64-bit;;
5854 *) libmagic=never-match;;
5856 lt_cv_deplibs_check_method=pass_all
5859 # This must be glibc/ELF.
5860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5861 lt_cv_deplibs_check_method=pass_all
5864 netbsd* | netbsdelf*-gnu)
5865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5874 lt_cv_file_magic_cmd=/usr/bin/file
5875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5879 lt_cv_deplibs_check_method=pass_all
5883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5890 osf3* | osf4* | osf5*)
5891 lt_cv_deplibs_check_method=pass_all
5895 lt_cv_deplibs_check_method=pass_all
5899 lt_cv_deplibs_check_method=pass_all
5902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5903 lt_cv_deplibs_check_method=pass_all
5907 case $host_vendor in
5909 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]'
5910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5913 lt_cv_deplibs_check_method=pass_all
5916 lt_cv_file_magic_cmd='/bin/file'
5917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5920 lt_cv_file_magic_cmd='/bin/file'
5921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5922 lt_cv_file_magic_test_file=/lib/libc.so
5925 lt_cv_deplibs_check_method=pass_all
5928 lt_cv_deplibs_check_method=pass_all
5934 lt_cv_deplibs_check_method=pass_all
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5940 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5944 if test "$build" = "$host"; then
5947 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5950 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5956 file_magic_cmd=$lt_cv_file_magic_cmd
5957 deplibs_check_method=$lt_cv_deplibs_check_method
5958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if ${ac_cv_prog_DLLTOOL+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 if test -n "$DLLTOOL"; then
5990 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 DLLTOOL=$ac_cv_prog_DLLTOOL
6010 if test -n "$DLLTOOL"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6012 $as_echo "$DLLTOOL" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6020 if test -z "$ac_cv_prog_DLLTOOL"; then
6021 ac_ct_DLLTOOL=$DLLTOOL
6022 # Extract the first word of "dlltool", so it can be a program name with args.
6023 set dummy dlltool; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6027 $as_echo_n "(cached) " >&6
6029 if test -n "$ac_ct_DLLTOOL"; then
6030 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6050 if test -n "$ac_ct_DLLTOOL"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6052 $as_echo "$ac_ct_DLLTOOL" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6058 if test "x$ac_ct_DLLTOOL" = x; then
6061 case $cross_compiling:$ac_tool_warned in
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6067 DLLTOOL=$ac_ct_DLLTOOL
6070 DLLTOOL="$ac_cv_prog_DLLTOOL"
6073 test -z "$DLLTOOL" && DLLTOOL=dlltool
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6082 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6083 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6084 $as_echo_n "(cached) " >&6
6086 lt_cv_sharedlib_from_linklib_cmd='unknown'
6089 cygwin* | mingw* | pw32* | cegcc*)
6090 # two different shell functions defined in ltmain.sh
6091 # decide which to use based on capabilities of $DLLTOOL
6092 case `$DLLTOOL --help 2>&1` in
6093 *--identify-strict*)
6094 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6097 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6102 # fallback: assume linklib IS sharedlib
6103 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6109 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6110 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6111 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6119 if test -n "$ac_tool_prefix"; then
6122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6123 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_AR+:} false; then :
6127 $as_echo_n "(cached) " >&6
6129 if test -n "$AR"; then
6130 ac_cv_prog_AR="$AR" # Let the user override the test.
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 test -z "$as_dir" && as_dir=.
6137 for ac_exec_ext in '' $ac_executable_extensions; do
6138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 if test -n "$AR"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6152 $as_echo "$AR" >&6; }
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6159 test -n "$AR" && break
6162 if test -z "$AR"; then
6166 # Extract the first word of "$ac_prog", so it can be a program name with args.
6167 set dummy $ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$ac_ct_AR"; then
6174 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_ac_ct_AR="$ac_prog"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6194 if test -n "$ac_ct_AR"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6196 $as_echo "$ac_ct_AR" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6203 test -n "$ac_ct_AR" && break
6206 if test "x$ac_ct_AR" = x; then
6209 case $cross_compiling:$ac_tool_warned in
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6233 $as_echo_n "checking for archiver @FILE support... " >&6; }
6234 if ${lt_cv_ar_at_file+:} false; then :
6235 $as_echo_n "(cached) " >&6
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 echo conftest.$ac_objext > conftest.lst
6251 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6253 (eval $lt_ar_try) 2>&5
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }
6257 if test "$ac_status" -eq 0; then
6258 # Ensure the archiver fails upon bogus file names.
6259 rm -f conftest.$ac_objext libconftest.a
6260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6261 (eval $lt_ar_try) 2>&5
6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264 test $ac_status = 0; }
6265 if test "$ac_status" -ne 0; then
6269 rm -f conftest.* libconftest.a
6272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6276 $as_echo "$lt_cv_ar_at_file" >&6; }
6278 if test "x$lt_cv_ar_at_file" = xno; then
6281 archiver_list_spec=$lt_cv_ar_at_file
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6292 set dummy ${ac_tool_prefix}strip; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_prog_STRIP+:} false; then :
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$STRIP"; then
6299 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 STRIP=$ac_cv_prog_STRIP
6319 if test -n "$STRIP"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6321 $as_echo "$STRIP" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324 $as_echo "no" >&6; }
6329 if test -z "$ac_cv_prog_STRIP"; then
6331 # Extract the first word of "strip", so it can be a program name with args.
6332 set dummy strip; 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_STRIP+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 if test -n "$ac_ct_STRIP"; then
6339 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6359 if test -n "$ac_ct_STRIP"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6361 $as_echo "$ac_ct_STRIP" >&6; }
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6367 if test "x$ac_ct_STRIP" = x; then
6370 case $cross_compiling:$ac_tool_warned in
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374 ac_tool_warned=yes ;;
6379 STRIP="$ac_cv_prog_STRIP"
6382 test -z "$STRIP" && STRIP=:
6389 if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if ${ac_cv_prog_RANLIB+:} false; then :
6395 $as_echo_n "(cached) " >&6
6397 if test -n "$RANLIB"; then
6398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 test -z "$as_dir" && as_dir=.
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 RANLIB=$ac_cv_prog_RANLIB
6418 if test -n "$RANLIB"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6420 $as_echo "$RANLIB" >&6; }
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423 $as_echo "no" >&6; }
6428 if test -z "$ac_cv_prog_RANLIB"; then
6429 ac_ct_RANLIB=$RANLIB
6430 # Extract the first word of "ranlib", so it can be a program name with args.
6431 set dummy ranlib; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if test -n "$ac_ct_RANLIB"; then
6438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447 ac_cv_prog_ac_ct_RANLIB="ranlib"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6458 if test -n "$ac_ct_RANLIB"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6460 $as_echo "$ac_ct_RANLIB" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6466 if test "x$ac_ct_RANLIB" = x; then
6469 case $cross_compiling:$ac_tool_warned in
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6475 RANLIB=$ac_ct_RANLIB
6478 RANLIB="$ac_cv_prog_RANLIB"
6481 test -z "$RANLIB" && RANLIB=:
6488 # Determine commands to create old-style static archives.
6489 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6490 old_postinstall_cmds='chmod 644 $oldlib'
6491 old_postuninstall_cmds=
6493 if test -n "$RANLIB"; then
6496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6502 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6507 lock_old_archive_extraction=yes ;;
6509 lock_old_archive_extraction=no ;;
6550 # If no C compiler was specified, use CC.
6553 # If no C compiler flags were specified, use CFLAGS.
6554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6556 # Allow CC to be a program name with arguments.
6560 # Check for command to grab the raw symbol name followed by C symbol from nm.
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6562 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6563 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6564 $as_echo_n "(cached) " >&6
6567 # These are sane defaults that work on at least a few old systems.
6568 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6570 # Character class describing NM global symbol codes.
6571 symcode='[BCDEGRST]'
6573 # Regexp to match symbols that can be accessed directly from C.
6574 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6576 # Define system-specific variables.
6581 cygwin* | mingw* | pw32* | cegcc*)
6582 symcode='[ABCDGISTW]'
6585 if test "$host_cpu" = ia64; then
6586 symcode='[ABCDEGRST]'
6590 symcode='[BCDEGRST]'
6593 symcode='[BCDEGQRST]'
6604 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6612 # If we're using GNU nm, then use its standard symbol codes.
6613 case `$NM -V 2>&1` in
6614 *GNU* | *'with BFD'*)
6615 symcode='[ABCDGIRSTW]' ;;
6618 # Transform an extracted symbol line into a proper C declaration.
6619 # Some systems (esp. on ia64) link data and code symbols differently,
6620 # so use this general approach.
6621 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6623 # Transform an extracted symbol line into symbol name and symbol address
6624 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6625 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'"
6627 # Handle CRLF in mingw tool chain
6631 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6635 # Try without a prefix underscore, then with it.
6636 for ac_symprfx in "" "_"; do
6638 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6639 symxfrm="\\1 $ac_symprfx\\2 \\2"
6641 # Write the raw and C identifiers.
6642 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6643 # Fake it for dumpbin and say T for any non-static function
6644 # and D for any global variable.
6645 # Also find C++ and __fastcall symbols from MSVC++,
6646 # which start with @ or ?.
6647 lt_cv_sys_global_symbol_pipe="$AWK '"\
6648 " {last_section=section; section=\$ 3};"\
6649 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6650 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6651 " \$ 0!~/External *\|/{next};"\
6652 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6653 " {if(hide[section]) next};"\
6654 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6655 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6656 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6657 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6658 " ' prfx=^$ac_symprfx"
6660 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6662 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6664 # Check to see that the pipe works correctly.
6668 cat > conftest.$ac_ext <<_LT_EOF
6673 void nm_test_func(void);
6674 void nm_test_func(void){}
6678 int main(){nm_test_var='a';nm_test_func();return(0);}
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 # Now try to grab the symbols.
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6689 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s "$nlist"; then
6693 # Try sorting and uniquifying the output.
6694 if sort "$nlist" | uniq > "$nlist"T; then
6695 mv -f "$nlist"T "$nlist"
6700 # Make sure that we snagged all the symbols we need.
6701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6703 cat <<_LT_EOF > conftest.$ac_ext
6704 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6705 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6706 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6707 relocations are performed -- see ld's documentation on pseudo-relocs. */
6708 # define LT_DLSYM_CONST
6709 #elif defined(__osf__)
6710 /* This system does not cope well with relocations in const data. */
6711 # define LT_DLSYM_CONST
6713 # define LT_DLSYM_CONST const
6721 # Now generate the symbol file.
6722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6724 cat <<_LT_EOF >> conftest.$ac_ext
6726 /* The mapping between symbol names and symbols. */
6727 LT_DLSYM_CONST struct {
6731 lt__PROGRAM__LTX_preloaded_symbols[] =
6733 { "@PROGRAM@", (void *) 0 },
6735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6736 cat <<\_LT_EOF >> conftest.$ac_ext
6740 /* This works around a problem in FreeBSD linker */
6741 #ifdef FREEBSD_WORKAROUND
6742 static const void *lt_preloaded_setup() {
6743 return lt__PROGRAM__LTX_preloaded_symbols;
6751 # Now try linking the two files.
6752 mv conftest.$ac_objext conftstm.$ac_objext
6753 lt_globsym_save_LIBS=$LIBS
6754 lt_globsym_save_CFLAGS=$CFLAGS
6755 LIBS="conftstm.$ac_objext"
6756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6758 (eval $ac_link) 2>&5
6760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6764 LIBS=$lt_globsym_save_LIBS
6765 CFLAGS=$lt_globsym_save_CFLAGS
6767 echo "cannot find nm_test_func in $nlist" >&5
6770 echo "cannot find nm_test_var in $nlist" >&5
6773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6776 echo "$progname: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 rm -rf conftest* conftst*
6781 # Do not use the global_symbol_pipe unless it works.
6782 if test "$pipe_works" = yes; then
6785 lt_cv_sys_global_symbol_pipe=
6791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6792 lt_cv_sys_global_symbol_to_cdecl=
6794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6796 $as_echo "failed" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6799 $as_echo "ok" >&6; }
6802 # Response file support.
6803 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6804 nm_file_list_spec='@'
6805 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6806 nm_file_list_spec='@'
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6836 $as_echo_n "checking for sysroot... " >&6; }
6838 # Check whether --with-sysroot was given.
6839 if test "${with_sysroot+set}" = set; then :
6840 withval=$with_sysroot;
6847 case ${with_sysroot} in #(
6849 if test "$GCC" = yes; then
6850 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6854 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6860 $as_echo "${with_sysroot}" >&6; }
6861 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6866 $as_echo "${lt_sysroot:-no}" >&6; }
6872 # Check whether --enable-libtool-lock was given.
6873 if test "${enable_libtool_lock+set}" = set; then :
6874 enableval=$enable_libtool_lock;
6877 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6879 # Some flags need to be propagated to the compiler or linker for good
6883 # Find out which ABI we are using.
6884 echo 'int i;' > conftest.$ac_ext
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886 (eval $ac_compile) 2>&5
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; }; then
6890 case `/usr/bin/file conftest.$ac_objext` in
6902 # Find out which ABI we are using.
6903 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905 (eval $ac_compile) 2>&5
6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908 test $ac_status = 0; }; then
6909 if test "$lt_cv_prog_gnu_ld" = yes; then
6910 case `/usr/bin/file conftest.$ac_objext` in
6912 LD="${LD-ld} -melf32bsmip"
6915 LD="${LD-ld} -melf32bmipn32"
6918 LD="${LD-ld} -melf64bmip"
6922 case `/usr/bin/file conftest.$ac_objext` in
6938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6940 # Find out which ABI we are using.
6941 echo 'int i;' > conftest.$ac_ext
6942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943 (eval $ac_compile) 2>&5
6945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946 test $ac_status = 0; }; then
6947 case `/usr/bin/file conftest.o` in
6950 x86_64-*kfreebsd*-gnu)
6951 LD="${LD-ld} -m elf_i386_fbsd"
6954 LD="${LD-ld} -m elf_i386"
6956 ppc64-*linux*|powerpc64-*linux*)
6957 LD="${LD-ld} -m elf32ppclinux"
6960 LD="${LD-ld} -m elf_s390"
6963 LD="${LD-ld} -m elf32_sparc"
6969 x86_64-*kfreebsd*-gnu)
6970 LD="${LD-ld} -m elf_x86_64_fbsd"
6973 LD="${LD-ld} -m elf_x86_64"
6975 ppc*-*linux*|powerpc*-*linux*)
6976 LD="${LD-ld} -m elf64ppc"
6978 s390*-*linux*|s390*-*tpf*)
6979 LD="${LD-ld} -m elf64_s390"
6982 LD="${LD-ld} -m elf64_sparc"
6992 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993 SAVE_CFLAGS="$CFLAGS"
6994 CFLAGS="$CFLAGS -belf"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6997 if ${lt_cv_cc_needs_belf+:} false; then :
6998 $as_echo_n "(cached) " >&6
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 lt_cv_cc_needs_belf=yes
7020 lt_cv_cc_needs_belf=no
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7032 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035 CFLAGS="$SAVE_CFLAGS"
7039 # Find out which ABI we are using.
7040 echo 'int i;' > conftest.$ac_ext
7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042 (eval $ac_compile) 2>&5
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }; then
7046 case `/usr/bin/file conftest.o` in
7048 case $lt_cv_prog_gnu_ld in
7052 LD="${LD-ld} -m elf_x86_64"
7055 LD="${LD-ld} -m elf64_sparc"
7058 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7059 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7076 need_locks="$enable_libtool_lock"
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}mt; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$MANIFEST_TOOL"; then
7087 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7107 if test -n "$MANIFEST_TOOL"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7109 $as_echo "$MANIFEST_TOOL" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7118 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7119 # Extract the first word of "mt", so it can be a program name with args.
7120 set dummy mt; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$ac_ct_MANIFEST_TOOL"; then
7127 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7147 if test -n "$ac_ct_MANIFEST_TOOL"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7149 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7158 case $cross_compiling:$ac_tool_warned in
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7164 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7167 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7170 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7172 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7173 if ${lt_cv_path_mainfest_tool+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 lt_cv_path_mainfest_tool=no
7177 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7178 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7179 cat conftest.err >&5
7180 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7181 lt_cv_path_mainfest_tool=yes
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7186 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7187 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7197 rhapsody* | darwin*)
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 if test -n "$DSYMUTIL"; then
7207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7227 if test -n "$DSYMUTIL"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7229 $as_echo "$DSYMUTIL" >&6; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7237 if test -z "$ac_cv_prog_DSYMUTIL"; then
7238 ac_ct_DSYMUTIL=$DSYMUTIL
7239 # Extract the first word of "dsymutil", so it can be a program name with args.
7240 set dummy dsymutil; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 if test -n "$ac_ct_DSYMUTIL"; then
7247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7267 if test -n "$ac_ct_DSYMUTIL"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7269 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7275 if test "x$ac_ct_DSYMUTIL" = x; then
7278 case $cross_compiling:$ac_tool_warned in
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7284 DSYMUTIL=$ac_ct_DSYMUTIL
7287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_NMEDIT+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$NMEDIT"; then
7299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 NMEDIT=$ac_cv_prog_NMEDIT
7319 if test -n "$NMEDIT"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7321 $as_echo "$NMEDIT" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_NMEDIT"; then
7330 ac_ct_NMEDIT=$NMEDIT
7331 # Extract the first word of "nmedit", so it can be a program name with args.
7332 set dummy nmedit; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$ac_ct_NMEDIT"; then
7339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7359 if test -n "$ac_ct_NMEDIT"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7361 $as_echo "$ac_ct_NMEDIT" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_NMEDIT" = x; then
7370 case $cross_compiling:$ac_tool_warned in
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7376 NMEDIT=$ac_ct_NMEDIT
7379 NMEDIT="$ac_cv_prog_NMEDIT"
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_LIPO+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 if test -n "$LIPO"; then
7391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 LIPO=$ac_cv_prog_LIPO
7411 if test -n "$LIPO"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7413 $as_echo "$LIPO" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7421 if test -z "$ac_cv_prog_LIPO"; then
7423 # Extract the first word of "lipo", so it can be a program name with args.
7424 set dummy lipo; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 if test -n "$ac_ct_LIPO"; then
7431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_ac_ct_LIPO="lipo"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7451 if test -n "$ac_ct_LIPO"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7453 $as_echo "$ac_ct_LIPO" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7459 if test "x$ac_ct_LIPO" = x; then
7462 case $cross_compiling:$ac_tool_warned in
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7471 LIPO="$ac_cv_prog_LIPO"
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_OTOOL+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 if test -n "$OTOOL"; then
7483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 OTOOL=$ac_cv_prog_OTOOL
7503 if test -n "$OTOOL"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7505 $as_echo "$OTOOL" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_OTOOL"; then
7515 # Extract the first word of "otool", so it can be a program name with args.
7516 set dummy otool; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 if test -n "$ac_ct_OTOOL"; then
7523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532 ac_cv_prog_ac_ct_OTOOL="otool"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7543 if test -n "$ac_ct_OTOOL"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7545 $as_echo "$ac_ct_OTOOL" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_OTOOL" = x; then
7554 case $cross_compiling:$ac_tool_warned in
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7563 OTOOL="$ac_cv_prog_OTOOL"
7566 if test -n "$ac_tool_prefix"; then
7567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7568 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_OTOOL64+:} false; then :
7572 $as_echo_n "(cached) " >&6
7574 if test -n "$OTOOL64"; then
7575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 OTOOL64=$ac_cv_prog_OTOOL64
7595 if test -n "$OTOOL64"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7597 $as_echo "$OTOOL64" >&6; }
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7605 if test -z "$ac_cv_prog_OTOOL64"; then
7606 ac_ct_OTOOL64=$OTOOL64
7607 # Extract the first word of "otool64", so it can be a program name with args.
7608 set dummy otool64; ac_word=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$ac_ct_OTOOL64"; then
7615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_ac_ct_OTOOL64="otool64"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7635 if test -n "$ac_ct_OTOOL64"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7637 $as_echo "$ac_ct_OTOOL64" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7643 if test "x$ac_ct_OTOOL64" = x; then
7646 case $cross_compiling:$ac_tool_warned in
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7650 ac_tool_warned=yes ;;
7652 OTOOL64=$ac_ct_OTOOL64
7655 OTOOL64="$ac_cv_prog_OTOOL64"
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7685 $as_echo_n "checking for -single_module linker flag... " >&6; }
7686 if ${lt_cv_apple_cc_single_mod+:} false; then :
7687 $as_echo_n "(cached) " >&6
7689 lt_cv_apple_cc_single_mod=no
7690 if test -z "${LT_MULTI_MODULE}"; then
7691 # By default we will add the -single_module flag. You can override
7692 # by either setting the environment variable LT_MULTI_MODULE
7693 # non-empty at configure time, or by adding -multi_module to the
7695 rm -rf libconftest.dylib*
7696 echo "int foo(void){return 1;}" > conftest.c
7697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7698 -dynamiclib -Wl,-single_module conftest.c" >&5
7699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7702 # If there is a non-empty error log, and "single_module"
7703 # appears in it, assume the flag caused a linker warning
7704 if test -s conftest.err && $GREP single_module conftest.err; then
7705 cat conftest.err >&5
7706 # Otherwise, if the output was created with a 0 exit code from
7707 # the compiler, it worked.
7708 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7709 lt_cv_apple_cc_single_mod=yes
7711 cat conftest.err >&5
7713 rm -rf libconftest.dylib*
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7718 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7721 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7722 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 lt_cv_ld_exported_symbols_list=no
7726 save_LDFLAGS=$LDFLAGS
7727 echo "_main" > conftest.sym
7728 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7740 if ac_fn_c_try_link "$LINENO"; then :
7741 lt_cv_ld_exported_symbols_list=yes
7743 lt_cv_ld_exported_symbols_list=no
7745 rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 LDFLAGS="$save_LDFLAGS"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7751 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7754 $as_echo_n "checking for -force_load linker flag... " >&6; }
7755 if ${lt_cv_ld_force_load+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 lt_cv_ld_force_load=no
7759 cat > conftest.c << _LT_EOF
7760 int forced_loaded() { return 2;}
7762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7764 echo "$AR cru libconftest.a conftest.o" >&5
7765 $AR cru libconftest.a conftest.o 2>&5
7766 echo "$RANLIB libconftest.a" >&5
7767 $RANLIB libconftest.a 2>&5
7768 cat > conftest.c << _LT_EOF
7769 int main() { return 0;}
7771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7774 if test -s conftest.err && $GREP force_load conftest.err; then
7775 cat conftest.err >&5
7776 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7777 lt_cv_ld_force_load=yes
7779 cat conftest.err >&5
7781 rm -f conftest.err libconftest.a conftest conftest.c
7782 rm -rf conftest.dSYM
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7786 $as_echo "$lt_cv_ld_force_load" >&6; }
7788 rhapsody* | darwin1.[012])
7789 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7791 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7792 darwin*) # darwin 5.x on
7793 # if running on 10.5 or later, the deployment target defaults
7794 # to the OS version, if on x86, and 10.4, the deployment
7795 # target defaults to 10.4. Don't you love it?
7796 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7797 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7800 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7802 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7806 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7807 _lt_dar_single_mod='$single_module'
7809 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7810 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7812 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7814 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7815 _lt_dsymutil='~$DSYMUTIL $lib || :'
7822 for ac_header in dlfcn.h
7824 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7826 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7827 cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DLFCN_H 1
7841 # Check whether --enable-static was given.
7842 if test "${enable_static+set}" = set; then :
7843 enableval=$enable_static; p=${PACKAGE-default}
7845 yes) enable_static=yes ;;
7846 no) enable_static=no ;;
7849 # Look at the argument we got. We use all the common list separators.
7850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7851 for pkg in $enableval; do
7853 if test "X$pkg" = "X$p"; then
7870 enable_win32_dll=yes
7873 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}as; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_AS+:} false; then :
7880 $as_echo_n "(cached) " >&6
7882 if test -n "$AS"; then
7883 ac_cv_prog_AS="$AS" # Let the user override the test.
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_AS="${ac_tool_prefix}as"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 if test -n "$AS"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7905 $as_echo "$AS" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7913 if test -z "$ac_cv_prog_AS"; then
7915 # Extract the first word of "as", so it can be a program name with args.
7916 set dummy as; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7920 $as_echo_n "(cached) " >&6
7922 if test -n "$ac_ct_AS"; then
7923 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_prog_ac_ct_AS="as"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7943 if test -n "$ac_ct_AS"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7945 $as_echo "$ac_ct_AS" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7951 if test "x$ac_ct_AS" = x; then
7954 case $cross_compiling:$ac_tool_warned in
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7966 if test -n "$ac_tool_prefix"; then
7967 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7968 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_DLLTOOL+:} false; then :
7972 $as_echo_n "(cached) " >&6
7974 if test -n "$DLLTOOL"; then
7975 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 DLLTOOL=$ac_cv_prog_DLLTOOL
7995 if test -n "$DLLTOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7997 $as_echo "$DLLTOOL" >&6; }
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8005 if test -z "$ac_cv_prog_DLLTOOL"; then
8006 ac_ct_DLLTOOL=$DLLTOOL
8007 # Extract the first word of "dlltool", so it can be a program name with args.
8008 set dummy dlltool; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 if test -n "$ac_ct_DLLTOOL"; then
8015 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8035 if test -n "$ac_ct_DLLTOOL"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8037 $as_echo "$ac_ct_DLLTOOL" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8043 if test "x$ac_ct_DLLTOOL" = x; then
8046 case $cross_compiling:$ac_tool_warned in
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050 ac_tool_warned=yes ;;
8052 DLLTOOL=$ac_ct_DLLTOOL
8055 DLLTOOL="$ac_cv_prog_DLLTOOL"
8058 if test -n "$ac_tool_prefix"; then
8059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_OBJDUMP+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -n "$OBJDUMP"; then
8067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 OBJDUMP=$ac_cv_prog_OBJDUMP
8087 if test -n "$OBJDUMP"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8089 $as_echo "$OBJDUMP" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8097 if test -z "$ac_cv_prog_OBJDUMP"; then
8098 ac_ct_OBJDUMP=$OBJDUMP
8099 # Extract the first word of "objdump", so it can be a program name with args.
8100 set dummy objdump; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8104 $as_echo_n "(cached) " >&6
8106 if test -n "$ac_ct_OBJDUMP"; then
8107 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8127 if test -n "$ac_ct_OBJDUMP"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8129 $as_echo "$ac_ct_OBJDUMP" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8135 if test "x$ac_ct_OBJDUMP" = x; then
8138 case $cross_compiling:$ac_tool_warned in
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8144 OBJDUMP=$ac_ct_OBJDUMP
8147 OBJDUMP="$ac_cv_prog_OBJDUMP"
8153 test -z "$AS" && AS=as
8159 test -z "$DLLTOOL" && DLLTOOL=dlltool
8165 test -z "$OBJDUMP" && OBJDUMP=objdump
8175 # Check whether --enable-shared was given.
8176 if test "${enable_shared+set}" = set; then :
8177 enableval=$enable_shared; p=${PACKAGE-default}
8179 yes) enable_shared=yes ;;
8180 no) enable_shared=no ;;
8183 # Look at the argument we got. We use all the common list separators.
8184 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8185 for pkg in $enableval; do
8187 if test "X$pkg" = "X$p"; then
8208 # Check whether --with-pic was given.
8209 if test "${with_pic+set}" = set; then :
8210 withval=$with_pic; lt_p=${PACKAGE-default}
8212 yes|no) pic_mode=$withval ;;
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217 for lt_pkg in $withval; do
8219 if test "X$lt_pkg" = "X$lt_p"; then
8231 test -z "$pic_mode" && pic_mode=default
8239 # Check whether --enable-fast-install was given.
8240 if test "${enable_fast_install+set}" = set; then :
8241 enableval=$enable_fast_install; p=${PACKAGE-default}
8243 yes) enable_fast_install=yes ;;
8244 no) enable_fast_install=no ;;
8246 enable_fast_install=no
8247 # Look at the argument we got. We use all the common list separators.
8248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8249 for pkg in $enableval; do
8251 if test "X$pkg" = "X$p"; then
8252 enable_fast_install=yes
8259 enable_fast_install=yes
8272 # This can be used to rebuild libtool when needed
8273 LIBTOOL_DEPS="$ltmain"
8275 # Always use our own libtool.
8276 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8307 test -z "$LN_S" && LN_S="ln -s"
8322 if test -n "${ZSH_VERSION+set}" ; then
8323 setopt NO_GLOB_SUBST
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8327 $as_echo_n "checking for objdir... " >&6; }
8328 if ${lt_cv_objdir+:} false; then :
8329 $as_echo_n "(cached) " >&6
8331 rm -f .libs 2>/dev/null
8332 mkdir .libs 2>/dev/null
8333 if test -d .libs; then
8336 # MS-DOS does not allow filenames that begin with a dot.
8339 rmdir .libs 2>/dev/null
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8342 $as_echo "$lt_cv_objdir" >&6; }
8343 objdir=$lt_cv_objdir
8349 cat >>confdefs.h <<_ACEOF
8350 #define LT_OBJDIR "$lt_cv_objdir/"
8358 # AIX sometimes has problems with the GCC collect2 program. For some
8359 # reason, if we set the COLLECT_NAMES environment variable, the problems
8360 # vanish in a puff of smoke.
8361 if test "X${COLLECT_NAMES+set}" != Xset; then
8363 export COLLECT_NAMES
8370 can_build_shared=yes
8372 # All known linkers require a `.a' archive for static linking (except MSVC,
8373 # which needs '.lib').
8376 with_gnu_ld="$lt_cv_prog_gnu_ld"
8379 old_CFLAGS="$CFLAGS"
8381 # Set sane defaults for various variables
8382 test -z "$CC" && CC=cc
8383 test -z "$LTCC" && LTCC=$CC
8384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8385 test -z "$LD" && LD=ld
8386 test -z "$ac_objext" && ac_objext=o
8388 for cc_temp in $compiler""; do
8390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8396 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8399 # Only perform the check for file, if the check method requires it
8400 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8401 case $deplibs_check_method in
8403 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8405 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407 $as_echo_n "(cached) " >&6
8411 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414 lt_save_MAGIC_CMD="$MAGIC_CMD"
8415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417 for ac_dir in $ac_dummy; do
8419 test -z "$ac_dir" && ac_dir=.
8420 if test -f $ac_dir/${ac_tool_prefix}file; then
8421 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8422 if test -n "$file_magic_test_file"; then
8423 case $deplibs_check_method in
8425 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428 $EGREP "$file_magic_regex" > /dev/null; then
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such. This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem. Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8450 MAGIC_CMD="$lt_save_MAGIC_CMD"
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8468 if test -z "$lt_cv_path_MAGIC_CMD"; then
8469 if test -n "$ac_tool_prefix"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8471 $as_echo_n "checking for file... " >&6; }
8472 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8473 $as_echo_n "(cached) " >&6
8477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8480 lt_save_MAGIC_CMD="$MAGIC_CMD"
8481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8483 for ac_dir in $ac_dummy; do
8485 test -z "$ac_dir" && ac_dir=.
8486 if test -f $ac_dir/file; then
8487 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8488 if test -n "$file_magic_test_file"; then
8489 case $deplibs_check_method in
8491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8494 $EGREP "$file_magic_regex" > /dev/null; then
8499 *** Warning: the command libtool uses to detect shared libraries,
8500 *** $file_magic_cmd, produces output that libtool cannot recognize.
8501 *** The result is that libtool may fail to recognize shared libraries
8502 *** as such. This will affect the creation of libtool libraries that
8503 *** depend on shared libraries, but programs linked with such libtool
8504 *** libraries will work regardless of this problem. Nevertheless, you
8505 *** may want to report the problem to your system manager and/or to
8506 *** bug-libtool@gnu.org
8516 MAGIC_CMD="$lt_save_MAGIC_CMD"
8521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8522 if test -n "$MAGIC_CMD"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8524 $as_echo "$MAGIC_CMD" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8540 # Use C for the default configuration in the libtool script
8544 ac_cpp='$CPP $CPPFLAGS'
8545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8550 # Source file extension for C test sources.
8553 # Object file extension for compiled C test sources.
8557 # Code to be used in simple compile tests
8558 lt_simple_compile_test_code="int some_variable = 0;"
8560 # Code to be used in simple link tests
8561 lt_simple_link_test_code='int main(){return(0);}'
8569 # If no C compiler was specified, use CC.
8572 # If no C compiler flags were specified, use CFLAGS.
8573 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8575 # Allow CC to be a program name with arguments.
8578 # Save the default compiler, since it gets overwritten when the other
8579 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8580 compiler_DEFAULT=$CC
8582 # save warnings/boilerplate of simple test code
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8585 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8586 _lt_compiler_boilerplate=`cat conftest.err`
8589 ac_outfile=conftest.$ac_objext
8590 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8591 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8592 _lt_linker_boilerplate=`cat conftest.err`
8597 ## There is no encapsulation within the following macros, do not change
8598 ## the running order or otherwise move them around unless you know exactly
8599 ## what you are doing...
8600 if test -n "$compiler"; then
8602 lt_prog_compiler_no_builtin_flag=
8604 if test "$GCC" = yes; then
8605 case $cc_basename in
8607 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8609 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8613 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8614 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 lt_cv_prog_compiler_rtti_exceptions=no
8618 ac_outfile=conftest.$ac_objext
8619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620 lt_compiler_flag="-fno-rtti -fno-exceptions"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 # The option is referenced via a variable to avoid confusing sed.
8626 lt_compile=`echo "$ac_compile" | $SED \
8627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8629 -e 's:$: $lt_compiler_flag:'`
8630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8631 (eval "$lt_compile" 2>conftest.err)
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 if (exit $ac_status) && test -s "$ac_outfile"; then
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings other than the usual output.
8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8640 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_rtti_exceptions=yes
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8648 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8650 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8651 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8663 lt_prog_compiler_wl=
8664 lt_prog_compiler_pic=
8665 lt_prog_compiler_static=
8668 if test "$GCC" = yes; then
8669 lt_prog_compiler_wl='-Wl,'
8670 lt_prog_compiler_static='-static'
8674 # All AIX code is PIC.
8675 if test "$host_cpu" = ia64; then
8676 # AIX 5 now supports IA64 processor
8677 lt_prog_compiler_static='-Bstatic'
8684 # see comment about AmigaOS4 .so support
8685 lt_prog_compiler_pic='-fPIC'
8688 # FIXME: we need at least 68020 code to build shared libraries, but
8689 # adding the `-m68020' flag to GCC prevents building anything better,
8691 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8696 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8697 # PIC is the default for these OSes.
8700 mingw* | cygwin* | pw32* | os2* | cegcc*)
8701 # This hack is so that the source file can tell whether it is being
8702 # built for inclusion in a dll (and should export symbols for example).
8703 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8704 # (--disable-auto-import) libraries
8705 lt_prog_compiler_pic='-DDLL_EXPORT'
8708 darwin* | rhapsody*)
8709 # PIC is the default on this platform
8710 # Common symbols not allowed in MH_DYLIB files
8711 lt_prog_compiler_pic='-fno-common'
8715 # PIC is the default for Haiku.
8716 # The "-static" flag exists, but is broken.
8717 lt_prog_compiler_static=
8721 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8722 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8723 # sets the default TLS model and affects inlining.
8729 lt_prog_compiler_pic='-fPIC'
8735 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8736 # Instead, we relocate shared libraries at runtime.
8740 # Just because we use GCC doesn't mean we suddenly get shared libraries
8741 # on systems that don't support them.
8742 lt_prog_compiler_can_build_shared=no
8747 # QNX uses GNU C++, but need to define -shared option too, otherwise
8749 lt_prog_compiler_pic='-fPIC -shared'
8753 if test -d /usr/nec; then
8754 lt_prog_compiler_pic=-Kconform_pic
8759 lt_prog_compiler_pic='-fPIC'
8763 case $cc_basename in
8764 nvcc*) # Cuda Compiler Driver 2.2
8765 lt_prog_compiler_wl='-Xlinker '
8766 if test -n "$lt_prog_compiler_pic"; then
8767 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8772 # PORTME Check for flag to pass linker flags through the system compiler.
8775 lt_prog_compiler_wl='-Wl,'
8776 if test "$host_cpu" = ia64; then
8777 # AIX 5 now supports IA64 processor
8778 lt_prog_compiler_static='-Bstatic'
8780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8784 mingw* | cygwin* | pw32* | os2* | cegcc*)
8785 # This hack is so that the source file can tell whether it is being
8786 # built for inclusion in a dll (and should export symbols for example).
8787 lt_prog_compiler_pic='-DDLL_EXPORT'
8790 hpux9* | hpux10* | hpux11*)
8791 lt_prog_compiler_wl='-Wl,'
8792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8799 lt_prog_compiler_pic='+Z'
8802 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8803 lt_prog_compiler_static='${wl}-a ${wl}archive'
8806 irix5* | irix6* | nonstopux*)
8807 lt_prog_compiler_wl='-Wl,'
8808 # PIC (with -KPIC) is the default.
8809 lt_prog_compiler_static='-non_shared'
8812 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8813 case $cc_basename in
8814 # old Intel for x86_64 which still supported -KPIC.
8816 lt_prog_compiler_wl='-Wl,'
8817 lt_prog_compiler_pic='-KPIC'
8818 lt_prog_compiler_static='-static'
8820 # icc used to be incompatible with GCC.
8821 # ICC 10 doesn't accept -KPIC any more.
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-fPIC'
8825 lt_prog_compiler_static='-static'
8827 # Lahey Fortran 8.1.
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_pic='--shared'
8831 lt_prog_compiler_static='--static'
8834 # NAG Fortran compiler
8835 lt_prog_compiler_wl='-Wl,-Wl,,'
8836 lt_prog_compiler_pic='-PIC'
8837 lt_prog_compiler_static='-Bstatic'
8839 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8840 # Portland Group compilers (*not* the Pentium gcc compiler,
8841 # which looks to be a dead project)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fpic'
8844 lt_prog_compiler_static='-Bstatic'
8847 lt_prog_compiler_wl='-Wl,'
8848 # All Alpha code is PIC.
8849 lt_prog_compiler_static='-non_shared'
8851 xl* | bgxl* | bgf* | mpixl*)
8852 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='-qpic'
8855 lt_prog_compiler_static='-qstaticlink'
8858 case `$CC -V 2>&1 | sed 5q` in
8859 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8860 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8863 lt_prog_compiler_wl=''
8865 *Sun\ F* | *Sun*Fortran*)
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl='-Qoption ld '
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-Bstatic'
8874 lt_prog_compiler_wl='-Wl,'
8876 *Intel*\ [CF]*Compiler*)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-fPIC'
8879 lt_prog_compiler_static='-static'
8882 lt_prog_compiler_wl='-Wl,'
8883 lt_prog_compiler_pic='-fpic'
8884 lt_prog_compiler_static='-Bstatic'
8892 lt_prog_compiler_pic='-KPIC'
8893 lt_prog_compiler_static='-Bstatic'
8897 # QNX uses GNU C++, but need to define -shared option too, otherwise
8899 lt_prog_compiler_pic='-fPIC -shared'
8902 osf3* | osf4* | osf5*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All OSF/1 code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8909 lt_prog_compiler_static='-non_shared'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8915 case $cc_basename in
8916 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8917 lt_prog_compiler_wl='-Qoption ld ';;
8919 lt_prog_compiler_wl='-Wl,';;
8924 lt_prog_compiler_wl='-Qoption ld '
8925 lt_prog_compiler_pic='-PIC'
8926 lt_prog_compiler_static='-Bstatic'
8929 sysv4 | sysv4.2uw2* | sysv4.3*)
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_pic='-KPIC'
8932 lt_prog_compiler_static='-Bstatic'
8936 if test -d /usr/nec ;then
8937 lt_prog_compiler_pic='-Kconform_pic'
8938 lt_prog_compiler_static='-Bstatic'
8942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-KPIC'
8945 lt_prog_compiler_static='-Bstatic'
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_can_build_shared=no
8954 lt_prog_compiler_pic='-pic'
8955 lt_prog_compiler_static='-Bstatic'
8959 lt_prog_compiler_can_build_shared=no
8965 # For platforms which do not support PIC, -DPIC is meaningless:
8967 lt_prog_compiler_pic=
8970 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8975 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8976 if ${lt_cv_prog_compiler_pic+:} false; then :
8977 $as_echo_n "(cached) " >&6
8979 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8983 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8986 # Check to make sure the PIC flag actually works.
8988 if test -n "$lt_prog_compiler_pic"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8990 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8991 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8992 $as_echo_n "(cached) " >&6
8994 lt_cv_prog_compiler_pic_works=no
8995 ac_outfile=conftest.$ac_objext
8996 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8997 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8998 # Insert the option either (1) after the last *FLAGS variable, or
8999 # (2) before a word containing "conftest.", or (3) at the end.
9000 # Note that $ac_compile itself does not contain backslashes and begins
9001 # with a dollar sign (not a hyphen), so the echo should work correctly.
9002 # The option is referenced via a variable to avoid confusing sed.
9003 lt_compile=`echo "$ac_compile" | $SED \
9004 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9005 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9006 -e 's:$: $lt_compiler_flag:'`
9007 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9008 (eval "$lt_compile" 2>conftest.err)
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 if (exit $ac_status) && test -s "$ac_outfile"; then
9013 # The compiler can only warn and ignore the option if not recognized
9014 # So say no if there are warnings other than the usual output.
9015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9017 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9018 lt_cv_prog_compiler_pic_works=yes
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9025 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9027 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9028 case $lt_prog_compiler_pic in
9030 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9033 lt_prog_compiler_pic=
9034 lt_prog_compiler_can_build_shared=no
9050 # Check to make sure the static flag actually works.
9052 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9054 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9055 if ${lt_cv_prog_compiler_static_works+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 lt_cv_prog_compiler_static_works=no
9059 save_LDFLAGS="$LDFLAGS"
9060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9061 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9063 # The linker can only warn and ignore the option if not recognized
9064 # So say no if there are warnings
9065 if test -s conftest.err; then
9066 # Append any errors to the config.log.
9067 cat conftest.err 1>&5
9068 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9070 if diff conftest.exp conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_static_works=yes
9074 lt_cv_prog_compiler_static_works=yes
9078 LDFLAGS="$save_LDFLAGS"
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9082 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9084 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9087 lt_prog_compiler_static=
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9098 if ${lt_cv_prog_compiler_c_o+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 lt_cv_prog_compiler_c_o=no
9102 $RM -r conftest 2>/dev/null
9106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108 lt_compiler_flag="-o out/conftest2.$ac_objext"
9109 # Insert the option either (1) after the last *FLAGS variable, or
9110 # (2) before a word containing "conftest.", or (3) at the end.
9111 # Note that $ac_compile itself does not contain backslashes and begins
9112 # with a dollar sign (not a hyphen), so the echo should work correctly.
9113 lt_compile=`echo "$ac_compile" | $SED \
9114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9116 -e 's:$: $lt_compiler_flag:'`
9117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9118 (eval "$lt_compile" 2>out/conftest.err)
9120 cat out/conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9124 # The compiler can only warn and ignore the option if not recognized
9125 # So say no if there are warnings
9126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_c_o=yes
9134 # SGI C++ compiler will create directory out/ii_files/ for
9135 # template instantiation
9136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9137 $RM out/* && rmdir out
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9152 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9153 if ${lt_cv_prog_compiler_c_o+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 lt_cv_prog_compiler_c_o=no
9157 $RM -r conftest 2>/dev/null
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163 lt_compiler_flag="-o out/conftest2.$ac_objext"
9164 # Insert the option either (1) after the last *FLAGS variable, or
9165 # (2) before a word containing "conftest.", or (3) at the end.
9166 # Note that $ac_compile itself does not contain backslashes and begins
9167 # with a dollar sign (not a hyphen), so the echo should work correctly.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173 (eval "$lt_compile" 2>out/conftest.err)
9175 cat out/conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9179 # The compiler can only warn and ignore the option if not recognized
9180 # So say no if there are warnings
9181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184 lt_cv_prog_compiler_c_o=yes
9189 # SGI C++ compiler will create directory out/ii_files/ for
9190 # template instantiation
9191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192 $RM out/* && rmdir out
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9199 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9204 hard_links="nottested"
9205 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9206 # do not overwrite the value of need_locks provided by the user
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9208 $as_echo_n "checking if we can lock with hard links... " >&6; }
9211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9213 ln conftest.a conftest.b 2>&5 || hard_links=no
9214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9216 $as_echo "$hard_links" >&6; }
9217 if test "$hard_links" = no; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9219 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9232 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9235 allow_undefined_flag=
9236 always_export_symbols=no
9238 archive_expsym_cmds=
9239 compiler_needs_object=no
9240 enable_shared_with_static_runtimes=no
9241 export_dynamic_flag_spec=
9242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9243 hardcode_automatic=no
9245 hardcode_direct_absolute=no
9246 hardcode_libdir_flag_spec=
9247 hardcode_libdir_separator=
9249 hardcode_shlibpath_var=unsupported
9251 link_all_deplibs=unknown
9254 old_archive_from_new_cmds=
9255 old_archive_from_expsyms_cmds=
9256 thread_safe_flag_spec=
9257 whole_archive_flag_spec=
9258 # include_expsyms should be a list of space-separated symbols to be *always*
9259 # included in the symbol list
9261 # exclude_expsyms can be an extended regexp of symbols to exclude
9262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9264 # as well as any symbol that contains `d'.
9265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9267 # platforms (ab)use it in PIC code, but their linkers get confused if
9268 # the symbol is explicitly referenced. Since portable code cannot
9269 # rely on this symbol name, it's probably fine to never include it in
9270 # preloaded symbol tables.
9271 # Exclude shared library initialization/finalization symbols.
9272 extract_expsyms_cmds=
9275 cygwin* | mingw* | pw32* | cegcc*)
9276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9277 # When not using gcc, we currently assume that we are using
9278 # Microsoft Visual C++.
9279 if test "$GCC" != yes; then
9284 # we just hope/assume this is gcc and not c89 (= MSVC++)
9290 linux* | k*bsd*-gnu | gnu*)
9297 # On some targets, GNU ld is compatible enough with the native linker
9298 # that we're better off using the native interface for both.
9299 lt_use_gnu_ld_interface=no
9300 if test "$with_gnu_ld" = yes; then
9303 # The AIX port of GNU ld has always aspired to compatibility
9304 # with the native linker. However, as the warning in the GNU ld
9305 # block says, versions before 2.19.5* couldn't really create working
9306 # shared libraries, regardless of the interface used.
9307 case `$LD -v 2>&1` in
9308 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9309 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9310 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9312 lt_use_gnu_ld_interface=yes
9317 lt_use_gnu_ld_interface=yes
9322 if test "$lt_use_gnu_ld_interface" = yes; then
9323 # If archive_cmds runs LD, not CC, wlarc should be empty
9326 # Set some defaults for GNU ld with shared library support. These
9327 # are reset later if shared libraries are not supported. Putting them
9328 # here allows them to be overridden if necessary.
9329 runpath_var=LD_RUN_PATH
9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331 export_dynamic_flag_spec='${wl}--export-dynamic'
9332 # ancient GNU ld didn't support --whole-archive et. al.
9333 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9334 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9336 whole_archive_flag_spec=
9338 supports_anon_versioning=no
9339 case `$LD -v 2>&1` in
9340 *GNU\ gold*) supports_anon_versioning=yes ;;
9341 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9342 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9343 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9344 *\ 2.11.*) ;; # other 2.11 versions
9345 *) supports_anon_versioning=yes ;;
9348 # See if GNU ld supports shared libraries.
9351 # On AIX/PPC, the GNU linker is very broken
9352 if test "$host_cpu" != ia64; then
9356 *** Warning: the GNU linker, at least up to release 2.19, is reported
9357 *** to be unable to reliably create shared libraries on AIX.
9358 *** Therefore, libtool is disabling shared libraries support. If you
9359 *** really care for shared libraries, you may want to install binutils
9360 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9361 *** You will then need to restart the configuration process.
9370 # see comment about AmigaOS4 .so support
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds=''
9375 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)'
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_minus_L=yes
9383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384 allow_undefined_flag=unsupported
9385 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9386 # support --undefined. This deserves some investigation. FIXME
9387 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 cygwin* | mingw* | pw32* | cegcc*)
9394 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9395 # as there is no search path for DLLs.
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 export_dynamic_flag_spec='${wl}--export-all-symbols'
9398 allow_undefined_flag=unsupported
9399 always_export_symbols=no
9400 enable_shared_with_static_runtimes=yes
9401 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'
9402 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9404 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9406 # If the export-symbols file already is a .def file (1st line
9407 # is EXPORTS), use it as is; otherwise, prepend...
9408 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9409 cp $export_symbols $output_objdir/$soname.def;
9411 echo EXPORTS > $output_objdir/$soname.def;
9412 cat $export_symbols >> $output_objdir/$soname.def;
9414 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 link_all_deplibs=yes
9427 hardcode_shlibpath_var=no
9428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429 export_dynamic_flag_spec='${wl}-E'
9430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9431 # Instead, shared libraries are loaded at an image base (0x10000000 by
9432 # default) and relocated if they conflict, which is a slow very memory
9433 # consuming and fragmenting process. To avoid this, we pick a random,
9434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9437 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'
9440 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9442 if test "$host_os" = linux-dietlibc; then
9443 case $cc_basename in
9444 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9447 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9448 && test "$tmp_diet" = no
9450 tmp_addflag=' $pic_flag'
9451 tmp_sharedflag='-shared'
9452 case $cc_basename,$host_cpu in
9453 pgcc*) # Portland Group C compiler
9454 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'
9455 tmp_addflag=' $pic_flag'
9457 pgf77* | pgf90* | pgf95* | pgfortran*)
9458 # Portland Group f77 and f90 compilers
9459 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'
9460 tmp_addflag=' $pic_flag -Mnomain' ;;
9461 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9462 tmp_addflag=' -i_dynamic' ;;
9463 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9464 tmp_addflag=' -i_dynamic -nofor_main' ;;
9465 ifc* | ifort*) # Intel Fortran compiler
9466 tmp_addflag=' -nofor_main' ;;
9467 lf95*) # Lahey Fortran 8.1
9468 whole_archive_flag_spec=
9469 tmp_sharedflag='--shared' ;;
9470 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9471 tmp_sharedflag='-qmkshrobj'
9473 nvcc*) # Cuda Compiler Driver 2.2
9474 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'
9475 compiler_needs_object=yes
9478 case `$CC -V 2>&1 | sed 5q` in
9479 *Sun\ C*) # Sun C 5.9
9480 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'
9481 compiler_needs_object=yes
9482 tmp_sharedflag='-G' ;;
9483 *Sun\ F*) # Sun Fortran 8.3
9484 tmp_sharedflag='-G' ;;
9486 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 if test "x$supports_anon_versioning" = xyes; then
9489 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491 echo "local: *; };" >> $output_objdir/$libname.ver~
9492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9495 case $cc_basename in
9496 xlf* | bgf* | bgxlf* | mpixlf*)
9497 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9498 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9501 if test "x$supports_anon_versioning" = xyes; then
9502 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504 echo "local: *; };" >> $output_objdir/$libname.ver~
9505 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9514 netbsd* | netbsdelf*-gnu)
9515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9516 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9520 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9525 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9529 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9530 *** create shared libraries on Solaris systems. Therefore, libtool
9531 *** is disabling shared libraries support. We urge you to upgrade GNU
9532 *** binutils to release 2.9.1 or newer. Another option is to modify
9533 *** your PATH or compiler configuration so that the native linker is
9534 *** used, and then restart.
9537 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9546 case `$LD -v 2>&1` in
9547 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9551 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9552 *** reliably create shared libraries on SCO systems. Therefore, libtool
9553 *** is disabling shared libraries support. We urge you to upgrade GNU
9554 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9555 *** your PATH or compiler configuration so that the native linker is
9556 *** used, and then restart.
9561 # For security reasons, it is highly recommended that you always
9562 # use absolute paths for naming shared libraries, and exclude the
9563 # DT_RUNPATH tag from executables and libraries. But doing so
9564 # requires that you compile everything twice, which is a pain.
9565 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_shlibpath_var=no
9584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9586 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9593 if test "$ld_shlibs" = no; then
9595 hardcode_libdir_flag_spec=
9596 export_dynamic_flag_spec=
9597 whole_archive_flag_spec=
9600 # PORTME fill in a description of your system's linker (not GNU ld)
9603 allow_undefined_flag=unsupported
9604 always_export_symbols=yes
9605 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'
9606 # Note: this linker hardcodes the directories in LIBPATH if there
9607 # are no directories specified by -L.
9608 hardcode_minus_L=yes
9609 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9610 # Neither direct hardcoding nor static linking is supported with a
9612 hardcode_direct=unsupported
9617 if test "$host_cpu" = ia64; then
9618 # On IA64, the linker does run time linking by default, so we don't
9619 # have to do anything special.
9620 aix_use_runtimelinking=no
9621 exp_sym_flag='-Bexport'
9624 # If we're using GNU nm, then we don't want the "-C" option.
9625 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9626 # Also, AIX nm treats weak defined symbols like other global
9627 # defined symbols, whereas GNU nm marks them as "W".
9628 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9629 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'
9631 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'
9633 aix_use_runtimelinking=no
9635 # Test if we are trying to use run time linking or normal
9636 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9637 # need to do runtime linking.
9638 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9639 for ld_flag in $LDFLAGS; do
9640 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9641 aix_use_runtimelinking=yes
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9660 hardcode_direct_absolute=yes
9661 hardcode_libdir_separator=':'
9662 link_all_deplibs=yes
9663 file_list_spec='${wl}-f,'
9665 if test "$GCC" = yes; then
9666 case $host_os in aix4.[012]|aix4.[012].*)
9667 # We only want to do this on AIX 4.2 and lower, the check
9668 # below for broken collect2 doesn't work under 4.3+
9669 collect2name=`${CC} -print-prog-name=collect2`
9670 if test -f "$collect2name" &&
9671 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9673 # We have reworked collect2
9676 # We have old collect2
9677 hardcode_direct=unsupported
9678 # It fails to find uninstalled libraries when the uninstalled
9679 # path is not listed in the libpath. Setting hardcode_minus_L
9680 # to unsupported forces relinking
9681 hardcode_minus_L=yes
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_libdir_separator=
9687 shared_flag='-shared'
9688 if test "$aix_use_runtimelinking" = yes; then
9689 shared_flag="$shared_flag "'${wl}-G'
9694 if test "$host_cpu" = ia64; then
9695 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9696 # chokes on -Wl,-G. The following line is correct:
9699 if test "$aix_use_runtimelinking" = yes; then
9700 shared_flag='${wl}-G'
9702 shared_flag='${wl}-bM:SRE'
9707 export_dynamic_flag_spec='${wl}-bexpall'
9708 # It seems that -bexpall does not export symbols beginning with
9709 # underscore (_), so it is better to generate a list of symbols to export.
9710 always_export_symbols=yes
9711 if test "$aix_use_runtimelinking" = yes; then
9712 # Warning - without using the other runtime loading flags (-brtl),
9713 # -berok will link without error, but may produce a broken library.
9714 allow_undefined_flag='-berok'
9715 # Determine the default libpath from the value encoded in an
9717 if test "${lt_cv_aix_libpath+set}" = set; then
9718 aix_libpath=$lt_cv_aix_libpath
9720 if ${lt_cv_aix_libpath_+:} false; then :
9721 $as_echo_n "(cached) " >&6
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9734 if ac_fn_c_try_link "$LINENO"; then :
9736 lt_aix_libpath_sed='
9737 /Import File Strings/,/^$/ {
9739 s/^0 *\([^ ]*\) *$/\1/
9743 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744 # Check for a 64-bit object if we didn't find anything.
9745 if test -z "$lt_cv_aix_libpath_"; then
9746 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749 rm -f core conftest.err conftest.$ac_objext \
9750 conftest$ac_exeext conftest.$ac_ext
9751 if test -z "$lt_cv_aix_libpath_"; then
9752 lt_cv_aix_libpath_="/usr/lib:/lib"
9757 aix_libpath=$lt_cv_aix_libpath_
9760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9761 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"
9763 if test "$host_cpu" = ia64; then
9764 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9765 allow_undefined_flag="-z nodefs"
9766 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"
9768 # Determine the default libpath from the value encoded in an
9770 if test "${lt_cv_aix_libpath+set}" = set; then
9771 aix_libpath=$lt_cv_aix_libpath
9773 if ${lt_cv_aix_libpath_+:} false; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9787 if ac_fn_c_try_link "$LINENO"; then :
9789 lt_aix_libpath_sed='
9790 /Import File Strings/,/^$/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 rm -f core conftest.err conftest.$ac_objext \
9803 conftest$ac_exeext conftest.$ac_ext
9804 if test -z "$lt_cv_aix_libpath_"; then
9805 lt_cv_aix_libpath_="/usr/lib:/lib"
9810 aix_libpath=$lt_cv_aix_libpath_
9813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9814 # Warning - without using the other run time loading flags,
9815 # -berok will link without error, but may produce a broken library.
9816 no_undefined_flag=' ${wl}-bernotok'
9817 allow_undefined_flag=' ${wl}-berok'
9818 if test "$with_gnu_ld" = yes; then
9819 # We only use this code for GNU lds that support --whole-archive.
9820 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9822 # Exported symbols can be pulled into shared objects from archives
9823 whole_archive_flag_spec='$convenience'
9825 archive_cmds_need_lc=yes
9826 # This is similar to how AIX traditionally builds its shared libraries.
9827 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'
9835 # see comment about AmigaOS4 .so support
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 archive_expsym_cmds=''
9840 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)'
9841 hardcode_libdir_flag_spec='-L$libdir'
9842 hardcode_minus_L=yes
9848 export_dynamic_flag_spec=-rdynamic
9851 cygwin* | mingw* | pw32* | cegcc*)
9852 # When not using gcc, we currently assume that we are using
9853 # Microsoft Visual C++.
9854 # hardcode_libdir_flag_spec is actually meaningless, as there is
9855 # no search path for DLLs.
9856 case $cc_basename in
9859 hardcode_libdir_flag_spec=' '
9860 allow_undefined_flag=unsupported
9861 always_export_symbols=yes
9863 # Tell ltmain to make .lib files, not .a files.
9865 # Tell ltmain to make .dll files, not .so files.
9867 # FIXME: Setting linknames here is a bad hack.
9868 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9870 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9872 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9874 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9876 # The linker will not automatically build a static lib if we build a DLL.
9877 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9878 enable_shared_with_static_runtimes=yes
9879 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9882 old_postinstall_cmds='chmod 644 $oldlib'
9883 postlink_cmds='lt_outputfile="@OUTPUT@"~
9884 lt_tool_outputfile="@TOOL_OUTPUT@"~
9885 case $lt_outputfile in
9888 lt_outputfile="$lt_outputfile.exe"
9889 lt_tool_outputfile="$lt_tool_outputfile.exe"
9892 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9893 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9894 $RM "$lt_outputfile.manifest";
9898 # Assume MSVC wrapper
9899 hardcode_libdir_flag_spec=' '
9900 allow_undefined_flag=unsupported
9901 # Tell ltmain to make .lib files, not .a files.
9903 # Tell ltmain to make .dll files, not .so files.
9905 # FIXME: Setting linknames here is a bad hack.
9906 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9907 # The linker will automatically build a .lib file if we build a DLL.
9908 old_archive_from_new_cmds='true'
9909 # FIXME: Should let the user specify the lib program.
9910 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9911 enable_shared_with_static_runtimes=yes
9916 darwin* | rhapsody*)
9919 archive_cmds_need_lc=no
9921 hardcode_automatic=yes
9922 hardcode_shlibpath_var=unsupported
9923 if test "$lt_cv_ld_force_load" = "yes"; then
9924 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\"`'
9927 whole_archive_flag_spec=''
9929 link_all_deplibs=yes
9930 allow_undefined_flag="$_lt_dar_allow_undefined"
9931 case $cc_basename in
9932 ifort*) _lt_dar_can_shared=yes ;;
9933 *) _lt_dar_can_shared=$GCC ;;
9935 if test "$_lt_dar_can_shared" = "yes"; then
9936 output_verbose_link_cmd=func_echo_all
9937 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9938 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9939 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}"
9940 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}"
9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_libdir_flag_spec='-L$libdir'
9951 hardcode_shlibpath_var=no
9954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9955 # support. Future versions do this automatically, but an explicit c++rt0.o
9956 # does not break anything, and helps significantly (at the cost of a little
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9960 hardcode_libdir_flag_spec='-R$libdir'
9962 hardcode_shlibpath_var=no
9965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9969 hardcode_minus_L=yes
9970 hardcode_shlibpath_var=no
9973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9974 freebsd* | dragonfly*)
9975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_shlibpath_var=no
9982 if test "$GCC" = yes; then
9983 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'
9985 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'
9987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9988 hardcode_libdir_separator=:
9991 # hardcode_minus_L: Not really in the search PATH,
9992 # but as the default location of the library.
9993 hardcode_minus_L=yes
9994 export_dynamic_flag_spec='${wl}-E'
9998 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9999 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003 if test "$with_gnu_ld" = no; then
10004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_direct=yes
10007 hardcode_direct_absolute=yes
10008 export_dynamic_flag_spec='${wl}-E'
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10016 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10019 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10038 # Older versions of the 11.00 compiler do not understand -b yet
10039 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10041 $as_echo_n "checking if $CC understands -b... " >&6; }
10042 if ${lt_cv_prog_compiler__b+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 lt_cv_prog_compiler__b=no
10046 save_LDFLAGS="$LDFLAGS"
10047 LDFLAGS="$LDFLAGS -b"
10048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10050 # The linker can only warn and ignore the option if not recognized
10051 # So say no if there are warnings
10052 if test -s conftest.err; then
10053 # Append any errors to the config.log.
10054 cat conftest.err 1>&5
10055 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057 if diff conftest.exp conftest.er2 >/dev/null; then
10058 lt_cv_prog_compiler__b=yes
10061 lt_cv_prog_compiler__b=yes
10065 LDFLAGS="$save_LDFLAGS"
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10069 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10071 if test x"$lt_cv_prog_compiler__b" = xyes; then
10072 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10080 if test "$with_gnu_ld" = no; then
10081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10082 hardcode_libdir_separator=:
10087 hardcode_shlibpath_var=no
10090 hardcode_direct=yes
10091 hardcode_direct_absolute=yes
10092 export_dynamic_flag_spec='${wl}-E'
10094 # hardcode_minus_L: Not really in the search PATH,
10095 # but as the default location of the library.
10096 hardcode_minus_L=yes
10102 irix5* | irix6* | nonstopux*)
10103 if test "$GCC" = yes; then
10104 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'
10105 # Try to use the -exported_symbol ld option, if it does not
10106 # work, assume that -exports_file does not work either and
10107 # implicitly export all symbols.
10108 # This should be the same for all languages, so no per-tag cache variable.
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10110 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10111 if ${lt_cv_irix_exported_symbol+:} false; then :
10112 $as_echo_n "(cached) " >&6
10114 save_LDFLAGS="$LDFLAGS"
10115 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int foo (void) { return 0; }
10120 if ac_fn_c_try_link "$LINENO"; then :
10121 lt_cv_irix_exported_symbol=yes
10123 lt_cv_irix_exported_symbol=no
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LDFLAGS="$save_LDFLAGS"
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10130 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10131 if test "$lt_cv_irix_exported_symbol" = yes; then
10132 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'
10135 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'
10136 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'
10138 archive_cmds_need_lc='no'
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10142 link_all_deplibs=yes
10145 netbsd* | netbsdelf*-gnu)
10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10149 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_direct=yes
10159 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160 hardcode_libdir_separator=:
10161 hardcode_shlibpath_var=no
10168 if test -f /usr/libexec/ld.so; then
10169 hardcode_direct=yes
10170 hardcode_shlibpath_var=no
10171 hardcode_direct_absolute=yes
10172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10174 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10175 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10176 export_dynamic_flag_spec='${wl}-E'
10179 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10181 hardcode_libdir_flag_spec='-R$libdir'
10184 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10185 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_minus_L=yes
10197 allow_undefined_flag=unsupported
10198 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'
10199 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10203 if test "$GCC" = yes; then
10204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205 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'
10207 allow_undefined_flag=' -expect_unresolved \*'
10208 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'
10210 archive_cmds_need_lc='no'
10211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10212 hardcode_libdir_separator=:
10215 osf4* | osf5*) # as osf3* with the addition of -msym flag
10216 if test "$GCC" = yes; then
10217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10218 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'
10219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10221 allow_undefined_flag=' -expect_unresolved \*'
10222 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'
10223 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~
10224 $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'
10226 # Both c and cxx compiler support -rpath directly
10227 hardcode_libdir_flag_spec='-rpath $libdir'
10229 archive_cmds_need_lc='no'
10230 hardcode_libdir_separator=:
10234 no_undefined_flag=' -z defs'
10235 if test "$GCC" = yes; then
10237 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239 $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'
10241 case `$CC -V 2>&1` in
10244 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10250 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10252 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10256 hardcode_libdir_flag_spec='-R$libdir'
10257 hardcode_shlibpath_var=no
10259 solaris2.[0-5] | solaris2.[0-5].*) ;;
10261 # The compiler driver will combine and reorder linker options,
10262 # but understands `-z linker_flag'. GCC discards it without `$wl',
10263 # but is careful enough not to reorder.
10264 # Supported since Solaris 2.6 (maybe 2.5.1?)
10265 if test "$GCC" = yes; then
10266 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10268 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10272 link_all_deplibs=yes
10276 if test "x$host_vendor" = xsequent; then
10277 # Use $CC to link under sequent, because it throws in some extra .o
10278 # files that make .init and .fini sections work.
10279 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_direct=yes
10285 hardcode_minus_L=yes
10286 hardcode_shlibpath_var=no
10290 case $host_vendor in
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_direct=yes # is this really true???
10296 ## LD is ld it makes a PLAMLIB
10297 ## CC just makes a GrossModule.
10298 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10299 reload_cmds='$CC -r -o $output$reload_objs'
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10307 runpath_var='LD_RUN_PATH'
10308 hardcode_shlibpath_var=no
10312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_shlibpath_var=no
10314 export_dynamic_flag_spec='-Bexport'
10318 if test -d /usr/nec; then
10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_shlibpath_var=no
10321 runpath_var=LD_RUN_PATH
10322 hardcode_runpath_var=yes
10327 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10328 no_undefined_flag='${wl}-z,text'
10329 archive_cmds_need_lc=no
10330 hardcode_shlibpath_var=no
10331 runpath_var='LD_RUN_PATH'
10333 if test "$GCC" = yes; then
10334 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 sysv5* | sco3.2v5* | sco5v6*)
10343 # Note: We can NOT use -z defs as we might desire, because we do not
10344 # link with -lc, and that would cause any symbols used from libc to
10345 # always be unresolved, which means just about no library would
10346 # ever link correctly. If we're not using GNU ld we use -z text
10347 # though, which does catch some bad symbols but isn't as heavy-handed
10349 no_undefined_flag='${wl}-z,text'
10350 allow_undefined_flag='${wl}-z,nodefs'
10351 archive_cmds_need_lc=no
10352 hardcode_shlibpath_var=no
10353 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10354 hardcode_libdir_separator=':'
10355 link_all_deplibs=yes
10356 export_dynamic_flag_spec='${wl}-Bexport'
10357 runpath_var='LD_RUN_PATH'
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_libdir_flag_spec='-L$libdir'
10371 hardcode_shlibpath_var=no
10379 if test x$host_vendor = xsni; then
10381 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10382 export_dynamic_flag_spec='${wl}-Blargedynsym'
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10389 $as_echo "$ld_shlibs" >&6; }
10390 test "$ld_shlibs" = no && can_build_shared=no
10392 with_gnu_ld=$with_gnu_ld
10409 # Do we need to explicitly link libc?
10411 case "x$archive_cmds_need_lc" in
10413 # Assume -lc should be added
10414 archive_cmds_need_lc=yes
10416 if test "$enable_shared" = yes && test "$GCC" = yes; then
10417 case $archive_cmds in
10419 # FIXME: we may have to deal with multi-command sequences.
10422 # Test whether the compiler implicitly links with -lc since on some
10423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10424 # to ld, don't add -lc before -lgcc.
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10426 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10427 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10428 $as_echo_n "(cached) " >&6
10431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10434 (eval $ac_compile) 2>&5
10436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437 test $ac_status = 0; } 2>conftest.err; then
10440 libobjs=conftest.$ac_objext
10442 wl=$lt_prog_compiler_wl
10443 pic_flag=$lt_prog_compiler_pic
10449 lt_save_allow_undefined_flag=$allow_undefined_flag
10450 allow_undefined_flag=
10451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10452 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10455 test $ac_status = 0; }
10457 lt_cv_archive_cmds_need_lc=no
10459 lt_cv_archive_cmds_need_lc=yes
10461 allow_undefined_flag=$lt_save_allow_undefined_flag
10463 cat conftest.err 1>&5
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10469 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10470 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10629 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10631 if test "$GCC" = yes; then
10633 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10634 *) lt_awk_arg="/^libraries:/" ;;
10637 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10638 *) lt_sed_strip_eq="s,=/,/,g" ;;
10640 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10641 case $lt_search_path_spec in
10643 # if the path contains ";" then we assume it to be the separator
10644 # otherwise default to the standard path separator (i.e. ":") - it is
10645 # assumed that no part of a normal pathname contains ";" but that should
10646 # okay in the real world where ";" in dirpaths is itself problematic.
10647 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10650 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10653 # Ok, now we have the path, separated by spaces, we can step through it
10654 # and add multilib dir if necessary.
10655 lt_tmp_lt_search_path_spec=
10656 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10657 for lt_sys_path in $lt_search_path_spec; do
10658 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10661 test -d "$lt_sys_path" && \
10662 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10665 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10666 BEGIN {RS=" "; FS="/|\n";} {
10669 for (lt_i = NF; lt_i > 0; lt_i--) {
10670 if ($lt_i != "" && $lt_i != ".") {
10671 if ($lt_i == "..") {
10674 if (lt_count == 0) {
10675 lt_foo="/" $lt_i lt_foo;
10682 if (lt_foo != "") { lt_freq[lt_foo]++; }
10683 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10685 # AWK program above erroneously prepends '/' to C:/dos/paths
10688 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10689 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10691 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10693 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10695 library_names_spec=
10696 libname_spec='lib$name'
10700 postuninstall_cmds=
10704 shlibpath_overrides_runpath=unknown
10706 dynamic_linker="$host_os ld.so"
10707 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10708 need_lib_prefix=unknown
10709 hardcode_into_libs=no
10711 # when you set need_version to no, make sure it does not cause -set_version
10712 # flags to be left without arguments
10713 need_version=unknown
10717 version_type=linux # correct to gnu/linux during the next big refactor
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10719 shlibpath_var=LIBPATH
10721 # AIX 3 has no versioning support, so we append a major version to the name.
10722 soname_spec='${libname}${release}${shared_ext}$major'
10726 version_type=linux # correct to gnu/linux during the next big refactor
10729 hardcode_into_libs=yes
10730 if test "$host_cpu" = ia64; then
10731 # AIX 5 supports IA64
10732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10733 shlibpath_var=LD_LIBRARY_PATH
10735 # With GCC up to 2.95.x, collect2 would create an import file
10736 # for dependence libraries. The import file would start with
10737 # the line `#! .'. This would cause the generated library to
10738 # depend on `.', always an invalid library. This was fixed in
10739 # development snapshots of GCC prior to 3.0.
10741 aix4 | aix4.[01] | aix4.[01].*)
10742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10744 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10747 can_build_shared=no
10751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10752 # soname into executable. Probably we can add versioning support to
10753 # collect2, so additional links can be useful in future.
10754 if test "$aix_use_runtimelinking" = yes; then
10755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10756 # instead of lib<name>.a to let people know that these are not
10757 # typical AIX shared libraries.
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 # We preserve .a as extension for shared libraries through AIX4.2
10761 # and later when we are not doing run time linking.
10762 library_names_spec='${libname}${release}.a $libname.a'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LIBPATH
10772 # Since July 2007 AmigaOS4 officially supports .so libraries.
10773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 library_names_spec='$libname.ixlibrary $libname.a'
10778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10779 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'
10785 library_names_spec='${libname}${shared_ext}'
10786 dynamic_linker="$host_os ld.so"
10787 shlibpath_var=LIBRARY_PATH
10791 version_type=linux # correct to gnu/linux during the next big refactor
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10799 # the default ld.so.conf also contains /usr/contrib/lib and
10800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10801 # libtool to hard-code these into programs
10804 cygwin* | mingw* | pw32* | cegcc*)
10805 version_type=windows
10810 case $GCC,$cc_basename in
10813 library_names_spec='$libname.dll.a'
10814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10815 postinstall_cmds='base_file=`basename \${file}`~
10816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10817 dldir=$destdir/`dirname \$dlpath`~
10818 test -d \$dldir || mkdir -p \$dldir~
10819 $install_prog $dir/$dlname \$dldir/$dlname~
10820 chmod a+x \$dldir/$dlname~
10821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10825 dlpath=$dir/\$dldll~
10827 shlibpath_overrides_runpath=yes
10831 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10832 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10834 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10837 # MinGW DLLs use traditional 'lib' prefix
10838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841 # pw32 DLLs use 'pw' prefix rather than 'lib'
10842 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10845 dynamic_linker='Win32 ld.exe'
10850 libname_spec='$name'
10851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852 library_names_spec='${libname}.dll.lib'
10856 sys_lib_search_path_spec=
10859 for lt_path in $LIB
10862 # Let DOS variable expansion print the short 8.3 style file name.
10863 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10867 # Convert to MSYS style.
10868 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10871 # Convert to unix form, then to dos form, then back to unix form
10872 # but this time dos style (no spaces!) so that the unix form looks
10873 # like /cygdrive/c/PROGRA~1:/cygdr...
10874 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10875 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10876 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10879 sys_lib_search_path_spec="$LIB"
10880 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10881 # It is most probably a Windows format PATH.
10882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10884 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10886 # FIXME: find the short name or the path components, as spaces are
10887 # common. (e.g. "Program Files" -> "PROGRA~1")
10891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10892 postinstall_cmds='base_file=`basename \${file}`~
10893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10894 dldir=$destdir/`dirname \$dlpath`~
10895 test -d \$dldir || mkdir -p \$dldir~
10896 $install_prog $dir/$dlname \$dldir/$dlname'
10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10898 dlpath=$dir/\$dldll~
10900 shlibpath_overrides_runpath=yes
10901 dynamic_linker='Win32 link.exe'
10905 # Assume MSVC wrapper
10906 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10907 dynamic_linker='Win32 ld.exe'
10910 # FIXME: first we should search . and the directory the executable is in
10914 darwin* | rhapsody*)
10915 dynamic_linker="$host_os dyld"
10916 version_type=darwin
10919 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10920 soname_spec='${libname}${release}${major}$shared_ext'
10921 shlibpath_overrides_runpath=yes
10922 shlibpath_var=DYLD_LIBRARY_PATH
10923 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10925 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10926 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10930 version_type=linux # correct to gnu/linux during the next big refactor
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 shlibpath_var=LD_LIBRARY_PATH
10938 freebsd* | dragonfly*)
10939 # DragonFly does not have aout. When/if they implement a new
10940 # versioning mechanism, adjust this.
10941 if test -x /usr/bin/objformat; then
10942 objformat=`/usr/bin/objformat`
10945 freebsd[23].*) objformat=aout ;;
10946 *) objformat=elf ;;
10949 version_type=freebsd-$objformat
10950 case $version_type in
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10961 shlibpath_var=LD_LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10966 freebsd3.[01]* | freebsdelf3.[01]*)
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10975 *) # from 4.6 on, and DragonFly
10976 shlibpath_overrides_runpath=yes
10977 hardcode_into_libs=yes
10983 version_type=linux # correct to gnu/linux during the next big refactor
10986 dynamic_linker="$host_os runtime_loader"
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10991 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10992 hardcode_into_libs=yes
10995 hpux9* | hpux10* | hpux11*)
10996 # Give a soname corresponding to the major version so that dld.sl refuses to
10997 # link against other versions.
11004 hardcode_into_libs=yes
11005 dynamic_linker="$host_os dld.so"
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 if test "X$HPUX_IA64_MODE" = X32; then
11011 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11013 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11019 hardcode_into_libs=yes
11020 dynamic_linker="$host_os dld.sl"
11021 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11030 dynamic_linker="$host_os dld.sl"
11031 shlibpath_var=SHLIB_PATH
11032 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11037 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11038 postinstall_cmds='chmod 555 $lib'
11039 # or fails outright, so override atomically:
11040 install_override_mode=555
11044 version_type=linux # correct to gnu/linux during the next big refactor
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=no
11052 hardcode_into_libs=yes
11055 irix5* | irix6* | nonstopux*)
11057 nonstopux*) version_type=nonstopux ;;
11059 if test "$lt_cv_prog_gnu_ld" = yes; then
11060 version_type=linux # correct to gnu/linux during the next big refactor
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11070 irix5* | nonstopux*)
11071 libsuff= shlibsuff=
11074 case $LD in # libtool.m4 will add one of these switches to LD
11075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11076 libsuff= shlibsuff= libmagic=32-bit;;
11077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11078 libsuff=32 shlibsuff=N32 libmagic=N32;;
11079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11081 *) libsuff= shlibsuff= libmagic=never-match;;
11085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11086 shlibpath_overrides_runpath=no
11087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11089 hardcode_into_libs=yes
11092 # No shared lib support for Linux oldld, aout, or coff.
11093 linux*oldld* | linux*aout* | linux*coff*)
11097 # This must be glibc/ELF.
11098 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=no
11108 # Some binutils ld are patched to set DT_RUNPATH
11109 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11110 $as_echo_n "(cached) " >&6
11112 lt_cv_shlibpath_overrides_runpath=no
11113 save_LDFLAGS=$LDFLAGS
11114 save_libdir=$libdir
11115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11130 lt_cv_shlibpath_overrides_runpath=yes
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LDFLAGS=$save_LDFLAGS
11136 libdir=$save_libdir
11140 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11142 # This implies no fast_install, which is unacceptable.
11143 # Some rework will be needed to allow for fast_install
11144 # before this can be enabled.
11145 hardcode_into_libs=yes
11147 # Append ld.so.conf contents to the search path
11148 if test -f /etc/ld.so.conf; then
11149 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' ' '`
11150 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11153 # We used to test for /lib/ld.so.1 and disable shared libraries on
11154 # powerpc, because MkLinux only supported shared libraries with the
11155 # GNU dynamic linker. Since this was broken with cross compilers,
11156 # most powerpc-linux boxes support dynamic linking these days and
11157 # people can always --disable-shared, the test was removed, and we
11158 # assume the GNU/Linux dynamic linker is in use.
11159 dynamic_linker='GNU/Linux ld.so'
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=no
11170 hardcode_into_libs=yes
11171 dynamic_linker='NetBSD ld.elf_so'
11178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11181 dynamic_linker='NetBSD (a.out) ld.so'
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 dynamic_linker='NetBSD ld.elf_so'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 shlibpath_overrides_runpath=yes
11189 hardcode_into_libs=yes
11193 version_type=linux # correct to gnu/linux during the next big refactor
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11208 dynamic_linker='ldqnx.so'
11213 sys_lib_dlsearch_path_spec="/usr/lib"
11215 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11217 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11218 *) need_version=no ;;
11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11225 openbsd2.[89] | openbsd2.[89].*)
11226 shlibpath_overrides_runpath=no
11229 shlibpath_overrides_runpath=yes
11233 shlibpath_overrides_runpath=yes
11238 libname_spec='$name'
11241 library_names_spec='$libname${shared_ext} $libname.a'
11242 dynamic_linker='OS/2 ld.exe'
11243 shlibpath_var=LIBPATH
11246 osf3* | osf4* | osf5*)
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11254 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11262 version_type=linux # correct to gnu/linux during the next big refactor
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec='${libname}${release}${shared_ext}$major'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=yes
11269 hardcode_into_libs=yes
11270 # ldd complains unless libraries are executable
11271 postinstall_cmds='chmod +x $lib'
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 shlibpath_overrides_runpath=yes
11280 if test "$with_gnu_ld" = yes; then
11287 version_type=linux # correct to gnu/linux during the next big refactor
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 case $host_vendor in
11293 shlibpath_overrides_runpath=no
11295 runpath_var=LD_RUN_PATH
11303 shlibpath_overrides_runpath=no
11304 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11310 if test -d /usr/nec ;then
11311 version_type=linux # correct to gnu/linux during the next big refactor
11312 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11313 soname_spec='$libname${shared_ext}.$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11319 version_type=freebsd-elf
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11327 if test "$with_gnu_ld" = yes; then
11328 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11330 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11333 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11337 sys_lib_dlsearch_path_spec='/usr/lib'
11341 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11342 version_type=linux # correct to gnu/linux during the next big refactor
11345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348 hardcode_into_libs=yes
11352 version_type=linux # correct to gnu/linux during the next big refactor
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 shlibpath_var=LD_LIBRARY_PATH
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11363 $as_echo "$dynamic_linker" >&6; }
11364 test "$dynamic_linker" = no && can_build_shared=no
11366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11367 if test "$GCC" = yes; then
11368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11371 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11372 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11374 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11375 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11470 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11472 if test -n "$hardcode_libdir_flag_spec" ||
11473 test -n "$runpath_var" ||
11474 test "X$hardcode_automatic" = "Xyes" ; then
11476 # We can hardcode non-existent directories.
11477 if test "$hardcode_direct" != no &&
11478 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11479 # have to relink, otherwise we might link with an installed library
11480 # when we should be linking with a yet-to-be-installed one
11481 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11482 test "$hardcode_minus_L" != no; then
11483 # Linking always hardcodes the temporary library directory.
11484 hardcode_action=relink
11486 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11487 hardcode_action=immediate
11490 # We cannot hardcode anything, or else we can only hardcode existing
11492 hardcode_action=unsupported
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11495 $as_echo "$hardcode_action" >&6; }
11497 if test "$hardcode_action" = relink ||
11498 test "$inherit_rpath" = yes; then
11499 # Fast installation is not supported
11500 enable_fast_install=no
11501 elif test "$shlibpath_overrides_runpath" = yes ||
11502 test "$enable_shared" = no; then
11503 # Fast installation is not necessary
11504 enable_fast_install=needless
11512 if test "x$enable_dlopen" != xyes; then
11513 enable_dlopen=unknown
11514 enable_dlopen_self=unknown
11515 enable_dlopen_self_static=unknown
11522 lt_cv_dlopen="load_add_on"
11524 lt_cv_dlopen_self=yes
11527 mingw* | pw32* | cegcc*)
11528 lt_cv_dlopen="LoadLibrary"
11533 lt_cv_dlopen="dlopen"
11538 # if libdl is installed we need to link against it
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11540 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11541 if ${ac_cv_lib_dl_dlopen+:} false; then :
11542 $as_echo_n "(cached) " >&6
11544 ac_check_lib_save_LIBS=$LIBS
11546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_lib_dl_dlopen=yes
11567 ac_cv_lib_dl_dlopen=no
11569 rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11574 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11575 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11579 lt_cv_dlopen="dyld"
11581 lt_cv_dlopen_self=yes
11588 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11589 if test "x$ac_cv_func_shl_load" = xyes; then :
11590 lt_cv_dlopen="shl_load"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11593 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11594 if ${ac_cv_lib_dld_shl_load+:} false; then :
11595 $as_echo_n "(cached) " >&6
11597 ac_check_lib_save_LIBS=$LIBS
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11612 return shl_load ();
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_lib_dld_shl_load=yes
11620 ac_cv_lib_dld_shl_load=no
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11627 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11628 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11631 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11632 if test "x$ac_cv_func_dlopen" = xyes; then :
11633 lt_cv_dlopen="dlopen"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11637 if ${ac_cv_lib_dl_dlopen+:} false; then :
11638 $as_echo_n "(cached) " >&6
11640 ac_check_lib_save_LIBS=$LIBS
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_dl_dlopen=yes
11663 ac_cv_lib_dl_dlopen=no
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11675 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11676 if ${ac_cv_lib_svld_dlopen+:} false; then :
11677 $as_echo_n "(cached) " >&6
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lsvld $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 ac_cv_lib_svld_dlopen=yes
11702 ac_cv_lib_svld_dlopen=no
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11709 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11710 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11714 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11715 if ${ac_cv_lib_dld_dld_link+:} false; then :
11716 $as_echo_n "(cached) " >&6
11718 ac_check_lib_save_LIBS=$LIBS
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11733 return dld_link ();
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 ac_cv_lib_dld_dld_link=yes
11741 ac_cv_lib_dld_dld_link=no
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11748 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11749 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11750 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11771 if test "x$lt_cv_dlopen" != xno; then
11777 case $lt_cv_dlopen in
11779 save_CPPFLAGS="$CPPFLAGS"
11780 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11782 save_LDFLAGS="$LDFLAGS"
11783 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786 LIBS="$lt_cv_dlopen_libs $LIBS"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11789 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11790 if ${lt_cv_dlopen_self+:} false; then :
11791 $as_echo_n "(cached) " >&6
11793 if test "$cross_compiling" = yes; then :
11794 lt_cv_dlopen_self=cross
11796 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11797 lt_status=$lt_dlunknown
11798 cat > conftest.$ac_ext <<_LT_EOF
11799 #line $LINENO "configure"
11800 #include "confdefs.h"
11809 # define LT_DLGLOBAL RTLD_GLOBAL
11812 # define LT_DLGLOBAL DL_GLOBAL
11814 # define LT_DLGLOBAL 0
11818 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11819 find out it does not work in some platform. */
11820 #ifndef LT_DLLAZY_OR_NOW
11822 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11825 # define LT_DLLAZY_OR_NOW DL_LAZY
11828 # define LT_DLLAZY_OR_NOW RTLD_NOW
11831 # define LT_DLLAZY_OR_NOW DL_NOW
11833 # define LT_DLLAZY_OR_NOW 0
11840 /* When -fvisbility=hidden is used, assume the code has been annotated
11841 correspondingly for the symbols needed. */
11842 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11843 int fnord () __attribute__((visibility("default")));
11846 int fnord () { return 42; }
11849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11850 int status = $lt_dlunknown;
11854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11857 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11858 else puts (dlerror ());
11860 /* dlclose (self); */
11868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11869 (eval $ac_link) 2>&5
11871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11872 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11873 (./conftest; exit; ) >&5 2>/dev/null
11875 case x$lt_status in
11876 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11877 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11878 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11881 # compilation failed
11882 lt_cv_dlopen_self=no
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11890 $as_echo "$lt_cv_dlopen_self" >&6; }
11892 if test "x$lt_cv_dlopen_self" = xyes; then
11893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11895 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11896 if ${lt_cv_dlopen_self_static+:} false; then :
11897 $as_echo_n "(cached) " >&6
11899 if test "$cross_compiling" = yes; then :
11900 lt_cv_dlopen_self_static=cross
11902 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11903 lt_status=$lt_dlunknown
11904 cat > conftest.$ac_ext <<_LT_EOF
11905 #line $LINENO "configure"
11906 #include "confdefs.h"
11915 # define LT_DLGLOBAL RTLD_GLOBAL
11918 # define LT_DLGLOBAL DL_GLOBAL
11920 # define LT_DLGLOBAL 0
11924 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11925 find out it does not work in some platform. */
11926 #ifndef LT_DLLAZY_OR_NOW
11928 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11931 # define LT_DLLAZY_OR_NOW DL_LAZY
11934 # define LT_DLLAZY_OR_NOW RTLD_NOW
11937 # define LT_DLLAZY_OR_NOW DL_NOW
11939 # define LT_DLLAZY_OR_NOW 0
11946 /* When -fvisbility=hidden is used, assume the code has been annotated
11947 correspondingly for the symbols needed. */
11948 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11949 int fnord () __attribute__((visibility("default")));
11952 int fnord () { return 42; }
11955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11956 int status = $lt_dlunknown;
11960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11963 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11964 else puts (dlerror ());
11966 /* dlclose (self); */
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11975 (eval $ac_link) 2>&5
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11979 (./conftest; exit; ) >&5 2>/dev/null
11981 case x$lt_status in
11982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11984 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11987 # compilation failed
11988 lt_cv_dlopen_self_static=no
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11996 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11999 CPPFLAGS="$save_CPPFLAGS"
12000 LDFLAGS="$save_LDFLAGS"
12005 case $lt_cv_dlopen_self in
12006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12007 *) enable_dlopen_self=unknown ;;
12010 case $lt_cv_dlopen_self_static in
12011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12012 *) enable_dlopen_self_static=unknown ;;
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12035 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12036 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12037 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12038 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12042 # FIXME - insert some real tests, host_os isn't really good enough
12045 if test -n "$STRIP" ; then
12046 striplib="$STRIP -x"
12047 old_striplib="$STRIP -S"
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049 $as_echo "yes" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12052 $as_echo "no" >&6; }
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057 $as_echo "no" >&6; }
12073 # Report which library types will actually be built
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12075 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12077 $as_echo "$can_build_shared" >&6; }
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12080 $as_echo_n "checking whether to build shared libraries... " >&6; }
12081 test "$can_build_shared" = "no" && enable_shared=no
12083 # On AIX, shared libraries and static libraries use the same namespace, and
12084 # are all built from PIC.
12087 test "$enable_shared" = yes && enable_static=no
12088 if test -n "$RANLIB"; then
12089 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12090 postinstall_cmds='$RANLIB $lib'
12095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12096 test "$enable_shared" = yes && enable_static=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12101 $as_echo "$enable_shared" >&6; }
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12104 $as_echo_n "checking whether to build static libraries... " >&6; }
12105 # Make sure either enable_shared or enable_static is yes.
12106 test "$enable_shared" = yes || enable_static=yes
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12108 $as_echo "$enable_static" >&6; }
12115 ac_cpp='$CPP $CPPFLAGS'
12116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136 ac_config_commands="$ac_config_commands libtool"
12141 # Only expand once:
12146 ac_cpp='$CXXCPP $CPPFLAGS'
12147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12150 if test -z "$CXX"; then
12151 if test -n "$CCC"; then
12154 if test -n "$ac_tool_prefix"; then
12155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if ${ac_cv_prog_CXX+:} false; then :
12162 $as_echo_n "(cached) " >&6
12164 if test -n "$CXX"; then
12165 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12171 test -z "$as_dir" && as_dir=.
12172 for ac_exec_ext in '' $ac_executable_extensions; do
12173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 CXX=$ac_cv_prog_CXX
12185 if test -n "$CXX"; then
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12187 $as_echo "$CXX" >&6; }
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12194 test -n "$CXX" && break
12197 if test -z "$CXX"; then
12199 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12201 # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12206 $as_echo_n "(cached) " >&6
12208 if test -n "$ac_ct_CXX"; then
12209 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_ac_ct_CXX="$ac_prog"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12229 if test -n "$ac_ct_CXX"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12231 $as_echo "$ac_ct_CXX" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12238 test -n "$ac_ct_CXX" && break
12241 if test "x$ac_ct_CXX" = x; then
12244 case $cross_compiling:$ac_tool_warned in
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12248 ac_tool_warned=yes ;;
12256 # Provide some information about the compiler.
12257 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12260 for ac_option in --version -v -V -qversion; do
12261 { { ac_try="$ac_compiler $ac_option >&5"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12267 $as_echo "$ac_try_echo"; } >&5
12268 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12270 if test -s conftest.err; then
12272 ... rest of stderr output deleted ...
12273 10q' conftest.err >conftest.er1
12274 cat conftest.er1 >&5
12276 rm -f conftest.er1 conftest.err
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12282 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12283 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12284 $as_echo_n "(cached) " >&6
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12300 if ac_fn_cxx_try_compile "$LINENO"; then :
12301 ac_compiler_gnu=yes
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12306 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12310 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12311 if test $ac_compiler_gnu = yes; then
12316 ac_test_CXXFLAGS=${CXXFLAGS+set}
12317 ac_save_CXXFLAGS=$CXXFLAGS
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12319 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12320 if ${ac_cv_prog_cxx_g+:} false; then :
12321 $as_echo_n "(cached) " >&6
12323 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12324 ac_cxx_werror_flag=yes
12325 ac_cv_prog_cxx_g=no
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12338 if ac_fn_cxx_try_compile "$LINENO"; then :
12339 ac_cv_prog_cxx_g=yes
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12353 if ac_fn_cxx_try_compile "$LINENO"; then :
12356 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12369 if ac_fn_cxx_try_compile "$LINENO"; then :
12370 ac_cv_prog_cxx_g=yes
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12380 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12381 if test "$ac_test_CXXFLAGS" = set; then
12382 CXXFLAGS=$ac_save_CXXFLAGS
12383 elif test $ac_cv_prog_cxx_g = yes; then
12384 if test "$GXX" = yes; then
12390 if test "$GXX" = yes; then
12397 ac_cpp='$CPP $CPPFLAGS'
12398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12402 depcc="$CXX" am_compiler_list=
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12405 $as_echo_n "checking dependency style of $depcc... " >&6; }
12406 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12407 $as_echo_n "(cached) " >&6
12409 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12410 # We make a subdir and do the tests there. Otherwise we can end up
12411 # making bogus files that we don't know about and never remove. For
12412 # instance it was reported that on HP-UX the gcc test will end up
12413 # making a dummy file named 'D' -- because '-MD' means "put the output
12415 rm -rf conftest.dir
12417 # Copy depcomp to subdir because otherwise we won't find it if we're
12418 # using a relative directory.
12419 cp "$am_depcomp" conftest.dir
12421 # We will build objects and dependencies in a subdirectory because
12422 # it helps to detect inapplicable dependency modes. For instance
12423 # both Tru64's cc and ICC support -MD to output dependencies as a
12424 # side effect of compilation, but ICC will put the dependencies in
12425 # the current directory while Tru64 will put them in the object
12429 am_cv_CXX_dependencies_compiler_type=none
12430 if test "$am_compiler_list" = ""; then
12431 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12433 am__universal=false
12434 case " $depcc " in #(
12435 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12438 for depmode in $am_compiler_list; do
12439 # Setup a source with many dependencies, because some compilers
12440 # like to wrap large dependency lists on column 80 (with \), and
12441 # we should not choose a depcomp mode which is confused by this.
12443 # We need to recreate these files for each test, as the compiler may
12444 # overwrite some of them when testing with obscure command lines.
12445 # This happens at least with the AIX C compiler.
12447 for i in 1 2 3 4 5 6; do
12448 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12449 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12450 # Solaris 10 /bin/sh.
12451 echo '/* dummy */' > sub/conftst$i.h
12453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12455 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12456 # mode. It turns out that the SunPro C++ compiler does not properly
12457 # handle '-M -o', and we need to detect this. Also, some Intel
12458 # versions had trouble with output in subdirs.
12459 am__obj=sub/conftest.${OBJEXT-o}
12460 am__minus_obj="-o $am__obj"
12463 # This depmode causes a compiler race in universal mode.
12464 test "$am__universal" = false || continue
12467 # After this tag, mechanisms are not by side-effect, so they'll
12468 # only be used when explicitly requested.
12469 if test "x$enable_dependency_tracking" = xyes; then
12475 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12476 # This compiler won't grok '-c -o', but also, the minuso test has
12477 # not run yet. These depmodes are late enough in the game, and
12478 # so weak that their functioning should not be impacted.
12479 am__obj=conftest.${OBJEXT-o}
12484 if depmode=$depmode \
12485 source=sub/conftest.c object=$am__obj \
12486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12487 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12488 >/dev/null 2>conftest.err &&
12489 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12490 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12491 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12492 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12493 # icc doesn't choke on unknown options, it will just issue warnings
12494 # or remarks (even with -Werror). So we grep stderr for any message
12495 # that says an option was ignored or not supported.
12496 # When given -MP, icc 7.0 and 7.1 complain thusly:
12497 # icc: Command line warning: ignoring option '-M'; no argument required
12498 # The diagnosis changed in icc 8.0:
12499 # icc: Command line remark: option '-MP' not supported
12500 if (grep 'ignoring option' conftest.err ||
12501 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12502 am_cv_CXX_dependencies_compiler_type=$depmode
12509 rm -rf conftest.dir
12511 am_cv_CXX_dependencies_compiler_type=none
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12516 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12517 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12520 test "x$enable_dependency_tracking" != xno \
12521 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12522 am__fastdepCXX_TRUE=
12523 am__fastdepCXX_FALSE='#'
12525 am__fastdepCXX_TRUE='#'
12526 am__fastdepCXX_FALSE=
12532 func_stripname_cnf ()
12535 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12536 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12538 } # func_stripname_cnf
12540 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12541 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12542 (test "X$CXX" != "Xg++"))) ; then
12544 ac_cpp='$CXXCPP $CPPFLAGS'
12545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12549 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12550 if test -z "$CXXCPP"; then
12551 if ${ac_cv_prog_CXXCPP+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 # Double quotes because CXXCPP needs to be expanded
12555 for CXXCPP in "$CXX -E" "/lib/cpp"
12557 ac_preproc_ok=false
12558 for ac_cxx_preproc_warn_flag in '' yes
12560 # Use a header file that comes with gcc, so configuring glibc
12561 # with a fresh cross-compiler works.
12562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12563 # <limits.h> exists even on freestanding compilers.
12564 # On the NeXT, cc -E runs the code through the compiler's parser,
12565 # not just through cpp. "Syntax error" is here to catch this case.
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 # include <limits.h>
12571 # include <assert.h>
12575 if ac_fn_cxx_try_cpp "$LINENO"; then :
12578 # Broken: fails on valid input.
12581 rm -f conftest.err conftest.i conftest.$ac_ext
12583 # OK, works on sane cases. Now check whether nonexistent headers
12584 # can be detected and how.
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <ac_nonexistent.h>
12589 if ac_fn_cxx_try_cpp "$LINENO"; then :
12590 # Broken: success on invalid input.
12593 # Passes both tests.
12597 rm -f conftest.err conftest.i conftest.$ac_ext
12600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12601 rm -f conftest.i conftest.err conftest.$ac_ext
12602 if $ac_preproc_ok; then :
12607 ac_cv_prog_CXXCPP=$CXXCPP
12610 CXXCPP=$ac_cv_prog_CXXCPP
12612 ac_cv_prog_CXXCPP=$CXXCPP
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12615 $as_echo "$CXXCPP" >&6; }
12616 ac_preproc_ok=false
12617 for ac_cxx_preproc_warn_flag in '' yes
12619 # Use a header file that comes with gcc, so configuring glibc
12620 # with a fresh cross-compiler works.
12621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12622 # <limits.h> exists even on freestanding compilers.
12623 # On the NeXT, cc -E runs the code through the compiler's parser,
12624 # not just through cpp. "Syntax error" is here to catch this case.
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12628 # include <limits.h>
12630 # include <assert.h>
12634 if ac_fn_cxx_try_cpp "$LINENO"; then :
12637 # Broken: fails on valid input.
12640 rm -f conftest.err conftest.i conftest.$ac_ext
12642 # OK, works on sane cases. Now check whether nonexistent headers
12643 # can be detected and how.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 #include <ac_nonexistent.h>
12648 if ac_fn_cxx_try_cpp "$LINENO"; then :
12649 # Broken: success on invalid input.
12652 # Passes both tests.
12656 rm -f conftest.err conftest.i conftest.$ac_ext
12659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12660 rm -f conftest.i conftest.err conftest.$ac_ext
12661 if $ac_preproc_ok; then :
12664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12666 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12667 See \`config.log' for more details" "$LINENO" 5; }
12671 ac_cpp='$CPP $CPPFLAGS'
12672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677 _lt_caught_CXX_error=yes
12681 ac_cpp='$CXXCPP $CPPFLAGS'
12682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12686 archive_cmds_need_lc_CXX=no
12687 allow_undefined_flag_CXX=
12688 always_export_symbols_CXX=no
12689 archive_expsym_cmds_CXX=
12690 compiler_needs_object_CXX=no
12691 export_dynamic_flag_spec_CXX=
12692 hardcode_direct_CXX=no
12693 hardcode_direct_absolute_CXX=no
12694 hardcode_libdir_flag_spec_CXX=
12695 hardcode_libdir_separator_CXX=
12696 hardcode_minus_L_CXX=no
12697 hardcode_shlibpath_var_CXX=unsupported
12698 hardcode_automatic_CXX=no
12699 inherit_rpath_CXX=no
12701 module_expsym_cmds_CXX=
12702 link_all_deplibs_CXX=unknown
12703 old_archive_cmds_CXX=$old_archive_cmds
12704 reload_flag_CXX=$reload_flag
12705 reload_cmds_CXX=$reload_cmds
12706 no_undefined_flag_CXX=
12707 whole_archive_flag_spec_CXX=
12708 enable_shared_with_static_runtimes_CXX=no
12710 # Source file extension for C++ test sources.
12713 # Object file extension for compiled C++ test sources.
12717 # No sense in running all these tests if we already determined that
12718 # the CXX compiler isn't working. Some variables (like enable_shared)
12719 # are currently assumed to apply to all compilers on this platform,
12720 # and will be corrupted by setting them based on a non-working compiler.
12721 if test "$_lt_caught_CXX_error" != yes; then
12722 # Code to be used in simple compile tests
12723 lt_simple_compile_test_code="int some_variable = 0;"
12725 # Code to be used in simple link tests
12726 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12728 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12735 # If no C compiler was specified, use CC.
12738 # If no C compiler flags were specified, use CFLAGS.
12739 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12741 # Allow CC to be a program name with arguments.
12745 # save warnings/boilerplate of simple test code
12746 ac_outfile=conftest.$ac_objext
12747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12749 _lt_compiler_boilerplate=`cat conftest.err`
12752 ac_outfile=conftest.$ac_objext
12753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12755 _lt_linker_boilerplate=`cat conftest.err`
12759 # Allow CC to be a program name with arguments.
12761 lt_save_CFLAGS=$CFLAGS
12765 lt_save_with_gnu_ld=$with_gnu_ld
12766 lt_save_path_LD=$lt_cv_path_LD
12767 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12768 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12770 $as_unset lt_cv_prog_gnu_ld
12772 if test -n "${lt_cv_path_LDCXX+set}"; then
12773 lt_cv_path_LD=$lt_cv_path_LDCXX
12775 $as_unset lt_cv_path_LD
12777 test -z "${LDCXX+set}" || LD=$LDCXX
12782 for cc_temp in $compiler""; do
12784 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12785 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12790 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12793 if test -n "$compiler"; then
12794 # We don't want -fno-exception when compiling C++ code, so set the
12795 # no_builtin_flag separately
12796 if test "$GXX" = yes; then
12797 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12799 lt_prog_compiler_no_builtin_flag_CXX=
12802 if test "$GXX" = yes; then
12803 # Set up default GNU C++ configuration
12807 # Check whether --with-gnu-ld was given.
12808 if test "${with_gnu_ld+set}" = set; then :
12809 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12815 if test "$GCC" = yes; then
12816 # Check if gcc -print-prog-name=ld gives a path.
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12818 $as_echo_n "checking for ld used by $CC... " >&6; }
12821 # gcc leaves a trailing carriage return which upsets mingw
12822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12827 # Accept absolute paths.
12829 re_direlt='/[^/][^/]*/\.\./'
12830 # Canonicalize the pathname of ld
12831 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12832 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12833 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12835 test -z "$LD" && LD="$ac_prog"
12838 # If it fails, then pretend we aren't using GCC.
12842 # If it is relative, then search for the first ld in PATH.
12843 with_gnu_ld=unknown
12846 elif test "$with_gnu_ld" = yes; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12848 $as_echo_n "checking for GNU ld... " >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12851 $as_echo_n "checking for non-GNU ld... " >&6; }
12853 if ${lt_cv_path_LD+:} false; then :
12854 $as_echo_n "(cached) " >&6
12856 if test -z "$LD"; then
12857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12858 for ac_dir in $PATH; do
12860 test -z "$ac_dir" && ac_dir=.
12861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12862 lt_cv_path_LD="$ac_dir/$ac_prog"
12863 # Check to see if the program is GNU ld. I'd rather use --version,
12864 # but apparently some variants of GNU ld only accept -v.
12865 # Break only if it was the GNU/non-GNU ld that we prefer.
12866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12867 *GNU* | *'with BFD'*)
12868 test "$with_gnu_ld" != no && break
12871 test "$with_gnu_ld" != yes && break
12878 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12882 LD="$lt_cv_path_LD"
12883 if test -n "$LD"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12885 $as_echo "$LD" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12890 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12892 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12893 if ${lt_cv_prog_gnu_ld+:} false; then :
12894 $as_echo_n "(cached) " >&6
12896 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12897 case `$LD -v 2>&1 </dev/null` in
12898 *GNU* | *'with BFD'*)
12899 lt_cv_prog_gnu_ld=yes
12902 lt_cv_prog_gnu_ld=no
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12907 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12908 with_gnu_ld=$lt_cv_prog_gnu_ld
12916 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12917 # archiving commands below assume that GNU ld is being used.
12918 if test "$with_gnu_ld" = yes; then
12919 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12920 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'
12922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12925 # If archive_cmds runs LD, not CC, wlarc should be empty
12926 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12927 # investigate it a little bit more. (MM)
12930 # ancient GNU ld didn't support --whole-archive et. al.
12931 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12932 $GREP 'no-whole-archive' > /dev/null; then
12933 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12935 whole_archive_flag_spec_CXX=
12941 # A generic and very simple default shared library creation
12942 # command for GNU C++ for the case where it uses the native
12943 # linker, instead of GNU ld. If possible, this setting should
12944 # overridden to take advantage of the native linker features on
12945 # the platform it is being used on.
12946 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12949 # Commands to make compiler produce verbose output that lists
12950 # what "hidden" libraries, object files and flags are used when
12951 # linking a shared library.
12952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12960 # PORTME: fill in a description of your system's C++ link characteristics
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12966 # FIXME: insert proper C++ library support
12970 if test "$host_cpu" = ia64; then
12971 # On IA64, the linker does run time linking by default, so we don't
12972 # have to do anything special.
12973 aix_use_runtimelinking=no
12974 exp_sym_flag='-Bexport'
12977 aix_use_runtimelinking=no
12979 # Test if we are trying to use run time linking or normal
12980 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12981 # need to do runtime linking.
12982 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12983 for ld_flag in $LDFLAGS; do
12986 aix_use_runtimelinking=yes
12994 exp_sym_flag='-bexport'
12995 no_entry_flag='-bnoentry'
12998 # When large executables or shared objects are built, AIX ld can
12999 # have problems creating the table of contents. If linking a library
13000 # or program results in "error TOC overflow" add -mminimal-toc to
13001 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13002 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13004 archive_cmds_CXX=''
13005 hardcode_direct_CXX=yes
13006 hardcode_direct_absolute_CXX=yes
13007 hardcode_libdir_separator_CXX=':'
13008 link_all_deplibs_CXX=yes
13009 file_list_spec_CXX='${wl}-f,'
13011 if test "$GXX" = yes; then
13012 case $host_os in aix4.[012]|aix4.[012].*)
13013 # We only want to do this on AIX 4.2 and lower, the check
13014 # below for broken collect2 doesn't work under 4.3+
13015 collect2name=`${CC} -print-prog-name=collect2`
13016 if test -f "$collect2name" &&
13017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13019 # We have reworked collect2
13022 # We have old collect2
13023 hardcode_direct_CXX=unsupported
13024 # It fails to find uninstalled libraries when the uninstalled
13025 # path is not listed in the libpath. Setting hardcode_minus_L
13026 # to unsupported forces relinking
13027 hardcode_minus_L_CXX=yes
13028 hardcode_libdir_flag_spec_CXX='-L$libdir'
13029 hardcode_libdir_separator_CXX=
13032 shared_flag='-shared'
13033 if test "$aix_use_runtimelinking" = yes; then
13034 shared_flag="$shared_flag "'${wl}-G'
13038 if test "$host_cpu" = ia64; then
13039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13040 # chokes on -Wl,-G. The following line is correct:
13043 if test "$aix_use_runtimelinking" = yes; then
13044 shared_flag='${wl}-G'
13046 shared_flag='${wl}-bM:SRE'
13051 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13052 # It seems that -bexpall does not export symbols beginning with
13053 # underscore (_), so it is better to generate a list of symbols to
13055 always_export_symbols_CXX=yes
13056 if test "$aix_use_runtimelinking" = yes; then
13057 # Warning - without using the other runtime loading flags (-brtl),
13058 # -berok will link without error, but may produce a broken library.
13059 allow_undefined_flag_CXX='-berok'
13060 # Determine the default libpath from the value encoded in an empty
13062 if test "${lt_cv_aix_libpath+set}" = set; then
13063 aix_libpath=$lt_cv_aix_libpath
13065 if ${lt_cv_aix_libpath__CXX+:} false; then :
13066 $as_echo_n "(cached) " >&6
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13079 if ac_fn_cxx_try_link "$LINENO"; then :
13081 lt_aix_libpath_sed='
13082 /Import File Strings/,/^$/ {
13084 s/^0 *\([^ ]*\) *$/\1/
13088 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13089 # Check for a 64-bit object if we didn't find anything.
13090 if test -z "$lt_cv_aix_libpath__CXX"; then
13091 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 if test -z "$lt_cv_aix_libpath__CXX"; then
13097 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13102 aix_libpath=$lt_cv_aix_libpath__CXX
13105 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13107 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"
13109 if test "$host_cpu" = ia64; then
13110 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13111 allow_undefined_flag_CXX="-z nodefs"
13112 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"
13114 # Determine the default libpath from the value encoded in an
13115 # empty executable.
13116 if test "${lt_cv_aix_libpath+set}" = set; then
13117 aix_libpath=$lt_cv_aix_libpath
13119 if ${lt_cv_aix_libpath__CXX+:} false; then :
13120 $as_echo_n "(cached) " >&6
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13133 if ac_fn_cxx_try_link "$LINENO"; then :
13135 lt_aix_libpath_sed='
13136 /Import File Strings/,/^$/ {
13138 s/^0 *\([^ ]*\) *$/\1/
13142 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13143 # Check for a 64-bit object if we didn't find anything.
13144 if test -z "$lt_cv_aix_libpath__CXX"; then
13145 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 if test -z "$lt_cv_aix_libpath__CXX"; then
13151 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13156 aix_libpath=$lt_cv_aix_libpath__CXX
13159 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13160 # Warning - without using the other run time loading flags,
13161 # -berok will link without error, but may produce a broken library.
13162 no_undefined_flag_CXX=' ${wl}-bernotok'
13163 allow_undefined_flag_CXX=' ${wl}-berok'
13164 if test "$with_gnu_ld" = yes; then
13165 # We only use this code for GNU lds that support --whole-archive.
13166 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13168 # Exported symbols can be pulled into shared objects from archives
13169 whole_archive_flag_spec_CXX='$convenience'
13171 archive_cmds_need_lc_CXX=yes
13172 # This is similar to how AIX traditionally builds its shared
13174 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'
13180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181 allow_undefined_flag_CXX=unsupported
13182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13183 # support --undefined. This deserves some investigation. FIXME
13184 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13191 case $cc_basename in
13193 # FIXME: insert proper C++ library support
13199 cygwin* | mingw* | pw32* | cegcc*)
13200 case $GXX,$cc_basename in
13203 # hardcode_libdir_flag_spec is actually meaningless, as there is
13204 # no search path for DLLs.
13205 hardcode_libdir_flag_spec_CXX=' '
13206 allow_undefined_flag_CXX=unsupported
13207 always_export_symbols_CXX=yes
13208 file_list_spec_CXX='@'
13209 # Tell ltmain to make .lib files, not .a files.
13211 # Tell ltmain to make .dll files, not .so files.
13213 # FIXME: Setting linknames here is a bad hack.
13214 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13215 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13216 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13218 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13220 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13222 # The linker will not automatically build a static lib if we build a DLL.
13223 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13224 enable_shared_with_static_runtimes_CXX=yes
13226 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13227 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13228 lt_tool_outputfile="@TOOL_OUTPUT@"~
13229 case $lt_outputfile in
13232 lt_outputfile="$lt_outputfile.exe"
13233 lt_tool_outputfile="$lt_tool_outputfile.exe"
13236 func_to_tool_file "$lt_outputfile"~
13237 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13238 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13239 $RM "$lt_outputfile.manifest";
13244 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13245 # as there is no search path for DLLs.
13246 hardcode_libdir_flag_spec_CXX='-L$libdir'
13247 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13248 allow_undefined_flag_CXX=unsupported
13249 always_export_symbols_CXX=no
13250 enable_shared_with_static_runtimes_CXX=yes
13252 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13253 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'
13254 # If the export-symbols file already is a .def file (1st line
13255 # is EXPORTS), use it as is; otherwise, prepend...
13256 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13257 cp $export_symbols $output_objdir/$soname.def;
13259 echo EXPORTS > $output_objdir/$soname.def;
13260 cat $export_symbols >> $output_objdir/$soname.def;
13262 $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'
13269 darwin* | rhapsody*)
13272 archive_cmds_need_lc_CXX=no
13273 hardcode_direct_CXX=no
13274 hardcode_automatic_CXX=yes
13275 hardcode_shlibpath_var_CXX=unsupported
13276 if test "$lt_cv_ld_force_load" = "yes"; then
13277 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\"`'
13280 whole_archive_flag_spec_CXX=''
13282 link_all_deplibs_CXX=yes
13283 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13284 case $cc_basename in
13285 ifort*) _lt_dar_can_shared=yes ;;
13286 *) _lt_dar_can_shared=$GCC ;;
13288 if test "$_lt_dar_can_shared" = "yes"; then
13289 output_verbose_link_cmd=func_echo_all
13290 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}"
13291 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13292 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}"
13293 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}"
13294 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13295 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}"
13296 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}"
13306 case $cc_basename in
13308 # FIXME: insert proper C++ library support
13312 # Green Hills C++ Compiler
13313 # FIXME: insert proper C++ library support
13317 # FIXME: insert proper C++ library support
13324 # C++ shared libraries reported to be fairly broken before
13330 archive_cmds_need_lc_CXX=no
13333 freebsd* | dragonfly*)
13334 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13340 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 link_all_deplibs_CXX=yes
13345 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13346 hardcode_libdir_separator_CXX=:
13347 export_dynamic_flag_spec_CXX='${wl}-E'
13348 hardcode_direct_CXX=yes
13349 hardcode_minus_L_CXX=yes # Not in the search PATH,
13350 # but as the default
13351 # location of the library.
13353 case $cc_basename in
13355 # FIXME: insert proper C++ library support
13359 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'
13360 # Commands to make compiler produce verbose output that lists
13361 # what "hidden" libraries, object files and flags are used when
13362 # linking a shared library.
13364 # There doesn't appear to be a way to prevent this compiler from
13365 # explicitly linking system object files so we need to strip them
13366 # from the output so that they don't get included in the library
13368 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"'
13371 if test "$GXX" = yes; then
13372 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'
13374 # FIXME: insert proper C++ library support
13382 if test $with_gnu_ld = no; then
13383 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13384 hardcode_libdir_separator_CXX=:
13390 export_dynamic_flag_spec_CXX='${wl}-E'
13396 hardcode_direct_CXX=no
13397 hardcode_shlibpath_var_CXX=no
13400 hardcode_direct_CXX=yes
13401 hardcode_direct_absolute_CXX=yes
13402 hardcode_minus_L_CXX=yes # Not in the search PATH,
13403 # but as the default
13404 # location of the library.
13408 case $cc_basename in
13410 # FIXME: insert proper C++ library support
13416 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13419 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13422 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13425 # Commands to make compiler produce verbose output that lists
13426 # what "hidden" libraries, object files and flags are used when
13427 # linking a shared library.
13429 # There doesn't appear to be a way to prevent this compiler from
13430 # explicitly linking system object files so we need to strip them
13431 # from the output so that they don't get included in the library
13433 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"'
13436 if test "$GXX" = yes; then
13437 if test $with_gnu_ld = no; then
13440 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13443 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13446 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'
13451 # FIXME: insert proper C++ library support
13459 hardcode_direct_CXX=no
13460 hardcode_shlibpath_var_CXX=no
13461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462 export_dynamic_flag_spec_CXX='${wl}-E'
13463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13464 # Instead, shared libraries are loaded at an image base (0x10000000 by
13465 # default) and relocated if they conflict, which is a slow very memory
13466 # consuming and fragmenting process. To avoid this, we pick a random,
13467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13469 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'
13470 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'
13473 case $cc_basename in
13476 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'
13478 # Archives containing C++ object files must be created using
13479 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13480 # necessary to make sure instantiated templates are included
13482 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13485 if test "$GXX" = yes; then
13486 if test "$with_gnu_ld" = no; then
13487 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'
13489 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'
13492 link_all_deplibs_CXX=yes
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496 hardcode_libdir_separator_CXX=:
13497 inherit_rpath_CXX=yes
13500 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13501 case $cc_basename in
13503 # Kuck and Associates, Inc. (KAI) C++ Compiler
13505 # KCC will only create a shared library if the output file
13506 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13507 # to its proper name (with version) after linking.
13508 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'
13509 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'
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13514 # There doesn't appear to be a way to prevent this compiler from
13515 # explicitly linking system object files so we need to strip them
13516 # from the output so that they don't get included in the library
13518 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"'
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13523 # Archives containing C++ object files must be created using
13524 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13530 # version 8.0 and above of icpc choke on multiply defined symbols
13531 # if we add $predep_objects and $postdep_objects, however 7.1 and
13532 # earlier do not add the objects themselves.
13533 case `$CC -V 2>&1` in
13535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13536 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'
13538 *) # Version 8.0 or newer
13541 ia64*) tmp_idyn=' -i_dynamic';;
13543 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 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'
13547 archive_cmds_need_lc_CXX=no
13548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13550 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13553 # Portland Group C++ compiler
13555 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13556 prelink_cmds_CXX='tpldir=Template.dir~
13558 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13559 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13560 old_archive_cmds_CXX='tpldir=Template.dir~
13562 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13563 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13565 archive_cmds_CXX='tpldir=Template.dir~
13567 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13568 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13569 archive_expsym_cmds_CXX='tpldir=Template.dir~
13571 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13572 $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'
13574 *) # Version 6 and above use weak symbols
13575 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13576 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'
13580 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13581 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13582 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'
13586 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13587 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'
13589 runpath_var=LD_RUN_PATH
13590 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13591 hardcode_libdir_separator_CXX=:
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13597 # There doesn't appear to be a way to prevent this compiler from
13598 # explicitly linking system object files so we need to strip them
13599 # from the output so that they don't get included in the library
13601 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'
13603 xl* | mpixl* | bgxl*)
13604 # IBM XL 8.0 on PPC, with GNU ld
13605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13607 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608 if test "x$supports_anon_versioning" = xyes; then
13609 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13611 echo "local: *; };" >> $output_objdir/$libname.ver~
13612 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13616 case `$CC -V 2>&1 | sed 5q` in
13619 no_undefined_flag_CXX=' -zdefs'
13620 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13621 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'
13622 hardcode_libdir_flag_spec_CXX='-R$libdir'
13623 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'
13624 compiler_needs_object_CXX=yes
13626 # Not sure whether something based on
13627 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13629 output_verbose_link_cmd='func_echo_all'
13631 # Archives containing C++ object files must be created using
13632 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13633 # necessary to make sure instantiated templates are included
13635 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13643 # FIXME: insert proper C++ library support
13648 # FIXME: insert proper C++ library support
13653 case $cc_basename in
13655 # FIXME: insert proper C++ library support
13659 # FIXME: insert proper C++ library support
13666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13667 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13669 hardcode_libdir_flag_spec_CXX='-R$libdir'
13670 hardcode_direct_CXX=yes
13671 hardcode_shlibpath_var_CXX=no
13673 # Workaround some broken pre-1.5 toolchains
13674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13682 # C++ shared libraries are fairly broken
13687 if test -f /usr/libexec/ld.so; then
13688 hardcode_direct_CXX=yes
13689 hardcode_shlibpath_var_CXX=no
13690 hardcode_direct_absolute_CXX=yes
13691 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13694 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13695 export_dynamic_flag_spec_CXX='${wl}-E'
13696 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13698 output_verbose_link_cmd=func_echo_all
13704 osf3* | osf4* | osf5*)
13705 case $cc_basename in
13707 # Kuck and Associates, Inc. (KAI) C++ Compiler
13709 # KCC will only create a shared library if the output file
13710 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13711 # to its proper name (with version) after linking.
13712 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'
13714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13715 hardcode_libdir_separator_CXX=:
13717 # Archives containing C++ object files must be created using
13718 # the KAI C++ compiler.
13720 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13721 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13725 # Rational C++ 2.4.1
13726 # FIXME: insert proper C++ library support
13732 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13733 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'
13734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13737 allow_undefined_flag_CXX=' -expect_unresolved \*'
13738 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'
13739 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13740 echo "-hidden">> $lib.exp~
13741 $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~
13743 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13747 hardcode_libdir_separator_CXX=:
13749 # Commands to make compiler produce verbose output that lists
13750 # what "hidden" libraries, object files and flags are used when
13751 # linking a shared library.
13753 # There doesn't appear to be a way to prevent this compiler from
13754 # explicitly linking system object files so we need to strip them
13755 # from the output so that they don't get included in the library
13757 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"'
13760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13761 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13764 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'
13767 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'
13771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13772 hardcode_libdir_separator_CXX=:
13774 # Commands to make compiler produce verbose output that lists
13775 # what "hidden" libraries, object files and flags are used when
13776 # linking a shared library.
13777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13780 # FIXME: insert proper C++ library support
13788 # FIXME: insert proper C++ library support
13793 case $cc_basename in
13796 # FIXME: insert proper C++ library support
13801 # FIXME: insert proper C++ library support
13805 # FIXME: insert proper C++ library support
13812 case $cc_basename in
13814 # Sun C++ 4.2, 5.x and Centerline C++
13815 archive_cmds_need_lc_CXX=yes
13816 no_undefined_flag_CXX=' -zdefs'
13817 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13819 $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'
13821 hardcode_libdir_flag_spec_CXX='-R$libdir'
13822 hardcode_shlibpath_var_CXX=no
13824 solaris2.[0-5] | solaris2.[0-5].*) ;;
13826 # The compiler driver will combine and reorder linker options,
13827 # but understands `-z linker_flag'.
13828 # Supported since Solaris 2.6 (maybe 2.5.1?)
13829 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13832 link_all_deplibs_CXX=yes
13834 output_verbose_link_cmd='func_echo_all'
13836 # Archives containing C++ object files must be created using
13837 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13838 # necessary to make sure instantiated templates are included
13840 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13843 # Green Hills C++ Compiler
13844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13846 # The C++ compiler must be used to create the archive.
13847 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13850 # GNU C++ compiler with Solaris linker
13851 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13852 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13853 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13854 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13855 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13856 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13858 # Commands to make compiler produce verbose output that lists
13859 # what "hidden" libraries, object files and flags are used when
13860 # linking a shared library.
13861 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13863 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13865 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13866 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13867 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13869 # Commands to make compiler produce verbose output that lists
13870 # what "hidden" libraries, object files and flags are used when
13871 # linking a shared library.
13872 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13875 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13877 solaris2.[0-5] | solaris2.[0-5].*) ;;
13879 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13888 no_undefined_flag_CXX='${wl}-z,text'
13889 archive_cmds_need_lc_CXX=no
13890 hardcode_shlibpath_var_CXX=no
13891 runpath_var='LD_RUN_PATH'
13893 case $cc_basename in
13895 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13899 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13900 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13905 sysv5* | sco3.2v5* | sco5v6*)
13906 # Note: We can NOT use -z defs as we might desire, because we do not
13907 # link with -lc, and that would cause any symbols used from libc to
13908 # always be unresolved, which means just about no library would
13909 # ever link correctly. If we're not using GNU ld we use -z text
13910 # though, which does catch some bad symbols but isn't as heavy-handed
13912 no_undefined_flag_CXX='${wl}-z,text'
13913 allow_undefined_flag_CXX='${wl}-z,nodefs'
13914 archive_cmds_need_lc_CXX=no
13915 hardcode_shlibpath_var_CXX=no
13916 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13917 hardcode_libdir_separator_CXX=':'
13918 link_all_deplibs_CXX=yes
13919 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13920 runpath_var='LD_RUN_PATH'
13922 case $cc_basename in
13924 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13925 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13926 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13927 '"$old_archive_cmds_CXX"
13928 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13929 '"$reload_cmds_CXX"
13932 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13933 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 case $cc_basename in
13941 # NonStop-UX NCC 3.20
13942 # FIXME: insert proper C++ library support
13946 # FIXME: insert proper C++ library support
13953 # FIXME: insert proper C++ library support
13958 # FIXME: insert proper C++ library support
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13964 $as_echo "$ld_shlibs_CXX" >&6; }
13965 test "$ld_shlibs_CXX" = no && can_build_shared=no
13971 ## There is no encapsulation within the following macros, do not change
13972 ## the running order or otherwise move them around unless you know exactly
13973 ## what you are doing...
13974 # Dependencies to place before and after the object being linked:
13975 predep_objects_CXX=
13976 postdep_objects_CXX=
13979 compiler_lib_search_path_CXX=
13981 cat > conftest.$ac_ext <<_LT_EOF
13985 Foo (void) { a = 0; }
13992 _lt_libdeps_save_CFLAGS=$CFLAGS
13993 case "$CC $CFLAGS " in #(
13994 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13995 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13996 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14000 (eval $ac_compile) 2>&5
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; then
14004 # Parse the compiler output and extract the necessary
14005 # objects, libraries and library flags.
14007 # Sentinel used to keep track of whether or not we are before
14008 # the conftest object file.
14009 pre_test_object_deps_done=no
14011 for p in `eval "$output_verbose_link_cmd"`; do
14012 case ${prev}${p} in
14015 # Some compilers place space between "-{L,R}" and the path.
14016 # Remove the space.
14017 if test $p = "-L" ||
14018 test $p = "-R"; then
14023 # Expand the sysroot to ease extracting the directories later.
14024 if test -z "$prev"; then
14026 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14027 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14028 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14032 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14034 if test "$pre_test_object_deps_done" = no; then
14037 # Internal compiler library paths should come after those
14038 # provided the user. The postdeps already come after the
14039 # user supplied libs so there is no need to process them.
14040 if test -z "$compiler_lib_search_path_CXX"; then
14041 compiler_lib_search_path_CXX="${prev}${p}"
14043 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14046 # The "-l" case would never come before the object being
14047 # linked, so don't bother handling this case.
14050 if test -z "$postdeps_CXX"; then
14051 postdeps_CXX="${prev}${p}"
14053 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14059 *.lto.$objext) ;; # Ignore GCC LTO objects
14061 # This assumes that the test object file only shows up
14062 # once in the compiler output.
14063 if test "$p" = "conftest.$objext"; then
14064 pre_test_object_deps_done=yes
14068 if test "$pre_test_object_deps_done" = no; then
14069 if test -z "$predep_objects_CXX"; then
14070 predep_objects_CXX="$p"
14072 predep_objects_CXX="$predep_objects_CXX $p"
14075 if test -z "$postdep_objects_CXX"; then
14076 postdep_objects_CXX="$p"
14078 postdep_objects_CXX="$postdep_objects_CXX $p"
14083 *) ;; # Ignore the rest.
14091 echo "libtool.m4: error: problem compiling CXX test program"
14094 $RM -f confest.$objext
14095 CFLAGS=$_lt_libdeps_save_CFLAGS
14097 # PORTME: override above test on systems where it is broken
14100 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14101 # hack all around it, let's just trust "g++" to DTRT.
14102 predep_objects_CXX=
14103 postdep_objects_CXX=
14108 case `$CC -V 2>&1 | sed 5q` in
14112 # The more standards-conforming stlport4 library is
14113 # incompatible with the Cstd library. Avoid specifying
14114 # it if it's in CXXFLAGS. Ignore libCrun as
14115 # -library=stlport4 depends on it.
14116 case " $CXX $CXXFLAGS " in
14117 *" -library=stlport4 "*)
14118 solaris_use_stlport4=yes
14122 if test "$solaris_use_stlport4" != yes; then
14123 postdeps_CXX='-library=Cstd -library=Crun'
14130 case $cc_basename in
14132 # The more standards-conforming stlport4 library is
14133 # incompatible with the Cstd library. Avoid specifying
14134 # it if it's in CXXFLAGS. Ignore libCrun as
14135 # -library=stlport4 depends on it.
14136 case " $CXX $CXXFLAGS " in
14137 *" -library=stlport4 "*)
14138 solaris_use_stlport4=yes
14142 # Adding this requires a known-good setup of shared libraries for
14143 # Sun compiler versions before 5.6, else PIC objects from an old
14144 # archive will be linked into the output, leading to subtle bugs.
14145 if test "$solaris_use_stlport4" != yes; then
14146 postdeps_CXX='-library=Cstd -library=Crun'
14154 case " $postdeps_CXX " in
14155 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14157 compiler_lib_search_dirs_CXX=
14158 if test -n "${compiler_lib_search_path_CXX}"; then
14159 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14192 lt_prog_compiler_wl_CXX=
14193 lt_prog_compiler_pic_CXX=
14194 lt_prog_compiler_static_CXX=
14197 # C++ specific cases for pic, static, wl, etc.
14198 if test "$GXX" = yes; then
14199 lt_prog_compiler_wl_CXX='-Wl,'
14200 lt_prog_compiler_static_CXX='-static'
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static_CXX='-Bstatic'
14214 # see comment about AmigaOS4 .so support
14215 lt_prog_compiler_pic_CXX='-fPIC'
14218 # FIXME: we need at least 68020 code to build shared libraries, but
14219 # adding the `-m68020' flag to GCC prevents building anything better,
14221 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14227 # PIC is the default for these OSes.
14229 mingw* | cygwin* | os2* | pw32* | cegcc*)
14230 # This hack is so that the source file can tell whether it is being
14231 # built for inclusion in a dll (and should export symbols for example).
14232 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14233 # (--disable-auto-import) libraries
14234 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14236 darwin* | rhapsody*)
14237 # PIC is the default on this platform
14238 # Common symbols not allowed in MH_DYLIB files
14239 lt_prog_compiler_pic_CXX='-fno-common'
14242 # DJGPP does not support shared libraries at all
14243 lt_prog_compiler_pic_CXX=
14246 # PIC is the default for Haiku.
14247 # The "-static" flag exists, but is broken.
14248 lt_prog_compiler_static_CXX=
14251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14252 # Instead, we relocate shared libraries at runtime.
14255 if test -d /usr/nec; then
14256 lt_prog_compiler_pic_CXX=-Kconform_pic
14260 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14261 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14262 # sets the default TLS model and affects inlining.
14267 lt_prog_compiler_pic_CXX='-fPIC'
14272 # QNX uses GNU C++, but need to define -shared option too, otherwise
14273 # it will coredump.
14274 lt_prog_compiler_pic_CXX='-fPIC -shared'
14277 lt_prog_compiler_pic_CXX='-fPIC'
14283 # All AIX code is PIC.
14284 if test "$host_cpu" = ia64; then
14285 # AIX 5 now supports IA64 processor
14286 lt_prog_compiler_static_CXX='-Bstatic'
14288 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14292 case $cc_basename in
14294 # Green Hills C++ Compiler
14295 # _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"
14299 mingw* | cygwin* | os2* | pw32* | cegcc*)
14300 # This hack is so that the source file can tell whether it is being
14301 # built for inclusion in a dll (and should export symbols for example).
14302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14305 case $cc_basename in
14307 lt_prog_compiler_pic_CXX='-KPIC'
14310 # Green Hills C++ Compiler
14311 lt_prog_compiler_pic_CXX='-pic'
14317 freebsd* | dragonfly*)
14318 # FreeBSD uses GNU C++
14320 hpux9* | hpux10* | hpux11*)
14321 case $cc_basename in
14323 lt_prog_compiler_wl_CXX='-Wl,'
14324 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14325 if test "$host_cpu" != ia64; then
14326 lt_prog_compiler_pic_CXX='+Z'
14330 lt_prog_compiler_wl_CXX='-Wl,'
14331 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14337 lt_prog_compiler_pic_CXX='+Z'
14346 # This is c89, which is MS Visual C++ (no shared libs)
14347 # Anyone wants to do a port?
14349 irix5* | irix6* | nonstopux*)
14350 case $cc_basename in
14352 lt_prog_compiler_wl_CXX='-Wl,'
14353 lt_prog_compiler_static_CXX='-non_shared'
14354 # CC pic flag -KPIC is the default.
14360 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14361 case $cc_basename in
14364 lt_prog_compiler_wl_CXX='--backend -Wl,'
14365 lt_prog_compiler_pic_CXX='-fPIC'
14368 # old Intel C++ for x86_64 which still supported -KPIC.
14369 lt_prog_compiler_wl_CXX='-Wl,'
14370 lt_prog_compiler_pic_CXX='-KPIC'
14371 lt_prog_compiler_static_CXX='-static'
14374 # Intel C++, used to be incompatible with GCC.
14375 # ICC 10 doesn't accept -KPIC any more.
14376 lt_prog_compiler_wl_CXX='-Wl,'
14377 lt_prog_compiler_pic_CXX='-fPIC'
14378 lt_prog_compiler_static_CXX='-static'
14381 # Portland Group C++ compiler
14382 lt_prog_compiler_wl_CXX='-Wl,'
14383 lt_prog_compiler_pic_CXX='-fpic'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14388 # Make sure the PIC flag is empty. It appears that all Alpha
14389 # Linux and Compaq Tru64 Unix objects are PIC.
14390 lt_prog_compiler_pic_CXX=
14391 lt_prog_compiler_static_CXX='-non_shared'
14393 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14394 # IBM XL 8.0, 9.0 on PPC and BlueGene
14395 lt_prog_compiler_wl_CXX='-Wl,'
14396 lt_prog_compiler_pic_CXX='-qpic'
14397 lt_prog_compiler_static_CXX='-qstaticlink'
14400 case `$CC -V 2>&1 | sed 5q` in
14403 lt_prog_compiler_pic_CXX='-KPIC'
14404 lt_prog_compiler_static_CXX='-Bstatic'
14405 lt_prog_compiler_wl_CXX='-Qoption ld '
14416 case $cc_basename in
14418 lt_prog_compiler_pic_CXX='-W c,exportall'
14424 netbsd* | netbsdelf*-gnu)
14427 # QNX uses GNU C++, but need to define -shared option too, otherwise
14428 # it will coredump.
14429 lt_prog_compiler_pic_CXX='-fPIC -shared'
14431 osf3* | osf4* | osf5*)
14432 case $cc_basename in
14434 lt_prog_compiler_wl_CXX='--backend -Wl,'
14437 # Rational C++ 2.4.1
14438 lt_prog_compiler_pic_CXX='-pic'
14441 # Digital/Compaq C++
14442 lt_prog_compiler_wl_CXX='-Wl,'
14443 # Make sure the PIC flag is empty. It appears that all Alpha
14444 # Linux and Compaq Tru64 Unix objects are PIC.
14445 lt_prog_compiler_pic_CXX=
14446 lt_prog_compiler_static_CXX='-non_shared'
14455 case $cc_basename in
14457 # Sun C++ 4.2, 5.x and Centerline C++
14458 lt_prog_compiler_pic_CXX='-KPIC'
14459 lt_prog_compiler_static_CXX='-Bstatic'
14460 lt_prog_compiler_wl_CXX='-Qoption ld '
14463 # Green Hills C++ Compiler
14464 lt_prog_compiler_pic_CXX='-PIC'
14471 case $cc_basename in
14474 lt_prog_compiler_pic_CXX='-pic'
14475 lt_prog_compiler_static_CXX='-Bstatic'
14479 lt_prog_compiler_pic_CXX='-pic'
14485 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14486 case $cc_basename in
14488 lt_prog_compiler_wl_CXX='-Wl,'
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14495 case $cc_basename in
14497 # NonStop-UX NCC 3.20
14498 lt_prog_compiler_pic_CXX='-KPIC'
14507 lt_prog_compiler_can_build_shared_CXX=no
14513 # For platforms which do not support PIC, -DPIC is meaningless:
14515 lt_prog_compiler_pic_CXX=
14518 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14524 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14525 $as_echo_n "(cached) " >&6
14527 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14530 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14531 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14534 # Check to make sure the PIC flag actually works.
14536 if test -n "$lt_prog_compiler_pic_CXX"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14539 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14540 $as_echo_n "(cached) " >&6
14542 lt_cv_prog_compiler_pic_works_CXX=no
14543 ac_outfile=conftest.$ac_objext
14544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14545 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14546 # Insert the option either (1) after the last *FLAGS variable, or
14547 # (2) before a word containing "conftest.", or (3) at the end.
14548 # Note that $ac_compile itself does not contain backslashes and begins
14549 # with a dollar sign (not a hyphen), so the echo should work correctly.
14550 # The option is referenced via a variable to avoid confusing sed.
14551 lt_compile=`echo "$ac_compile" | $SED \
14552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14554 -e 's:$: $lt_compiler_flag:'`
14555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14556 (eval "$lt_compile" 2>conftest.err)
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 if (exit $ac_status) && test -s "$ac_outfile"; then
14561 # The compiler can only warn and ignore the option if not recognized
14562 # So say no if there are warnings other than the usual output.
14563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14566 lt_cv_prog_compiler_pic_works_CXX=yes
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14573 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14575 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14576 case $lt_prog_compiler_pic_CXX in
14578 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14581 lt_prog_compiler_pic_CXX=
14582 lt_prog_compiler_can_build_shared_CXX=no
14592 # Check to make sure the static flag actually works.
14594 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14596 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14597 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14598 $as_echo_n "(cached) " >&6
14600 lt_cv_prog_compiler_static_works_CXX=no
14601 save_LDFLAGS="$LDFLAGS"
14602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14605 # The linker can only warn and ignore the option if not recognized
14606 # So say no if there are warnings
14607 if test -s conftest.err; then
14608 # Append any errors to the config.log.
14609 cat conftest.err 1>&5
14610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14612 if diff conftest.exp conftest.er2 >/dev/null; then
14613 lt_cv_prog_compiler_static_works_CXX=yes
14616 lt_cv_prog_compiler_static_works_CXX=yes
14620 LDFLAGS="$save_LDFLAGS"
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14624 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14626 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14629 lt_prog_compiler_static_CXX=
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14637 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14638 $as_echo_n "(cached) " >&6
14640 lt_cv_prog_compiler_c_o_CXX=no
14641 $RM -r conftest 2>/dev/null
14645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14647 lt_compiler_flag="-o out/conftest2.$ac_objext"
14648 # Insert the option either (1) after the last *FLAGS variable, or
14649 # (2) before a word containing "conftest.", or (3) at the end.
14650 # Note that $ac_compile itself does not contain backslashes and begins
14651 # with a dollar sign (not a hyphen), so the echo should work correctly.
14652 lt_compile=`echo "$ac_compile" | $SED \
14653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14655 -e 's:$: $lt_compiler_flag:'`
14656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14657 (eval "$lt_compile" 2>out/conftest.err)
14659 cat out/conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14663 # The compiler can only warn and ignore the option if not recognized
14664 # So say no if there are warnings
14665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14668 lt_cv_prog_compiler_c_o_CXX=yes
14673 # SGI C++ compiler will create directory out/ii_files/ for
14674 # template instantiation
14675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14676 $RM out/* && rmdir out
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14683 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14689 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14690 $as_echo_n "(cached) " >&6
14692 lt_cv_prog_compiler_c_o_CXX=no
14693 $RM -r conftest 2>/dev/null
14697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14699 lt_compiler_flag="-o out/conftest2.$ac_objext"
14700 # Insert the option either (1) after the last *FLAGS variable, or
14701 # (2) before a word containing "conftest.", or (3) at the end.
14702 # Note that $ac_compile itself does not contain backslashes and begins
14703 # with a dollar sign (not a hyphen), so the echo should work correctly.
14704 lt_compile=`echo "$ac_compile" | $SED \
14705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707 -e 's:$: $lt_compiler_flag:'`
14708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14709 (eval "$lt_compile" 2>out/conftest.err)
14711 cat out/conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14715 # The compiler can only warn and ignore the option if not recognized
14716 # So say no if there are warnings
14717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14720 lt_cv_prog_compiler_c_o_CXX=yes
14725 # SGI C++ compiler will create directory out/ii_files/ for
14726 # template instantiation
14727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14728 $RM out/* && rmdir out
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14735 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14740 hard_links="nottested"
14741 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14742 # do not overwrite the value of need_locks provided by the user
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14744 $as_echo_n "checking if we can lock with hard links... " >&6; }
14747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14749 ln conftest.a conftest.b 2>&5 || hard_links=no
14750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14752 $as_echo "$hard_links" >&6; }
14753 if test "$hard_links" = no; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14755 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14765 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14768 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14771 # If we're using GNU nm, then we don't want the "-C" option.
14772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14773 # Also, AIX nm treats weak defined symbols like other global defined
14774 # symbols, whereas GNU nm marks them as "W".
14775 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14776 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'
14778 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'
14782 export_symbols_cmds_CXX="$ltdll_cmds"
14784 cygwin* | mingw* | cegcc*)
14785 case $cc_basename in
14787 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14790 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'
14791 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14795 linux* | k*bsd*-gnu | gnu*)
14796 link_all_deplibs_CXX=no
14799 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14804 $as_echo "$ld_shlibs_CXX" >&6; }
14805 test "$ld_shlibs_CXX" = no && can_build_shared=no
14807 with_gnu_ld_CXX=$with_gnu_ld
14815 # Do we need to explicitly link libc?
14817 case "x$archive_cmds_need_lc_CXX" in
14819 # Assume -lc should be added
14820 archive_cmds_need_lc_CXX=yes
14822 if test "$enable_shared" = yes && test "$GCC" = yes; then
14823 case $archive_cmds_CXX in
14825 # FIXME: we may have to deal with multi-command sequences.
14828 # Test whether the compiler implicitly links with -lc since on some
14829 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14830 # to ld, don't add -lc before -lgcc.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14832 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14833 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14834 $as_echo_n "(cached) " >&6
14837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14840 (eval $ac_compile) 2>&5
14842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; } 2>conftest.err; then
14846 libobjs=conftest.$ac_objext
14848 wl=$lt_prog_compiler_wl_CXX
14849 pic_flag=$lt_prog_compiler_pic_CXX
14855 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14856 allow_undefined_flag_CXX=
14857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14858 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14861 test $ac_status = 0; }
14863 lt_cv_archive_cmds_need_lc_CXX=no
14865 lt_cv_archive_cmds_need_lc_CXX=yes
14867 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14869 cat conftest.err 1>&5
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14875 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14876 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14945 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14947 library_names_spec=
14948 libname_spec='lib$name'
14952 postuninstall_cmds=
14956 shlibpath_overrides_runpath=unknown
14958 dynamic_linker="$host_os ld.so"
14959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14960 need_lib_prefix=unknown
14961 hardcode_into_libs=no
14963 # when you set need_version to no, make sure it does not cause -set_version
14964 # flags to be left without arguments
14965 need_version=unknown
14969 version_type=linux # correct to gnu/linux during the next big refactor
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14971 shlibpath_var=LIBPATH
14973 # AIX 3 has no versioning support, so we append a major version to the name.
14974 soname_spec='${libname}${release}${shared_ext}$major'
14978 version_type=linux # correct to gnu/linux during the next big refactor
14981 hardcode_into_libs=yes
14982 if test "$host_cpu" = ia64; then
14983 # AIX 5 supports IA64
14984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14985 shlibpath_var=LD_LIBRARY_PATH
14987 # With GCC up to 2.95.x, collect2 would create an import file
14988 # for dependence libraries. The import file would start with
14989 # the line `#! .'. This would cause the generated library to
14990 # depend on `.', always an invalid library. This was fixed in
14991 # development snapshots of GCC prior to 3.0.
14993 aix4 | aix4.[01] | aix4.[01].*)
14994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14999 can_build_shared=no
15003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15004 # soname into executable. Probably we can add versioning support to
15005 # collect2, so additional links can be useful in future.
15006 if test "$aix_use_runtimelinking" = yes; then
15007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15008 # instead of lib<name>.a to let people know that these are not
15009 # typical AIX shared libraries.
15010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012 # We preserve .a as extension for shared libraries through AIX4.2
15013 # and later when we are not doing run time linking.
15014 library_names_spec='${libname}${release}.a $libname.a'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15017 shlibpath_var=LIBPATH
15024 # Since July 2007 AmigaOS4 officially supports .so libraries.
15025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 library_names_spec='$libname.ixlibrary $libname.a'
15030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15031 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'
15037 library_names_spec='${libname}${shared_ext}'
15038 dynamic_linker="$host_os ld.so"
15039 shlibpath_var=LIBRARY_PATH
15043 version_type=linux # correct to gnu/linux during the next big refactor
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15048 shlibpath_var=LD_LIBRARY_PATH
15049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15051 # the default ld.so.conf also contains /usr/contrib/lib and
15052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15053 # libtool to hard-code these into programs
15056 cygwin* | mingw* | pw32* | cegcc*)
15057 version_type=windows
15062 case $GCC,$cc_basename in
15065 library_names_spec='$libname.dll.a'
15066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15067 postinstall_cmds='base_file=`basename \${file}`~
15068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15069 dldir=$destdir/`dirname \$dlpath`~
15070 test -d \$dldir || mkdir -p \$dldir~
15071 $install_prog $dir/$dlname \$dldir/$dlname~
15072 chmod a+x \$dldir/$dlname~
15073 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15074 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15076 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15077 dlpath=$dir/\$dldll~
15079 shlibpath_overrides_runpath=yes
15083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15084 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15088 # MinGW DLLs use traditional 'lib' prefix
15089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15092 # pw32 DLLs use 'pw' prefix rather than 'lib'
15093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15096 dynamic_linker='Win32 ld.exe'
15101 libname_spec='$name'
15102 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103 library_names_spec='${libname}.dll.lib'
15107 sys_lib_search_path_spec=
15110 for lt_path in $LIB
15113 # Let DOS variable expansion print the short 8.3 style file name.
15114 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15115 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15118 # Convert to MSYS style.
15119 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15122 # Convert to unix form, then to dos form, then back to unix form
15123 # but this time dos style (no spaces!) so that the unix form looks
15124 # like /cygdrive/c/PROGRA~1:/cygdr...
15125 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15126 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15127 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15130 sys_lib_search_path_spec="$LIB"
15131 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15132 # It is most probably a Windows format PATH.
15133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15137 # FIXME: find the short name or the path components, as spaces are
15138 # common. (e.g. "Program Files" -> "PROGRA~1")
15142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15143 postinstall_cmds='base_file=`basename \${file}`~
15144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15145 dldir=$destdir/`dirname \$dlpath`~
15146 test -d \$dldir || mkdir -p \$dldir~
15147 $install_prog $dir/$dlname \$dldir/$dlname'
15148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15149 dlpath=$dir/\$dldll~
15151 shlibpath_overrides_runpath=yes
15152 dynamic_linker='Win32 link.exe'
15156 # Assume MSVC wrapper
15157 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15158 dynamic_linker='Win32 ld.exe'
15161 # FIXME: first we should search . and the directory the executable is in
15165 darwin* | rhapsody*)
15166 dynamic_linker="$host_os dyld"
15167 version_type=darwin
15170 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15171 soname_spec='${libname}${release}${major}$shared_ext'
15172 shlibpath_overrides_runpath=yes
15173 shlibpath_var=DYLD_LIBRARY_PATH
15174 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15180 version_type=linux # correct to gnu/linux during the next big refactor
15183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15184 soname_spec='${libname}${release}${shared_ext}$major'
15185 shlibpath_var=LD_LIBRARY_PATH
15188 freebsd* | dragonfly*)
15189 # DragonFly does not have aout. When/if they implement a new
15190 # versioning mechanism, adjust this.
15191 if test -x /usr/bin/objformat; then
15192 objformat=`/usr/bin/objformat`
15195 freebsd[23].*) objformat=aout ;;
15196 *) objformat=elf ;;
15199 version_type=freebsd-$objformat
15200 case $version_type in
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15211 shlibpath_var=LD_LIBRARY_PATH
15214 shlibpath_overrides_runpath=yes
15216 freebsd3.[01]* | freebsdelf3.[01]*)
15217 shlibpath_overrides_runpath=yes
15218 hardcode_into_libs=yes
15220 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15221 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15225 *) # from 4.6 on, and DragonFly
15226 shlibpath_overrides_runpath=yes
15227 hardcode_into_libs=yes
15233 version_type=linux # correct to gnu/linux during the next big refactor
15236 dynamic_linker="$host_os runtime_loader"
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 shlibpath_var=LIBRARY_PATH
15240 shlibpath_overrides_runpath=yes
15241 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15242 hardcode_into_libs=yes
15245 hpux9* | hpux10* | hpux11*)
15246 # Give a soname corresponding to the major version so that dld.sl refuses to
15247 # link against other versions.
15254 hardcode_into_libs=yes
15255 dynamic_linker="$host_os dld.so"
15256 shlibpath_var=LD_LIBRARY_PATH
15257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 soname_spec='${libname}${release}${shared_ext}$major'
15260 if test "X$HPUX_IA64_MODE" = X32; then
15261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15269 hardcode_into_libs=yes
15270 dynamic_linker="$host_os dld.sl"
15271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15280 dynamic_linker="$host_os dld.sl"
15281 shlibpath_var=SHLIB_PATH
15282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 soname_spec='${libname}${release}${shared_ext}$major'
15287 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15288 postinstall_cmds='chmod 555 $lib'
15289 # or fails outright, so override atomically:
15290 install_override_mode=555
15294 version_type=linux # correct to gnu/linux during the next big refactor
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=no
15302 hardcode_into_libs=yes
15305 irix5* | irix6* | nonstopux*)
15307 nonstopux*) version_type=nonstopux ;;
15309 if test "$lt_cv_prog_gnu_ld" = yes; then
15310 version_type=linux # correct to gnu/linux during the next big refactor
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15320 irix5* | nonstopux*)
15321 libsuff= shlibsuff=
15324 case $LD in # libtool.m4 will add one of these switches to LD
15325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15326 libsuff= shlibsuff= libmagic=32-bit;;
15327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15328 libsuff=32 shlibsuff=N32 libmagic=N32;;
15329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15331 *) libsuff= shlibsuff= libmagic=never-match;;
15335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15336 shlibpath_overrides_runpath=no
15337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15339 hardcode_into_libs=yes
15342 # No shared lib support for Linux oldld, aout, or coff.
15343 linux*oldld* | linux*aout* | linux*coff*)
15347 # This must be glibc/ELF.
15348 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15349 version_type=linux # correct to gnu/linux during the next big refactor
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15353 soname_spec='${libname}${release}${shared_ext}$major'
15354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15358 # Some binutils ld are patched to set DT_RUNPATH
15359 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15360 $as_echo_n "(cached) " >&6
15362 lt_cv_shlibpath_overrides_runpath=no
15363 save_LDFLAGS=$LDFLAGS
15364 save_libdir=$libdir
15365 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15366 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15378 if ac_fn_cxx_try_link "$LINENO"; then :
15379 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15380 lt_cv_shlibpath_overrides_runpath=yes
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LDFLAGS=$save_LDFLAGS
15386 libdir=$save_libdir
15390 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15392 # This implies no fast_install, which is unacceptable.
15393 # Some rework will be needed to allow for fast_install
15394 # before this can be enabled.
15395 hardcode_into_libs=yes
15397 # Append ld.so.conf contents to the search path
15398 if test -f /etc/ld.so.conf; then
15399 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' ' '`
15400 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15403 # We used to test for /lib/ld.so.1 and disable shared libraries on
15404 # powerpc, because MkLinux only supported shared libraries with the
15405 # GNU dynamic linker. Since this was broken with cross compilers,
15406 # most powerpc-linux boxes support dynamic linking these days and
15407 # people can always --disable-shared, the test was removed, and we
15408 # assume the GNU/Linux dynamic linker is in use.
15409 dynamic_linker='GNU/Linux ld.so'
15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 hardcode_into_libs=yes
15421 dynamic_linker='NetBSD ld.elf_so'
15428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15431 dynamic_linker='NetBSD (a.out) ld.so'
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 dynamic_linker='NetBSD ld.elf_so'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15439 hardcode_into_libs=yes
15443 version_type=linux # correct to gnu/linux during the next big refactor
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=yes
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=no
15457 hardcode_into_libs=yes
15458 dynamic_linker='ldqnx.so'
15463 sys_lib_dlsearch_path_spec="/usr/lib"
15465 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15467 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15468 *) need_version=no ;;
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15475 openbsd2.[89] | openbsd2.[89].*)
15476 shlibpath_overrides_runpath=no
15479 shlibpath_overrides_runpath=yes
15483 shlibpath_overrides_runpath=yes
15488 libname_spec='$name'
15491 library_names_spec='$libname${shared_ext} $libname.a'
15492 dynamic_linker='OS/2 ld.exe'
15493 shlibpath_var=LIBPATH
15496 osf3* | osf4* | osf5*)
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15502 shlibpath_var=LD_LIBRARY_PATH
15503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15504 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15512 version_type=linux # correct to gnu/linux during the next big refactor
15515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15518 shlibpath_overrides_runpath=yes
15519 hardcode_into_libs=yes
15520 # ldd complains unless libraries are executable
15521 postinstall_cmds='chmod +x $lib'
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15528 shlibpath_var=LD_LIBRARY_PATH
15529 shlibpath_overrides_runpath=yes
15530 if test "$with_gnu_ld" = yes; then
15537 version_type=linux # correct to gnu/linux during the next big refactor
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 case $host_vendor in
15543 shlibpath_overrides_runpath=no
15545 runpath_var=LD_RUN_PATH
15553 shlibpath_overrides_runpath=no
15554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15560 if test -d /usr/nec ;then
15561 version_type=linux # correct to gnu/linux during the next big refactor
15562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15563 soname_spec='$libname${shared_ext}.$major'
15564 shlibpath_var=LD_LIBRARY_PATH
15568 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15569 version_type=freebsd-elf
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 shlibpath_overrides_runpath=yes
15576 hardcode_into_libs=yes
15577 if test "$with_gnu_ld" = yes; then
15578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15587 sys_lib_dlsearch_path_spec='/usr/lib'
15591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15592 version_type=linux # correct to gnu/linux during the next big refactor
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=no
15598 hardcode_into_libs=yes
15602 version_type=linux # correct to gnu/linux during the next big refactor
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15613 $as_echo "$dynamic_linker" >&6; }
15614 test "$dynamic_linker" = no && can_build_shared=no
15616 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15617 if test "$GCC" = yes; then
15618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15621 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15622 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15624 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15625 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15666 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15667 hardcode_action_CXX=
15668 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15669 test -n "$runpath_var_CXX" ||
15670 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15672 # We can hardcode non-existent directories.
15673 if test "$hardcode_direct_CXX" != no &&
15674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15675 # have to relink, otherwise we might link with an installed library
15676 # when we should be linking with a yet-to-be-installed one
15677 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15678 test "$hardcode_minus_L_CXX" != no; then
15679 # Linking always hardcodes the temporary library directory.
15680 hardcode_action_CXX=relink
15682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15683 hardcode_action_CXX=immediate
15686 # We cannot hardcode anything, or else we can only hardcode existing
15688 hardcode_action_CXX=unsupported
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15691 $as_echo "$hardcode_action_CXX" >&6; }
15693 if test "$hardcode_action_CXX" = relink ||
15694 test "$inherit_rpath_CXX" = yes; then
15695 # Fast installation is not supported
15696 enable_fast_install=no
15697 elif test "$shlibpath_overrides_runpath" = yes ||
15698 test "$enable_shared" = no; then
15699 # Fast installation is not necessary
15700 enable_fast_install=needless
15709 fi # test -n "$compiler"
15712 CFLAGS=$lt_save_CFLAGS
15716 with_gnu_ld=$lt_save_with_gnu_ld
15717 lt_cv_path_LDCXX=$lt_cv_path_LD
15718 lt_cv_path_LD=$lt_save_path_LD
15719 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15720 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15721 fi # test "$_lt_caught_CXX_error" != yes
15724 ac_cpp='$CPP $CPPFLAGS'
15725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15730 ac_config_headers="$ac_config_headers config.h"
15732 for ac_header in stdarg.h stdio.h stdint.h sys/param.h
15734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15737 cat >>confdefs.h <<_ACEOF
15738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15745 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15746 if test "x$ac_cv_func_vasprintf" = xyes; then :
15747 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
15750 case " $LIBOBJS " in
15751 *" vasprintf.$ac_objext "* ) ;;
15752 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15762 # Check whether --enable-reauth was given.
15763 if test "${enable_reauth+set}" = set; then :
15764 enableval=$enable_reauth; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15767 echo "--enable-reauth argument must be yes or no"
15774 if test "x$reauth" = "xyes" ; then
15775 echo "Fast reauthentication protocol enabled"
15776 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_REAUTH"
15778 if test "x$reauth" != "xno"; then
15779 GSSEAP_ENABLE_REAUTH_TRUE=
15780 GSSEAP_ENABLE_REAUTH_FALSE='#'
15782 GSSEAP_ENABLE_REAUTH_TRUE='#'
15783 GSSEAP_ENABLE_REAUTH_FALSE=
15788 # Check whether --enable-acceptor was given.
15789 if test "${enable_acceptor+set}" = set; then :
15790 enableval=$enable_acceptor; if test "x$enableval" = "xyes" -o "x$enableval" = "xno" ; then
15791 acceptor=$enableval
15793 echo "--enable-acceptor argument must be yes or no"
15800 if test "x$acceptor" = "xyes" ; then
15801 echo "acceptor enabled"
15802 TARGET_CFLAGS="$TARGET_CFLAGS -DGSSEAP_ENABLE_ACCEPTOR"
15804 if test "x$acceptor" != "xno"; then
15805 GSSEAP_ENABLE_ACCEPTOR_TRUE=
15806 GSSEAP_ENABLE_ACCEPTOR_FALSE='#'
15808 GSSEAP_ENABLE_ACCEPTOR_TRUE='#'
15809 GSSEAP_ENABLE_ACCEPTOR_FALSE=
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows" >&5
15816 $as_echo_n "checking for windows... " >&6; }
15817 target_windows="no"
15818 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
15819 if test "x$ac_cv_header_windows_h" = xyes; then :
15820 target_windows="yes"
15822 target_windows="no"
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_windows" >&5
15827 $as_echo "$target_windows" >&6; }
15828 if test "x$target_windows" = "xyes"; then
15829 TARGET_WINDOWS_TRUE=
15830 TARGET_WINDOWS_FALSE='#'
15832 TARGET_WINDOWS_TRUE='#'
15833 TARGET_WINDOWS_FALSE=
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS-API and Kerberos implementation" >&5
15838 $as_echo_n "checking for GSS-API and Kerberos implementation... " >&6; }
15842 # Check whether --with-krb5 was given.
15843 if test "${with_krb5+set}" = set; then :
15844 withval=$with_krb5; check_krb5_dir="$withval"
15849 for dir in $check_krb5_dir $prefix /usr/local /usr ; do
15851 if test -x "$dir/bin/krb5-config"; then
15853 if test "x$target_windows" = "xyes"; then
15854 KRB5_CFLAGS=-I"$check_krb5_dir/include";
15855 KRB5_LDFLAGS="-L$check_krb5_dir/lib/";
15856 KRB5_LIBS="-lkrb5_32 -lgssapi32";
15857 COMPILE_ET="$check_krb5_dir/bin/compile_et";
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15859 $as_echo "yes" >&6; }
15861 KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`;
15862 KRB5_LDFLAGS="-L$dir/lib";
15863 KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865 $as_echo "yes" >&6; }
15866 # Extract the first word of "compile_et", so it can be a program name with args.
15867 set dummy compile_et; ac_word=$2
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15869 $as_echo_n "checking for $ac_word... " >&6; }
15870 if ${ac_cv_path_COMPILE_ET+:} false; then :
15871 $as_echo_n "(cached) " >&6
15873 case $COMPILE_ET in
15875 ac_cv_path_COMPILE_ET="$COMPILE_ET" # Let the user override the test with a path.
15878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879 for as_dir in $dir/bin$PATH_SEPARATOr
15882 test -z "$as_dir" && as_dir=.
15883 for ac_exec_ext in '' $ac_executable_extensions; do
15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15885 ac_cv_path_COMPILE_ET="$as_dir/$ac_word$ac_exec_ext"
15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 test -z "$ac_cv_path_COMPILE_ET" && ac_cv_path_COMPILE_ET="compile_et"
15897 COMPILE_ET=$ac_cv_path_COMPILE_ET
15898 if test -n "$COMPILE_ET"; then
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_ET" >&5
15900 $as_echo "$COMPILE_ET" >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15903 $as_echo "no" >&6; }
15911 if test x_$found_krb5 != x_yes; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_krb5" >&5
15913 $as_echo "$found_krb5" >&6; }
15915 ----------------------------------------------------------------------
15916 Cannot find GSS-API/Kerberos libraries.
15918 Please install MIT or Heimdal or specify installation directory with
15920 ----------------------------------------------------------------------
15923 printf "Kerberos found in $krb5dir\n";
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5" >&5
15929 $as_echo_n "checking for GSS_C_NT_COMPOSITE_EXPORT in -lkrb5... " >&6; }
15930 if ${ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT+:} false; then :
15931 $as_echo_n "(cached) " >&6
15933 ac_check_lib_save_LIBS=$LIBS
15934 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15944 char GSS_C_NT_COMPOSITE_EXPORT ();
15948 return GSS_C_NT_COMPOSITE_EXPORT ();
15953 if ac_fn_c_try_link "$LINENO"; then :
15954 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=yes
15956 ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT=no
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960 LIBS=$ac_check_lib_save_LIBS
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&5
15963 $as_echo "$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" >&6; }
15964 if test "x$ac_cv_lib_krb5_GSS_C_NT_COMPOSITE_EXPORT" = xyes; then :
15966 cat >>confdefs.h <<_ACEOF
15967 #define HAVE_GSS_C_NT_COMPOSITE_EXPORT 1
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_inquire_attrs_for_mech in -lkrb5" >&5
15973 $as_echo_n "checking for gss_inquire_attrs_for_mech in -lkrb5... " >&6; }
15974 if ${ac_cv_lib_krb5_gss_inquire_attrs_for_mech+:} false; then :
15975 $as_echo_n "(cached) " >&6
15977 ac_check_lib_save_LIBS=$LIBS
15978 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h. */
15982 /* Override any GCC internal prototype to avoid an error.
15983 Use char because int might match the return type of a GCC
15984 builtin and then its argument prototype would still apply. */
15988 char gss_inquire_attrs_for_mech ();
15992 return gss_inquire_attrs_for_mech ();
15997 if ac_fn_c_try_link "$LINENO"; then :
15998 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=yes
16000 ac_cv_lib_krb5_gss_inquire_attrs_for_mech=no
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&5
16007 $as_echo "$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" >&6; }
16008 if test "x$ac_cv_lib_krb5_gss_inquire_attrs_for_mech" = xyes; then :
16010 cat >>confdefs.h <<_ACEOF
16011 #define HAVE_GSS_INQUIRE_ATTRS_FOR_MECH 1
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_import_cred in -lkrb5" >&5
16017 $as_echo_n "checking for gss_krb5_import_cred in -lkrb5... " >&6; }
16018 if ${ac_cv_lib_krb5_gss_krb5_import_cred+:} false; then :
16019 $as_echo_n "(cached) " >&6
16021 ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16026 /* Override any GCC internal prototype to avoid an error.
16027 Use char because int might match the return type of a GCC
16028 builtin and then its argument prototype would still apply. */
16032 char gss_krb5_import_cred ();
16036 return gss_krb5_import_cred ();
16041 if ac_fn_c_try_link "$LINENO"; then :
16042 ac_cv_lib_krb5_gss_krb5_import_cred=yes
16044 ac_cv_lib_krb5_gss_krb5_import_cred=no
16046 rm -f core conftest.err conftest.$ac_objext \
16047 conftest$ac_exeext conftest.$ac_ext
16048 LIBS=$ac_check_lib_save_LIBS
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_gss_krb5_import_cred" >&5
16051 $as_echo "$ac_cv_lib_krb5_gss_krb5_import_cred" >&6; }
16052 if test "x$ac_cv_lib_krb5_gss_krb5_import_cred" = xyes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_GSS_KRB5_IMPORT_CRED 1
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heimdal_version in -lkrb5" >&5
16061 $as_echo_n "checking for heimdal_version in -lkrb5... " >&6; }
16062 if ${ac_cv_lib_krb5_heimdal_version+:} false; then :
16063 $as_echo_n "(cached) " >&6
16065 ac_check_lib_save_LIBS=$LIBS
16066 LIBS="-lkrb5 "$KRB5_LIBS" $LIBS"
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16070 /* Override any GCC internal prototype to avoid an error.
16071 Use char because int might match the return type of a GCC
16072 builtin and then its argument prototype would still apply. */
16076 char heimdal_version ();
16080 return heimdal_version ();
16085 if ac_fn_c_try_link "$LINENO"; then :
16086 ac_cv_lib_krb5_heimdal_version=yes
16088 ac_cv_lib_krb5_heimdal_version=no
16090 rm -f core conftest.err conftest.$ac_objext \
16091 conftest$ac_exeext conftest.$ac_ext
16092 LIBS=$ac_check_lib_save_LIBS
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_heimdal_version" >&5
16095 $as_echo "$ac_cv_lib_krb5_heimdal_version" >&6; }
16096 if test "x$ac_cv_lib_krb5_heimdal_version" = xyes; then :
16098 cat >>confdefs.h <<_ACEOF
16099 #define HAVE_HEIMDAL_VERSION 1
16106 if test "x$heimdal" != "xno"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSAML implementation" >&5
16117 $as_echo_n "checking for OpenSAML implementation... " >&6; }
16119 found_opensaml="no"
16121 # Check whether --with-opensaml was given.
16122 if test "${with_opensaml+set}" = set; then :
16123 withval=$with_opensaml; check_opensaml_dir="$withval"
16125 check_opensaml_dir=
16128 if test x_$check_opensaml_dir != x_no; then
16129 for dir in $check_opensaml_dir $prefix /usr /usr/local ; do
16131 if test -f "$dir/include/saml/Assertion.h"; then
16132 found_opensaml="yes";
16133 OPENSAML_DIR="${opensamldir}"
16134 OPENSAML_CXXFLAGS="-I$opensamldir/include";
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_opensaml" >&5
16140 $as_echo "$found_opensaml" >&6; }
16141 if test x_$check_opensaml_dir != x_no; then
16142 if test x_$found_opensaml != x_yes; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16144 ----------------------------------------------------------------------
16145 Cannot find OpenSAML libraries, building without OpenSAML support.
16147 Please install OpenSAML or specify installation directory with
16148 --with-opensaml=(dir).
16149 ----------------------------------------------------------------------
16151 $as_echo "$as_me: WARNING:
16152 ----------------------------------------------------------------------
16153 Cannot find OpenSAML libraries, building without OpenSAML support.
16155 Please install OpenSAML or specify installation directory with
16156 --with-opensaml=(dir).
16157 ----------------------------------------------------------------------
16160 printf "OpenSAML found in $opensamldir\n";
16161 OPENSAML_LIBS="-lsaml -lxml-security-c -lxmltooling -lxerces-c";
16162 OPENSAML_LDFLAGS="-L$opensamldir/lib";
16167 cat >>confdefs.h <<_ACEOF
16168 #define HAVE_OPENSAML 1
16174 if test "x_$check_opensaml_dir" != "x_no"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth resolver implementation" >&5
16184 $as_echo_n "checking for Shibboleth resolver implementation... " >&6; }
16186 found_shibresolver="no"
16188 # Check whether --with-shibresolver was given.
16189 if test "${with_shibresolver+set}" = set; then :
16190 withval=$with_shibresolver; check_shibresolver_dir="$withval"
16192 check_shibresolver_dir=
16195 if test x_$check_shibresolver_dir != x_no; then
16196 for dir in $check_shibresolver_dir $prefix /usr /usr/local ; do
16197 shibresolverdir="$dir"
16198 if test -f "$dir/include/shibresolver/resolver.h"; then
16199 found_shibresolver="yes";
16200 SHIBRESOLVER_DIR="${shibresolverdir}"
16201 SHIBRESOLVER_CXXFLAGS="-I$shibresolverdir/include";
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibresolver" >&5
16207 $as_echo "$found_shibresolver" >&6; }
16208 if test x_$check_shibresolver_dir != x_no; then
16209 if test x_$found_shibresolver != x_yes; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16211 ----------------------------------------------------------------------
16212 Cannot find Shibboleth resolver libraries, building without
16213 Shibboleth support.
16215 Please install Shibboleth or specify installation directory with
16216 --with-shibresolver=(dir).
16217 ----------------------------------------------------------------------
16219 $as_echo "$as_me: WARNING:
16220 ----------------------------------------------------------------------
16221 Cannot find Shibboleth resolver libraries, building without
16222 Shibboleth support.
16224 Please install Shibboleth or specify installation directory with
16225 --with-shibresolver=(dir).
16226 ----------------------------------------------------------------------
16229 printf "Shibboleth resolver found in $shibresolverdir\n";
16230 SHIBRESOLVER_LIBS="-lshibresolver";
16231 SHIBRESOLVER_LDFLAGS="-L$shibresolverdir/lib";
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_SHIBRESOLVER 1
16243 if test "x_$check_shibresolver_dir" != "x_no"; then
16245 SHIBRESOLVER_FALSE='#'
16247 SHIBRESOLVER_TRUE='#'
16248 SHIBRESOLVER_FALSE=
16251 if test x_$found_shibresolver = x_yes; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Shibboleth implementation" >&5
16253 $as_echo_n "checking for Shibboleth implementation... " >&6; }
16257 # Check whether --with-shibsp was given.
16258 if test "${with_shibsp+set}" = set; then :
16259 withval=$with_shibsp; check_shibsp_dir="$withval"
16264 for dir in $check_shibsp_dir $prefix /usr /usr/local ; do
16266 if test -f "$dir/include/shibsp/SPConfig.h"; then
16267 found_shibsp="yes";
16268 SHIBSP_DIR="${shibspdir}"
16269 SHIBSP_CXXFLAGS="-I$shibspdir/include";
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_shibsp" >&5
16274 $as_echo "$found_shibsp" >&6; }
16275 if test x_$found_shibsp != x_yes; then
16277 ----------------------------------------------------------------------
16278 Cannot find Shibboleth libraries.
16280 Please install Shibboleth or specify installation directory with
16281 --with-shibsp=(dir).
16282 ----------------------------------------------------------------------
16285 printf "Shibboleth found in $shibspdir\n";
16286 SHIBSP_LIBS="-lshibsp -lsaml -lxml-security-c -lxmltooling -lxerces-c";
16287 SHIBSP_LDFLAGS="-L$shibspdir/lib";
16292 cat >>confdefs.h <<_ACEOF
16293 #define HAVE_SHIBSP 1
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
16301 $as_echo_n "checking for OpenSSL... " >&6; }
16305 # Check whether --with-openssl was given.
16306 if test "${with_openssl+set}" = set; then :
16307 withval=$with_openssl; check_openssl_dir="$withval"
16312 for dir in $check_openssl_dir $prefix /usr /usr/local ; do
16314 if test -f "$dir/include/openssl/opensslv.h"; then
16315 found_openssl="yes";
16316 OPENSSL_DIR="${openssldir}"
16317 OPENSSL_CFLAGS="-I$openssldir/include";
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_openssl" >&5
16322 $as_echo "$found_openssl" >&6; }
16323 if test x_$found_openssl != x_yes; then
16325 ----------------------------------------------------------------------
16326 Cannot find OpenSSL libraries.
16328 Please install libssl or specify installation directory with
16329 --with-openssl=(dir).
16330 ----------------------------------------------------------------------
16333 printf "OpenSSL found in $openssldir\n";
16334 OPENSSL_LIBS="-lssl -lcrypto";
16335 OPENSSL_LDFLAGS="-L$openssldir/lib";
16342 if test "x$acceptor" = "xyes" ; then
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for radsec" >&5
16344 $as_echo_n "checking for radsec... " >&6; }
16348 # Check whether --with-radsec was given.
16349 if test "${with_radsec+set}" = set; then :
16350 withval=$with_radsec; check_radsec_dir="$withval"
16355 for dir in $check_radsec_dir $prefix /usr /usr/local ; do
16357 if test -f "$dir/include/radsec/radsec.h"; then
16358 found_radsec="yes";
16359 RADSEC_DIR="${radsecdir}"
16360 RADSEC_CFLAGS="-I$radsecdir/include";
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_radsec" >&5
16365 $as_echo "$found_radsec" >&6; }
16366 if test x_$found_radsec != x_yes; then
16368 ----------------------------------------------------------------------
16369 Cannot find radsec libraries.
16371 Please install libradsec or specify installation directory with
16372 --with-radsec=(dir).
16373 ----------------------------------------------------------------------
16376 printf "radsec found in $radsecdir\n";
16377 RADSEC_LIBS="-lradsec";
16378 RADSEC_LDFLAGS="-L$radsecdir/lib";
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
16385 $as_echo_n "checking for jansson... " >&6; }
16389 # Check whether --with-jansson was given.
16390 if test "${with_jansson+set}" = set; then :
16391 withval=$with_jansson; check_jansson_dir="$withval"
16396 for dir in $check_jansson_dir $prefix /usr /usr/local ; do
16398 if test -f "$dir/include/jansson.h"; then
16399 found_jansson="yes";
16400 JANSSON_DIR="${janssondir}"
16401 JANSSON_CFLAGS="-I$janssondir/include";
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_jansson" >&5
16406 $as_echo "$found_jansson" >&6; }
16407 if test x_$found_jansson != x_yes; then
16409 ----------------------------------------------------------------------
16410 Cannot find jansson libraries.
16412 Please install libjansson or specify installation directory with
16413 --with-jansson=(dir).
16414 ----------------------------------------------------------------------
16417 printf "jansson found in $janssondir\n";
16418 JANSSON_LIBS="-ljansson";
16419 JANSSON_LDFLAGS="-L$janssondir/lib";
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Moonshot identity selector implementation" >&5
16428 $as_echo_n "checking for Moonshot identity selector implementation... " >&6; }
16430 LIBMOONSHOT_CFLAGS=
16431 LIBMOONSHOT_LDFLAGS=
16433 found_libmoonshot="no"
16435 # Check whether --with-libmoonshot was given.
16436 if test "${with_libmoonshot+set}" = set; then :
16437 withval=$with_libmoonshot; check_libmoonshot_dir="$withval"
16439 check_libmoonshot_dir=
16442 for dir in $check_libmoonshot_dir $prefix /usr /usr/local ; do
16443 libmoonshotdir="$dir"
16444 if test -f "$dir/include/libmoonshot.h"; then
16445 found_libmoonshot="yes";
16446 LIBMOONSHOT_DIR="${libmoonshotdir}"
16447 LIBMOONSHOT_CFLAGS="-I$libmoonshotdir/include";
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_libmoonshot" >&5
16452 $as_echo "$found_libmoonshot" >&6; }
16453 if test x_$found_libmoonshot = x_yes; then
16454 printf "libmoonshot found in $libmoonshotdir\n";
16455 LIBMOONSHOT_LIBS="-lmoonshot";
16456 LIBMOONSHOT_LDFLAGS="-L$libmoonshot/lib";
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot_get_identity in -lmoonshot" >&5
16458 $as_echo_n "checking for moonshot_get_identity in -lmoonshot... " >&6; }
16459 if ${ac_cv_lib_moonshot_moonshot_get_identity+:} false; then :
16460 $as_echo_n "(cached) " >&6
16462 ac_check_lib_save_LIBS=$LIBS
16463 LIBS="-lmoonshot "$LIBMOONSHOT_LIBS" $LIBS"
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16467 /* Override any GCC internal prototype to avoid an error.
16468 Use char because int might match the return type of a GCC
16469 builtin and then its argument prototype would still apply. */
16473 char moonshot_get_identity ();
16477 return moonshot_get_identity ();
16482 if ac_fn_c_try_link "$LINENO"; then :
16483 ac_cv_lib_moonshot_moonshot_get_identity=yes
16485 ac_cv_lib_moonshot_moonshot_get_identity=no
16487 rm -f core conftest.err conftest.$ac_objext \
16488 conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_moonshot_moonshot_get_identity" >&5
16492 $as_echo "$ac_cv_lib_moonshot_moonshot_get_identity" >&6; }
16493 if test "x$ac_cv_lib_moonshot_moonshot_get_identity" = xyes; then :
16495 cat >>confdefs.h <<_ACEOF
16496 #define HAVE_MOONSHOT_GET_IDENTITY 1
16505 if test "x$found_libmoonshot" != "xno"; then
16507 LIBMOONSHOT_FALSE='#'
16509 LIBMOONSHOT_TRUE='#'
16514 ac_config_files="$ac_config_files Makefile libeap/Makefile mech_eap/Makefile mech_eap.spec"
16516 cat >confcache <<\_ACEOF
16517 # This file is a shell script that caches the results of configure
16518 # tests run on this system so they can be shared between configure
16519 # scripts and configure runs, see configure's option --config-cache.
16520 # It is not useful on other systems. If it contains results you don't
16521 # want to keep, you may remove or edit it.
16523 # config.status only pays attention to the cache file if you give it
16524 # the --recheck option to rerun configure.
16526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16528 # following values.
16532 # The following way of writing the cache mishandles newlines in values,
16533 # but we know of no workaround that is simple, portable, and efficient.
16534 # So, we kill variables containing newlines.
16535 # Ultrix sh set writes to stderr and can't be redirected directly,
16536 # and sets the high bit in the cache file unless we assign to the vars.
16538 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16539 eval ac_val=\$$ac_var
16543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16547 _ | IFS | as_nl) ;; #(
16548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16549 *) { eval $ac_var=; unset $ac_var;} ;;
16555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16556 *${as_nl}ac_space=\ *)
16557 # `set' does not quote correctly, so add quotes: double-quote
16558 # substitution turns \\\\ into \\, and sed turns \\ into \.
16561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16564 # `set' quotes correctly as required by POSIX, so do not add quotes.
16565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16578 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16579 if test -w "$cache_file"; then
16580 if test "x$cache_file" != "x/dev/null"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16582 $as_echo "$as_me: updating cache $cache_file" >&6;}
16583 if test ! -f "$cache_file" || test -h "$cache_file"; then
16584 cat confcache >"$cache_file"
16586 case $cache_file in #(
16588 mv -f confcache "$cache_file"$$ &&
16589 mv -f "$cache_file"$$ "$cache_file" ;; #(
16591 mv -f confcache "$cache_file" ;;
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16603 # Let make expand exec_prefix.
16604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16606 DEFS=-DHAVE_CONFIG_H
16611 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16612 # 1. Remove the extension, and $U if already installed.
16613 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16614 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16616 # will be set to the directory where LIBOBJS objects are built.
16617 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16618 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16620 LIBOBJS=$ac_libobjs
16622 LTLIBOBJS=$ac_ltlibobjs
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16626 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16627 if test -n "$am_sleep_pid"; then
16628 # Hide warnings about reused PIDs.
16629 wait $am_sleep_pid 2>/dev/null
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16632 $as_echo "done" >&6; }
16633 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16634 as_fn_error $? "conditional \"AMDEP\" was never defined.
16635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16638 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16641 if test -n "$EXEEXT"; then
16643 am__EXEEXT_FALSE='#'
16645 am__EXEEXT_TRUE='#'
16649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16650 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16653 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16654 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16657 if test -z "${GSSEAP_ENABLE_REAUTH_TRUE}" && test -z "${GSSEAP_ENABLE_REAUTH_FALSE}"; then
16658 as_fn_error $? "conditional \"GSSEAP_ENABLE_REAUTH\" was never defined.
16659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16661 if test -z "${GSSEAP_ENABLE_ACCEPTOR_TRUE}" && test -z "${GSSEAP_ENABLE_ACCEPTOR_FALSE}"; then
16662 as_fn_error $? "conditional \"GSSEAP_ENABLE_ACCEPTOR\" was never defined.
16663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16665 if test -z "${TARGET_WINDOWS_TRUE}" && test -z "${TARGET_WINDOWS_FALSE}"; then
16666 as_fn_error $? "conditional \"TARGET_WINDOWS\" was never defined.
16667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16669 if test -z "${HEIMDAL_TRUE}" && test -z "${HEIMDAL_FALSE}"; then
16670 as_fn_error $? "conditional \"HEIMDAL\" was never defined.
16671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16673 if test -z "${OPENSAML_TRUE}" && test -z "${OPENSAML_FALSE}"; then
16674 as_fn_error $? "conditional \"OPENSAML\" was never defined.
16675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16677 if test -z "${SHIBRESOLVER_TRUE}" && test -z "${SHIBRESOLVER_FALSE}"; then
16678 as_fn_error $? "conditional \"SHIBRESOLVER\" was never defined.
16679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16681 if test -z "${LIBMOONSHOT_TRUE}" && test -z "${LIBMOONSHOT_FALSE}"; then
16682 as_fn_error $? "conditional \"LIBMOONSHOT\" was never defined.
16683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16686 : "${CONFIG_STATUS=./config.status}"
16688 ac_clean_files_save=$ac_clean_files
16689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16691 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16693 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16695 # Generated by $as_me.
16696 # Run this file to recreate the current configuration.
16697 # Compiler output produced by configure, useful for debugging
16698 # configure, is in config.log if it exists.
16701 ac_cs_recheck=false
16704 SHELL=\${CONFIG_SHELL-$SHELL}
16707 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16708 ## -------------------- ##
16709 ## M4sh Initialization. ##
16710 ## -------------------- ##
16712 # Be more Bourne compatible
16713 DUALCASE=1; export DUALCASE # for MKS sh
16714 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16718 # is contrary to our usage. Disable this feature.
16719 alias -g '${1+"$@"}'='"$@"'
16720 setopt NO_GLOB_SUBST
16722 case `(set -o) 2>/dev/null` in #(
16734 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16735 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16738 # Prefer a ksh shell builtin over an external printf program on Solaris,
16739 # but without wasting forks for bash or zsh.
16740 if test -z "$BASH_VERSION$ZSH_VERSION" \
16741 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16742 as_echo='print -r --'
16743 as_echo_n='print -rn --'
16744 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16745 as_echo='printf %s\n'
16746 as_echo_n='printf %s'
16748 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16749 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16750 as_echo_n='/usr/ucb/echo -n'
16752 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16753 as_echo_n_body='eval
16757 expr "X$arg" : "X\\(.*\\)$as_nl";
16758 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16760 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16762 export as_echo_n_body
16763 as_echo_n='sh -c $as_echo_n_body as_echo'
16765 export as_echo_body
16766 as_echo='sh -c $as_echo_body as_echo'
16769 # The user is always right.
16770 if test "${PATH_SEPARATOR+set}" != set; then
16772 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16773 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16780 # We need space, tab and new line, in precisely that order. Quoting is
16781 # there to prevent editors from complaining about space-tab.
16782 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16783 # splitting by setting IFS to empty value.)
16786 # Find who we are. Look in the path if we contain no directory separator.
16789 *[\\/]* ) as_myself=$0 ;;
16790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16791 for as_dir in $PATH
16794 test -z "$as_dir" && as_dir=.
16795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16801 # We did not find ourselves, most probably we were run as `sh COMMAND'
16802 # in which case we are not to be found in the path.
16803 if test "x$as_myself" = x; then
16806 if test ! -f "$as_myself"; then
16807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16811 # Unset variables that we do not need and which cause bugs (e.g. in
16812 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16813 # suppresses any "Segmentation fault" message there. '((' could
16814 # trigger a bug in pdksh 5.2.14.
16815 for as_var in BASH_ENV ENV MAIL MAILPATH
16816 do eval test x\${$as_var+set} = xset \
16817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16833 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16834 # ----------------------------------------
16835 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16836 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16837 # script with STATUS, using 1 if that was 0.
16840 as_status=$1; test $as_status -eq 0 && as_status=1
16842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16845 $as_echo "$as_me: error: $2" >&2
16846 as_fn_exit $as_status
16850 # as_fn_set_status STATUS
16851 # -----------------------
16852 # Set $? to STATUS, without forking.
16853 as_fn_set_status ()
16856 } # as_fn_set_status
16858 # as_fn_exit STATUS
16859 # -----------------
16860 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16864 as_fn_set_status $1
16870 # Portably unset VAR.
16873 { eval $1=; unset $1;}
16875 as_unset=as_fn_unset
16876 # as_fn_append VAR VALUE
16877 # ----------------------
16878 # Append the text in VALUE to the end of the definition contained in VAR. Take
16879 # advantage of any shell optimizations that allow amortized linear growth over
16880 # repeated appends, instead of the typical quadratic growth present in naive
16882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16883 eval 'as_fn_append ()
16894 # as_fn_arith ARG...
16895 # ------------------
16896 # Perform arithmetic evaluation on the ARGs, and store the result in the
16897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16898 # must be portable across $(()) and expr.
16899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16900 eval 'as_fn_arith ()
16907 as_val=`expr "$@" || test $? -eq 1`
16912 if expr a : '\(a\)' >/dev/null 2>&1 &&
16913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16920 as_basename=basename
16925 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16931 as_me=`$as_basename -- "$0" ||
16932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16933 X"$0" : 'X\(//\)$' \| \
16934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16936 sed '/^.*\/\([^/][^/]*\)\/*$/{
16950 # Avoid depending upon Character Ranges.
16951 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16952 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16953 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16954 as_cr_digits='0123456789'
16955 as_cr_alnum=$as_cr_Letters$as_cr_digits
16957 ECHO_C= ECHO_N= ECHO_T=
16958 case `echo -n x` in #(((((
16960 case `echo 'xy\c'` in
16961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16970 rm -f conf$$ conf$$.exe conf$$.file
16971 if test -d conf$$.dir; then
16972 rm -f conf$$.dir/conf$$.file
16975 mkdir conf$$.dir 2>/dev/null
16977 if (echo >conf$$.file) 2>/dev/null; then
16978 if ln -s conf$$.file conf$$ 2>/dev/null; then
16980 # ... but there are two gotchas:
16981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16983 # In both cases, we have to default to `cp -pR'.
16984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16986 elif ln conf$$.file conf$$ 2>/dev/null; then
16994 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16995 rmdir conf$$.dir 2>/dev/null
17000 # Create "$as_dir" as a directory, including parents if necessary.
17005 -*) as_dir=./$as_dir;;
17007 test -d "$as_dir" || eval $as_mkdir_p || {
17011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17012 *) as_qdir=$as_dir;;
17014 as_dirs="'$as_qdir' $as_dirs"
17015 as_dir=`$as_dirname -- "$as_dir" ||
17016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017 X"$as_dir" : 'X\(//\)[^/]' \| \
17018 X"$as_dir" : 'X\(//\)$' \| \
17019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$as_dir" |
17021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17025 /^X\(\/\/\)[^/].*/{
17038 test -d "$as_dir" && break
17040 test -z "$as_dirs" || eval "mkdir $as_dirs"
17041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17045 if mkdir -p . 2>/dev/null; then
17046 as_mkdir_p='mkdir -p "$as_dir"'
17048 test -d ./-p && rmdir ./-p
17053 # as_fn_executable_p FILE
17054 # -----------------------
17055 # Test if FILE is an executable regular file.
17056 as_fn_executable_p ()
17058 test -f "$1" && test -x "$1"
17059 } # as_fn_executable_p
17060 as_test_x='test -x'
17061 as_executable_p=as_fn_executable_p
17063 # Sed expression to map a string onto a valid CPP name.
17064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17066 # Sed expression to map a string onto a valid variable name.
17067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17071 ## ----------------------------------- ##
17072 ## Main body of $CONFIG_STATUS script. ##
17073 ## ----------------------------------- ##
17075 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17078 # Save the log message, to keep $0 and so on meaningful, and to
17079 # report actual input values of CONFIG_FILES etc. instead of their
17080 # values after options handling.
17082 This file was extended by mech_eap $as_me 0.9.1, which was
17083 generated by GNU Autoconf 2.69. Invocation command line was
17085 CONFIG_FILES = $CONFIG_FILES
17086 CONFIG_HEADERS = $CONFIG_HEADERS
17087 CONFIG_LINKS = $CONFIG_LINKS
17088 CONFIG_COMMANDS = $CONFIG_COMMANDS
17091 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17096 case $ac_config_files in *"
17097 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17100 case $ac_config_headers in *"
17101 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17106 # Files that config.status was made for.
17107 config_files="$ac_config_files"
17108 config_headers="$ac_config_headers"
17109 config_commands="$ac_config_commands"
17113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17115 \`$as_me' instantiates files and other configuration actions
17116 from templates according to the current configuration. Unless the files
17117 and actions are specified as TAGs, all are instantiated by default.
17119 Usage: $0 [OPTION]... [TAG]...
17121 -h, --help print this help, then exit
17122 -V, --version print version number and configuration settings, then exit
17123 --config print configuration, then exit
17124 -q, --quiet, --silent
17125 do not print progress messages
17126 -d, --debug don't remove temporary files
17127 --recheck update $as_me by reconfiguring in the same conditions
17128 --file=FILE[:TEMPLATE]
17129 instantiate the configuration file FILE
17130 --header=FILE[:TEMPLATE]
17131 instantiate the configuration header FILE
17133 Configuration files:
17136 Configuration headers:
17139 Configuration commands:
17142 Report bugs to <bugs@project-moonshot.org>."
17145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17148 mech_eap config.status 0.9.1
17149 configured by $0, generated by GNU Autoconf 2.69,
17150 with options \\"\$ac_cs_config\\"
17152 Copyright (C) 2012 Free Software Foundation, Inc.
17153 This config.status script is free software; the Free Software Foundation
17154 gives unlimited permission to copy, distribute and modify it."
17161 test -n "\$AWK" || AWK=awk
17164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17165 # The default lists apply if the user does not specify any file.
17171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17188 # Handling of the options.
17189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17192 $as_echo "$ac_cs_version"; exit ;;
17193 --config | --confi | --conf | --con | --co | --c )
17194 $as_echo "$ac_cs_config"; exit ;;
17195 --debug | --debu | --deb | --de | --d | -d )
17197 --file | --fil | --fi | --f )
17200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17201 '') as_fn_error $? "missing file argument" ;;
17203 as_fn_append CONFIG_FILES " '$ac_optarg'"
17204 ac_need_defaults=false;;
17205 --header | --heade | --head | --hea )
17208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17210 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17211 ac_need_defaults=false;;
17213 # Conflict between --help and --header
17214 as_fn_error $? "ambiguous option: \`$1'
17215 Try \`$0 --help' for more information.";;
17216 --help | --hel | -h )
17217 $as_echo "$ac_cs_usage"; exit ;;
17218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17222 # This is an error.
17223 -*) as_fn_error $? "unrecognized option: \`$1'
17224 Try \`$0 --help' for more information." ;;
17226 *) as_fn_append ac_config_targets " $1"
17227 ac_need_defaults=false ;;
17233 ac_configure_extra_args=
17235 if $ac_cs_silent; then
17237 ac_configure_extra_args="$ac_configure_extra_args --silent"
17241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17242 if \$ac_cs_recheck; then
17243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17246 CONFIG_SHELL='$SHELL'
17247 export CONFIG_SHELL
17252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17257 ## Running $as_me. ##
17263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17270 # The HP-UX ksh and POSIX shell print the target directory to stdout
17271 # if CDPATH is set.
17272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17274 sed_quote_subst='$sed_quote_subst'
17275 double_quote_subst='$double_quote_subst'
17276 delay_variable_subst='$delay_variable_subst'
17277 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17278 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17279 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17280 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17281 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17282 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17288 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17313 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17314 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17315 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17316 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17317 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17318 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17319 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17320 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17321 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17322 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17323 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17324 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17325 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17326 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17327 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17328 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17329 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17330 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17331 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17333 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17334 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"`'
17335 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17336 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17337 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17338 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17339 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17341 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17342 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17343 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17344 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17345 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17346 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17347 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17348 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17349 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17350 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17351 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17352 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17353 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17354 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17355 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17356 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17357 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17358 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17359 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17360 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17361 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17362 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17363 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17364 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17365 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17366 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17367 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17368 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17369 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17370 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17371 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17372 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17373 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17374 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17375 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17376 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17382 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17383 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17384 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17385 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17386 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17387 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17388 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17389 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17390 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17391 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17392 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17393 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17394 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17395 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17396 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17397 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17398 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17399 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17400 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17401 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17402 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17403 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17404 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17405 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17406 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17407 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17408 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17409 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17410 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17411 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17412 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17413 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17414 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17415 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17416 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17417 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17418 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17419 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17420 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17421 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17422 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17423 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17424 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17425 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17426 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17427 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17428 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17429 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17430 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17433 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17434 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17435 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17436 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17437 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17438 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17439 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17440 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17441 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17442 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17443 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17444 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17445 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17446 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17447 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17448 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17449 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17450 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17451 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17452 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17453 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17454 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17455 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17456 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17457 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17458 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17459 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17460 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17461 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17464 LTCFLAGS='$LTCFLAGS'
17465 compiler='$compiler_DEFAULT'
17467 # A function that is used when there is no print builtin or printf.
17468 func_fallback_echo ()
17470 eval 'cat <<_LTECHO_EOF
17475 # Quote evaled strings.
17492 deplibs_check_method \
17496 sharedlib_from_linklib_cmd \
17499 archiver_list_spec \
17505 lt_cv_sys_global_symbol_pipe \
17506 lt_cv_sys_global_symbol_to_cdecl \
17507 lt_cv_sys_global_symbol_to_c_name_address \
17508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17509 nm_file_list_spec \
17510 lt_prog_compiler_no_builtin_flag \
17511 lt_prog_compiler_pic \
17512 lt_prog_compiler_wl \
17513 lt_prog_compiler_static \
17514 lt_cv_prog_compiler_c_o \
17523 export_dynamic_flag_spec \
17524 whole_archive_flag_spec \
17525 compiler_needs_object \
17527 allow_undefined_flag \
17528 no_undefined_flag \
17529 hardcode_libdir_flag_spec \
17530 hardcode_libdir_separator \
17534 variables_saved_for_relink \
17536 library_names_spec \
17538 install_override_mode \
17542 compiler_lib_search_dirs \
17547 compiler_lib_search_path \
17551 lt_prog_compiler_no_builtin_flag_CXX \
17552 lt_prog_compiler_pic_CXX \
17553 lt_prog_compiler_wl_CXX \
17554 lt_prog_compiler_static_CXX \
17555 lt_cv_prog_compiler_c_o_CXX \
17556 export_dynamic_flag_spec_CXX \
17557 whole_archive_flag_spec_CXX \
17558 compiler_needs_object_CXX \
17560 allow_undefined_flag_CXX \
17561 no_undefined_flag_CXX \
17562 hardcode_libdir_flag_spec_CXX \
17563 hardcode_libdir_separator_CXX \
17564 exclude_expsyms_CXX \
17565 include_expsyms_CXX \
17566 file_list_spec_CXX \
17567 compiler_lib_search_dirs_CXX \
17568 predep_objects_CXX \
17569 postdep_objects_CXX \
17572 compiler_lib_search_path_CXX; do
17573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17574 *[\\\\\\\`\\"\\\$]*)
17575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17583 # Double-quote double-evaled strings.
17584 for var in reload_cmds \
17585 old_postinstall_cmds \
17586 old_postuninstall_cmds \
17588 extract_expsyms_cmds \
17589 old_archive_from_new_cmds \
17590 old_archive_from_expsyms_cmds \
17592 archive_expsym_cmds \
17594 module_expsym_cmds \
17595 export_symbols_cmds \
17599 postuninstall_cmds \
17601 sys_lib_search_path_spec \
17602 sys_lib_dlsearch_path_spec \
17604 old_archive_cmds_CXX \
17605 old_archive_from_new_cmds_CXX \
17606 old_archive_from_expsyms_cmds_CXX \
17608 archive_expsym_cmds_CXX \
17610 module_expsym_cmds_CXX \
17611 export_symbols_cmds_CXX \
17613 postlink_cmds_CXX; do
17614 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17615 *[\\\\\\\`\\"\\\$]*)
17616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17624 ac_aux_dir='$ac_aux_dir'
17625 xsi_shell='$xsi_shell'
17626 lt_shell_append='$lt_shell_append'
17628 # See if we are running on zsh, and set the options which allow our
17629 # commands through without removal of \ escapes INIT.
17630 if test -n "\${ZSH_VERSION+set}" ; then
17631 setopt NO_GLOB_SUBST
17637 TIMESTAMP='$TIMESTAMP'
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17650 # Handling of arguments.
17651 for ac_config_target in $ac_config_targets
17653 case $ac_config_target in
17654 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17655 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17656 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17658 "libeap/Makefile") CONFIG_FILES="$CONFIG_FILES libeap/Makefile" ;;
17659 "mech_eap/Makefile") CONFIG_FILES="$CONFIG_FILES mech_eap/Makefile" ;;
17660 "mech_eap.spec") CONFIG_FILES="$CONFIG_FILES mech_eap.spec" ;;
17662 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17667 # If the user did not use the arguments to specify the items to instantiate,
17668 # then the envvar interface is used. Set only those that are not.
17669 # We use the long form for the default assignment because of an extremely
17670 # bizarre bug on SunOS 4.1.3.
17671 if $ac_need_defaults; then
17672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17677 # Have a temporary directory for convenience. Make it in the build tree
17678 # simply because there is no reason against having it here, and in addition,
17679 # creating and moving files from /tmp can sometimes cause problems.
17680 # Hook for its removal unless debugging.
17681 # Note that there is a small window in which the directory will not be cleaned:
17682 # after its creation but before its name has been assigned to `$tmp'.
17686 trap 'exit_status=$?
17687 : "${ac_tmp:=$tmp}"
17688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17690 trap 'as_fn_exit 1' 1 2 13 15
17692 # Create a (secure) tmp directory for tmp files.
17695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17699 tmp=./conf$$-$RANDOM
17700 (umask 077 && mkdir "$tmp")
17701 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17704 # Set up the scripts for CONFIG_FILES section.
17705 # No need to generate them if there are no CONFIG_FILES.
17706 # This happens for instance with `./config.status config.h'.
17707 if test -n "$CONFIG_FILES"; then
17710 ac_cr=`echo X | tr X '\015'`
17711 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17712 # But we know of no other shell where ac_cr would be empty at this
17713 # point, so we can use a bashism as a fallback.
17714 if test "x$ac_cr" = x; then
17715 eval ac_cr=\$\'\\r\'
17717 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17718 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17721 ac_cs_awk_cr=$ac_cr
17724 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17729 echo "cat >conf$$subs.awk <<_ACEOF" &&
17730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17732 } >conf$$subs.sh ||
17733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17734 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17736 for ac_last_try in false false false false false :; do
17737 . ./conf$$subs.sh ||
17738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17741 if test $ac_delim_n = $ac_delim_num; then
17743 elif $ac_last_try; then
17744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17749 rm -f conf$$subs.sh
17751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17752 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17756 s/^/S["/; s/!.*/"]=/
17766 s/\(.\{148\}\)..*/\1/
17768 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17773 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17780 s/\(.\{148\}\)..*/\1/
17782 s/["\\]/\\&/g; s/^/"/; s/$/"/
17786 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17791 ' <conf$$subs.awk | sed '
17796 ' >>$CONFIG_STATUS || ac_write_fail=1
17797 rm -f conf$$subs.awk
17798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17800 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17801 for (key in S) S_is_set[key] = 1
17807 nfields = split(line, field, "@")
17809 len = length(field[1])
17810 for (i = 2; i < nfields; i++) {
17812 keylen = length(key)
17813 if (S_is_set[key]) {
17815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17816 len += length(value) + length(field[++i])
17827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17828 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17832 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17836 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17837 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17838 # trailing colons and then remove the whole line if VPATH becomes empty
17839 # (actually we leave an empty line to preserve line numbers).
17840 if test "x$srcdir" = x.; then
17841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860 fi # test -n "$CONFIG_FILES"
17862 # Set up the scripts for CONFIG_HEADERS section.
17863 # No need to generate them if there are no CONFIG_HEADERS.
17864 # This happens for instance with `./config.status Makefile'.
17865 if test -n "$CONFIG_HEADERS"; then
17866 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17870 # Transform confdefs.h into an awk script `defines.awk', embedded as
17871 # here-document in config.status, that substitutes the proper values into
17872 # config.h.in to produce config.h.
17874 # Create a delimiter string that does not exist in confdefs.h, to ease
17875 # handling of long lines.
17877 for ac_last_try in false false :; do
17878 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17879 if test -z "$ac_tt"; then
17881 elif $ac_last_try; then
17882 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17888 # For the awk script, D is an array of macro values keyed by name,
17889 # likewise P contains macro parameters if any. Preserve backslash
17890 # newline sequences.
17892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17894 s/.\{148\}/&'"$ac_delim"'/g
17897 s/^[ ]*#[ ]*define[ ][ ]*/ /
17904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17906 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17911 D["\1"]=" \3\\\\\\n"\\/p
17913 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17918 s/.\{148\}/&'"$ac_delim"'/g
17923 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17926 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17928 ' <confdefs.h | sed '
17929 s/'"$ac_delim"'/"\\\
17930 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933 for (key in D) D_is_set[key] = 1
17936 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17938 split(line, arg, " ")
17939 if (arg[1] == "#") {
17943 defundef = substr(arg[1], 2)
17946 split(mac1, mac2, "(") #)
17948 prefix = substr(line, 1, index(line, defundef) - 1)
17949 if (D_is_set[macro]) {
17950 # Preserve the white space surrounding the "#".
17951 print prefix "define", macro P[macro] D[macro]
17954 # Replace #undef with comments. This is necessary, for example,
17955 # in the case of _POSIX_SOURCE, which is predefined and required
17956 # on some systems where configure will not decide to define it.
17957 if (defundef == "undef") {
17958 print "/*", prefix defundef, macro, "*/"
17966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17967 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17968 fi # test -n "$CONFIG_HEADERS"
17971 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17976 :[FHLC]) ac_mode=$ac_tag; continue;;
17978 case $ac_mode$ac_tag in
17980 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17981 :[FH]-) ac_tag=-:-;;
17982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17999 -) ac_f="$ac_tmp/stdin";;
18000 *) # Look for the file first in the build tree, then in the source tree
18001 # (if the path is not absolute). The absolute path cannot be DOS-style,
18002 # because $ac_f cannot contain `:'.
18006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18008 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18010 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18011 as_fn_append ac_file_inputs " '$ac_f'"
18014 # Let's still pretend it is `configure' which instantiates (i.e., don't
18015 # use $as_me), people would be surprised to read:
18016 # /* config.h. Generated by config.status. */
18017 configure_input='Generated from '`
18018 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18020 if test x"$ac_file" != x-; then
18021 configure_input="$ac_file. $configure_input"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18023 $as_echo "$as_me: creating $ac_file" >&6;}
18025 # Neutralize special characters interpreted by sed in replacement strings.
18026 case $configure_input in #(
18027 *\&* | *\|* | *\\* )
18028 ac_sed_conf_input=`$as_echo "$configure_input" |
18029 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18030 *) ac_sed_conf_input=$configure_input;;
18034 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18040 ac_dir=`$as_dirname -- "$ac_file" ||
18041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18042 X"$ac_file" : 'X\(//\)[^/]' \| \
18043 X"$ac_file" : 'X\(//\)$' \| \
18044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18045 $as_echo X"$ac_file" |
18046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18050 /^X\(\/\/\)[^/].*/{
18063 as_dir="$ac_dir"; as_fn_mkdir_p
18067 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18069 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18070 # A ".." for each directory in $ac_dir_suffix.
18071 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18072 case $ac_top_builddir_sub in
18073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18077 ac_abs_top_builddir=$ac_pwd
18078 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18079 # for backward compatibility:
18080 ac_top_builddir=$ac_top_build_prefix
18083 .) # We are building in place.
18085 ac_top_srcdir=$ac_top_builddir_sub
18086 ac_abs_top_srcdir=$ac_pwd ;;
18087 [\\/]* | ?:[\\/]* ) # Absolute name.
18088 ac_srcdir=$srcdir$ac_dir_suffix;
18089 ac_top_srcdir=$srcdir
18090 ac_abs_top_srcdir=$srcdir ;;
18091 *) # Relative name.
18092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18093 ac_top_srcdir=$ac_top_build_prefix$srcdir
18094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18096 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18107 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18109 ac_MKDIR_P=$MKDIR_P
18111 [\\/$]* | ?:[\\/]* ) ;;
18112 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18117 # If the template does not know about datarootdir, expand it.
18118 # FIXME: This hack should be removed a few years after 2.60.
18119 ac_datarootdir_hack=; ac_datarootdir_seen=
18130 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18131 *datarootdir*) ac_datarootdir_seen=yes;;
18132 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18134 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18137 ac_datarootdir_hack='
18138 s&@datadir@&$datadir&g
18139 s&@docdir@&$docdir&g
18140 s&@infodir@&$infodir&g
18141 s&@localedir@&$localedir&g
18142 s&@mandir@&$mandir&g
18143 s&\\\${datarootdir}&$datarootdir&g' ;;
18147 # Neutralize VPATH when `$srcdir' = `.'.
18148 # Shell code in configure.ac might set extrasub.
18149 # FIXME: do we really want to maintain this feature?
18150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18151 ac_sed_extra="$ac_vpsub
18154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18157 s|@configure_input@|$ac_sed_conf_input|;t t
18158 s&@top_builddir@&$ac_top_builddir_sub&;t t
18159 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18160 s&@srcdir@&$ac_srcdir&;t t
18161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18162 s&@top_srcdir@&$ac_top_srcdir&;t t
18163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18164 s&@builddir@&$ac_builddir&;t t
18165 s&@abs_builddir@&$ac_abs_builddir&;t t
18166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18167 s&@INSTALL@&$ac_INSTALL&;t t
18168 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18169 $ac_datarootdir_hack
18171 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18172 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18175 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18177 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18179 which seems to be undefined. Please make sure it is defined" >&5
18180 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18181 which seems to be undefined. Please make sure it is defined" >&2;}
18183 rm -f "$ac_tmp/stdin"
18185 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18186 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18194 if test x"$ac_file" != x-; then
18196 $as_echo "/* $configure_input */" \
18197 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18198 } >"$ac_tmp/config.h" \
18199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18200 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18202 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18205 mv "$ac_tmp/config.h" "$ac_file" \
18206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18209 $as_echo "/* $configure_input */" \
18210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18211 || as_fn_error $? "could not create -" "$LINENO" 5
18213 # Compute "$ac_file"'s index in $config_headers.
18216 for _am_header in $config_headers :; do
18217 case $_am_header in
18218 $_am_arg | $_am_arg:* )
18221 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18224 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18225 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18226 X"$_am_arg" : 'X\(//\)[^/]' \| \
18227 X"$_am_arg" : 'X\(//\)$' \| \
18228 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18229 $as_echo X"$_am_arg" |
18230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18234 /^X\(\/\/\)[^/].*/{
18246 s/.*/./; q'`/stamp-h$_am_stamp_count
18249 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18250 $as_echo "$as_me: executing $ac_file commands" >&6;}
18255 case $ac_file$ac_mode in
18256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18257 # Older Autoconf quotes --file arguments for eval, but not when files
18258 # are listed without --file. Let's play safe and only enable the eval
18259 # if we detect the quoting.
18260 case $CONFIG_FILES in
18261 *\'*) eval set x "$CONFIG_FILES" ;;
18262 *) set x $CONFIG_FILES ;;
18267 # Strip MF so we end up with the name of the file.
18268 mf=`echo "$mf" | sed -e 's/:.*$//'`
18269 # Check whether this is an Automake generated Makefile or not.
18270 # We used to match only the files named 'Makefile.in', but
18271 # some people rename them; so instead we look at the file content.
18272 # Grep'ing the first line is not enough: some people post-process
18273 # each Makefile.in and add a new line on top of each file to say so.
18274 # Grep'ing the whole file is not good either: AIX grep has a line
18275 # limit of 2048, but all sed's we know have understand at least 4000.
18276 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18277 dirpart=`$as_dirname -- "$mf" ||
18278 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18279 X"$mf" : 'X\(//\)[^/]' \| \
18280 X"$mf" : 'X\(//\)$' \| \
18281 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18287 /^X\(\/\/\)[^/].*/{
18303 # Extract the definition of DEPDIR, am__include, and am__quote
18304 # from the Makefile without running 'make'.
18305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18306 test -z "$DEPDIR" && continue
18307 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18308 test -z "$am__include" && continue
18309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18310 # Find all dependency output files, they are included files with
18311 # $(DEPDIR) in their names. We invoke sed twice because it is the
18312 # simplest approach to changing $(DEPDIR) to its actual value in the
18314 for file in `sed -n "
18315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18317 # Make sure the directory exists.
18318 test -f "$dirpart/$file" && continue
18319 fdir=`$as_dirname -- "$file" ||
18320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18321 X"$file" : 'X\(//\)[^/]' \| \
18322 X"$file" : 'X\(//\)$' \| \
18323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18324 $as_echo X"$file" |
18325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18329 /^X\(\/\/\)[^/].*/{
18342 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18343 # echo "creating $dirpart/$file"
18344 echo '# dummy' > "$dirpart/$file"
18351 # See if we are running on zsh, and set the options which allow our
18352 # commands through without removal of \ escapes.
18353 if test -n "${ZSH_VERSION+set}" ; then
18354 setopt NO_GLOB_SUBST
18357 cfgfile="${ofile}T"
18358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18361 cat <<_LT_EOF >> "$cfgfile"
18364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18370 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18372 # Written by Gordon Matzigkeit, 1996
18374 # This file is part of GNU Libtool.
18376 # GNU Libtool is free software; you can redistribute it and/or
18377 # modify it under the terms of the GNU General Public License as
18378 # published by the Free Software Foundation; either version 2 of
18379 # the License, or (at your option) any later version.
18381 # As a special exception to the GNU General Public License,
18382 # if you distribute this file as part of a program or library that
18383 # is built using GNU Libtool, you may include this file under the
18384 # same distribution terms that you use for the rest of that program.
18386 # GNU Libtool is distributed in the hope that it will be useful,
18387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18389 # GNU General Public License for more details.
18391 # You should have received a copy of the GNU General Public License
18392 # along with GNU Libtool; see the file COPYING. If not, a copy
18393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18394 # obtained by writing to the Free Software Foundation, Inc.,
18395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18398 # The names of the tagged configurations supported by this script.
18399 available_tags="CXX "
18401 # ### BEGIN LIBTOOL CONFIG
18403 # Which release of libtool.m4 was used?
18404 macro_version=$macro_version
18405 macro_revision=$macro_revision
18407 # Whether or not to build static libraries.
18408 build_old_libs=$enable_static
18410 # Assembler program.
18413 # DLL creation program.
18414 DLLTOOL=$lt_DLLTOOL
18416 # Object dumper program.
18417 OBJDUMP=$lt_OBJDUMP
18419 # Whether or not to build shared libraries.
18420 build_libtool_libs=$enable_shared
18422 # What type of objects to build.
18425 # Whether or not to optimize for fast installation.
18426 fast_install=$enable_fast_install
18428 # Shell to use when invoking shell scripts.
18431 # An echo program that protects backslashes.
18434 # The PATH separator for the build system.
18435 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18438 host_alias=$host_alias
18442 # The build system.
18443 build_alias=$build_alias
18447 # A sed program that does not truncate output.
18450 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18451 Xsed="\$SED -e 1s/^X//"
18453 # A grep program that handles long lines.
18459 # A literal string matcher.
18462 # A BSD- or MS-compatible name lister.
18465 # Whether we need soft or hard links.
18468 # What is the maximum length of a command?
18469 max_cmd_len=$max_cmd_len
18471 # Object file suffix (normally "o").
18474 # Executable file suffix (normally "").
18477 # whether the shell understands "unset".
18480 # turn spaces into newlines.
18483 # turn newlines into spaces.
18486 # convert \$build file names to \$host format.
18487 to_host_file_cmd=$lt_cv_to_host_file_cmd
18489 # convert \$build files to toolchain format.
18490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18492 # Method to check whether dependent libraries are shared objects.
18493 deplibs_check_method=$lt_deplibs_check_method
18495 # Command to use when deplibs_check_method = "file_magic".
18496 file_magic_cmd=$lt_file_magic_cmd
18498 # How to find potential files when deplibs_check_method = "file_magic".
18499 file_magic_glob=$lt_file_magic_glob
18501 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18502 want_nocaseglob=$lt_want_nocaseglob
18504 # Command to associate shared and link libraries.
18505 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18510 # Flags to create an archive.
18511 AR_FLAGS=$lt_AR_FLAGS
18513 # How to feed a file listing to the archiver.
18514 archiver_list_spec=$lt_archiver_list_spec
18516 # A symbol stripping program.
18519 # Commands used to install an old-style archive.
18521 old_postinstall_cmds=$lt_old_postinstall_cmds
18522 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18524 # Whether to use a lock for old archive extraction.
18525 lock_old_archive_extraction=$lock_old_archive_extraction
18530 # LTCC compiler flags.
18531 LTCFLAGS=$lt_CFLAGS
18533 # Take the output of nm and produce a listing of raw symbols and C names.
18534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18536 # Transform the output of nm in a proper C declaration.
18537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18539 # Transform the output of nm in a C name address pair.
18540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18542 # Transform the output of nm in a C name address pair when lib prefix is needed.
18543 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18545 # Specify filename containing input files for \$NM.
18546 nm_file_list_spec=$lt_nm_file_list_spec
18548 # The root where to search for dependent libraries,and in which our libraries should be installed.
18549 lt_sysroot=$lt_sysroot
18551 # The name of the directory that contains temporary libtool files.
18554 # Used to examine libraries when file_magic_cmd begins with "file".
18555 MAGIC_CMD=$MAGIC_CMD
18557 # Must we lock files when doing compilation?
18558 need_locks=$lt_need_locks
18561 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18563 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18564 DSYMUTIL=$lt_DSYMUTIL
18566 # Tool to change global to local symbols on Mac OS X.
18569 # Tool to manipulate fat objects and archives on Mac OS X.
18572 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18575 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18576 OTOOL64=$lt_OTOOL64
18578 # Old archive suffix (normally "a").
18581 # Shared library suffix (normally ".so").
18582 shrext_cmds=$lt_shrext_cmds
18584 # The commands to extract the exported symbol list from a shared archive.
18585 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18587 # Variables whose values should be saved in libtool wrapper scripts and
18588 # restored at link time.
18589 variables_saved_for_relink=$lt_variables_saved_for_relink
18591 # Do we need the "lib" prefix for modules?
18592 need_lib_prefix=$need_lib_prefix
18594 # Do we need a version for libraries?
18595 need_version=$need_version
18597 # Library versioning type.
18598 version_type=$version_type
18600 # Shared library runtime path variable.
18601 runpath_var=$runpath_var
18603 # Shared library path variable.
18604 shlibpath_var=$shlibpath_var
18606 # Is shlibpath searched before the hard-coded library search path?
18607 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18609 # Format of library name prefix.
18610 libname_spec=$lt_libname_spec
18612 # List of archive names. First name is the real one, the rest are links.
18613 # The last name is the one that the linker finds with -lNAME
18614 library_names_spec=$lt_library_names_spec
18616 # The coded name of the library, if different from the real name.
18617 soname_spec=$lt_soname_spec
18619 # Permission mode override for installation of shared libraries.
18620 install_override_mode=$lt_install_override_mode
18622 # Command to use after installation of a shared archive.
18623 postinstall_cmds=$lt_postinstall_cmds
18625 # Command to use after uninstallation of a shared archive.
18626 postuninstall_cmds=$lt_postuninstall_cmds
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18631 # As "finish_cmds", except a single script fragment to be evaled but
18633 finish_eval=$lt_finish_eval
18635 # Whether we should hardcode library paths into libraries.
18636 hardcode_into_libs=$hardcode_into_libs
18638 # Compile-time system search path for libraries.
18639 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18641 # Run-time system search path for libraries.
18642 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18644 # Whether dlopen is supported.
18645 dlopen_support=$enable_dlopen
18647 # Whether dlopen of programs is supported.
18648 dlopen_self=$enable_dlopen_self
18650 # Whether dlopen of statically linked programs is supported.
18651 dlopen_self_static=$enable_dlopen_self_static
18653 # Commands to strip libraries.
18654 old_striplib=$lt_old_striplib
18655 striplib=$lt_striplib
18658 # The linker used to build libraries.
18661 # How to create reloadable object files.
18662 reload_flag=$lt_reload_flag
18663 reload_cmds=$lt_reload_cmds
18665 # Commands used to build an old-style archive.
18666 old_archive_cmds=$lt_old_archive_cmds
18668 # A language specific compiler.
18671 # Is the compiler the GNU compiler?
18674 # Compiler flag to turn off builtin functions.
18675 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18677 # Additional compiler flags for building library objects.
18678 pic_flag=$lt_lt_prog_compiler_pic
18680 # How to pass a linker flag through the compiler.
18681 wl=$lt_lt_prog_compiler_wl
18683 # Compiler flag to prevent dynamic linking.
18684 link_static_flag=$lt_lt_prog_compiler_static
18686 # Does compiler simultaneously support -c and -o options?
18687 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18689 # Whether or not to add -lc for building shared libraries.
18690 build_libtool_need_lc=$archive_cmds_need_lc
18692 # Whether or not to disallow shared libs when runtime libs are static.
18693 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18695 # Compiler flag to allow reflexive dlopens.
18696 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18698 # Compiler flag to generate shared objects directly from archives.
18699 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18701 # Whether the compiler copes with passing no objects directly.
18702 compiler_needs_object=$lt_compiler_needs_object
18704 # Create an old-style archive from a shared archive.
18705 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18707 # Create a temporary old-style archive to link instead of a shared archive.
18708 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18710 # Commands used to build a shared archive.
18711 archive_cmds=$lt_archive_cmds
18712 archive_expsym_cmds=$lt_archive_expsym_cmds
18714 # Commands used to build a loadable module if different from building
18715 # a shared archive.
18716 module_cmds=$lt_module_cmds
18717 module_expsym_cmds=$lt_module_expsym_cmds
18719 # Whether we are building with GNU ld or not.
18720 with_gnu_ld=$lt_with_gnu_ld
18722 # Flag that allows shared libraries with undefined symbols to be built.
18723 allow_undefined_flag=$lt_allow_undefined_flag
18725 # Flag that enforces no undefined symbols.
18726 no_undefined_flag=$lt_no_undefined_flag
18728 # Flag to hardcode \$libdir into a binary during linking.
18729 # This must work even if \$libdir does not exist
18730 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18732 # Whether we need a single "-rpath" flag with a separated argument.
18733 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18735 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18736 # DIR into the resulting binary.
18737 hardcode_direct=$hardcode_direct
18739 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18740 # DIR into the resulting binary and the resulting library dependency is
18741 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18742 # library is relocated.
18743 hardcode_direct_absolute=$hardcode_direct_absolute
18745 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18746 # into the resulting binary.
18747 hardcode_minus_L=$hardcode_minus_L
18749 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18750 # into the resulting binary.
18751 hardcode_shlibpath_var=$hardcode_shlibpath_var
18753 # Set to "yes" if building a shared library automatically hardcodes DIR
18754 # into the library and all subsequent libraries and executables linked
18756 hardcode_automatic=$hardcode_automatic
18758 # Set to yes if linker adds runtime paths of dependent libraries
18759 # to runtime path list.
18760 inherit_rpath=$inherit_rpath
18762 # Whether libtool must link a program against all its dependency libraries.
18763 link_all_deplibs=$link_all_deplibs
18765 # Set to "yes" if exported symbols are required.
18766 always_export_symbols=$always_export_symbols
18768 # The commands to list exported symbols.
18769 export_symbols_cmds=$lt_export_symbols_cmds
18771 # Symbols that should not be listed in the preloaded symbols.
18772 exclude_expsyms=$lt_exclude_expsyms
18774 # Symbols that must always be exported.
18775 include_expsyms=$lt_include_expsyms
18777 # Commands necessary for linking programs (against libraries) with templates.
18778 prelink_cmds=$lt_prelink_cmds
18780 # Commands necessary for finishing linking programs.
18781 postlink_cmds=$lt_postlink_cmds
18783 # Specify filename containing input files.
18784 file_list_spec=$lt_file_list_spec
18786 # How to hardcode a shared library path into an executable.
18787 hardcode_action=$hardcode_action
18789 # The directories searched by this compiler when creating a shared library.
18790 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18792 # Dependencies to place before and after the objects being linked to
18793 # create a shared library.
18794 predep_objects=$lt_predep_objects
18795 postdep_objects=$lt_postdep_objects
18796 predeps=$lt_predeps
18797 postdeps=$lt_postdeps
18799 # The library search path used internally by the compiler when linking
18800 # a shared library.
18801 compiler_lib_search_path=$lt_compiler_lib_search_path
18803 # ### END LIBTOOL CONFIG
18809 cat <<\_LT_EOF >> "$cfgfile"
18810 # AIX sometimes has problems with the GCC collect2 program. For some
18811 # reason, if we set the COLLECT_NAMES environment variable, the problems
18812 # vanish in a puff of smoke.
18813 if test "X${COLLECT_NAMES+set}" != Xset; then
18815 export COLLECT_NAMES
18822 ltmain="$ac_aux_dir/ltmain.sh"
18825 # We use sed instead of cat because bash on DJGPP gets confused if
18826 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18827 # text mode, it properly converts lines to CR/LF. This bash problem
18828 # is reportedly fixed, but why not run on old versions too?
18829 sed '$q' "$ltmain" >> "$cfgfile" \
18830 || (rm -f "$cfgfile"; exit 1)
18832 if test x"$xsi_shell" = xyes; then
18833 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18837 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18838 \ * ) func_dirname_result="${3}" ;;\
18840 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18841 && mv -f "$cfgfile.tmp" "$cfgfile" \
18842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18843 test 0 -eq $? || _lt_function_replace_fail=:
18846 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18849 \ func_basename_result="${1##*/}"\
18850 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18851 && mv -f "$cfgfile.tmp" "$cfgfile" \
18852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18853 test 0 -eq $? || _lt_function_replace_fail=:
18856 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18857 func_dirname_and_basename ()\
18860 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18861 \ * ) func_dirname_result="${3}" ;;\
18863 \ func_basename_result="${1##*/}"\
18864 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18865 && mv -f "$cfgfile.tmp" "$cfgfile" \
18866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18867 test 0 -eq $? || _lt_function_replace_fail=:
18870 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18873 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18874 \ # positional parameters, so assign one to ordinary parameter first.\
18875 \ func_stripname_result=${3}\
18876 \ func_stripname_result=${func_stripname_result#"${1}"}\
18877 \ func_stripname_result=${func_stripname_result%"${2}"}\
18878 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18879 && mv -f "$cfgfile.tmp" "$cfgfile" \
18880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18881 test 0 -eq $? || _lt_function_replace_fail=:
18884 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18885 func_split_long_opt ()\
18887 \ func_split_long_opt_name=${1%%=*}\
18888 \ func_split_long_opt_arg=${1#*=}\
18889 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18890 && mv -f "$cfgfile.tmp" "$cfgfile" \
18891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18892 test 0 -eq $? || _lt_function_replace_fail=:
18895 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18896 func_split_short_opt ()\
18898 \ func_split_short_opt_arg=${1#??}\
18899 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18900 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18901 && mv -f "$cfgfile.tmp" "$cfgfile" \
18902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18903 test 0 -eq $? || _lt_function_replace_fail=:
18906 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18910 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18911 \ *) func_lo2o_result=${1} ;;\
18913 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18914 && mv -f "$cfgfile.tmp" "$cfgfile" \
18915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18916 test 0 -eq $? || _lt_function_replace_fail=:
18919 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18922 func_xform_result=${1%.*}.lo\
18923 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18924 && mv -f "$cfgfile.tmp" "$cfgfile" \
18925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18926 test 0 -eq $? || _lt_function_replace_fail=:
18929 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18932 func_arith_result=$(( $* ))\
18933 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18934 && mv -f "$cfgfile.tmp" "$cfgfile" \
18935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18936 test 0 -eq $? || _lt_function_replace_fail=:
18939 sed -e '/^func_len ()$/,/^} # func_len /c\
18942 func_len_result=${#1}\
18943 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18944 && mv -f "$cfgfile.tmp" "$cfgfile" \
18945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18946 test 0 -eq $? || _lt_function_replace_fail=:
18950 if test x"$lt_shell_append" = xyes; then
18951 sed -e '/^func_append ()$/,/^} # func_append /c\
18954 eval "${1}+=\\${2}"\
18955 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18956 && mv -f "$cfgfile.tmp" "$cfgfile" \
18957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18958 test 0 -eq $? || _lt_function_replace_fail=:
18961 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18962 func_append_quoted ()\
18964 \ func_quote_for_eval "${2}"\
18965 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18966 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18967 && mv -f "$cfgfile.tmp" "$cfgfile" \
18968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969 test 0 -eq $? || _lt_function_replace_fail=:
18972 # Save a `func_append' function call where possible by direct use of '+='
18973 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18974 && mv -f "$cfgfile.tmp" "$cfgfile" \
18975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18976 test 0 -eq $? || _lt_function_replace_fail=:
18978 # Save a `func_append' function call even when '+=' is not available
18979 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18980 && mv -f "$cfgfile.tmp" "$cfgfile" \
18981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18982 test 0 -eq $? || _lt_function_replace_fail=:
18985 if test x"$_lt_function_replace_fail" = x":"; then
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18987 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18991 mv -f "$cfgfile" "$ofile" ||
18992 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18996 cat <<_LT_EOF >> "$ofile"
18998 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19000 # The linker used to build libraries.
19003 # How to create reloadable object files.
19004 reload_flag=$lt_reload_flag_CXX
19005 reload_cmds=$lt_reload_cmds_CXX
19007 # Commands used to build an old-style archive.
19008 old_archive_cmds=$lt_old_archive_cmds_CXX
19010 # A language specific compiler.
19011 CC=$lt_compiler_CXX
19013 # Is the compiler the GNU compiler?
19016 # Compiler flag to turn off builtin functions.
19017 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19019 # Additional compiler flags for building library objects.
19020 pic_flag=$lt_lt_prog_compiler_pic_CXX
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_CXX
19025 # Compiler flag to prevent dynamic linking.
19026 link_static_flag=$lt_lt_prog_compiler_static_CXX
19028 # Does compiler simultaneously support -c and -o options?
19029 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19031 # Whether or not to add -lc for building shared libraries.
19032 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19034 # Whether or not to disallow shared libs when runtime libs are static.
19035 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19037 # Compiler flag to allow reflexive dlopens.
19038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19040 # Compiler flag to generate shared objects directly from archives.
19041 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19043 # Whether the compiler copes with passing no objects directly.
19044 compiler_needs_object=$lt_compiler_needs_object_CXX
19046 # Create an old-style archive from a shared archive.
19047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19049 # Create a temporary old-style archive to link instead of a shared archive.
19050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19052 # Commands used to build a shared archive.
19053 archive_cmds=$lt_archive_cmds_CXX
19054 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19056 # Commands used to build a loadable module if different from building
19057 # a shared archive.
19058 module_cmds=$lt_module_cmds_CXX
19059 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19061 # Whether we are building with GNU ld or not.
19062 with_gnu_ld=$lt_with_gnu_ld_CXX
19064 # Flag that allows shared libraries with undefined symbols to be built.
19065 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19067 # Flag that enforces no undefined symbols.
19068 no_undefined_flag=$lt_no_undefined_flag_CXX
19070 # Flag to hardcode \$libdir into a binary during linking.
19071 # This must work even if \$libdir does not exist
19072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19074 # Whether we need a single "-rpath" flag with a separated argument.
19075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19077 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19078 # DIR into the resulting binary.
19079 hardcode_direct=$hardcode_direct_CXX
19081 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19082 # DIR into the resulting binary and the resulting library dependency is
19083 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19084 # library is relocated.
19085 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19087 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19088 # into the resulting binary.
19089 hardcode_minus_L=$hardcode_minus_L_CXX
19091 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19092 # into the resulting binary.
19093 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19095 # Set to "yes" if building a shared library automatically hardcodes DIR
19096 # into the library and all subsequent libraries and executables linked
19098 hardcode_automatic=$hardcode_automatic_CXX
19100 # Set to yes if linker adds runtime paths of dependent libraries
19101 # to runtime path list.
19102 inherit_rpath=$inherit_rpath_CXX
19104 # Whether libtool must link a program against all its dependency libraries.
19105 link_all_deplibs=$link_all_deplibs_CXX
19107 # Set to "yes" if exported symbols are required.
19108 always_export_symbols=$always_export_symbols_CXX
19110 # The commands to list exported symbols.
19111 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19113 # Symbols that should not be listed in the preloaded symbols.
19114 exclude_expsyms=$lt_exclude_expsyms_CXX
19116 # Symbols that must always be exported.
19117 include_expsyms=$lt_include_expsyms_CXX
19119 # Commands necessary for linking programs (against libraries) with templates.
19120 prelink_cmds=$lt_prelink_cmds_CXX
19122 # Commands necessary for finishing linking programs.
19123 postlink_cmds=$lt_postlink_cmds_CXX
19125 # Specify filename containing input files.
19126 file_list_spec=$lt_file_list_spec_CXX
19128 # How to hardcode a shared library path into an executable.
19129 hardcode_action=$hardcode_action_CXX
19131 # The directories searched by this compiler when creating a shared library.
19132 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19134 # Dependencies to place before and after the objects being linked to
19135 # create a shared library.
19136 predep_objects=$lt_predep_objects_CXX
19137 postdep_objects=$lt_postdep_objects_CXX
19138 predeps=$lt_predeps_CXX
19139 postdeps=$lt_postdeps_CXX
19141 # The library search path used internally by the compiler when linking
19142 # a shared library.
19143 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19145 # ### END LIBTOOL TAG CONFIG: CXX
19156 ac_clean_files=$ac_clean_files_save
19158 test $ac_write_fail = 0 ||
19159 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19162 # configure is writing to config.log, and then calls config.status.
19163 # config.status does its own redirection, appending to config.log.
19164 # Unfortunately, on DOS this fails, as config.log is still kept open
19165 # by configure, so config.status won't be able to write to it; its
19166 # output is simply discarded. So we exec the FD to /dev/null,
19167 # effectively closing config.log, so it can be properly (re)opened and
19168 # appended to by config.status. When coming back to configure, we
19169 # need to make the FD available again.
19170 if test "$no_create" != yes; then
19172 ac_config_status_args=
19173 test "$silent" = yes &&
19174 ac_config_status_args="$ac_config_status_args --quiet"
19176 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19179 # would make configure fail if this is the last instruction.
19180 $ac_cs_success || as_fn_exit 1
19182 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19184 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}